@datalayer/agent-runtimes 1.5.102 → 1.5.106
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/AgentInspector-CuvRXcQ7.js +1 -0
- package/dist-embed/chunks/{AgentInspectorDialog-Cf8jT6kR.js → AgentInspectorDialog-CXZGyBXE.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-9Xkl4nS1.js → CellSidebarExtension-BMT21AEe.js} +16 -16
- package/dist-embed/chunks/{DeckComponent-LPAk473I.js → DeckComponent-CDcvO2c7.js} +2 -2
- package/dist-embed/chunks/{DocumentView-CSX_hWLV.js → DocumentView-Bd505ec3.js} +1 -1
- package/dist-embed/chunks/EphemeralDocument-Cb738Fb7.js +1 -0
- package/dist-embed/chunks/{EphemeralNotebook-C3e2FrSq.js → EphemeralNotebook-ayRs87hn.js} +1 -1
- package/dist-embed/chunks/ExcalidrawComponent-zLN6lMMh.js +1 -0
- package/dist-embed/chunks/ExcalidrawModal-DmayKvhz.js +1 -0
- package/dist-embed/chunks/{JupyterLexicalExtension-Cq2BuRs0.js → JupyterLexicalExtension-DS8J9r_J.js} +5 -5
- package/dist-embed/chunks/{KernelVariables-BmWOn-n_.js → KernelVariables-JJah7mez.js} +1 -1
- package/dist-embed/chunks/NotebookToolSurfaces-Sjfasvqp.js +1 -0
- package/dist-embed/chunks/{NotebookView-yvVgAED6.js → NotebookView-BF9IDoeS.js} +1 -1
- package/dist-embed/chunks/{Output-DF1wzbCD.js → Output-UPeDwjyI.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-Bue8qhTm.js → SandboxDetailsDialog-BbFzOjmh.js} +1 -1
- package/dist-embed/chunks/WidgetVariableView-D4QMzgOL.js +1 -0
- package/dist-embed/chunks/{YouTubePlugin-aO-jWjdh.js → YouTubePlugin-C7CGtLzz.js} +1 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-B71U5XYF.js +1 -0
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-Bc-fKn8l.js +1 -0
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-HXaofwo9.js +1 -0
- package/dist-embed/chunks/advancedFormat-CshdkaWz.js +1 -0
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DZ6ta9d0.js → ar-SA-G6X2FPQ2-CCIrNclv.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CFyAMJIx.js → architectureDiagram-5GKGNRK7-BQB0U0rT.js} +2 -2
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BbVwTk8b.js → architectureDiagram-5GKGNRK7-C2AE1F2T.js} +2 -2
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DeCj6zMe.js → architectureDiagram-5GKGNRK7-CjuFI4z9.js} +2 -2
- package/dist-embed/chunks/az-AZ-76LH7QW2-CSTNZhVp.js +1 -0
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-B7QcVEVY.js → bg-BG-XCXSNQG7-DsDH3Vku.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CfRaagn_.js → blockDiagram-868be97b-B68KiGkE.js} +3 -3
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjRmv4QH.js → blockDiagram-I7D4REHJ-4XoG2wPO.js} +2 -2
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-SufaJtAi.js → blockDiagram-I7D4REHJ-BGPlI9Uq.js} +2 -2
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-kguVnun5.js → blockDiagram-I7D4REHJ-Cd5dHGkJ.js} +2 -2
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-TxN1ubr7.js → bn-BD-2XOGV67Q-CGa5jk8k.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-FyOk3LSs.js → c4Diagram-3f4bdde3-BuW3MIkw.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-SgQrn2PO.js → c4Diagram-7LVT6UL2-DCfGVCNK.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Cf2_xw9_.js → c4Diagram-7LVT6UL2-DgPxihhe.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-D3Vjz3Z8.js → c4Diagram-7LVT6UL2-SYqo_8ln.js} +2 -2
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Dqf9cvaK.js → ca-ES-6MX7JW3Y-DPni6_r-.js} +1 -1
- package/dist-embed/chunks/channel-BkDTnYd-.js +1 -0
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BJrhmygH.js → chunk-2Q5K7J3B-C6_NDlXz.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DuPgZFdB.js → chunk-2Q5K7J3B-CXYPY0Ns.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DBdUm--2.js → chunk-2Q5K7J3B-DAZwxp62.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C1Bpa3VF.js → chunk-5VM5RSS4-BE7Xw1qR.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-B-UBqvd2.js → chunk-5VM5RSS4-CkLbaiHB.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-nQugzoqo.js → chunk-5VM5RSS4-lyh9Xnd2.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-D3zJwrkg.js → chunk-F27PBJKO-C3nbzFWn.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DYiXXgT1.js → chunk-F27PBJKO-Db7_X2ml.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-MI-KHY-9.js → chunk-F27PBJKO-DgaijeLE.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-i4q8sDDB.js → chunk-IMKFNOWR-C0voe75K.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BbylDqs_.js → chunk-IMKFNOWR-CGh3mc7U.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DJk_fAZn.js → chunk-IMKFNOWR-wq8-ajoP.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BSzyfwPR.js → chunk-JWPE2WC7-BnJZ2J3A.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-8ggfUh7n.js → chunk-JWPE2WC7-C7Vh66mu.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D1PH2kGj.js → chunk-JWPE2WC7-IsI16_x9.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DhZnEisk.js → chunk-POPQ4Y6H-C74YP19P.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-pegurE5S.js → chunk-POPQ4Y6H-Jfdu8NYy.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CKubmyGa.js → chunk-POPQ4Y6H-igzMuKdy.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BF112NUO.js → chunk-SVP7TREG-BRTUczs-.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-D5yRz6xm.js → chunk-SVP7TREG-D5GVP8mx.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CoZRhamu.js → chunk-SVP7TREG-V_21qG9f.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-XF3ekUig.js → chunk-TICWLB2K-C64kdJiT.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-v9-jDBp6.js → chunk-TICWLB2K-COF4m2Q-.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-Bs5ffYyR.js → chunk-TICWLB2K-CmvMmjES.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D_FJqGi2.js → chunk-XXDRQBXY-CfGL0WH9.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-l6VvHymR.js → chunk-XXDRQBXY-ClqYjHLS.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D9b9c_ic.js → chunk-XXDRQBXY-p7YSmJfy.js} +1 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-2HYBPww6.js +1 -0
- package/dist-embed/chunks/classDiagram-ZZMXUADV-BLOgen3q.js +1 -0
- package/dist-embed/chunks/classDiagram-ZZMXUADV-DanFMb8A.js +1 -0
- package/dist-embed/chunks/classDiagram-f62afe4f-CNTk_RA5.js +2 -0
- package/dist-embed/chunks/classDiagram-v2-604399ef-BPXwuOhe.js +2 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2HYBPww6.js +1 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BLOgen3q.js +1 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DanFMb8A.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-BMDoRbpo.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-C2S2DIKI.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-DSHzx2BI.js +1 -0
- package/dist-embed/chunks/{createText-aed3d8b3-Dw977TwJ.js → createText-aed3d8b3-BxsX7KcT.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CwlCWt4T.js → cs-CZ-2BRQDIVT-C2VJoA4e.js} +1 -1
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-CXpjlIcM.js +62 -0
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DNkIHI2P.js +62 -0
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-Und8rlmR.js +62 -0
- package/dist-embed/chunks/d3-color-Jd8hXty2.js +1 -0
- package/dist-embed/chunks/d3-hierarchy-Cx6senVY.js +1 -0
- package/dist-embed/chunks/d3-interpolate-BVJucgkN.js +1 -0
- package/dist-embed/chunks/d3-scale-B-wnA6MO.js +1 -0
- package/dist-embed/chunks/d3-scale-chromatic-BM1YEV1K.js +1 -0
- package/dist-embed/chunks/{da-DK-5WZEPLOC-BYQLzbDz.js → da-DK-5WZEPLOC-B-8uCnDZ.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-Bj78I_3y.js → dagre-GXQ25YYZ-B8HVheVA.js} +2 -2
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BvxZGlAG.js → dagre-GXQ25YYZ-BLRf1T-i.js} +2 -2
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BiceTC0E.js → dagre-GXQ25YYZ-DOA3t5IT.js} +2 -2
- package/dist-embed/chunks/dayjs.min-u3zuoSR8.js +1 -0
- package/dist-embed/chunks/{de-DE-XR44H4JA-CdWGWxSf.js → de-DE-XR44H4JA-mVAvUgBj.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-Cmb9Ykqm.js → diagram-S7CK7UJ4-D9c-d1DT.js} +2 -2
- package/dist-embed/chunks/{diagram-S7CK7UJ4-DMHeQr8F.js → diagram-S7CK7UJ4-DwDc_czt.js} +2 -2
- package/dist-embed/chunks/{diagram-S7CK7UJ4-a4FArSaJ.js → diagram-S7CK7UJ4-NIp8rRdr.js} +2 -2
- package/dist-embed/chunks/diagram-UQ7AKVKN-CZK18sap.js +41 -0
- package/dist-embed/chunks/diagram-UQ7AKVKN-DhMlTIH1.js +41 -0
- package/dist-embed/chunks/diagram-UQ7AKVKN-DtYHVrIv.js +41 -0
- package/dist-embed/chunks/{diagram-VSXAHHWV-D3lurhxI.js → diagram-VSXAHHWV-BbVAIuUE.js} +2 -2
- package/dist-embed/chunks/{diagram-VSXAHHWV-BsxdgIBU.js → diagram-VSXAHHWV-CClL-qVb.js} +2 -2
- package/dist-embed/chunks/{diagram-VSXAHHWV-BzwWsSpj.js → diagram-VSXAHHWV-CVuj7Wwr.js} +2 -2
- package/dist-embed/chunks/diagram-VX7I27RA-CHGaftMB.js +24 -0
- package/dist-embed/chunks/diagram-VX7I27RA-DUtes5TO.js +24 -0
- package/dist-embed/chunks/diagram-VX7I27RA-W9zdS7er.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-CcvMwZF5.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-JLzwAzwv.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-nooaP3A_.js +24 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwaCwxtV.js +1 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-QUuH7KoJ.js +1 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-paF78xx4.js +1 -0
- package/dist-embed/chunks/edges-b2856ca0-Cw6uMsAp.js +4 -0
- package/dist-embed/chunks/{el-GR-BZB4AONW-TO3tEZdB.js → el-GR-BZB4AONW-BdoQC7zI.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-D3blvZNR.js → erDiagram-5d81789a-DvA05QFt.js} +3 -3
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-HUP46o_S.js → erDiagram-RLTQ6QDP-B8yauwFZ.js} +5 -5
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BvRjMgFJ.js → erDiagram-RLTQ6QDP-Bl7uSMrm.js} +5 -5
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-pCbnjfMk.js → erDiagram-RLTQ6QDP-DZBeHxcW.js} +5 -5
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BKZIANpq.js → es-ES-U4NZUMDT-mSL14Hu6.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-vz5ecl6y.js → eu-ES-A7QVB2H4-i8MVUvvA.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dmmoro5p.js → fa-IR-HGAKTJCU-BfG5w5pm.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-4bWurBmp.js → fi-FI-Z5N7JZ37-CxjOtOw5.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-DzeO696Q.js → flowDb-185abca5-CZQPmzTd.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-BCS_QkN2.js → flowDiagram-1629c991-DVkQIanX.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-C7KqgwLg.js → flowDiagram-HODETNUW-B051mCrB.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CObZVANE.js → flowDiagram-HODETNUW-CIxGkvY2.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-7NyW99NE.js → flowDiagram-HODETNUW-nx8wz3GE.js} +3 -3
- package/dist-embed/chunks/flowDiagram-v2-1d953310-BajQh2l6.js +1 -0
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-72x8aEiK.js → flowchart-elk-definition-6df44142-DVsdecvJ.js} +2 -2
- package/dist-embed/chunks/{fr-FR-RHASNOE6-QYoMYddl.js → fr-FR-RHASNOE6-Dx18-mdk.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-BsGIi6q0.js → ganttDiagram-3b0b3873-B_Ze5xJT.js} +4 -4
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Cm2jOWpZ.js → ganttDiagram-EL5Y4UJY-BNa2jv7L.js} +3 -3
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Bmj6A7sI.js → ganttDiagram-EL5Y4UJY-DWOvMpi_.js} +3 -3
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-QZMrDtOa.js → ganttDiagram-EL5Y4UJY-Ix5W25h0.js} +3 -3
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CY0V5PYj.js +106 -0
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CieNMLLD.js +106 -0
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-DtTUInJx.js +106 -0
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-C5glz__6.js → gitGraphDiagram-f01e8bc2-B7CTdpxh.js} +2 -2
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CuWi9MKI.js → gl-ES-HMX3MZ6V-D0gZC3Qs.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-CZ7rDY29.js → he-IL-6SHJWFNN-BpsgumHA.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BOtn2GYM.js → hi-IN-IWLTKZ5I-1U7gawIv.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Da2fd7BW.js → hu-HU-A5ZG7DT2-zY5nzegx.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DygGPsGR.js → id-ID-SAP4L64H-p8kr2CI9.js} +1 -1
- package/dist-embed/chunks/{index-CDGGINfN.js → index-4SXYvuYi.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-C6Xh0qGL.js → index-9bae90f3-_IqcZYff.js} +1 -1
- package/dist-embed/chunks/{index-B6ISkj2i.js → index-B9_Wb9MN.js} +1 -1
- package/dist-embed/chunks/index-BWTYs63X.js +1 -0
- package/dist-embed/chunks/{index-DIoOWi0w.js → index-BbLfaxiL.js} +2 -2
- package/dist-embed/chunks/{index-CMna4RvT.js → index-BeDw56-P.js} +1 -1
- package/dist-embed/chunks/{index-DUtVEK_h.js → index-Bi_Lrakd.js} +55 -55
- package/dist-embed/chunks/index-BqnIBWZ9.js +35 -0
- package/dist-embed/chunks/index-C0jxnCf_.js +1 -0
- package/dist-embed/chunks/{index-Gy_uosvT.js → index-C6p1fI_l.js} +1 -1
- package/dist-embed/chunks/{index-e62XL6B3.js → index-C7Y6qb5P.js} +41 -41
- package/dist-embed/chunks/index-CCwTAE5t.js +1 -0
- package/dist-embed/chunks/index-CEoN6Igz.js +1 -0
- package/dist-embed/chunks/index-CGywzy5S.js +2 -0
- package/dist-embed/chunks/index-CslfR-ws.js +1 -0
- package/dist-embed/chunks/index-D1WP6gqy.js +2 -0
- package/dist-embed/chunks/{index-BeA4XI1t.js → index-DTxyD1Cg.js} +1 -1
- package/dist-embed/chunks/index-Da0hjuSR.js +1 -0
- package/dist-embed/chunks/{index-ErZ9_T3y.js → index-DjEoMYXa.js} +12 -12
- package/dist-embed/chunks/{index-CF9HUHN8.js → index-Dy9evYbM.js} +1 -1
- package/dist-embed/chunks/index-Dz7T8mqj.js +6 -0
- package/dist-embed/chunks/index-LJsqLy5q.js +1 -0
- package/dist-embed/chunks/{index-B40K_78l.js → index-MIDt7IxB.js} +1 -1
- package/dist-embed/chunks/{index-DrXZebZS.js → index-VedUjmyH.js} +1 -1
- package/dist-embed/chunks/{index-fi_KzQoZ.js → index-lC26z37v.js} +1 -1
- package/dist-embed/chunks/index-n0wY5AOk.js +17 -0
- package/dist-embed/chunks/index-x4xjV1QS.js +1 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-CjrU5YxR.js +2 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-CygK1B8s.js +2 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-y2jlnC74.js +2 -0
- package/dist-embed/chunks/{infoDiagram-a29d40f1-C84ltR9z.js → infoDiagram-a29d40f1-CxLYanuc.js} +2 -2
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-19vfXaSu.js → ishikawaDiagram-5VMMS53U-B4bKsqAA.js} +2 -2
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BKwHxl_c.js → ishikawaDiagram-5VMMS53U-B_r8LPoh.js} +6 -6
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DxmD4pNL.js → ishikawaDiagram-5VMMS53U-D3Gs1zXZ.js} +6 -6
- package/dist-embed/chunks/{it-IT-JPQ66NNP-C61ct2vR.js → it-IT-JPQ66NNP-CxNntye1.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-DsuHLQzd.js → ja-JP-DBVTYXUO-D2eNPUzJ.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BtJM0rtE.js → journeyDiagram-3NMN7TZE-CPKVw4E2.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CRrrfAmB.js → journeyDiagram-3NMN7TZE-CdSVPmSP.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-D8vrwew7.js → journeyDiagram-3NMN7TZE-D5N9LfNb.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-95396277-91Yn8aB5.js → journeyDiagram-95396277-maRimpb1.js} +2 -2
- package/dist-embed/chunks/kaa-6HZHGXH3-B9Jduu1i.js +1 -0
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-lymWJChw.js → kab-KAB-ZGHBKWFO-D80S5Hke.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BI3EeL_e.js → kanban-definition-UXKFOSKX-6OQwjjDA.js} +2 -2
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BD4YKCh4.js → kanban-definition-UXKFOSKX-9X8AwfWh.js} +2 -2
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DFA9oGiU.js → kanban-definition-UXKFOSKX-DNrz6elS.js} +2 -2
- package/dist-embed/chunks/kk-KZ-P5N5QNE5-dttniW7L.js +1 -0
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-C__pm6qQ.js → km-KH-HSX4SM5Z-CwFUU4KI.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-D5yQS5Y4.js → ko-KR-MTYHY66A-6qkv_Dp9.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-OIGj43yE.js → ku-TR-6OUDTVRD-C4Mq1URI.js} +1 -1
- package/dist-embed/chunks/{layout-C3jdOWbU.js → layout-Br9qZ7AW.js} +1 -1
- package/dist-embed/chunks/{layout-DWmuzni9.js → layout-CA7S7W88.js} +1 -1
- package/dist-embed/chunks/{layout-Dj_zgK51.js → layout-DvZ5NRsQ.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-UGZ71aBo.js → lt-LT-XHIRWOB4-Cxuhrxpe.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-LRIHo0NC.js → lv-LV-5QDEKY6T-2nfUsrY3.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-DIIwHAlX.js → mermaid.core-CCCzTT5Y.js} +14 -14
- package/dist-embed/chunks/{mermaid.core-DF6jaPnW.js → mermaid.core-DRZOVBT3.js} +11 -11
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D6u4H_xO.js → mindmap-definition-YA3MSWOX-BjThuhS8.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-fBVFRUCw.js → mindmap-definition-YA3MSWOX-DFMy0Zmf.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-3bvIJFMV.js → mindmap-definition-YA3MSWOX-H2yRQ6u8.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-DbYGQCf5.js → mindmap-definition-e4c1d938-vjhx3bcZ.js} +4 -4
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-BXO8TJMv.js → mr-IN-CRQNXWMA-HC9cqgFo.js} +1 -1
- package/dist-embed/chunks/my-MM-5M5IBNSE-0zP3tJ-6.js +1 -0
- package/dist-embed/chunks/{nb-NO-T6EIAALU-UnDxFcwr.js → nb-NO-T6EIAALU-B7KA5H1w.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CdTeVF3c.js → nl-NL-IS3SIHDZ-BqrheHUd.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-nLVDeuAb.js → nn-NO-6E72VCQL-DjkBZa_a.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CGDfJA5K.js → oc-FR-POXYY2M6-Cu_3WEeT.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-h3gZ9Ic4.js → pa-IN-N4M65BXN-5JMtBjML.js} +1 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-1AWuvKdx.js +1 -0
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-BAhw3noh.js +1 -0
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-CO2oVfmH.js +1 -0
- package/dist-embed/chunks/{percentages-BXMCSKIN-BQMwWCQD.js → percentages-BXMCSKIN-BIq0kwQL.js} +5 -5
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-8ObvGarl.js +39 -0
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-BGXX7TE5.js +39 -0
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-uyUfJur0.js +39 -0
- package/dist-embed/chunks/{pieDiagram-c941bede-Cj4FBN3j.js → pieDiagram-c941bede-CiwJwky_.js} +5 -5
- package/dist-embed/chunks/{pl-PL-T2D74RX3-D83IXMGV.js → pl-PL-T2D74RX3--llsK5eC.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-C-tCCB23.js → pt-BR-5N22H2LF-Bakh_msU.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BfalAAyJ.js → pt-PT-UZXXM6DQ-OxrpUCfx.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Be4yYxRi.js → quadrantDiagram-AXDQQJYC-CRV4o4qb.js} +4 -4
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DWfnlrHL.js → quadrantDiagram-AXDQQJYC-CRh_0GTn.js} +4 -4
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-299UcZFW.js → quadrantDiagram-AXDQQJYC-MaByZiV4.js} +2 -2
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-qh1uZ5v_.js → quadrantDiagram-cf8b8fe0-Wunt4_d5.js} +2 -2
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-CCaje6VF.js +1 -0
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-Dqphwk0Z.js +1 -0
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-JQKf7O31.js +1 -0
- package/dist-embed/chunks/{renderer-VW8Zgoi-.js → renderer-DX-Dx5-F.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-C_KZy5Fe.js → requirementDiagram-53bda41b-TCOAg1rM.js} +2 -2
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-Bm0upXLv.js +84 -0
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-C2uapxGA.js +84 -0
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-DJxuQg-7.js +84 -0
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BE1v-gpB.js → ro-RO-JPDTUUEW-uuey0xG_.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CVNYAGNj.js → ru-RU-B4JR7IUQ-DqFdpWv9.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BWZcxo3B.js → sankeyDiagram-P5KCCOFB-CLZzsFhP.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CatGDvVZ.js → sankeyDiagram-P5KCCOFB-D_ovN9Nw.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-2w9aAGeM.js → sankeyDiagram-P5KCCOFB-SUZr8YYS.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B6bWzn2q.js → sankeyDiagram-c3ef121a-_iCn_Xqv.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CaIr2bxU.js → sequenceDiagram-82a5b84f-CZ9YH4d5.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B67pBo6k.js → sequenceDiagram-WJ2MYXX4-BKNAKMB-.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DlhUecfS.js → sequenceDiagram-WJ2MYXX4-BiNzit2i.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CBRqz17v.js → sequenceDiagram-WJ2MYXX4-CxJBbJNf.js} +2 -2
- package/dist-embed/chunks/si-LK-N5RQ5JYF-CvENlHMe.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-CfXgq7GH.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-DdEoxy_h.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-DzGAMY7V.js +1 -0
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CnlsIkzl.js → sk-SK-C5VTKIMK-kO7aKifc.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-BUxNatf_.js → sl-SI-NN7IZMDC-BSfu_xTu.js} +1 -1
- package/dist-embed/chunks/stateDiagram-43e79a5f-BD1qBXVh.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-BdFfP6-j.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-C6Rh7O9V.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-CZM-t-r5.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CKbh55dE.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BHkGSAh9.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CBRXg201.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CtwsmZKB.js +1 -0
- package/dist-embed/chunks/{styles-455b33cd-DTnW81zt.js → styles-455b33cd-IAZJyrtZ.js} +1 -1
- package/dist-embed/chunks/styles-f932cba9-CulCjJgD.js +116 -0
- package/dist-embed/chunks/{styles-fcc2142b-DS8IKMau.js → styles-fcc2142b-B41TEwDB.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-CTwDOb0-.js → subset-shared.chunk-BerOLB9H.js} +1 -1
- package/dist-embed/chunks/subset-worker.chunk-Yn1lZtLj.js +1 -0
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-cyuprKcs.js → sv-SE-XGPEYMSR-CwWdagrq.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BxghTVdH.js → svgDrawCommon-148a3cd9-BFE-Fru-.js} +1 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-B4ynl1fF.js +1 -0
- package/dist-embed/chunks/swimlanes-42K2YHIH-C3Ob3hRX.js +1 -0
- package/dist-embed/chunks/swimlanes-42K2YHIH-C4SGzTvJ.js +1 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BXjgQ3GL.js +8 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-C7a6omGx.js +8 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Clkyphbe.js +8 -0
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-Byh0RKP5.js → ta-IN-2NMHFXQM-re3EiMgT.js} +1 -1
- package/dist-embed/chunks/th-TH-HPSO5L25-DtD0NaIp.js +2 -0
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-D_rwkEbI.js → timeline-definition-24CTP7MA-BNDeFofK.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CbdMtllQ.js → timeline-definition-24CTP7MA-Cq0llA9E.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-4T6yq6Xl.js → timeline-definition-24CTP7MA-meb3YGxd.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-7545f45a-BV1QYS8b.js → timeline-definition-7545f45a-_IXtAyNt.js} +2 -2
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-CnqB5qYp.js → tr-TR-DEFEU3FU-C7nWPcvx.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-T0hbDiAg.js → uk-UA-QMV73CPH-BXHaS8be.js} +1 -1
- package/dist-embed/chunks/{venn.esm-6w9J1Bn7.js → venn.esm-DcgGHut9.js} +2 -2
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bvimw16k.js → vennDiagram-4TSXK5OY-5vXx1zIe.js} +4 -4
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CBXnZEfU.js → vennDiagram-4TSXK5OY-B_43mUqs.js} +4 -4
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CYAyZJWP.js → vennDiagram-4TSXK5OY-cdkeJjkW.js} +4 -4
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-BbVJrx8R.js → vi-VN-M7AON7JQ-D29vQQkQ.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B9iqutw0.js → wardleyDiagram-VM6X3IG4-1VXLU7d1.js} +2 -2
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-k_2iCVDr.js → wardleyDiagram-VM6X3IG4-CDIFTq28.js} +2 -2
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CkqyRdUt.js → wardleyDiagram-VM6X3IG4-xAtWwDfd.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-3f383b91-L3ZS62LU.js → xychartDiagram-3f383b91-BuaB0j8f.js} +5 -5
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z--E3rc8E6.js → xychartDiagram-S5SC5T6Z-BL2yRZOy.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-COkEQpnW.js → xychartDiagram-S5SC5T6Z-BUZxSIAO.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DufzH9GE.js → xychartDiagram-S5SC5T6Z-CHRdLn8n.js} +2 -2
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-B2XCvd4u.js → zh-CN-LNUGB5OW-hmUIulf5.js} +1 -1
- package/dist-embed/chunks/zh-HK-E62DVLB3-Bew_EKh4.js +1 -0
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-fBqMZFIZ.js → zh-TW-RAJ6MFWO-GAr_9KYn.js} +1 -1
- package/dist-embed/datalayer-app-main.js +28 -27
- package/lib/apps/core/canvasParts.d.ts +1 -1
- package/lib/apps/plugins/canvas-parts/index.d.ts +9 -1
- package/lib/apps/plugins/canvas-parts/index.js +42 -0
- package/lib/battles/index.d.ts +1 -0
- package/lib/battles/index.js +5 -0
- package/lib/battles/verdict.d.ts +76 -0
- package/lib/battles/verdict.js +122 -0
- package/lib/chat/assistant/SpeechBalloon.js +2 -2
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +7 -8
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +133 -27
- package/lib/components/code-sandboxes/CodeSandboxPicker.js +3 -0
- package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +3 -2
- package/lib/components/code-sandboxes/codeSandboxEnvironments.js +3 -2
- package/lib/index.d.ts +1 -1
- package/lib/models/Environment.d.ts +8 -0
- package/lib/models/environments.generated.d.ts +9 -1
- package/lib/models/environments.generated.js +1 -1
- package/lib/specs/battles.d.ts +17 -0
- package/lib/specs/battles.js +144 -0
- package/lib/specs/guards.d.ts +11 -3
- package/lib/specs/guards.js +67 -636
- package/lib/specs/index.d.ts +1 -1
- package/lib/specs/index.js +1 -1
- package/lib/specs/ops.js +23 -701
- package/lib/specs/tracks.d.ts +2 -0
- package/lib/specs/tracks.js +70 -0
- package/lib/types/agentspecs.d.ts +59 -9
- package/lib/types/guardrails.d.ts +62 -94
- package/package.json +2 -2
- package/scripts/codegen/generate_agents.py +0 -1
- package/scripts/codegen/generate_ops.py +82 -26
- package/dist-embed/chunks/AgentInspector-CgyzKeHG.js +0 -1
- package/dist-embed/chunks/EphemeralDocument-BqDLSVvb.js +0 -1
- package/dist-embed/chunks/ExcalidrawComponent-DIz2Hp3F.js +0 -1
- package/dist-embed/chunks/ExcalidrawModal-Bz4nrIlA.js +0 -1
- package/dist-embed/chunks/NotebookToolSurfaces-Ch-7Pk_I.js +0 -1
- package/dist-embed/chunks/Tableau10-B-NsZVaP.js +0 -1
- package/dist-embed/chunks/WidgetVariableView-BEQqawKT.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-Cviduj-e.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-DRYUPXKp.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-uQbfcTeh.js +0 -1
- package/dist-embed/chunks/advancedFormat-Cytc7Lc-.js +0 -1
- package/dist-embed/chunks/arc-CvuHsKVP.js +0 -1
- package/dist-embed/chunks/array-BKyUJesY.js +0 -1
- package/dist-embed/chunks/az-AZ-76LH7QW2-By3wlF01.js +0 -1
- package/dist-embed/chunks/band-dPffDWoQ.js +0 -1
- package/dist-embed/chunks/channel-DSSC-Z6W.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-2t4a-wcA.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-9WVRK_2x.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-Dh5wgyac.js +0 -1
- package/dist-embed/chunks/classDiagram-f62afe4f-CaiUEXWA.js +0 -2
- package/dist-embed/chunks/classDiagram-v2-604399ef-CZz_cEb3.js +0 -2
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2t4a-wcA.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-9WVRK_2x.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Dh5wgyac.js +0 -1
- package/dist-embed/chunks/color-CG7_7V2-.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-CYdr15Qb.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-D7xkFMi4.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-DyL8-f5N.js +0 -1
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-B-cEXnFH.js +0 -62
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DkFOdRYH.js +0 -62
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-wHBoNo7j.js +0 -62
- package/dist-embed/chunks/defaultLocale-5voVPcsN.js +0 -1
- package/dist-embed/chunks/diagram-UQ7AKVKN-2cPTLkSD.js +0 -41
- package/dist-embed/chunks/diagram-UQ7AKVKN-CSMVfm7b.js +0 -41
- package/dist-embed/chunks/diagram-UQ7AKVKN-C_jt0u6D.js +0 -41
- package/dist-embed/chunks/diagram-VX7I27RA-BJ2YQn5K.js +0 -24
- package/dist-embed/chunks/diagram-VX7I27RA-DA1J99rY.js +0 -24
- package/dist-embed/chunks/diagram-VX7I27RA-Dm3pOzxq.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-C5sZC4ig.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-CVmSZjIo.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-DVQwJUFe.js +0 -24
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwtRvYrD.js +0 -1
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-Qmmh9DWc.js +0 -1
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-YwFzQxr5.js +0 -1
- package/dist-embed/chunks/edges-b2856ca0-Cn0ZKu5E.js +0 -4
- package/dist-embed/chunks/flowDiagram-v2-1d953310-5ThB3y9b.js +0 -1
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-1XlTL5m_.js +0 -106
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-APR1d-tc.js +0 -106
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-BAP8EKLt.js +0 -106
- package/dist-embed/chunks/hcl-DhKDpa4Z.js +0 -1
- package/dist-embed/chunks/index-BF1314TG.js +0 -1
- package/dist-embed/chunks/index-BYQPOTc8.js +0 -1
- package/dist-embed/chunks/index-Ben6aEe6.js +0 -1
- package/dist-embed/chunks/index-CFSUTqDN.js +0 -1
- package/dist-embed/chunks/index-CvYzv8kf.js +0 -1
- package/dist-embed/chunks/index-D4a8E78-.js +0 -34
- package/dist-embed/chunks/index-D7tggxpZ.js +0 -1
- package/dist-embed/chunks/index-D99YJ2MP.js +0 -1
- package/dist-embed/chunks/index-DDgcbci7.js +0 -17
- package/dist-embed/chunks/index-DOI3H9VM.js +0 -2
- package/dist-embed/chunks/index-DcQTeOGT.js +0 -2
- package/dist-embed/chunks/index-DqGFpucN.js +0 -6
- package/dist-embed/chunks/index-Dw3RE4d5.js +0 -1
- package/dist-embed/chunks/index-MUnyaGR7.js +0 -1
- package/dist-embed/chunks/index-atSsKceW.js +0 -1
- package/dist-embed/chunks/infoDiagram-27XIBGKW-BRFvlR5E.js +0 -2
- package/dist-embed/chunks/infoDiagram-27XIBGKW-D2VjYulT.js +0 -2
- package/dist-embed/chunks/infoDiagram-27XIBGKW-mC-wx4e9.js +0 -2
- package/dist-embed/chunks/init-Gi6I4Gst.js +0 -1
- package/dist-embed/chunks/kaa-6HZHGXH3-DXk4Goog.js +0 -1
- package/dist-embed/chunks/kk-KZ-P5N5QNE5-BVNL23_r.js +0 -1
- package/dist-embed/chunks/line-DT6NiYhi.js +0 -1
- package/dist-embed/chunks/linear-BpNYqLzz.js +0 -1
- package/dist-embed/chunks/my-MM-5M5IBNSE-CRUW8B_2.js +0 -1
- package/dist-embed/chunks/ordinal-Cboi1Yqb.js +0 -1
- package/dist-embed/chunks/path-CbwjOpE9.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-CtWh5AAX.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-D0zyGRR2.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-fy3EphLc.js +0 -1
- package/dist-embed/chunks/pie-BU9ZrLAC.js +0 -1
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-BsWWB93l.js +0 -39
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-CArVdetR.js +0 -39
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-DNxhxWw6.js +0 -39
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-C9HR2VRW.js +0 -1
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-COJ52k8E.js +0 -1
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-DPlEOlHJ.js +0 -1
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-2dtqnxe5.js +0 -84
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BSUw2gn-.js +0 -84
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BxFFoRpi.js +0 -84
- package/dist-embed/chunks/round-BfLWjAu-.js +0 -1
- package/dist-embed/chunks/si-LK-N5RQ5JYF-DUuCNsO5.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-BEjCofob.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-DMtgrDCy.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-fPkZXPlY.js +0 -1
- package/dist-embed/chunks/stateDiagram-43e79a5f-C9c4jD1w.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-BwBOxQvl.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-C3hsuLFV.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-dWsBlue-.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CcvTvP8J.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BynTEikt.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CRNCbzUu.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-yYUm25Cg.js +0 -1
- package/dist-embed/chunks/styles-f932cba9-DvbsLPZ9.js +0 -116
- package/dist-embed/chunks/subset-worker.chunk-CY8G1DYa.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-CGEWUgMO.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-DY5rybP3.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-DiRx3T6S.js +0 -1
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmSxUdGr.js +0 -8
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmTIqylO.js +0 -8
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Dmom79F0.js +0 -8
- package/dist-embed/chunks/th-TH-HPSO5L25-C8zeMDt2.js +0 -2
- package/dist-embed/chunks/zh-HK-E62DVLB3-D8xk7wby.js +0 -1
- package/lib/specs/guardrails.d.ts +0 -22
- package/lib/specs/guardrails.js +0 -391
- package/scripts/codegen/generate_guardrails.py +0 -475
package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BWZcxo3B.js → sankeyDiagram-P5KCCOFB-CLZzsFhP.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{o as
|
|
1
|
+
import{o as K,p as Q,s as H,g as J,b as Z,a as tt,_ as s,c as B,X as et,R as nt,q as st,j as it}from"./index-DjEoMYXa.js";import{s as M}from"./index-Dz7T8mqj.js";import{S as rt,j as at,c as ot,r as lt,l as ct,s as ht}from"./sankeyLinkHorizontal-DgqkLiUE.js";import{q as ut}from"./d3-scale-B-wnA6MO.js";import{T as yt}from"./d3-scale-chromatic-BM1YEV1K.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var X=(function(){var r=s(function(_,t,n,i){for(n=n||{},i=_.length;i--;n[_[i]]=t);return n},"o"),o=[1,9],p=[1,10],E=[1,5,10,12],k={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:s(function(t,n,i,l,c,a,T){var x=a.length-1;switch(c){case 7:const b=l.findOrCreateNode(a[x-4].trim().replaceAll('""','"')),P=l.findOrCreateNode(a[x-2].trim().replaceAll('""','"')),N=parseFloat(a[x].trim());l.addLink(b,P,N);break;case 8:case 9:case 11:this.$=a[x];break;case 10:this.$=a[x-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:o,20:p},{1:[2,6],7:11,10:[1,12]},r(p,[2,4],{9:13,5:[1,14]}),{12:[1,15]},r(E,[2,8]),r(E,[2,9]),{19:[1,16]},r(E,[2,11]),{1:[2,1]},{1:[2,5]},r(p,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:o,20:p},{15:18,16:7,17:8,18:o,20:p},{18:[1,19]},r(p,[2,3]),{12:[1,20]},r(E,[2,10]),{15:21,16:7,17:8,18:o,20:p},r([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:s(function(t,n){if(n.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=n,i}},"parseError"),parse:s(function(t){var n=this,i=[0],l=[],c=[null],a=[],T=this.table,x="",b=0,P=0,N=2,O=1,V=a.slice.call(arguments,1),h=Object.create(this.lexer),A={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(A.yy[$]=this.yy[$]);h.setInput(t,A.yy),A.yy.lexer=h,A.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var I=h.yylloc;a.push(I);var z=h.options&&h.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(m){i.length=i.length-2*m,c.length=c.length-m,a.length=a.length-m}s(L,"popStack");function j(){var m;return m=l.pop()||h.lex()||O,typeof m!="number"&&(m instanceof Array&&(l=m,m=l.pop()),m=n.symbols_[m]||m),m}s(j,"lex");for(var y,w,f,C,v={},S,e,u,D;;){if(w=i[i.length-1],this.defaultActions[w]?f=this.defaultActions[w]:((y===null||typeof y>"u")&&(y=j()),f=T[w]&&T[w][y]),typeof f>"u"||!f.length||!f[0]){var G="";D=[];for(S in T[w])this.terminals_[S]&&S>N&&D.push("'"+this.terminals_[S]+"'");h.showPosition?G="Parse error on line "+(b+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
|
-
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(
|
|
3
|
+
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+y);switch(f[0]){case 1:i.push(y),c.push(h.yytext),a.push(h.yylloc),i.push(f[1]),y=null,P=h.yyleng,x=h.yytext,b=h.yylineno,I=h.yylloc;break;case 2:if(e=this.productions_[f[1]][1],v.$=c[c.length-e],v._$={first_line:a[a.length-(e||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(e||1)].first_column,last_column:a[a.length-1].last_column},z&&(v._$.range=[a[a.length-(e||1)].range[0],a[a.length-1].range[1]]),C=this.performAction.apply(v,[x,P,b,A.yy,f[1],c,a].concat(V)),typeof C<"u")return C;e&&(i=i.slice(0,-1*e*2),c=c.slice(0,-1*e),a=a.slice(0,-1*e)),i.push(this.productions_[f[1]][0]),c.push(v.$),a.push(v._$),u=T[i[i.length-2]][i[i.length-1]],i.push(u);break;case 3:return!0}}return!0},"parse")},g=(function(){var _={EOF:1,parseError:s(function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},"parseError"),setInput:s(function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:s(function(t){var n=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===l.length?this.yylloc.first_column:0)+l[l.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
5
|
`+n+"^"},"showPosition"),test_match:s(function(t,n){var i,l,c;if(this.options.backtrack_lexer&&(c={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(c.yylloc.range=this.yylloc.range.slice(0))),l=t[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var a in c)this[a]=c[a];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,i,l;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),a=0;a<c.length;a++)if(i=this._input.match(this.rules[c[a]]),i&&(!n||i[0].length>n[0].length)){if(n=i,l=a,this.options.backtrack_lexer){if(t=this.test_match(i,c[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(t=this.test_match(n,c[l]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,
|
|
7
|
-
${
|
|
8
|
-
`).trim(),"prepareTextForParsing"),
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,ft=s(()=>{U=[],W=[],R=new Map,st()},"clear"),pt=class{constructor(r,o,p=0){this.source=r,this.target=o,this.value=p}static{s(this,"SankeyLink")}},dt=s((r,o,p)=>{U.push(new pt(r,o,p))},"addLink"),gt=class{constructor(r){this.ID=r}static{s(this,"SankeyNode")}},mt=s(r=>{r=it.sanitizeText(r,B());let o=R.get(r);return o===void 0&&(o=new gt(r),R.set(r,o),W.push(o)),o},"findOrCreateNode"),_t=s(()=>W,"getNodes"),kt=s(()=>U,"getLinks"),xt=s(()=>({nodes:W.map(r=>({id:r.ID})),links:U.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),"getGraph"),bt={nodesMap:R,getConfig:s(()=>B().sankey,"getConfig"),getNodes:_t,getLinks:kt,getGraph:xt,addLink:dt,findOrCreateNode:mt,getAccTitle:tt,setAccTitle:Z,getAccDescription:J,setAccDescription:H,getDiagramTitle:Q,setDiagramTitle:K,clear:ft},q=class Y{static{s(this,"Uid")}static{this.count=0}static next(o){return new Y(o+ ++Y.count)}constructor(o){this.id=o,this.href=`#${o}`}toString(){return"url("+this.href+")"}},vt={left:ct,right:lt,center:ot,justify:at},St=s(r=>{let o=0,p=0;for(const E of r){const k=E.value??0;k>o&&(o=k,p=E.layer??0)}return p},"findCentralNodeLayer"),Et=s(function(r,o,p,E){const{securityLevel:k,sankey:g}=B(),d=et.sankey;let _;k==="sandbox"&&(_=M("#i"+o));const t=k==="sandbox"?M(_.nodes()[0].contentDocument.body):M("body"),n=k==="sandbox"?t.select(`[id="${o}"]`):M(`[id="${o}"]`),i=g?.width??d.width,l=g?.height??d.width,c=g?.useMaxWidth??d.useMaxWidth,a=g?.nodeAlignment??d.nodeAlignment,T=g?.prefix??d.prefix,x=g?.suffix??d.suffix,b=g?.showValues??d.showValues,P=g?.nodeWidth??d.nodeWidth??10,N=g?.nodePadding??d.nodePadding??12,O=g?.labelStyle??d.labelStyle??"legacy",V=g?.nodeColors??{},h=E.db.getGraph(),A=vt[a];rt().nodeId(e=>e.id).nodeWidth(P).nodePadding(N+(b?15:0)).nodeAlign(A).extent([[0,0],[i,l]])(h);const I=St(h.nodes),z=ut(yt),L=s(e=>V[e]??z(e),"getNodeColor");n.append("g").attr("class","nodes").selectAll(".node").data(h.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=q.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>L(e.id));const j=s(({id:e,value:u})=>b?`${e}
|
|
7
|
+
${T}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0)<I?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<i/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),w=n.append("g").attr("class","node-labels").attr("font-size",14),f=s(e=>w.selectAll(e?`.${e}`:"text").data(h.nodes).join("text").attr("class",e??null).attr("x",u=>y(u).x).attr("y",u=>(u.y1+u.y0)/2).attr("dy",`${b?"0":"0.35"}em`).attr("text-anchor",u=>y(u).anchor).text(j),"appendLabel");O==="outlined"?(f("sankey-label-bg"),f("sankey-label-fg")):f();const C=n.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(h.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),v=g?.linkColor??"gradient";if(v==="gradient"){const e=C.append("linearGradient").attr("id",u=>(u.uid=q.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",u=>u.source.x1).attr("x2",u=>u.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",u=>L(u.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",u=>L(u.target.id))}let S;switch(v){case"gradient":S=s(e=>e.uid,"coloring");break;case"source":S=s(e=>L(e.source.id),"coloring");break;case"target":S=s(e=>L(e.target.id),"coloring");break;default:S=v}C.append("path").attr("d",ht()).attr("stroke",S).attr("stroke-width",e=>Math.max(1,e.width)),nt(void 0,n,0,c)},"draw"),At={draw:Et},wt=s(r=>r.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),Tt=s(r=>`.label {
|
|
9
9
|
font-family: ${r.fontFamily};
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -37,4 +37,4 @@ ${L}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0
|
|
|
37
37
|
stroke-opacity: 0.5;
|
|
38
38
|
mix-blend-mode: multiply;
|
|
39
39
|
}
|
|
40
|
-
`,"getStyles"),
|
|
40
|
+
`,"getStyles"),Lt=Tt,Pt=F.parse.bind(F);F.parse=r=>Pt(wt(r));var Xt={styles:Lt,parser:F,db:bt,renderer:At};export{Xt as diagram};
|
package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CatGDvVZ.js → sankeyDiagram-P5KCCOFB-D_ovN9Nw.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{o as
|
|
1
|
+
import{o as K,p as Q,s as H,g as J,b as Z,a as tt,_ as s,c as B,X as et,R as nt,q as st,j as it}from"./index-C7Y6qb5P.js";import{s as M}from"./index-Dz7T8mqj.js";import{S as rt,j as at,c as ot,r as lt,l as ct,s as ht}from"./sankeyLinkHorizontal-DgqkLiUE.js";import{q as ut}from"./d3-scale-B-wnA6MO.js";import{T as yt}from"./d3-scale-chromatic-BM1YEV1K.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var X=(function(){var r=s(function(_,t,n,i){for(n=n||{},i=_.length;i--;n[_[i]]=t);return n},"o"),o=[1,9],p=[1,10],E=[1,5,10,12],k={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:s(function(t,n,i,l,c,a,T){var x=a.length-1;switch(c){case 7:const b=l.findOrCreateNode(a[x-4].trim().replaceAll('""','"')),P=l.findOrCreateNode(a[x-2].trim().replaceAll('""','"')),N=parseFloat(a[x].trim());l.addLink(b,P,N);break;case 8:case 9:case 11:this.$=a[x];break;case 10:this.$=a[x-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:o,20:p},{1:[2,6],7:11,10:[1,12]},r(p,[2,4],{9:13,5:[1,14]}),{12:[1,15]},r(E,[2,8]),r(E,[2,9]),{19:[1,16]},r(E,[2,11]),{1:[2,1]},{1:[2,5]},r(p,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:o,20:p},{15:18,16:7,17:8,18:o,20:p},{18:[1,19]},r(p,[2,3]),{12:[1,20]},r(E,[2,10]),{15:21,16:7,17:8,18:o,20:p},r([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:s(function(t,n){if(n.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=n,i}},"parseError"),parse:s(function(t){var n=this,i=[0],l=[],c=[null],a=[],T=this.table,x="",b=0,P=0,N=2,O=1,V=a.slice.call(arguments,1),h=Object.create(this.lexer),A={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(A.yy[$]=this.yy[$]);h.setInput(t,A.yy),A.yy.lexer=h,A.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var I=h.yylloc;a.push(I);var z=h.options&&h.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(m){i.length=i.length-2*m,c.length=c.length-m,a.length=a.length-m}s(L,"popStack");function j(){var m;return m=l.pop()||h.lex()||O,typeof m!="number"&&(m instanceof Array&&(l=m,m=l.pop()),m=n.symbols_[m]||m),m}s(j,"lex");for(var y,w,f,C,v={},S,e,u,D;;){if(w=i[i.length-1],this.defaultActions[w]?f=this.defaultActions[w]:((y===null||typeof y>"u")&&(y=j()),f=T[w]&&T[w][y]),typeof f>"u"||!f.length||!f[0]){var G="";D=[];for(S in T[w])this.terminals_[S]&&S>N&&D.push("'"+this.terminals_[S]+"'");h.showPosition?G="Parse error on line "+(b+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
|
-
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(
|
|
3
|
+
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+y);switch(f[0]){case 1:i.push(y),c.push(h.yytext),a.push(h.yylloc),i.push(f[1]),y=null,P=h.yyleng,x=h.yytext,b=h.yylineno,I=h.yylloc;break;case 2:if(e=this.productions_[f[1]][1],v.$=c[c.length-e],v._$={first_line:a[a.length-(e||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(e||1)].first_column,last_column:a[a.length-1].last_column},z&&(v._$.range=[a[a.length-(e||1)].range[0],a[a.length-1].range[1]]),C=this.performAction.apply(v,[x,P,b,A.yy,f[1],c,a].concat(V)),typeof C<"u")return C;e&&(i=i.slice(0,-1*e*2),c=c.slice(0,-1*e),a=a.slice(0,-1*e)),i.push(this.productions_[f[1]][0]),c.push(v.$),a.push(v._$),u=T[i[i.length-2]][i[i.length-1]],i.push(u);break;case 3:return!0}}return!0},"parse")},g=(function(){var _={EOF:1,parseError:s(function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},"parseError"),setInput:s(function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:s(function(t){var n=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===l.length?this.yylloc.first_column:0)+l[l.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
5
|
`+n+"^"},"showPosition"),test_match:s(function(t,n){var i,l,c;if(this.options.backtrack_lexer&&(c={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(c.yylloc.range=this.yylloc.range.slice(0))),l=t[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var a in c)this[a]=c[a];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,i,l;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),a=0;a<c.length;a++)if(i=this._input.match(this.rules[c[a]]),i&&(!n||i[0].length>n[0].length)){if(n=i,l=a,this.options.backtrack_lexer){if(t=this.test_match(i,c[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(t=this.test_match(n,c[l]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,
|
|
7
|
-
${
|
|
8
|
-
`).trim(),"prepareTextForParsing"),
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,ft=s(()=>{U=[],W=[],R=new Map,st()},"clear"),pt=class{constructor(r,o,p=0){this.source=r,this.target=o,this.value=p}static{s(this,"SankeyLink")}},dt=s((r,o,p)=>{U.push(new pt(r,o,p))},"addLink"),gt=class{constructor(r){this.ID=r}static{s(this,"SankeyNode")}},mt=s(r=>{r=it.sanitizeText(r,B());let o=R.get(r);return o===void 0&&(o=new gt(r),R.set(r,o),W.push(o)),o},"findOrCreateNode"),_t=s(()=>W,"getNodes"),kt=s(()=>U,"getLinks"),xt=s(()=>({nodes:W.map(r=>({id:r.ID})),links:U.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),"getGraph"),bt={nodesMap:R,getConfig:s(()=>B().sankey,"getConfig"),getNodes:_t,getLinks:kt,getGraph:xt,addLink:dt,findOrCreateNode:mt,getAccTitle:tt,setAccTitle:Z,getAccDescription:J,setAccDescription:H,getDiagramTitle:Q,setDiagramTitle:K,clear:ft},q=class Y{static{s(this,"Uid")}static{this.count=0}static next(o){return new Y(o+ ++Y.count)}constructor(o){this.id=o,this.href=`#${o}`}toString(){return"url("+this.href+")"}},vt={left:ct,right:lt,center:ot,justify:at},St=s(r=>{let o=0,p=0;for(const E of r){const k=E.value??0;k>o&&(o=k,p=E.layer??0)}return p},"findCentralNodeLayer"),Et=s(function(r,o,p,E){const{securityLevel:k,sankey:g}=B(),d=et.sankey;let _;k==="sandbox"&&(_=M("#i"+o));const t=k==="sandbox"?M(_.nodes()[0].contentDocument.body):M("body"),n=k==="sandbox"?t.select(`[id="${o}"]`):M(`[id="${o}"]`),i=g?.width??d.width,l=g?.height??d.width,c=g?.useMaxWidth??d.useMaxWidth,a=g?.nodeAlignment??d.nodeAlignment,T=g?.prefix??d.prefix,x=g?.suffix??d.suffix,b=g?.showValues??d.showValues,P=g?.nodeWidth??d.nodeWidth??10,N=g?.nodePadding??d.nodePadding??12,O=g?.labelStyle??d.labelStyle??"legacy",V=g?.nodeColors??{},h=E.db.getGraph(),A=vt[a];rt().nodeId(e=>e.id).nodeWidth(P).nodePadding(N+(b?15:0)).nodeAlign(A).extent([[0,0],[i,l]])(h);const I=St(h.nodes),z=ut(yt),L=s(e=>V[e]??z(e),"getNodeColor");n.append("g").attr("class","nodes").selectAll(".node").data(h.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=q.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>L(e.id));const j=s(({id:e,value:u})=>b?`${e}
|
|
7
|
+
${T}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0)<I?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<i/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),w=n.append("g").attr("class","node-labels").attr("font-size",14),f=s(e=>w.selectAll(e?`.${e}`:"text").data(h.nodes).join("text").attr("class",e??null).attr("x",u=>y(u).x).attr("y",u=>(u.y1+u.y0)/2).attr("dy",`${b?"0":"0.35"}em`).attr("text-anchor",u=>y(u).anchor).text(j),"appendLabel");O==="outlined"?(f("sankey-label-bg"),f("sankey-label-fg")):f();const C=n.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(h.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),v=g?.linkColor??"gradient";if(v==="gradient"){const e=C.append("linearGradient").attr("id",u=>(u.uid=q.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",u=>u.source.x1).attr("x2",u=>u.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",u=>L(u.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",u=>L(u.target.id))}let S;switch(v){case"gradient":S=s(e=>e.uid,"coloring");break;case"source":S=s(e=>L(e.source.id),"coloring");break;case"target":S=s(e=>L(e.target.id),"coloring");break;default:S=v}C.append("path").attr("d",ht()).attr("stroke",S).attr("stroke-width",e=>Math.max(1,e.width)),nt(void 0,n,0,c)},"draw"),At={draw:Et},wt=s(r=>r.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),Tt=s(r=>`.label {
|
|
9
9
|
font-family: ${r.fontFamily};
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -37,4 +37,4 @@ ${L}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0
|
|
|
37
37
|
stroke-opacity: 0.5;
|
|
38
38
|
mix-blend-mode: multiply;
|
|
39
39
|
}
|
|
40
|
-
`,"getStyles"),
|
|
40
|
+
`,"getStyles"),Lt=Tt,Pt=F.parse.bind(F);F.parse=r=>Pt(wt(r));var Xt={styles:Lt,parser:F,db:bt,renderer:At};export{Xt as diagram};
|
package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-2w9aAGeM.js → sankeyDiagram-P5KCCOFB-SUZr8YYS.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{o as
|
|
1
|
+
import{o as K,p as Q,s as H,g as J,b as Z,a as tt,_ as s,c as B,X as et,R as nt,q as st,j as it}from"./mermaid.core-DRZOVBT3.js";import{s as M}from"./index-Dz7T8mqj.js";import{S as rt,j as at,c as ot,r as lt,l as ct,s as ht}from"./sankeyLinkHorizontal-DgqkLiUE.js";import{q as ut}from"./d3-scale-B-wnA6MO.js";import{T as yt}from"./d3-scale-chromatic-BM1YEV1K.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var X=(function(){var r=s(function(_,t,n,i){for(n=n||{},i=_.length;i--;n[_[i]]=t);return n},"o"),o=[1,9],p=[1,10],E=[1,5,10,12],k={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:s(function(t,n,i,l,c,a,T){var x=a.length-1;switch(c){case 7:const b=l.findOrCreateNode(a[x-4].trim().replaceAll('""','"')),P=l.findOrCreateNode(a[x-2].trim().replaceAll('""','"')),N=parseFloat(a[x].trim());l.addLink(b,P,N);break;case 8:case 9:case 11:this.$=a[x];break;case 10:this.$=a[x-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:o,20:p},{1:[2,6],7:11,10:[1,12]},r(p,[2,4],{9:13,5:[1,14]}),{12:[1,15]},r(E,[2,8]),r(E,[2,9]),{19:[1,16]},r(E,[2,11]),{1:[2,1]},{1:[2,5]},r(p,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:o,20:p},{15:18,16:7,17:8,18:o,20:p},{18:[1,19]},r(p,[2,3]),{12:[1,20]},r(E,[2,10]),{15:21,16:7,17:8,18:o,20:p},r([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:s(function(t,n){if(n.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=n,i}},"parseError"),parse:s(function(t){var n=this,i=[0],l=[],c=[null],a=[],T=this.table,x="",b=0,P=0,N=2,O=1,V=a.slice.call(arguments,1),h=Object.create(this.lexer),A={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(A.yy[$]=this.yy[$]);h.setInput(t,A.yy),A.yy.lexer=h,A.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var I=h.yylloc;a.push(I);var z=h.options&&h.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(m){i.length=i.length-2*m,c.length=c.length-m,a.length=a.length-m}s(L,"popStack");function j(){var m;return m=l.pop()||h.lex()||O,typeof m!="number"&&(m instanceof Array&&(l=m,m=l.pop()),m=n.symbols_[m]||m),m}s(j,"lex");for(var y,w,f,C,v={},S,e,u,D;;){if(w=i[i.length-1],this.defaultActions[w]?f=this.defaultActions[w]:((y===null||typeof y>"u")&&(y=j()),f=T[w]&&T[w][y]),typeof f>"u"||!f.length||!f[0]){var G="";D=[];for(S in T[w])this.terminals_[S]&&S>N&&D.push("'"+this.terminals_[S]+"'");h.showPosition?G="Parse error on line "+(b+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
|
-
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(
|
|
3
|
+
Expecting `+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":G="Parse error on line "+(b+1)+": Unexpected "+(y==O?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(G,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:I,expected:D})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+y);switch(f[0]){case 1:i.push(y),c.push(h.yytext),a.push(h.yylloc),i.push(f[1]),y=null,P=h.yyleng,x=h.yytext,b=h.yylineno,I=h.yylloc;break;case 2:if(e=this.productions_[f[1]][1],v.$=c[c.length-e],v._$={first_line:a[a.length-(e||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(e||1)].first_column,last_column:a[a.length-1].last_column},z&&(v._$.range=[a[a.length-(e||1)].range[0],a[a.length-1].range[1]]),C=this.performAction.apply(v,[x,P,b,A.yy,f[1],c,a].concat(V)),typeof C<"u")return C;e&&(i=i.slice(0,-1*e*2),c=c.slice(0,-1*e),a=a.slice(0,-1*e)),i.push(this.productions_[f[1]][0]),c.push(v.$),a.push(v._$),u=T[i[i.length-2]][i[i.length-1]],i.push(u);break;case 3:return!0}}return!0},"parse")},g=(function(){var _={EOF:1,parseError:s(function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},"parseError"),setInput:s(function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:s(function(t){var n=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===l.length?this.yylloc.first_column:0)+l[l.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
5
|
`+n+"^"},"showPosition"),test_match:s(function(t,n){var i,l,c;if(this.options.backtrack_lexer&&(c={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(c.yylloc.range=this.yylloc.range.slice(0))),l=t[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var a in c)this[a]=c[a];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,i,l;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),a=0;a<c.length;a++)if(i=this._input.match(this.rules[c[a]]),i&&(!n||i[0].length>n[0].length)){if(n=i,l=a,this.options.backtrack_lexer){if(t=this.test_match(i,c[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(t=this.test_match(n,c[l]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,
|
|
7
|
-
${
|
|
8
|
-
`).trim(),"prepareTextForParsing"),
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,i,l,c){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return _})();k.lexer=g;function d(){this.yy={}}return s(d,"Parser"),d.prototype=k,k.Parser=d,new d})();X.parser=X;var F=X,U=[],W=[],R=new Map,ft=s(()=>{U=[],W=[],R=new Map,st()},"clear"),pt=class{constructor(r,o,p=0){this.source=r,this.target=o,this.value=p}static{s(this,"SankeyLink")}},dt=s((r,o,p)=>{U.push(new pt(r,o,p))},"addLink"),gt=class{constructor(r){this.ID=r}static{s(this,"SankeyNode")}},mt=s(r=>{r=it.sanitizeText(r,B());let o=R.get(r);return o===void 0&&(o=new gt(r),R.set(r,o),W.push(o)),o},"findOrCreateNode"),_t=s(()=>W,"getNodes"),kt=s(()=>U,"getLinks"),xt=s(()=>({nodes:W.map(r=>({id:r.ID})),links:U.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),"getGraph"),bt={nodesMap:R,getConfig:s(()=>B().sankey,"getConfig"),getNodes:_t,getLinks:kt,getGraph:xt,addLink:dt,findOrCreateNode:mt,getAccTitle:tt,setAccTitle:Z,getAccDescription:J,setAccDescription:H,getDiagramTitle:Q,setDiagramTitle:K,clear:ft},q=class Y{static{s(this,"Uid")}static{this.count=0}static next(o){return new Y(o+ ++Y.count)}constructor(o){this.id=o,this.href=`#${o}`}toString(){return"url("+this.href+")"}},vt={left:ct,right:lt,center:ot,justify:at},St=s(r=>{let o=0,p=0;for(const E of r){const k=E.value??0;k>o&&(o=k,p=E.layer??0)}return p},"findCentralNodeLayer"),Et=s(function(r,o,p,E){const{securityLevel:k,sankey:g}=B(),d=et.sankey;let _;k==="sandbox"&&(_=M("#i"+o));const t=k==="sandbox"?M(_.nodes()[0].contentDocument.body):M("body"),n=k==="sandbox"?t.select(`[id="${o}"]`):M(`[id="${o}"]`),i=g?.width??d.width,l=g?.height??d.width,c=g?.useMaxWidth??d.useMaxWidth,a=g?.nodeAlignment??d.nodeAlignment,T=g?.prefix??d.prefix,x=g?.suffix??d.suffix,b=g?.showValues??d.showValues,P=g?.nodeWidth??d.nodeWidth??10,N=g?.nodePadding??d.nodePadding??12,O=g?.labelStyle??d.labelStyle??"legacy",V=g?.nodeColors??{},h=E.db.getGraph(),A=vt[a];rt().nodeId(e=>e.id).nodeWidth(P).nodePadding(N+(b?15:0)).nodeAlign(A).extent([[0,0],[i,l]])(h);const I=St(h.nodes),z=ut(yt),L=s(e=>V[e]??z(e),"getNodeColor");n.append("g").attr("class","nodes").selectAll(".node").data(h.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=q.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>L(e.id));const j=s(({id:e,value:u})=>b?`${e}
|
|
7
|
+
${T}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0)<I?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<i/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),w=n.append("g").attr("class","node-labels").attr("font-size",14),f=s(e=>w.selectAll(e?`.${e}`:"text").data(h.nodes).join("text").attr("class",e??null).attr("x",u=>y(u).x).attr("y",u=>(u.y1+u.y0)/2).attr("dy",`${b?"0":"0.35"}em`).attr("text-anchor",u=>y(u).anchor).text(j),"appendLabel");O==="outlined"?(f("sankey-label-bg"),f("sankey-label-fg")):f();const C=n.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(h.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),v=g?.linkColor??"gradient";if(v==="gradient"){const e=C.append("linearGradient").attr("id",u=>(u.uid=q.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",u=>u.source.x1).attr("x2",u=>u.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",u=>L(u.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",u=>L(u.target.id))}let S;switch(v){case"gradient":S=s(e=>e.uid,"coloring");break;case"source":S=s(e=>L(e.source.id),"coloring");break;case"target":S=s(e=>L(e.target.id),"coloring");break;default:S=v}C.append("path").attr("d",ht()).attr("stroke",S).attr("stroke-width",e=>Math.max(1,e.width)),nt(void 0,n,0,c)},"draw"),At={draw:Et},wt=s(r=>r.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),Tt=s(r=>`.label {
|
|
9
9
|
font-family: ${r.fontFamily};
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -37,4 +37,4 @@ ${L}${Math.round(u*100)/100}${x}`:e,"getText"),y=s(e=>O==="outlined"?(e.layer??0
|
|
|
37
37
|
stroke-opacity: 0.5;
|
|
38
38
|
mix-blend-mode: multiply;
|
|
39
39
|
}
|
|
40
|
-
`,"getStyles"),
|
|
40
|
+
`,"getStyles"),Lt=Tt,Pt=F.parse.bind(F);F.parse=r=>Pt(wt(r));var Gt={styles:Lt,parser:F,db:bt,renderer:At};export{Gt as diagram};
|
package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B6bWzn2q.js → sankeyDiagram-c3ef121a-_iCn_Xqv.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{n as K,m as Q,s as
|
|
1
|
+
import{n as K,m as Q,s as q,g as H,b as J,a as Z,c as z,o as tt,I as et,p as nt,i as st}from"./mermaid.core-CCCzTT5Y.js";import{S as it,j as rt,c as ot,r as at,l as lt,s as ct}from"./sankeyLinkHorizontal-DgqkLiUE.js";import{s as L}from"./index-Dz7T8mqj.js";import"./index-DoBkwclg.js";import"../datalayer-app-main.js";import{q as ht}from"./d3-scale-B-wnA6MO.js";import{T as ut}from"./d3-scale-chromatic-BM1YEV1K.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var R=(function(){var r=function(d,t,e,n){for(e=e||{},n=d.length;n--;e[d[n]]=t);return e},h=[1,9],y=[1,10],b=[1,5,10,12],E={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(t,e,n,o,l,i,S){var g=i.length-1;switch(l){case 7:const m=o.findOrCreateNode(i[g-4].trim().replaceAll('""','"')),_=o.findOrCreateNode(i[g-2].trim().replaceAll('""','"')),$=parseFloat(i[g].trim());o.addLink(m,_,$);break;case 8:case 9:case 11:this.$=i[g];break;case 10:this.$=i[g-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:h,20:y},{1:[2,6],7:11,10:[1,12]},r(y,[2,4],{9:13,5:[1,14]}),{12:[1,15]},r(b,[2,8]),r(b,[2,9]),{19:[1,16]},r(b,[2,11]),{1:[2,1]},{1:[2,5]},r(y,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:h,20:y},{15:18,16:7,17:8,18:h,20:y},{18:[1,19]},r(y,[2,3]),{12:[1,20]},r(b,[2,10]),{15:21,16:7,17:8,18:h,20:y},r([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],o=[],l=[null],i=[],S=this.table,g="",m=0,_=0,$=2,U=1,G=i.slice.call(arguments,1),c=Object.create(this.lexer),x={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(x.yy[O]=this.yy[O]);c.setInput(t,x.yy),x.yy.lexer=c,x.yy.parser=this,typeof c.yylloc>"u"&&(c.yylloc={});var A=c.yylloc;i.push(A);var w=c.options&&c.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function s(){var v;return v=o.pop()||c.lex()||U,typeof v!="number"&&(v instanceof Array&&(o=v,v=o.pop()),v=e.symbols_[v]||v),v}for(var a,T,f,F,P={},N,k,Y,C;;){if(T=n[n.length-1],this.defaultActions[T]?f=this.defaultActions[T]:((a===null||typeof a>"u")&&(a=s()),f=S[T]&&S[T][a]),typeof f>"u"||!f.length||!f[0]){var W="";C=[];for(N in S[T])this.terminals_[N]&&N>$&&C.push("'"+this.terminals_[N]+"'");c.showPosition?W="Parse error on line "+(m+1)+`:
|
|
2
2
|
`+c.showPosition()+`
|
|
3
3
|
Expecting `+C.join(", ")+", got '"+(this.terminals_[a]||a)+"'":W="Parse error on line "+(m+1)+": Unexpected "+(a==U?"end of input":"'"+(this.terminals_[a]||a)+"'"),this.parseError(W,{text:c.match,token:this.terminals_[a]||a,line:c.yylineno,loc:A,expected:C})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+a);switch(f[0]){case 1:n.push(a),l.push(c.yytext),i.push(c.yylloc),n.push(f[1]),a=null,_=c.yyleng,g=c.yytext,m=c.yylineno,A=c.yylloc;break;case 2:if(k=this.productions_[f[1]][1],P.$=l[l.length-k],P._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},w&&(P._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),F=this.performAction.apply(P,[g,_,m,x.yy,f[1],l,i].concat(G)),typeof F<"u")return F;k&&(n=n.slice(0,-1*k*2),l=l.slice(0,-1*k),i=i.slice(0,-1*k)),n.push(this.productions_[f[1]][0]),l.push(P.$),i.push(P._$),Y=S[n[n.length-2]][n[n.length-1]],n.push(Y);break;case 3:return!0}}return!0}},u=(function(){var d={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===o.length?this.yylloc.first_column:0)+o[o.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
5
|
`+e+"^"},test_match:function(t,e){var n,o,l;if(this.options.backtrack_lexer&&(l={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(l.yylloc.range=this.yylloc.range.slice(0))),o=t[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in l)this[i]=l[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,o;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),i=0;i<l.length;i++)if(n=this._input.match(this.rules[l[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,o=i,this.options.backtrack_lexer){if(t=this.test_match(n,l[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,l[o]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,o,l){switch(o){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return d})();E.lexer=u;function p(){this.yy={}}return p.prototype=E,E.Parser=p,new p})();R.parser=R;const j=R;let D=[],M=[],I={};const yt=()=>{D=[],M=[],I={},nt()};class ft{constructor(h,y,b=0){this.source=h,this.target=y,this.value=b}}const pt=(r,h,y)=>{D.push(new ft(r,h,y))};class dt{constructor(h){this.ID=h}}const gt=r=>(r=st.sanitizeText(r,z()),I[r]||(I[r]=new dt(r),M.push(I[r])),I[r]),mt=()=>M,_t=()=>D,xt=()=>({nodes:M.map(r=>({id:r.ID})),links:D.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),kt={nodesMap:I,getConfig:()=>z().sankey,getNodes:mt,getLinks:_t,getGraph:xt,addLink:pt,findOrCreateNode:gt,getAccTitle:Z,setAccTitle:J,getAccDescription:
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,o,l){switch(o){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return d})();E.lexer=u;function p(){this.yy={}}return p.prototype=E,E.Parser=p,new p})();R.parser=R;const j=R;let D=[],M=[],I={};const yt=()=>{D=[],M=[],I={},nt()};class ft{constructor(h,y,b=0){this.source=h,this.target=y,this.value=b}}const pt=(r,h,y)=>{D.push(new ft(r,h,y))};class dt{constructor(h){this.ID=h}}const gt=r=>(r=st.sanitizeText(r,z()),I[r]||(I[r]=new dt(r),M.push(I[r])),I[r]),mt=()=>M,_t=()=>D,xt=()=>({nodes:M.map(r=>({id:r.ID})),links:D.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),kt={nodesMap:I,getConfig:()=>z().sankey,getNodes:mt,getLinks:_t,getGraph:xt,addLink:pt,findOrCreateNode:gt,getAccTitle:Z,setAccTitle:J,getAccDescription:H,setAccDescription:q,getDiagramTitle:Q,setDiagramTitle:K,clear:yt},B=class V{static next(h){return new V(h+ ++V.count)}constructor(h){this.id=h,this.href=`#${h}`}toString(){return"url("+this.href+")"}};B.count=0;let X=B;const vt={left:lt,right:at,center:ot,justify:rt},bt=function(r,h,y,b){const{securityLevel:E,sankey:u}=z(),p=tt.sankey;let d;E==="sandbox"&&(d=L("#i"+h));const t=E==="sandbox"?L(d.nodes()[0].contentDocument.body):L("body"),e=E==="sandbox"?t.select(`[id="${h}"]`):L(`[id="${h}"]`),n=u?.width??p.width,o=u?.height??p.width,l=u?.useMaxWidth??p.useMaxWidth,i=u?.nodeAlignment??p.nodeAlignment,S=u?.prefix??p.prefix,g=u?.suffix??p.suffix,m=u?.showValues??p.showValues,_=b.db.getGraph(),$=vt[i];it().nodeId(s=>s.id).nodeWidth(10).nodePadding(10+(m?15:0)).nodeAlign($).extent([[0,0],[n,o]])(_);const c=ht(ut);e.append("g").attr("class","nodes").selectAll(".node").data(_.nodes).join("g").attr("class","node").attr("id",s=>(s.uid=X.next("node-")).id).attr("transform",function(s){return"translate("+s.x0+","+s.y0+")"}).attr("x",s=>s.x0).attr("y",s=>s.y0).append("rect").attr("height",s=>s.y1-s.y0).attr("width",s=>s.x1-s.x0).attr("fill",s=>c(s.id));const x=({id:s,value:a})=>m?`${s}
|
|
7
7
|
${S}${Math.round(a*100)/100}${g}`:s;e.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(_.nodes).join("text").attr("x",s=>s.x0<n/2?s.x1+6:s.x0-6).attr("y",s=>(s.y1+s.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",s=>s.x0<n/2?"start":"end").text(x);const O=e.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(_.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),A=u?.linkColor||"gradient";if(A==="gradient"){const s=O.append("linearGradient").attr("id",a=>(a.uid=X.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",a=>a.source.x1).attr("x2",a=>a.target.x0);s.append("stop").attr("offset","0%").attr("stop-color",a=>c(a.source.id)),s.append("stop").attr("offset","100%").attr("stop-color",a=>c(a.target.id))}let w;switch(A){case"gradient":w=s=>s.uid;break;case"source":w=s=>c(s.source.id);break;case"target":w=s=>c(s.target.id);break;default:w=A}O.append("path").attr("d",ct()).attr("stroke",w).attr("stroke-width",s=>Math.max(1,s.width)),et(void 0,e,0,l)},Et={draw:bt},St=r=>r.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
8
|
`).trim(),At=j.parse.bind(j);j.parse=r=>At(St(r));const Wt={parser:j,db:kt,renderer:Et};export{Wt as diagram};
|