@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./percentages-BXMCSKIN-
|
|
1
|
+
import"./percentages-BXMCSKIN-BIq0kwQL.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-DS8J9r_J.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-CalSw9_B.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-UPeDwjyI.js";import"./index-CXEjqez2.js";import"./hoverbox-CStlKQWE.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-Cx7dBNnA.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var e={paste:"Coller",pasteAsPlaintext:"Coller comme texte brut",pasteCharts:"Coller les graphiques",selectAll:"Tout sélectionner",multiSelect:"Ajouter l'élément à la sélection",moveCanvas:"Déplacer le canevas",cut:"Couper",copy:"Copier",copyAsPng:"Copier dans le presse-papier en PNG",copyAsSvg:"Copier dans le presse-papier en SVG",copyText:"Copier dans le presse-papier en tant que texte",copySource:"Copier la source dans le presse-papiers",convertToCode:"Convertir en code",bringForward:"Envoyer vers l'avant",sendToBack:"Déplacer à l'arrière-plan",bringToFront:"Mettre au premier plan",sendBackward:"Reculer d'un plan",delete:"Supprimer",copyStyles:"Copier les styles",pasteStyles:"Coller les styles",stroke:"Trait",background:"Arrière-plan",fill:"Remplissage",strokeWidth:"Largeur du contour",strokeStyle:"Style du trait",strokeStyle_solid:"Continu",strokeStyle_dashed:"Tirets",strokeStyle_dotted:"Pointillés",sloppiness:"Style de tracé",opacity:"Transparence",textAlign:"Alignement du texte",edges:"Angles",sharp:"Pointus",round:"Arrondis",arrowheads:"Extrémités",arrowhead_none:"Sans",arrowhead_arrow:"Flèche",arrowhead_bar:"Barre",arrowhead_circle:"Cercle",arrowhead_circle_outline:"Contour du cercle",arrowhead_triangle:"Triangle",arrowhead_triangle_outline:"Triangle (contour)",arrowhead_diamond:"Losange",arrowhead_diamond_outline:"",fontSize:"Taille de la police",fontFamily:"Police",addWatermark:'Ajouter "Réalisé avec Excalidraw"',handDrawn:"À main levée",normal:"Normale",code:"Code",small:"Petite",medium:"Moyenne",large:"Grande",veryLarge:"Très grande",solid:"Solide",hachure:"Hachures",zigzag:"Zigzag",crossHatch:"Hachures croisées",thin:"Fine",bold:"Épaisse",left:"À gauche",center:"Au centre",right:"À droite",extraBold:"Très épaisse",architect:"Architecte",artist:"Artiste",cartoonist:"Caricaturiste",fileTitle:"Nom du fichier",colorPicker:"Sélecteur de couleur",canvasColors:"Utilisé sur la zone de dessin",canvasBackground:"Arrière-plan du canevas",drawingCanvas:"Zone de dessin",layers:"Disposition",actions:"Actions",language:"Langue",liveCollaboration:"Collaboration en direct...",duplicateSelection:"Dupliquer",untitled:"Sans-titre",name:"Nom",yourName:"Votre nom",madeWithExcalidraw:"Fait avec Excalidraw",group:"Grouper la sélection",ungroup:"Dégrouper la sélection",collaborators:"Collaborateurs",showGrid:"Afficher la grille",addToLibrary:"Ajouter à la bibliothèque",removeFromLibrary:"Supprimer de la bibliothèque",libraryLoadingMessage:"Chargement de la bibliothèque…",libraries:"Parcourir les bibliothèques",loadingScene:"Chargement de la scène…",align:"Alignement",alignTop:"Aligner en haut",alignBottom:"Aligner en bas",alignLeft:"Aligner à gauche",alignRight:"Aligner à droite",centerVertically:"Centrer verticalement",centerHorizontally:"Centrer horizontalement",distributeHorizontally:"Répartir horizontalement",distributeVertically:"Répartir verticalement",flipHorizontal:"Retourner horizontalement",flipVertical:"Retourner verticalement",viewMode:"Mode présentation",share:"Partager",showStroke:"Afficher le sélecteur de couleur de trait",showBackground:"Afficher le sélecteur de couleur de fond",toggleTheme:"Changer le thème",personalLib:"Bibliothèque personnelle",excalidrawLib:"Bibliothèque Excalidraw",decreaseFontSize:"Diminuer la taille de police",increaseFontSize:"Augmenter la taille de la police",unbindText:"Dissocier le texte",bindText:"Associer le texte au conteneur",createContainerFromText:"Encadrer le texte dans un conteneur",link:{edit:"Modifier le lien",editEmbed:"Éditer le lien & intégrer",create:"Ajouter un lien",createEmbed:"Créer un lien & intégrer",label:"Lien",labelEmbed:"Lier & intégrer",empty:"Aucun lien défini"},lineEditor:{edit:"Modifier la ligne",exit:"Quitter l'éditeur de ligne"},elementLock:{lock:"Verrouiller",unlock:"Déverrouiller",lockAll:"Tout verrouiller",unlockAll:"Tout déverrouiller"},statusPublished:"Publié",sidebarLock:"Maintenir la barre latérale ouverte",selectAllElementsInFrame:"Sélectionner tous les éléments du cadre",removeAllElementsFromFrame:"Supprimer tous les éléments du cadre",eyeDropper:"Choisir la couleur depuis la toile",textToDiagram:"Texte vers Diagramme",prompt:"Consignes"},r={noItems:"Aucun élément n'a encore été ajouté ...",hint_emptyLibrary:"Sélectionnez un élément sur le canevas pour l'ajouter ici ou installez une bibliothèque depuis le dépôt public, ci-dessous.",hint_emptyPrivateLibrary:"Sélectionnez un élément sur le canevas pour l'ajouter ici."},i={clearReset:"Réinitialiser le canevas",exportJSON:"Exporter comme fichier",exportImage:"Exporter l'image...",export:"Enregistrer sous...",copyToClipboard:"Copier dans le presse-papier",save:"Enregistrer dans le fichier actuel",saveAs:"Enregistrer sous",load:"Ouvrir",getShareableLink:"Obtenir un lien de partage",close:"Fermer",selectLanguage:"Choisir une langue",scrollBackToContent:"Revenir au contenu",zoomIn:"Zoomer",zoomOut:"Dézoomer",resetZoom:"Réinitialiser le zoom",menu:"Menu",done:"Terminé",edit:"Modifier",undo:"Annuler",redo:"Rétablir",resetLibrary:"Réinitialiser la bibliothèque",createNewRoom:"Créer une nouvelle salle",fullScreen:"Plein écran",darkMode:"Mode sombre",lightMode:"Mode clair",zenMode:"Mode zen",objectsSnapMode:"Aimanter aux objets",exitZenMode:"Quitter le mode zen",cancel:"Annuler",clear:"Effacer",remove:"Supprimer",embed:"Activer/Désactiver l'intégration",publishLibrary:"Publier",submit:"Envoyer",confirm:"Confirmer",embeddableInteractionButton:"Cliquez pour interagir"},o={clearReset:"L'intégralité du canevas va être effacée. Êtes-vous sûr ?",couldNotCreateShareableLink:"Impossible de créer un lien de partage.",couldNotCreateShareableLinkTooBig:"Impossible de créer un lien de partage : la scène est trop volumineuse",couldNotLoadInvalidFile:"Impossible de charger un fichier invalide",importBackendFailed:"L'importation depuis le serveur a échoué.",cannotExportEmptyCanvas:"Impossible d'exporter un canevas vide.",couldNotCopyToClipboard:"Impossible de copier dans le presse-papiers.",decryptFailed:"Les données n'ont pas pu être déchiffrées.",uploadedSecurly:"Le téléchargement a été sécurisé avec un chiffrement de bout en bout, ce qui signifie que ni Excalidraw ni personne d'autre ne peut en lire le contenu.",loadSceneOverridePrompt:"Le chargement d'un dessin externe remplacera votre contenu actuel. Souhaitez-vous continuer ?",collabStopOverridePrompt:`Arrêter la session écrasera votre précédent dessin stocké localement. Êtes-vous sûr·e ?
|
|
2
2
|
|
|
3
3
|
(Si vous voulez garder votre dessin local, fermez simplement l'onglet du navigateur à la place.)`,errorAddingToLibrary:"Impossible d'ajouter l'élément à la bibliothèque",errorRemovingFromLibrary:"Impossible de retirer l'élément de la bibliothèque",confirmAddLibrary:"Cela va ajouter {{numShapes}} forme(s) à votre bibliothèque. Êtes-vous sûr·e ?",imageDoesNotContainScene:"Cette image ne semble pas contenir de données de scène. Avez-vous activé l'intégration de scène lors de l'exportation ?",cannotRestoreFromImage:"Impossible de restaurer la scène depuis ce fichier image",invalidSceneUrl:"Impossible d'importer la scène depuis l'URL fournie. Elle est soit incorrecte, soit ne contient pas de données JSON Excalidraw valides.",resetLibrary:"Cela va effacer votre bibliothèque. Êtes-vous sûr·e ?",removeItemsFromsLibrary:"Supprimer {{count}} élément(s) de la bibliothèque ?",invalidEncryptionKey:"La clé de chiffrement doit comporter 22 caractères. La collaboration en direct est désactivée.",collabOfflineWarning:`Aucune connexion internet disponible.
|
|
4
4
|
Vos modifications ne seront pas enregistrées !`},t={unsupportedFileType:"Type de fichier non supporté.",imageInsertError:"Impossible d'insérer l'image. Réessayez plus tard...",fileTooBig:"Le fichier est trop volumineux. La taille maximale autorisée est de {{maxSize}}.",svgImageInsertError:"Impossible d'insérer l'image SVG. Le balisage SVG semble invalide.",failedToFetchImage:"Échec de récupération de l'image.",invalidSVGString:"SVG invalide.",cannotResolveCollabServer:"Impossible de se connecter au serveur collaboratif. Veuillez recharger la page et réessayer.",importLibraryError:"Impossible de charger la bibliothèque",collabSaveFailed:"Impossible d'enregistrer dans la base de données en arrière-plan. Si des problèmes persistent, vous devriez enregistrer votre fichier localement pour vous assurer de ne pas perdre votre travail.",collabSaveFailed_sizeExceeded:"Impossible d'enregistrer dans la base de données en arrière-plan, le tableau semble trop grand. Vous devriez enregistrer le fichier localement pour vous assurer de ne pas perdre votre travail.",imageToolNotSupported:"Les images sont désactivées.",brave_measure_text_error:{line1:"On dirait que vous utilisez le navigateur Brave avec l'option <bold>Bloquer agressivement le fichage</bold> activée.",line2:"Cela pourrait entraîner des problèmes avec les <bold>Éléments Textuels</bold> dans vos dessins.",line3:"Nous recommandons fortement de désactiver cette option. Vous pouvez suivre <link>ces instructions</link> pour savoir comment faire.",line4:"Si désactiver cette option de résout pas le problème d'affichage des éléments textuels, veuillez ouvrir un <issueLink>ticket</issueLink> sur notre GitHub, ou écrivez-nous sur notre <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Les éléments intégrés ne peuvent pas être ajoutés à la librairie.",iframe:"",image:"Le support pour l'ajout d'images à la librairie arrive bientôt !"},asyncPasteFailedOnRead:"Impossible de coller (impossible de lire le presse-papiers système).",asyncPasteFailedOnParse:"Impossible de coller.",copyToSystemClipboardFailed:"Échec de la copie dans le presse-papiers."},a={selection:"Sélection",image:"Insérer une image",rectangle:"Rectangle",diamond:"Losange",ellipse:"Ellipse",arrow:"Flèche",line:"Ligne",freedraw:"Dessiner",text:"Texte",library:"Bibliothèque",lock:"Garder l'outil sélectionné actif après le dessin",penMode:"Mode stylo - évite le toucher",link:"Ajouter/mettre à jour le lien pour une forme sélectionnée",eraser:"Gomme",frame:"Outil de cadre",magicframe:"",embeddable:"Intégration Web",laser:"Pointeur laser",hand:"Mains (outil de déplacement de la vue)",extraTools:"Plus d'outils",mermaidToExcalidraw:"De Mermaid à Excalidraw",magicSettings:"Paramètres IA"},n={canvasActions:"Actions du canevas",selectedShapeActions:"Actions pour la forme sélectionnée",shapes:"Formes"},s={canvasPanning:"Pour déplacer la zone de dessin, maintenez la molette de la souris enfoncée ou la barre d'espace tout en faisant glisser, ou utiliser l'outil main.",linearElement:"Cliquez pour démarrer plusieurs points, faites glisser pour une seule ligne",freeDraw:"Cliquez et faites glissez, relâchez quand vous avez terminé",text:"Astuce : vous pouvez aussi ajouter du texte en double-cliquant n'importe où avec l'outil de sélection",embeddable:"Cliquez et glissez pour créer une intégration de site web",text_selected:"Double-cliquez ou appuyez sur ENTRÉE pour modifier le texte",text_editing:"Appuyez sur ÉCHAP ou Ctrl/Cmd+ENTRÉE pour terminer l'édition",linearElementMulti:"Cliquez sur le dernier point ou appuyez sur Échap ou Entrée pour terminer",lockAngle:"Vous pouvez restreindre l'angle en maintenant MAJ",resize:"Vous pouvez conserver les proportions en maintenant la touche MAJ pendant le redimensionnement, maintenez la touche ALT pour redimensionner par rapport au centre",resizeImage:`Vous pouvez redimensionner librement en maintenant SHIFT,
|
package/dist-embed/chunks/{ganttDiagram-3b0b3873-BsGIi6q0.js → ganttDiagram-3b0b3873-B_Ze5xJT.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{d as Qt}from"./index-DoBkwclg.js";import{s as ut,d as L}from"./index-
|
|
1
|
+
import{d as Qt}from"./index-DoBkwclg.js";import{s as ut,d as L}from"./index-Dz7T8mqj.js";import{a as Zt,b as $t,d as te,c as ee,e as se}from"./advancedFormat-CshdkaWz.js";import{g as ie,s as ne,m as re,n as ae,a as ce,b as oe,c as U,d as le,l as ht,i as ue,p as de,u as fe}from"./mermaid.core-CCCzTT5Y.js";import"../datalayer-app-main.js";import{t as he,m as me,a as ke,l as ye,b as Lt,c as Ft,d as ge,e as pe,f as be,g as Te,h as xe,i as ve,j as _e,k as Mt,n as Vt,o as Pt,s as Ot,p as Rt}from"./d3-scale-B-wnA6MO.js";import{h as we}from"./d3-interpolate-BVJucgkN.js";import"./dayjs.min-u3zuoSR8.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./d3-color-Jd8hXty2.js";var gt=(function(){var t=function(g,i,u,d){for(u=u||{},d=g.length;d--;u[g[d]]=i);return u},s=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],a=[1,27],h=[1,28],f=[1,29],A=[1,30],O=[1,31],R=[1,9],E=[1,10],I=[1,11],N=[1,12],M=[1,13],V=[1,14],v=[1,15],tt=[1,16],et=[1,18],st=[1,19],it=[1,20],nt=[1,21],rt=[1,22],at=[1,24],ct=[1,32],m={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(i,u,d,c,k,e,S){var l=e.length-1;switch(k){case 1:return e[l-1];case 2:this.$=[];break;case 3:e[l-1].push(e[l]),this.$=e[l-1];break;case 4:case 5:this.$=e[l];break;case 6:case 7:this.$=[];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=e[l].substr(18);break;case 17:c.TopAxis(),this.$=e[l].substr(8);break;case 18:c.setAxisFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 19:c.setTickInterval(e[l].substr(13)),this.$=e[l].substr(13);break;case 20:c.setExcludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 21:c.setIncludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 22:c.setTodayMarker(e[l].substr(12)),this.$=e[l].substr(12);break;case 24:c.setDiagramTitle(e[l].substr(6)),this.$=e[l].substr(6);break;case 25:this.$=e[l].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=e[l].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(e[l].substr(8)),this.$=e[l].substr(8);break;case 30:c.addTask(e[l-1],e[l]),this.$="task";break;case 31:this.$=e[l-1],c.setClickEvent(e[l-1],e[l],null);break;case 32:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],e[l]);break;case 33:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],null),c.setLink(e[l-2],e[l]);break;case 34:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-2],e[l-1]),c.setLink(e[l-3],e[l]);break;case 35:this.$=e[l-2],c.setClickEvent(e[l-2],e[l],null),c.setLink(e[l-2],e[l-1]);break;case 36:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-1],e[l]),c.setLink(e[l-3],e[l-2]);break;case 37:this.$=e[l-1],c.setLink(e[l-1],e[l]);break;case 38:case 44:this.$=e[l-1]+" "+e[l];break;case 39:case 40:case 42:this.$=e[l-2]+" "+e[l-1]+" "+e[l];break;case 41:case 43:this.$=e[l-3]+" "+e[l-2]+" "+e[l-1]+" "+e[l];break}},table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:h,16:f,17:A,18:O,19:R,20:E,21:I,22:N,23:M,24:V,25:v,26:tt,27:et,28:st,30:it,32:nt,33:rt,34:23,35:at,37:ct},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:33,11:17,12:n,13:r,14:a,15:h,16:f,17:A,18:O,19:R,20:E,21:I,22:N,23:M,24:V,25:v,26:tt,27:et,28:st,30:it,32:nt,33:rt,34:23,35:at,37:ct},t(s,[2,5]),t(s,[2,6]),t(s,[2,15]),t(s,[2,16]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),{29:[1,34]},{31:[1,35]},t(s,[2,27]),t(s,[2,28]),t(s,[2,29]),{36:[1,36]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),{38:[1,37],40:[1,38]},t(s,[2,4]),t(s,[2,25]),t(s,[2,26]),t(s,[2,30]),t(s,[2,31],{39:[1,39],40:[1,40]}),t(s,[2,37],{38:[1,41]}),t(s,[2,32],{40:[1,42]}),t(s,[2,33]),t(s,[2,35],{39:[1,43]}),t(s,[2,34]),t(s,[2,36])],defaultActions:{},parseError:function(i,u){if(u.recoverable)this.trace(i);else{var d=new Error(i);throw d.hash=u,d}},parse:function(i){var u=this,d=[0],c=[],k=[null],e=[],S=this.table,l="",o=0,y=0,C=2,x=1,_=e.slice.call(arguments,1),T=Object.create(this.lexer),w={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(w.yy[J]=this.yy[J]);T.setInput(i,w.yy),w.yy.lexer=T,w.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var K=T.yylloc;e.push(K);var Jt=T.options&&T.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Kt(){var Y;return Y=c.pop()||T.lex()||x,typeof Y!="number"&&(Y instanceof Array&&(c=Y,Y=c.pop()),Y=u.symbols_[Y]||Y),Y}for(var F,q,P,kt,X={},ot,W,It,lt;;){if(q=d[d.length-1],this.defaultActions[q]?P=this.defaultActions[q]:((F===null||typeof F>"u")&&(F=Kt()),P=S[q]&&S[q][F]),typeof P>"u"||!P.length||!P[0]){var yt="";lt=[];for(ot in S[q])this.terminals_[ot]&&ot>C&<.push("'"+this.terminals_[ot]+"'");T.showPosition?yt="Parse error on line "+(o+1)+`:
|
|
2
2
|
`+T.showPosition()+`
|
|
3
|
-
Expecting `+lt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":yt="Parse error on line "+(o+1)+": Unexpected "+(F==x?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(yt,{text:T.match,token:this.terminals_[F]||F,line:T.yylineno,loc:K,expected:lt})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+F);switch(P[0]){case 1:d.push(F),k.push(T.yytext),e.push(T.yylloc),d.push(P[1]),F=null,y=T.yyleng,l=T.yytext,o=T.yylineno,K=T.yylloc;break;case 2:if(W=this.productions_[P[1]][1],X.$=k[k.length-W],X._$={first_line:e[e.length-(W||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(W||1)].first_column,last_column:e[e.length-1].last_column},Jt&&(X._$.range=[e[e.length-(W||1)].range[0],e[e.length-1].range[1]]),kt=this.performAction.apply(X,[l,y,o,
|
|
3
|
+
Expecting `+lt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":yt="Parse error on line "+(o+1)+": Unexpected "+(F==x?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(yt,{text:T.match,token:this.terminals_[F]||F,line:T.yylineno,loc:K,expected:lt})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+F);switch(P[0]){case 1:d.push(F),k.push(T.yytext),e.push(T.yylloc),d.push(P[1]),F=null,y=T.yyleng,l=T.yytext,o=T.yylineno,K=T.yylloc;break;case 2:if(W=this.productions_[P[1]][1],X.$=k[k.length-W],X._$={first_line:e[e.length-(W||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(W||1)].first_column,last_column:e[e.length-1].last_column},Jt&&(X._$.range=[e[e.length-(W||1)].range[0],e[e.length-1].range[1]]),kt=this.performAction.apply(X,[l,y,o,w.yy,P[1],k,e].concat(_)),typeof kt<"u")return kt;W&&(d=d.slice(0,-1*W*2),k=k.slice(0,-1*W),e=e.slice(0,-1*W)),d.push(this.productions_[P[1]][0]),k.push(X.$),e.push(X._$),It=S[d[d.length-2]][d[d.length-1]],d.push(It);break;case 3:return!0}}return!0}},b=(function(){var g={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(i,u){return this.yy=u||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var u=i.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var u=i.length,d=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var c=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),d.length-1&&(this.yylineno-=d.length-1);var k=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:d?(d.length===c.length?this.yylloc.first_column:0)+c[c.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-u]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),u=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+u+"^"},test_match:function(i,u){var d,c,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),c=i[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var e in k)this[e]=k[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,u,d,c;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),e=0;e<k.length;e++)if(d=this._input.match(this.rules[k[e]]),d&&(!u||d[0].length>u[0].length)){if(u=d,c=e,this.options.backtrack_lexer){if(i=this.test_match(d,k[e]),i!==!1)return i;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(i=this.test_match(u,k[c]),i!==!1?i:!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 u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>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(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,c,k){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return g})();m.lexer=b;function p(){this.yy={}}return p.prototype=m,m.Parser=p,new p})();gt.parser=gt;const Ce=gt;L.extend(ue);L.extend(de);L.extend(fe);let B="",xt="",vt,wt="",Q=[],Z=[],_t={},Ct=[],mt=[],H="",Et="";const Wt=["active","done","crit","milestone"];let Dt=[],$=!1,St=!1,At="sunday",pt=0;const Ee=function(){Ct=[],mt=[],H="",Dt=[],dt=0,Tt=void 0,ft=void 0,D=[],B="",xt="",Et="",vt=void 0,wt="",Q=[],Z=[],$=!1,St=!1,pt=0,_t={},xe(),At="sunday"},De=function(t){xt=t},Se=function(){return xt},Ae=function(t){vt=t},Ie=function(){return vt},Le=function(t){wt=t},Fe=function(){return wt},Me=function(t){B=t},Ve=function(){$=!0},Pe=function(){return $},Oe=function(){St=!0},Re=function(){return St},Be=function(t){Et=t},Ne=function(){return Et},We=function(){return B},Ye=function(t){Q=t.toLowerCase().split(/[\s,]+/)},ze=function(){return Q},qe=function(t){Z=t.toLowerCase().split(/[\s,]+/)},je=function(){return Z},Xe=function(){return _t},Ue=function(t){H=t,Ct.push(t)},Ge=function(){return Ct},He=function(){let t=Bt();const s=10;let n=0;for(;!t&&n<s;)t=Bt(),n++;return mt=D,mt},Yt=function(t,s,n,r){return r.includes(t.format(s.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(s.trim()))},Je=function(t){At=t},Ke=function(){return At},zt=function(t,s,n,r){if(!n.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=L(t.startTime):a=L(t.startTime,s,!0),a=a.add(1,"d");let h;t.endTime instanceof Date?h=L(t.endTime):h=L(t.endTime,s,!0);const[f,A]=Qe(a,h,s,n,r);t.endTime=f.toDate(),t.renderEndTime=A},Qe=function(t,s,n,r,a){let h=!1,f=null;const A=s.add(1e4,"d");for(;t<=s;){if(h||(f=s.toDate()),h=Yt(t,n,r,a),h&&(s=s.add(1,"d"),s>A))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,f]},bt=function(t,s,n){n=n.trim();const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let f=null;for(const O of a.groups.ids.split(" ")){let R=j(O);R!==void 0&&(!f||R.endTime>f.endTime)&&(f=R)}if(f)return f.endTime;const A=new Date;return A.setHours(0,0,0,0),A}let h=L(n,s.trim(),!0);if(h.isValid())return h.toDate();{ht.debug("Invalid date:"+n),ht.debug("With date format:"+s.trim());const f=new Date(n);if(f===void 0||isNaN(f.getTime())||f.getFullYear()<-1e4||f.getFullYear()>1e4)throw new Error("Invalid date:"+n);return f}},qt=function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},jt=function(t,s,n,r=!1){n=n.trim();const h=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(h!==null){let E=null;for(const N of h.groups.ids.split(" ")){let M=j(N);M!==void 0&&(!E||M.startTime<E.startTime)&&(E=M)}if(E)return E.startTime;const I=new Date;return I.setHours(0,0,0,0),I}let f=L(n,s.trim(),!0);if(f.isValid())return r&&(f=f.add(1,"d")),f.toDate();let A=L(t);const[O,R]=qt(n);if(!Number.isNaN(O)){const E=A.add(O,R);E.isValid()&&(A=E)}return A.toDate()};let dt=0;const G=function(t){return t===void 0?(dt=dt+1,"task"+dt):t},Ze=function(t,s){let n;s.substr(0,1)===":"?n=s.substr(1,s.length):n=s;const r=n.split(","),a={};Ht(r,a,Wt);for(let f=0;f<r.length;f++)r[f]=r[f].trim();let h="";switch(r.length){case 1:a.id=G(),a.startTime=t.endTime,h=r[0];break;case 2:a.id=G(),a.startTime=bt(void 0,B,r[0]),h=r[1];break;case 3:a.id=G(r[0]),a.startTime=bt(void 0,B,r[1]),h=r[2];break}return h&&(a.endTime=jt(a.startTime,B,h,$),a.manualEndTime=L(h,"YYYY-MM-DD",!0).isValid(),zt(a,B,Z,Q)),a},$e=function(t,s){let n;s.substr(0,1)===":"?n=s.substr(1,s.length):n=s;const r=n.split(","),a={};Ht(r,a,Wt);for(let h=0;h<r.length;h++)r[h]=r[h].trim();switch(r.length){case 1:a.id=G(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:r[0]};break;case 2:a.id=G(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=G(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a};let Tt,ft,D=[];const Xt={},ts=function(t,s){const n={section:H,type:H,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},r=$e(ft,s);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=ft,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=pt,pt++;const a=D.push(n);ft=n.id,Xt[n.id]=a-1},j=function(t){const s=Xt[t];return D[s]},es=function(t,s){const n={section:H,type:H,description:t,task:t,classes:[]},r=Ze(Tt,s);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,Tt=n,mt.push(n)},Bt=function(){const t=function(n){const r=D[n];let a="";switch(D[n].raw.startTime.type){case"prevTaskEnd":{const h=j(r.prevTaskId);r.startTime=h.endTime;break}case"getStartDate":a=bt(void 0,B,D[n].raw.startTime.startData),a&&(D[n].startTime=a);break}return D[n].startTime&&(D[n].endTime=jt(D[n].startTime,B,D[n].raw.endTime.data,$),D[n].endTime&&(D[n].processed=!0,D[n].manualEndTime=L(D[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),zt(D[n],B,Z,Q))),D[n].processed};let s=!0;for(const[n,r]of D.entries())t(n),s=s&&r.processed;return s},ss=function(t,s){let n=s;U().securityLevel!=="loose"&&(n=Qt.sanitizeUrl(s)),t.split(",").forEach(function(r){j(r)!==void 0&&(Gt(r,()=>{window.open(n,"_self")}),_t[r]=n)}),Ut(t,"clickable")},Ut=function(t,s){t.split(",").forEach(function(n){let r=j(n);r!==void 0&&r.classes.push(s)})},is=function(t,s,n){if(U().securityLevel!=="loose"||s===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<r.length;h++){let f=r[h].trim();f.charAt(0)==='"'&&f.charAt(f.length-1)==='"'&&(f=f.substr(1,f.length-2)),r[h]=f}}r.length===0&&r.push(t),j(t)!==void 0&&Gt(t,()=>{ve.runFunc(s,...r)})},Gt=function(t,s){Dt.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){s()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){s()})})},ns=function(t,s,n){t.split(",").forEach(function(r){is(r,s,n)}),Ut(t,"clickable")},rs=function(t){Dt.forEach(function(s){s(t)})},as={getConfig:()=>U().gantt,clear:Ee,setDateFormat:Me,getDateFormat:We,enableInclusiveEndDates:Ve,endDatesAreInclusive:Pe,enableTopAxis:Oe,topAxisEnabled:Re,setAxisFormat:De,getAxisFormat:Se,setTickInterval:Ae,getTickInterval:Ie,setTodayMarker:Le,getTodayMarker:Fe,setAccTitle:pe,getAccTitle:ge,setDiagramTitle:ye,getDiagramTitle:ke,setDisplayMode:Be,getDisplayMode:Ne,setAccDescription:me,getAccDescription:he,addSection:Ue,getSections:Ge,getTasks:He,addTask:ts,findTaskById:j,addTaskOrg:es,setIncludes:Ye,getIncludes:ze,setExcludes:qe,getExcludes:je,setClickEvent:ns,setLink:ss,getLinks:Xe,bindFunctions:rs,parseDuration:qt,isInvalidDate:Yt,setWeekday:Je,getWeekday:Ke};function Ht(t,s,n){let r=!0;for(;r;)r=!1,n.forEach(function(a){const h="^\\s*"+a+"\\s*$",f=new RegExp(h);t[0].match(f)&&(s[a]=!0,t.shift(1),r=!0)})}const cs=function(){ht.debug("Something is calling, setConf, remove the call")},Nt={monday:oe,tuesday:ce,wednesday:ae,thursday:re,friday:ne,saturday:ie,sunday:se},os=(t,s)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((h,f)=>h.startTime-f.startTime||h.order-f.order),a=0;for(const h of r)for(let f=0;f<n.length;f++)if(h.startTime>=n[f]){n[f]=h.endTime,h.order=f+s,f>a&&(a=f);break}return a};let z;const ls=function(t,s,n,r){const a=U().gantt,h=U().securityLevel;let f;h==="sandbox"&&(f=ut("#i"+s));const A=h==="sandbox"?ut(f.nodes()[0].contentDocument.body):ut("body"),O=h==="sandbox"?f.nodes()[0].contentDocument:document,R=O.getElementById(s);z=R.parentElement.offsetWidth,z===void 0&&(z=1200),a.useWidth!==void 0&&(z=a.useWidth);const E=r.db.getTasks();let I=[];for(const m of E)I.push(m.type);I=ct(I);const N={};let M=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const p of E)m[p.section]===void 0?m[p.section]=[p]:m[p.section].push(p);let b=0;for(const p of Object.keys(m)){const g=os(m[p],b)+1;b+=g,M+=g*(a.barHeight+a.barGap),N[p]=g}}else{M+=E.length*(a.barHeight+a.barGap);for(const m of I)N[m]=E.filter(b=>b.type===m).length}R.setAttribute("viewBox","0 0 "+z+" "+M);const V=A.select(`[id="${s}"]`),v=Zt().domain([$t(E,function(m){return m.startTime}),te(E,function(m){return m.endTime})]).rangeRound([0,z-a.leftPadding-a.rightPadding]);function tt(m,b){const p=m.startTime,g=b.startTime;let i=0;return p>g?i=1:p<g&&(i=-1),i}E.sort(tt),et(E,z,M),be(V,M,z,a.useMaxWidth),V.append("text").text(r.db.getDiagramTitle()).attr("x",z/2).attr("y",a.titleTopMargin).attr("class","titleText");function et(m,b,p){const g=a.barHeight,i=g+a.barGap,u=a.topPadding,d=a.leftPadding,c=we().domain([0,I.length]).range(["#00B9FA","#F95002"]).interpolate(_e);it(i,u,d,b,p,m,r.db.getExcludes(),r.db.getIncludes()),nt(d,u,b,p),st(m,i,u,d,g,c,b),rt(i,u),at(d,u,b,p)}function st(m,b,p,g,i,u,d){const k=[...new Set(m.map(o=>o.order))].map(o=>m.find(y=>y.order===o));V.append("g").selectAll("rect").data(k).enter().append("rect").attr("x",0).attr("y",function(o,y){return y=o.order,y*b+p-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",b).attr("class",function(o){for(const[y,C]of I.entries())if(o.type===C)return"section section"+y%a.numberSectionStyles;return"section section0"});const e=V.append("g").selectAll("rect").data(m).enter(),S=r.db.getLinks();if(e.append("rect").attr("id",function(o){return o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?v(o.startTime)+g+.5*(v(o.endTime)-v(o.startTime))-.5*i:v(o.startTime)+g}).attr("y",function(o,y){return y=o.order,y*b+p}).attr("width",function(o){return o.milestone?i:v(o.renderEndTime||o.endTime)-v(o.startTime)}).attr("height",i).attr("transform-origin",function(o,y){return y=o.order,(v(o.startTime)+g+.5*(v(o.endTime)-v(o.startTime))).toString()+"px "+(y*b+p+.5*i).toString()+"px"}).attr("class",function(o){const y="task";let C="";o.classes.length>0&&(C=o.classes.join(" "));let x=0;for(const[T,_]of I.entries())o.type===_&&(x=T%a.numberSectionStyles);let w="";return o.active?o.crit?w+=" activeCrit":w=" active":o.done?o.crit?w=" doneCrit":w=" done":o.crit&&(w+=" crit"),w.length===0&&(w=" task"),o.milestone&&(w=" milestone "+w),w+=x,w+=" "+C,y+w}),e.append("text").attr("id",function(o){return o.id+"-text"}).text(function(o){return o.task}).attr("font-size",a.fontSize).attr("x",function(o){let y=v(o.startTime),C=v(o.renderEndTime||o.endTime);o.milestone&&(y+=.5*(v(o.endTime)-v(o.startTime))-.5*i),o.milestone&&(C=y+i);const x=this.getBBox().width;return x>C-y?C+x+1.5*a.leftPadding>d?y+g-5:C+g+5:(C-y)/2+y+g}).attr("y",function(o,y){return y=o.order,y*b+a.barHeight/2+(a.fontSize/2-2)+p}).attr("text-height",i).attr("class",function(o){const y=v(o.startTime);let C=v(o.endTime);o.milestone&&(C=y+i);const x=this.getBBox().width;let w="";o.classes.length>0&&(w=o.classes.join(" "));let T=0;for(const[J,K]of I.entries())o.type===K&&(T=J%a.numberSectionStyles);let _="";return o.active&&(o.crit?_="activeCritText"+T:_="activeText"+T),o.done?o.crit?_=_+" doneCritText"+T:_=_+" doneText"+T:o.crit&&(_=_+" critText"+T),o.milestone&&(_+=" milestoneText"),x>C-y?C+x+1.5*a.leftPadding>d?w+" taskTextOutsideLeft taskTextOutside"+T+" "+_:w+" taskTextOutsideRight taskTextOutside"+T+" "+_+" width-"+x:w+" taskText taskText"+T+" "+_+" width-"+x}),U().securityLevel==="sandbox"){let o;o=ut("#i"+s);const y=o.nodes()[0].contentDocument;e.filter(function(C){return S[C.id]!==void 0}).each(function(C){var x=y.querySelector("#"+C.id),w=y.querySelector("#"+C.id+"-text");const T=x.parentNode;var _=y.createElement("a");_.setAttribute("xlink:href",S[C.id]),_.setAttribute("target","_top"),T.appendChild(_),_.appendChild(x),_.appendChild(w)})}}function it(m,b,p,g,i,u,d,c){if(d.length===0&&c.length===0)return;let k,e;for(const{startTime:x,endTime:w}of u)(k===void 0||x<k)&&(k=x),(e===void 0||w>e)&&(e=w);if(!k||!e)return;if(L(e).diff(L(k),"year")>5){ht.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=r.db.getDateFormat(),l=[];let o=null,y=L(k);for(;y.valueOf()<=e;)r.db.isInvalidDate(y,S,d,c)?o?o.end=y:o={start:y,end:y}:o&&(l.push(o),o=null),y=y.add(1,"d");V.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",function(x){return"exclude-"+x.start.format("YYYY-MM-DD")}).attr("x",function(x){return v(x.start)+p}).attr("y",a.gridLineStartPadding).attr("width",function(x){const w=x.end.add(1,"day");return v(w)-v(x.start)}).attr("height",i-b-a.gridLineStartPadding).attr("transform-origin",function(x,w){return(v(x.start)+p+.5*(v(x.end)-v(x.start))).toString()+"px "+(w*m+.5*i).toString()+"px"}).attr("class","exclude-range")}function nt(m,b,p,g){let i=ee(v).tickSize(-g+b+a.gridLineStartPadding).tickFormat(Lt(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(d!==null){const c=d[1],k=d[2],e=r.db.getWeekday()||a.weekday;switch(k){case"millisecond":i.ticks(Rt.every(c));break;case"second":i.ticks(Ot.every(c));break;case"minute":i.ticks(Pt.every(c));break;case"hour":i.ticks(Vt.every(c));break;case"day":i.ticks(Mt.every(c));break;case"week":i.ticks(Nt[e].every(c));break;case"month":i.ticks(Ft.every(c));break}}if(V.append("g").attr("class","grid").attr("transform","translate("+m+", "+(g-50)+")").call(i).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let c=le(v).tickSize(-g+b+a.gridLineStartPadding).tickFormat(Lt(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(d!==null){const k=d[1],e=d[2],S=r.db.getWeekday()||a.weekday;switch(e){case"millisecond":c.ticks(Rt.every(k));break;case"second":c.ticks(Ot.every(k));break;case"minute":c.ticks(Pt.every(k));break;case"hour":c.ticks(Vt.every(k));break;case"day":c.ticks(Mt.every(k));break;case"week":c.ticks(Nt[S].every(k));break;case"month":c.ticks(Ft.every(k));break}}V.append("g").attr("class","grid").attr("transform","translate("+m+", "+b+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function rt(m,b){let p=0;const g=Object.keys(N).map(i=>[i,N[i]]);V.append("g").selectAll("text").data(g).enter().append(function(i){const u=i[0].split(Te.lineBreakRegex),d=-(u.length-1)/2,c=O.createElementNS("http://www.w3.org/2000/svg","text");c.setAttribute("dy",d+"em");for(const[k,e]of u.entries()){const S=O.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),k>0&&S.setAttribute("dy","1em"),S.textContent=e,c.appendChild(S)}return c}).attr("x",10).attr("y",function(i,u){if(u>0)for(let d=0;d<u;d++)return p+=g[u-1][1],i[1]*m/2+p*m+b;else return i[1]*m/2+b}).attr("font-size",a.sectionFontSize).attr("class",function(i){for(const[u,d]of I.entries())if(i[0]===d)return"sectionTitle sectionTitle"+u%a.numberSectionStyles;return"sectionTitle"})}function at(m,b,p,g){const i=r.db.getTodayMarker();if(i==="off")return;const u=V.append("g").attr("class","today"),d=new Date,c=u.append("line");c.attr("x1",v(d)+m).attr("x2",v(d)+m).attr("y1",a.titleTopMargin).attr("y2",g-a.titleTopMargin).attr("class","today"),i!==""&&c.attr("style",i.replace(/,/g,";"))}function ct(m){const b={},p=[];for(let g=0,i=m.length;g<i;++g)Object.prototype.hasOwnProperty.call(b,m[g])||(b[m[g]]=!0,p.push(m[g]));return p}},us={setConf:cs,draw:ls},ds=t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>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(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,c,k){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return g})();m.lexer=b;function p(){this.yy={}}return p.prototype=m,m.Parser=p,new p})();gt.parser=gt;const Ce=gt;L.extend(te);L.extend(ee);L.extend(se);let B="",xt="",vt,_t="",Q=[],Z=[],wt={},Ct=[],mt=[],H="",Et="";const Wt=["active","done","crit","milestone"];let Dt=[],$=!1,St=!1,At="sunday",pt=0;const Ee=function(){Ct=[],mt=[],H="",Dt=[],dt=0,Tt=void 0,ft=void 0,D=[],B="",xt="",Et="",vt=void 0,_t="",Q=[],Z=[],$=!1,St=!1,pt=0,wt={},de(),At="sunday"},De=function(t){xt=t},Se=function(){return xt},Ae=function(t){vt=t},Ie=function(){return vt},Le=function(t){_t=t},Fe=function(){return _t},Me=function(t){B=t},Ve=function(){$=!0},Pe=function(){return $},Oe=function(){St=!0},Re=function(){return St},Be=function(t){Et=t},Ne=function(){return Et},We=function(){return B},Ye=function(t){Q=t.toLowerCase().split(/[\s,]+/)},ze=function(){return Q},qe=function(t){Z=t.toLowerCase().split(/[\s,]+/)},je=function(){return Z},Xe=function(){return wt},Ue=function(t){H=t,Ct.push(t)},Ge=function(){return Ct},He=function(){let t=Bt();const s=10;let n=0;for(;!t&&n<s;)t=Bt(),n++;return mt=D,mt},Yt=function(t,s,n,r){return r.includes(t.format(s.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(s.trim()))},Je=function(t){At=t},Ke=function(){return At},zt=function(t,s,n,r){if(!n.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=L(t.startTime):a=L(t.startTime,s,!0),a=a.add(1,"d");let h;t.endTime instanceof Date?h=L(t.endTime):h=L(t.endTime,s,!0);const[f,A]=Qe(a,h,s,n,r);t.endTime=f.toDate(),t.renderEndTime=A},Qe=function(t,s,n,r,a){let h=!1,f=null;const A=s.add(1e4,"d");for(;t<=s;){if(h||(f=s.toDate()),h=Yt(t,n,r,a),h&&(s=s.add(1,"d"),s>A))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,f]},bt=function(t,s,n){n=n.trim();const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let f=null;for(const O of a.groups.ids.split(" ")){let R=j(O);R!==void 0&&(!f||R.endTime>f.endTime)&&(f=R)}if(f)return f.endTime;const A=new Date;return A.setHours(0,0,0,0),A}let h=L(n,s.trim(),!0);if(h.isValid())return h.toDate();{ht.debug("Invalid date:"+n),ht.debug("With date format:"+s.trim());const f=new Date(n);if(f===void 0||isNaN(f.getTime())||f.getFullYear()<-1e4||f.getFullYear()>1e4)throw new Error("Invalid date:"+n);return f}},qt=function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},jt=function(t,s,n,r=!1){n=n.trim();const h=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(h!==null){let E=null;for(const N of h.groups.ids.split(" ")){let M=j(N);M!==void 0&&(!E||M.startTime<E.startTime)&&(E=M)}if(E)return E.startTime;const I=new Date;return I.setHours(0,0,0,0),I}let f=L(n,s.trim(),!0);if(f.isValid())return r&&(f=f.add(1,"d")),f.toDate();let A=L(t);const[O,R]=qt(n);if(!Number.isNaN(O)){const E=A.add(O,R);E.isValid()&&(A=E)}return A.toDate()};let dt=0;const G=function(t){return t===void 0?(dt=dt+1,"task"+dt):t},Ze=function(t,s){let n;s.substr(0,1)===":"?n=s.substr(1,s.length):n=s;const r=n.split(","),a={};Ht(r,a,Wt);for(let f=0;f<r.length;f++)r[f]=r[f].trim();let h="";switch(r.length){case 1:a.id=G(),a.startTime=t.endTime,h=r[0];break;case 2:a.id=G(),a.startTime=bt(void 0,B,r[0]),h=r[1];break;case 3:a.id=G(r[0]),a.startTime=bt(void 0,B,r[1]),h=r[2];break}return h&&(a.endTime=jt(a.startTime,B,h,$),a.manualEndTime=L(h,"YYYY-MM-DD",!0).isValid(),zt(a,B,Z,Q)),a},$e=function(t,s){let n;s.substr(0,1)===":"?n=s.substr(1,s.length):n=s;const r=n.split(","),a={};Ht(r,a,Wt);for(let h=0;h<r.length;h++)r[h]=r[h].trim();switch(r.length){case 1:a.id=G(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:r[0]};break;case 2:a.id=G(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=G(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a};let Tt,ft,D=[];const Xt={},ts=function(t,s){const n={section:H,type:H,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},r=$e(ft,s);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=ft,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=pt,pt++;const a=D.push(n);ft=n.id,Xt[n.id]=a-1},j=function(t){const s=Xt[t];return D[s]},es=function(t,s){const n={section:H,type:H,description:t,task:t,classes:[]},r=Ze(Tt,s);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,Tt=n,mt.push(n)},Bt=function(){const t=function(n){const r=D[n];let a="";switch(D[n].raw.startTime.type){case"prevTaskEnd":{const h=j(r.prevTaskId);r.startTime=h.endTime;break}case"getStartDate":a=bt(void 0,B,D[n].raw.startTime.startData),a&&(D[n].startTime=a);break}return D[n].startTime&&(D[n].endTime=jt(D[n].startTime,B,D[n].raw.endTime.data,$),D[n].endTime&&(D[n].processed=!0,D[n].manualEndTime=L(D[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),zt(D[n],B,Z,Q))),D[n].processed};let s=!0;for(const[n,r]of D.entries())t(n),s=s&&r.processed;return s},ss=function(t,s){let n=s;U().securityLevel!=="loose"&&(n=Qt.sanitizeUrl(s)),t.split(",").forEach(function(r){j(r)!==void 0&&(Gt(r,()=>{window.open(n,"_self")}),wt[r]=n)}),Ut(t,"clickable")},Ut=function(t,s){t.split(",").forEach(function(n){let r=j(n);r!==void 0&&r.classes.push(s)})},is=function(t,s,n){if(U().securityLevel!=="loose"||s===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<r.length;h++){let f=r[h].trim();f.charAt(0)==='"'&&f.charAt(f.length-1)==='"'&&(f=f.substr(1,f.length-2)),r[h]=f}}r.length===0&&r.push(t),j(t)!==void 0&&Gt(t,()=>{fe.runFunc(s,...r)})},Gt=function(t,s){Dt.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){s()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){s()})})},ns=function(t,s,n){t.split(",").forEach(function(r){is(r,s,n)}),Ut(t,"clickable")},rs=function(t){Dt.forEach(function(s){s(t)})},as={getConfig:()=>U().gantt,clear:Ee,setDateFormat:Me,getDateFormat:We,enableInclusiveEndDates:Ve,endDatesAreInclusive:Pe,enableTopAxis:Oe,topAxisEnabled:Re,setAxisFormat:De,getAxisFormat:Se,setTickInterval:Ae,getTickInterval:Ie,setTodayMarker:Le,getTodayMarker:Fe,setAccTitle:oe,getAccTitle:ce,setDiagramTitle:ae,getDiagramTitle:re,setDisplayMode:Be,getDisplayMode:Ne,setAccDescription:ne,getAccDescription:ie,addSection:Ue,getSections:Ge,getTasks:He,addTask:ts,findTaskById:j,addTaskOrg:es,setIncludes:Ye,getIncludes:ze,setExcludes:qe,getExcludes:je,setClickEvent:ns,setLink:ss,getLinks:Xe,bindFunctions:rs,parseDuration:qt,isInvalidDate:Yt,setWeekday:Je,getWeekday:Ke};function Ht(t,s,n){let r=!0;for(;r;)r=!1,n.forEach(function(a){const h="^\\s*"+a+"\\s*$",f=new RegExp(h);t[0].match(f)&&(s[a]=!0,t.shift(1),r=!0)})}const cs=function(){ht.debug("Something is calling, setConf, remove the call")},Nt={monday:_e,tuesday:ve,wednesday:xe,thursday:Te,friday:be,saturday:pe,sunday:ge},os=(t,s)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((h,f)=>h.startTime-f.startTime||h.order-f.order),a=0;for(const h of r)for(let f=0;f<n.length;f++)if(h.startTime>=n[f]){n[f]=h.endTime,h.order=f+s,f>a&&(a=f);break}return a};let z;const ls=function(t,s,n,r){const a=U().gantt,h=U().securityLevel;let f;h==="sandbox"&&(f=ut("#i"+s));const A=h==="sandbox"?ut(f.nodes()[0].contentDocument.body):ut("body"),O=h==="sandbox"?f.nodes()[0].contentDocument:document,R=O.getElementById(s);z=R.parentElement.offsetWidth,z===void 0&&(z=1200),a.useWidth!==void 0&&(z=a.useWidth);const E=r.db.getTasks();let I=[];for(const m of E)I.push(m.type);I=ct(I);const N={};let M=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const p of E)m[p.section]===void 0?m[p.section]=[p]:m[p.section].push(p);let b=0;for(const p of Object.keys(m)){const g=os(m[p],b)+1;b+=g,M+=g*(a.barHeight+a.barGap),N[p]=g}}else{M+=E.length*(a.barHeight+a.barGap);for(const m of I)N[m]=E.filter(b=>b.type===m).length}R.setAttribute("viewBox","0 0 "+z+" "+M);const V=A.select(`[id="${s}"]`),v=he().domain([me(E,function(m){return m.startTime}),ke(E,function(m){return m.endTime})]).rangeRound([0,z-a.leftPadding-a.rightPadding]);function tt(m,b){const p=m.startTime,g=b.startTime;let i=0;return p>g?i=1:p<g&&(i=-1),i}E.sort(tt),et(E,z,M),le(V,M,z,a.useMaxWidth),V.append("text").text(r.db.getDiagramTitle()).attr("x",z/2).attr("y",a.titleTopMargin).attr("class","titleText");function et(m,b,p){const g=a.barHeight,i=g+a.barGap,u=a.topPadding,d=a.leftPadding,c=ye().domain([0,I.length]).range(["#00B9FA","#F95002"]).interpolate(we);it(i,u,d,b,p,m,r.db.getExcludes(),r.db.getIncludes()),nt(d,u,b,p),st(m,i,u,d,g,c,b),rt(i,u),at(d,u,b,p)}function st(m,b,p,g,i,u,d){const k=[...new Set(m.map(o=>o.order))].map(o=>m.find(y=>y.order===o));V.append("g").selectAll("rect").data(k).enter().append("rect").attr("x",0).attr("y",function(o,y){return y=o.order,y*b+p-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",b).attr("class",function(o){for(const[y,C]of I.entries())if(o.type===C)return"section section"+y%a.numberSectionStyles;return"section section0"});const e=V.append("g").selectAll("rect").data(m).enter(),S=r.db.getLinks();if(e.append("rect").attr("id",function(o){return o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?v(o.startTime)+g+.5*(v(o.endTime)-v(o.startTime))-.5*i:v(o.startTime)+g}).attr("y",function(o,y){return y=o.order,y*b+p}).attr("width",function(o){return o.milestone?i:v(o.renderEndTime||o.endTime)-v(o.startTime)}).attr("height",i).attr("transform-origin",function(o,y){return y=o.order,(v(o.startTime)+g+.5*(v(o.endTime)-v(o.startTime))).toString()+"px "+(y*b+p+.5*i).toString()+"px"}).attr("class",function(o){const y="task";let C="";o.classes.length>0&&(C=o.classes.join(" "));let x=0;for(const[T,w]of I.entries())o.type===w&&(x=T%a.numberSectionStyles);let _="";return o.active?o.crit?_+=" activeCrit":_=" active":o.done?o.crit?_=" doneCrit":_=" done":o.crit&&(_+=" crit"),_.length===0&&(_=" task"),o.milestone&&(_=" milestone "+_),_+=x,_+=" "+C,y+_}),e.append("text").attr("id",function(o){return o.id+"-text"}).text(function(o){return o.task}).attr("font-size",a.fontSize).attr("x",function(o){let y=v(o.startTime),C=v(o.renderEndTime||o.endTime);o.milestone&&(y+=.5*(v(o.endTime)-v(o.startTime))-.5*i),o.milestone&&(C=y+i);const x=this.getBBox().width;return x>C-y?C+x+1.5*a.leftPadding>d?y+g-5:C+g+5:(C-y)/2+y+g}).attr("y",function(o,y){return y=o.order,y*b+a.barHeight/2+(a.fontSize/2-2)+p}).attr("text-height",i).attr("class",function(o){const y=v(o.startTime);let C=v(o.endTime);o.milestone&&(C=y+i);const x=this.getBBox().width;let _="";o.classes.length>0&&(_=o.classes.join(" "));let T=0;for(const[J,K]of I.entries())o.type===K&&(T=J%a.numberSectionStyles);let w="";return o.active&&(o.crit?w="activeCritText"+T:w="activeText"+T),o.done?o.crit?w=w+" doneCritText"+T:w=w+" doneText"+T:o.crit&&(w=w+" critText"+T),o.milestone&&(w+=" milestoneText"),x>C-y?C+x+1.5*a.leftPadding>d?_+" taskTextOutsideLeft taskTextOutside"+T+" "+w:_+" taskTextOutsideRight taskTextOutside"+T+" "+w+" width-"+x:_+" taskText taskText"+T+" "+w+" width-"+x}),U().securityLevel==="sandbox"){let o;o=ut("#i"+s);const y=o.nodes()[0].contentDocument;e.filter(function(C){return S[C.id]!==void 0}).each(function(C){var x=y.querySelector("#"+C.id),_=y.querySelector("#"+C.id+"-text");const T=x.parentNode;var w=y.createElement("a");w.setAttribute("xlink:href",S[C.id]),w.setAttribute("target","_top"),T.appendChild(w),w.appendChild(x),w.appendChild(_)})}}function it(m,b,p,g,i,u,d,c){if(d.length===0&&c.length===0)return;let k,e;for(const{startTime:x,endTime:_}of u)(k===void 0||x<k)&&(k=x),(e===void 0||_>e)&&(e=_);if(!k||!e)return;if(L(e).diff(L(k),"year")>5){ht.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=r.db.getDateFormat(),l=[];let o=null,y=L(k);for(;y.valueOf()<=e;)r.db.isInvalidDate(y,S,d,c)?o?o.end=y:o={start:y,end:y}:o&&(l.push(o),o=null),y=y.add(1,"d");V.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",function(x){return"exclude-"+x.start.format("YYYY-MM-DD")}).attr("x",function(x){return v(x.start)+p}).attr("y",a.gridLineStartPadding).attr("width",function(x){const _=x.end.add(1,"day");return v(_)-v(x.start)}).attr("height",i-b-a.gridLineStartPadding).attr("transform-origin",function(x,_){return(v(x.start)+p+.5*(v(x.end)-v(x.start))).toString()+"px "+(_*m+.5*i).toString()+"px"}).attr("class","exclude-range")}function nt(m,b,p,g){let i=Zt(v).tickSize(-g+b+a.gridLineStartPadding).tickFormat(Lt(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(d!==null){const c=d[1],k=d[2],e=r.db.getWeekday()||a.weekday;switch(k){case"millisecond":i.ticks(Rt.every(c));break;case"second":i.ticks(Ot.every(c));break;case"minute":i.ticks(Pt.every(c));break;case"hour":i.ticks(Vt.every(c));break;case"day":i.ticks(Mt.every(c));break;case"week":i.ticks(Nt[e].every(c));break;case"month":i.ticks(Ft.every(c));break}}if(V.append("g").attr("class","grid").attr("transform","translate("+m+", "+(g-50)+")").call(i).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let c=$t(v).tickSize(-g+b+a.gridLineStartPadding).tickFormat(Lt(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(d!==null){const k=d[1],e=d[2],S=r.db.getWeekday()||a.weekday;switch(e){case"millisecond":c.ticks(Rt.every(k));break;case"second":c.ticks(Ot.every(k));break;case"minute":c.ticks(Pt.every(k));break;case"hour":c.ticks(Vt.every(k));break;case"day":c.ticks(Mt.every(k));break;case"week":c.ticks(Nt[S].every(k));break;case"month":c.ticks(Ft.every(k));break}}V.append("g").attr("class","grid").attr("transform","translate("+m+", "+b+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function rt(m,b){let p=0;const g=Object.keys(N).map(i=>[i,N[i]]);V.append("g").selectAll("text").data(g).enter().append(function(i){const u=i[0].split(ue.lineBreakRegex),d=-(u.length-1)/2,c=O.createElementNS("http://www.w3.org/2000/svg","text");c.setAttribute("dy",d+"em");for(const[k,e]of u.entries()){const S=O.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),k>0&&S.setAttribute("dy","1em"),S.textContent=e,c.appendChild(S)}return c}).attr("x",10).attr("y",function(i,u){if(u>0)for(let d=0;d<u;d++)return p+=g[u-1][1],i[1]*m/2+p*m+b;else return i[1]*m/2+b}).attr("font-size",a.sectionFontSize).attr("class",function(i){for(const[u,d]of I.entries())if(i[0]===d)return"sectionTitle sectionTitle"+u%a.numberSectionStyles;return"sectionTitle"})}function at(m,b,p,g){const i=r.db.getTodayMarker();if(i==="off")return;const u=V.append("g").attr("class","today"),d=new Date,c=u.append("line");c.attr("x1",v(d)+m).attr("x2",v(d)+m).attr("y1",a.titleTopMargin).attr("y2",g-a.titleTopMargin).attr("class","today"),i!==""&&c.attr("style",i.replace(/,/g,";"))}function ct(m){const b={},p=[];for(let g=0,i=m.length;g<i;++g)Object.prototype.hasOwnProperty.call(b,m[g])||(b[m[g]]=!0,p.push(m[g]));return p}},us={setConf:cs,draw:ls},ds=t=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|
9
9
|
}
|
|
@@ -254,4 +254,4 @@ Expecting `+lt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":yt="Parse error
|
|
|
254
254
|
fill: ${t.titleColor||t.textColor};
|
|
255
255
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|
256
256
|
}
|
|
257
|
-
`,fs=ds,
|
|
257
|
+
`,fs=ds,Es={parser:Ce,db:as,renderer:us,styles:fs};export{Es as diagram};
|
package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Cm2jOWpZ.js → ganttDiagram-EL5Y4UJY-BNa2jv7L.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{g as ne,s as oe,p as ce,o as le,a as ue,b as de,_ as l,c as Z,d as fe,l as G,j as he,n as ke,q as me,x as ye}from"./mermaid.core-
|
|
1
|
+
import{g as ne,s as oe,p as ce,o as le,a as ue,b as de,_ as l,c as Z,d as fe,l as G,j as he,n as ke,q as me,x as ye}from"./mermaid.core-DRZOVBT3.js";import{s as mt,d as L}from"./index-Dz7T8mqj.js";import{a as ge,b as pe,d as ve,c as Te,e as xe}from"./advancedFormat-CshdkaWz.js";import{d as be}from"./duration-CGcbnb9B.js";import{t as we,m as _e,a as Ce,l as De,b as Yt,c as Bt,d as Ee,e as Se,f as Ie,g as Ae,h as Fe,i as Le,j as Me,k as zt,n as qt,o as jt,s as Xt,p as Ut}from"./d3-scale-B-wnA6MO.js";import{h as Oe}from"./d3-interpolate-BVJucgkN.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-color-Jd8hXty2.js";var _t=(function(){var t=l(function(y,n,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=n);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],a=[1,27],r=[1,28],h=[1,29],m=[1,30],C=[1,31],M=[1,32],z=[1,33],S=[1,34],Y=[1,9],O=[1,10],N=[1,11],X=[1,12],W=[1,13],_=[1,14],it=[1,15],at=[1,16],rt=[1,19],nt=[1,20],K=[1,21],ot=[1,22],ct=[1,23],lt=[1,25],ut=[1,35],k={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(n,d,f,u,b,e,x){var c=e.length-1;switch(b){case 1:return e[c-1];case 2:this.$=[];break;case 3:e[c-1].push(e[c]),this.$=e[c-1];break;case 4:case 5:this.$=e[c];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(e[c].substr(11)),this.$=e[c].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=e[c].substr(18);break;case 19:u.TopAxis(),this.$=e[c].substr(8);break;case 20:u.setAxisFormat(e[c].substr(11)),this.$=e[c].substr(11);break;case 21:u.setTickInterval(e[c].substr(13)),this.$=e[c].substr(13);break;case 22:u.setExcludes(e[c].substr(9)),this.$=e[c].substr(9);break;case 23:u.setIncludes(e[c].substr(9)),this.$=e[c].substr(9);break;case 24:u.setTodayMarker(e[c].substr(12)),this.$=e[c].substr(12);break;case 27:u.setDiagramTitle(e[c].substr(6)),this.$=e[c].substr(6);break;case 28:this.$=e[c].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=e[c].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(e[c].substr(8)),this.$=e[c].substr(8);break;case 33:u.addTask(e[c-1],e[c]),this.$="task";break;case 34:this.$=e[c-1],u.setClickEvent(e[c-1],e[c],null);break;case 35:this.$=e[c-2],u.setClickEvent(e[c-2],e[c-1],e[c]);break;case 36:this.$=e[c-2],u.setClickEvent(e[c-2],e[c-1],null),u.setLink(e[c-2],e[c]);break;case 37:this.$=e[c-3],u.setClickEvent(e[c-3],e[c-2],e[c-1]),u.setLink(e[c-3],e[c]);break;case 38:this.$=e[c-2],u.setClickEvent(e[c-2],e[c],null),u.setLink(e[c-2],e[c-1]);break;case 39:this.$=e[c-3],u.setClickEvent(e[c-3],e[c-1],e[c]),u.setLink(e[c-3],e[c-2]);break;case 40:this.$=e[c-1],u.setLink(e[c-1],e[c]);break;case 41:case 47:this.$=e[c-1]+" "+e[c];break;case 42:case 43:case 45:this.$=e[c-2]+" "+e[c-1]+" "+e[c];break;case 44:case 46:this.$=e[c-3]+" "+e[c-2]+" "+e[c-1]+" "+e[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:r,15:h,16:m,17:C,18:M,19:18,20:z,21:S,22:Y,23:O,24:N,25:X,26:W,27:_,28:it,29:at,30:rt,31:nt,33:K,35:ot,36:ct,37:24,38:lt,40:ut},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:a,14:r,15:h,16:m,17:C,18:M,19:18,20:z,21:S,22:Y,23:O,24:N,25:X,26:W,27:_,28:it,29:at,30:rt,31:nt,33:K,35:ot,36:ct,37:24,38:lt,40:ut},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(function(n,d){if(d.recoverable)this.trace(n);else{var f=new Error(n);throw f.hash=d,f}},"parseError"),parse:l(function(n){var d=this,f=[0],u=[],b=[null],e=[],x=this.table,c="",F=0,o=0,g=2,p=1,D=e.slice.call(arguments,1),v=Object.create(this.lexer),I={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(I.yy[E]=this.yy[E]);v.setInput(n,I.yy),I.yy.lexer=v,I.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var dt=v.yylloc;e.push(dt);var Tt=v.options&&v.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(R){f.length=f.length-2*R,b.length=b.length-R,e.length=e.length-R}l(re,"popStack");function Pt(){var R;return R=u.pop()||v.lex()||p,typeof R!="number"&&(R instanceof Array&&(u=R,R=u.pop()),R=d.symbols_[R]||R),R}l(Pt,"lex");for(var V,U,P,xt,J={},ht,q,Nt,kt;;){if(U=f[f.length-1],this.defaultActions[U]?P=this.defaultActions[U]:((V===null||typeof V>"u")&&(V=Pt()),P=x[U]&&x[U][V]),typeof P>"u"||!P.length||!P[0]){var bt="";kt=[];for(ht in x[U])this.terminals_[ht]&&ht>g&&kt.push("'"+this.terminals_[ht]+"'");v.showPosition?bt="Parse error on line "+(F+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+kt.join(", ")+", got '"+(this.terminals_[V]||V)+"'":bt="Parse error on line "+(F+1)+": Unexpected "+(V==p?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(bt,{text:v.match,token:this.terminals_[V]||V,line:v.yylineno,loc:dt,expected:kt})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+V);switch(P[0]){case 1:f.push(V),b.push(v.yytext),e.push(v.yylloc),f.push(P[1]),V=null,o=v.yyleng,c=v.yytext,F=v.yylineno,dt=v.yylloc;break;case 2:if(q=this.productions_[P[1]][1],J.$=b[b.length-q],J._$={first_line:e[e.length-(q||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(q||1)].first_column,last_column:e[e.length-1].last_column},Tt&&(J._$.range=[e[e.length-(q||1)].range[0],e[e.length-1].range[1]]),xt=this.performAction.apply(J,[c,o,F,I.yy,P[1],b,e].concat(D)),typeof xt<"u")return xt;q&&(f=f.slice(0,-1*q*2),b=b.slice(0,-1*q),e=e.slice(0,-1*q)),f.push(this.productions_[P[1]][0]),b.push(J.$),e.push(J._$),Nt=x[f[f.length-2]][f[f.length-1]],f.push(Nt);break;case 3:return!0}}return!0},"parse")},w=(function(){var y={EOF:1,parseError:l(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:l(function(n,d){return this.yy=d||this.yy||{},this._input=n,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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var d=n.length,f=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var b=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),d=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+d+"^"},"showPosition"),test_match:l(function(n,d){var f,u,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var e in b)this[e]=b[e];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,d,f,u;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),e=0;e<b.length;e++)if(f=this._input.match(this.rules[b[e]]),f&&(!d||f[0].length>d[0].length)){if(d=f,u=e,this.options.backtrack_lexer){if(n=this.test_match(f,b[e]),n!==!1)return n;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(n=this.test_match(d,b[u]),n!==!1?n:!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:l(function(){var d=this.next();return d||this.lex()},"lex"),begin:l(function(d){this.conditionStack.push(d)},"begin"),popState:l(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:l(function(d){this.begin(d)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(d,f,u,b){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return y})();k.lexer=w;function T(){this.yy={}}return l(T,"Parser"),T.prototype=k,k.Parser=T,new T})();_t.parser=_t;var Ve=_t;L.extend(Ie);L.extend(Ae);L.extend(Fe);var Gt={friday:5,saturday:6},B="",St="",It=void 0,At="",tt=[],et=[],Ft=new Map,Lt=[],pt=[],it="",Mt="",Jt=["active","done","crit","milestone","vert"],Ot=[],Q="",ft=!1,Vt=!1,Rt="sunday",vt="saturday",Ct=0,Re=l(function(){Lt=[],pt=[],it="",Ot=[],yt=0,Et=void 0,gt=void 0,A=[],B="",St="",Mt="",It=void 0,At="",tt=[],et=[],ft=!1,Vt=!1,Ct=0,Ft=new Map,Q="",me(),Rt="sunday",vt="saturday"},"clear"),We=l(function(t){Q=t},"setDiagramId"),Pe=l(function(t){St=t},"setAxisFormat"),Ne=l(function(){return St},"getAxisFormat"),Ye=l(function(t){It=t},"setTickInterval"),Be=l(function(){return It},"getTickInterval"),ze=l(function(t){At=t},"setTodayMarker"),qe=l(function(){return At},"getTodayMarker"),je=l(function(t){B=t},"setDateFormat"),Xe=l(function(){ft=!0},"enableInclusiveEndDates"),Ue=l(function(){return ft},"endDatesAreInclusive"),Ge=l(function(){Vt=!0},"enableTopAxis"),He=l(function(){return Vt},"topAxisEnabled"),Ke=l(function(t){Mt=t},"setDisplayMode"),Je=l(function(){return Mt},"getDisplayMode"),Qe=l(function(){return B},"getDateFormat"),Qt=l((t,i)=>{const s=i.toLowerCase().split(/[\s,]+/).filter(r=>r!=="");return[...new Set([...t,...s])]},"mergeTokens"),Ze=l(function(t){tt=Qt(tt,t)},"setIncludes"),$e=l(function(){return tt},"getIncludes"),ti=l(function(t){et=Qt(et,t)},"setExcludes"),ei=l(function(){return et},"getExcludes"),ii=l(function(){return Ft},"getLinks"),si=l(function(t){it=t,Lt.push(t)},"addSection"),ri=l(function(){return Lt},"getSections"),ai=l(function(){let t=Ht();const i=10;let s=0;for(;!t&&s<i;)t=Ht(),s++;return pt=A,pt},"getTasks"),Zt=l(function(t,i,s,r){const a=t.format(i.trim()),h=t.format("YYYY-MM-DD");return r.includes(a)||r.includes(h)?!1:s.includes("weekends")&&(t.isoWeekday()===Gt[vt]||t.isoWeekday()===Gt[vt]+1)||s.includes(t.format("dddd").toLowerCase())?!0:s.includes(a)||s.includes(h)},"isInvalidDate"),ni=l(function(t){Rt=t},"setWeekday"),oi=l(function(){return Rt},"getWeekday"),ci=l(function(t){vt=t},"setWeekend"),$t=l(function(t,i,s,r){if(!s.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=L(t.startTime):a=L(t.startTime,i,!0),a=a.add(1,"d");let h;t.endTime instanceof Date?h=L(t.endTime):h=L(t.endTime,i,!0);const[m,C]=li(a,h,i,s,r);t.endTime=m.toDate(),t.renderEndTime=C},"checkTaskDates"),li=l(function(t,i,s,r,a){let h=!1,m=null;const C=i.add(1e4,"d");for(;t<=i;){if(h||(m=i.toDate()),h=Zt(t,s,r,a),h&&(i=i.add(1,"d"),i>C))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[i,m]},"fixTaskDates"),Dt=l(function(t,i,s){if(s=s.trim(),l(C=>{const M=C.trim();return M==="x"||M==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(s))return new Date(Number(s));const h=/^after\s+(?<ids>[\d\w- ]+)/.exec(s);if(h!==null){let C=null;for(const z of h.groups.ids.split(" ")){let S=H(z);S!==void 0&&(!C||S.endTime>C.endTime)&&(C=S)}if(C)return C.endTime;const M=new Date;return M.setHours(0,0,0,0),M}let m=L(s,i.trim(),!0);if(m.isValid())return m.toDate();{G.debug("Invalid date:"+s),G.debug("With date format:"+i.trim());const C=new Date(s);if(C===void 0||isNaN(C.getTime())||C.getFullYear()<-1e4||C.getFullYear()>1e4)throw new Error("Invalid date:"+s);return C}},"getStartDate"),te=l(function(t){const i=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return i!==null?[Number.parseFloat(i[1]),i[2]]:[NaN,"ms"]},"parseDuration"),ee=l(function(t,i,s,r=!1){s=s.trim();const h=/^until\s+(?<ids>[\d\w- ]+)/.exec(s);if(h!==null){let S=null;for(const O of h.groups.ids.split(" ")){let N=H(O);N!==void 0&&(!S||N.startTime<S.startTime)&&(S=N)}if(S)return S.startTime;const Y=new Date;return Y.setHours(0,0,0,0),Y}let m=L(s,i.trim(),!0);if(m.isValid())return r&&(m=m.add(1,"d")),m.toDate();let C=L(t);const[M,z]=te(s);if(!Number.isNaN(M)){const S=C.add(M,z);S.isValid()&&(C=S)}return C.toDate()},"getEndDate"),yt=0,$=l(function(t){return t===void 0?(yt=yt+1,"task"+yt):t},"parseId"),ui=l(function(t,i){let s;i.substr(0,1)===":"?s=i.substr(1,i.length):s=i;const r=s.split(","),a={};Wt(r,a,Jt);for(let m=0;m<r.length;m++)r[m]=r[m].trim();let h="";switch(r.length){case 1:a.id=$(),a.startTime=t.endTime,h=r[0];break;case 2:a.id=$(),a.startTime=Dt(void 0,B,r[0]),h=r[1];break;case 3:a.id=$(r[0]),a.startTime=Dt(void 0,B,r[1]),h=r[2];break}return h&&(a.endTime=ee(a.startTime,B,h,ft),a.manualEndTime=L(h,"YYYY-MM-DD",!0).isValid(),$t(a,B,et,tt)),a},"compileData"),di=l(function(t,i){let s;i.substr(0,1)===":"?s=i.substr(1,i.length):s=i;const r=s.split(","),a={};Wt(r,a,Jt);for(let h=0;h<r.length;h++)r[h]=r[h].trim();switch(r.length){case 1:a.id=$(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:r[0]};break;case 2:a.id=$(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=$(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a},"parseData"),Et,gt,A=[],ie={},fi=l(function(t,i){const s={section:it,type:it,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:i},task:t,classes:[]},r=di(gt,i);s.raw.startTime=r.startTime,s.raw.endTime=r.endTime,s.id=r.id,s.prevTaskId=gt,s.active=r.active,s.done=r.done,s.crit=r.crit,s.milestone=r.milestone,s.vert=r.vert,s.vert?s.order=-1:(s.order=Ct,Ct++);const a=A.push(s);gt=s.id,ie[s.id]=a-1},"addTask"),H=l(function(t){const i=ie[t];return A[i]},"findTaskById"),hi=l(function(t,i){const s={section:it,type:it,description:t,task:t,classes:[]},r=ui(Et,i);s.startTime=r.startTime,s.endTime=r.endTime,s.id=r.id,s.active=r.active,s.done=r.done,s.crit=r.crit,s.milestone=r.milestone,s.vert=r.vert,Et=s,pt.push(s)},"addTaskOrg"),Ht=l(function(){const t=l(function(s){const r=A[s];let a="";switch(A[s].raw.startTime.type){case"prevTaskEnd":{const h=H(r.prevTaskId);r.startTime=h.endTime;break}case"getStartDate":a=Dt(void 0,B,A[s].raw.startTime.startData),a&&(A[s].startTime=a);break}return A[s].startTime&&(A[s].endTime=ee(A[s].startTime,B,A[s].raw.endTime.data,ft),A[s].endTime&&(A[s].processed=!0,A[s].manualEndTime=L(A[s].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$t(A[s],B,et,tt))),A[s].processed},"compileTask");let i=!0;for(const[s,r]of A.entries())t(s),i=i&&r.processed;return i},"compileTasks"),ki=l(function(t,i){let s=i;Z().securityLevel!=="loose"&&(s=ke.sanitizeUrl(i)),t.split(",").forEach(function(r){H(r)!==void 0&&(re(r,()=>{window.open(s,"_self")}),Ft.set(r,s))}),se(t,"clickable")},"setLink"),se=l(function(t,i){t.split(",").forEach(function(s){let r=H(s);r!==void 0&&r.classes.push(i)})},"setClass"),mi=l(function(t,i,s){if(Z().securityLevel!=="loose"||i===void 0)return;let r=[];if(typeof s=="string"){r=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<r.length;h++){let m=r[h].trim();m.startsWith('"')&&m.endsWith('"')&&(m=m.substr(1,m.length-2)),r[h]=m}}r.length===0&&r.push(t),H(t)!==void 0&&re(t,()=>{ye.runFunc(i,...r)})},"setClickFun"),re=l(function(t,i){Ot.push(function(){const s=Q?`${Q}-${t}`:t,r=document.querySelector(`[id="${s}"]`);r!==null&&r.addEventListener("click",function(){i()})},function(){const s=Q?`${Q}-${t}`:t,r=document.querySelector(`[id="${s}-text"]`);r!==null&&r.addEventListener("click",function(){i()})})},"pushFun"),yi=l(function(t,i,s){t.split(",").forEach(function(r){mi(r,i,s)}),se(t,"clickable")},"setClickEvent"),gi=l(function(t){Ot.forEach(function(i){i(t)})},"bindFunctions"),pi={getConfig:l(()=>Z().gantt,"getConfig"),clear:Re,setDateFormat:je,getDateFormat:Qe,enableInclusiveEndDates:Xe,endDatesAreInclusive:Ue,enableTopAxis:Ge,topAxisEnabled:He,setAxisFormat:Pe,getAxisFormat:Ne,setTickInterval:Ye,getTickInterval:Be,setTodayMarker:ze,getTodayMarker:qe,setAccTitle:de,getAccTitle:ue,setDiagramTitle:le,getDiagramTitle:ce,setDiagramId:We,setDisplayMode:Ke,getDisplayMode:Je,setAccDescription:oe,getAccDescription:ne,addSection:si,getSections:ri,getTasks:ai,addTask:fi,findTaskById:H,addTaskOrg:hi,setIncludes:Ze,getIncludes:$e,setExcludes:ti,getExcludes:ei,setClickEvent:yi,setLink:ki,getLinks:ii,bindFunctions:gi,parseDuration:te,isInvalidDate:Zt,setWeekday:ni,getWeekday:oi,setWeekend:ci};function Wt(t,i,s){let r=!0;for(;r;)r=!1,s.forEach(function(a){const h="^\\s*"+a+"\\s*$",m=new RegExp(h);t[0].match(m)&&(i[a]=!0,t.shift(1),r=!0)})}l(Wt,"getTaskTags");L.extend(Le);var vi=l(function(){G.debug("Something is calling, setConf, remove the call")},"setConf"),Kt={monday:Ee,tuesday:De,wednesday:Ce,thursday:_e,friday:we,saturday:be,sunday:xe},Ti=l((t,i)=>{let s=[...t].map(()=>-1/0),r=[...t].sort((h,m)=>h.startTime-m.startTime||h.order-m.order),a=0;for(const h of r)for(let m=0;m<s.length;m++)if(h.startTime>=s[m]){s[m]=h.endTime,h.order=m+i,m>a&&(a=m);break}return a},"getMaxIntersections"),j,wt=1e4,xi=l(function(t,i,s,r){const a=Z().gantt;r.db.setDiagramId(i);const h=Z().securityLevel;let m;h==="sandbox"&&(m=mt("#i"+i));const C=h==="sandbox"?mt(m.nodes()[0].contentDocument.body):mt("body"),M=h==="sandbox"?m.nodes()[0].contentDocument:document,z=M.getElementById(i);j=z.parentElement.offsetWidth,j===void 0&&(j=1200),a.useWidth!==void 0&&(j=a.useWidth);const S=r.db.getTasks(),Y=S.filter(k=>!k.vert);let O=[];for(const k of Y)O.push(k.type);O=ut(O);const N={};let X=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const k={};for(const T of Y)k[T.section]===void 0?k[T.section]=[T]:k[T.section].push(T);let w=0;for(const T of Object.keys(k)){const y=Ti(k[T],w)+1;w+=y,X+=y*(a.barHeight+a.barGap),N[T]=y}}else{X+=Y.length*(a.barHeight+a.barGap);for(const k of O)N[k]=Y.filter(w=>w.type===k).length}z.setAttribute("viewBox","0 0 "+j+" "+X);const W=C.select(`[id="${i}"]`),_=ge().domain([pe(S,function(k){return k.startTime}),ve(S,function(k){return k.endTime})]).rangeRound([0,j-a.leftPadding-a.rightPadding]);function st(k,w){const T=k.startTime,y=w.startTime;let n=0;return T>y?n=1:T<y&&(n=-1),n}l(st,"taskCompare"),S.sort(st),rt(S,j,X),fe(W,X,j,a.useMaxWidth),W.append("text").text(r.db.getDiagramTitle()).attr("x",j/2).attr("y",a.titleTopMargin).attr("class","titleText");function rt(k,w,T){const y=a.barHeight,n=y+a.barGap,d=a.topPadding,f=a.leftPadding,u=Me().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Oe);nt(n,d,f,w,T,k,r.db.getExcludes(),r.db.getIncludes()),ot(f,d,w,T),at(k,n,d,f,y,u,w),ct(n,d),lt(f,d,w,T)}l(rt,"makeGantt");function at(k,w,T,y,n,d,f){k.sort((o,g)=>o.vert===g.vert?0:o.vert?1:-1);const u=k.filter(o=>!o.vert),e=[...new Set(u.map(o=>o.order))].map(o=>u.find(g=>g.order===o));W.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",function(o,g){return g=o.order,g*w+T-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",w).attr("class",function(o){for(const[g,p]of O.entries())if(o.type===p)return"section section"+g%a.numberSectionStyles;return"section section0"}).enter();const x=W.append("g").selectAll("rect").data(k).enter(),c=r.db.getLinks();if(x.append("rect").attr("id",function(o){return i+"-"+o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?_(o.startTime)+y+.5*(_(o.endTime)-_(o.startTime))-.5*n:_(o.startTime)+y}).attr("y",function(o,g){return g=o.order,o.vert?a.gridLineStartPadding:g*w+T}).attr("width",function(o){return o.milestone?n:o.vert?.08*n:_(o.renderEndTime||o.endTime)-_(o.startTime)}).attr("height",function(o){return o.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:n}).attr("transform-origin",function(o,g){return g=o.order,(_(o.startTime)+y+.5*(_(o.endTime)-_(o.startTime))).toString()+"px "+(g*w+T+.5*n).toString()+"px"}).attr("class",function(o){const g="task";let p="";o.classes.length>0&&(p=o.classes.join(" "));let D=0;for(const[I,E]of O.entries())o.type===E&&(D=I%a.numberSectionStyles);let v="";return o.active?o.crit?v+=" activeCrit":v=" active":o.done?o.crit?v=" doneCrit":v=" done":o.crit&&(v+=" crit"),v.length===0&&(v=" task"),o.milestone&&(v=" milestone "+v),o.vert&&(v=" vert "+v),v+=D,v+=" "+p,g+v}),x.append("text").attr("id",function(o){return i+"-"+o.id+"-text"}).text(function(o){return o.task}).attr("font-size",a.fontSize).attr("x",function(o){let g=_(o.startTime),p=_(o.renderEndTime||o.endTime);if(o.milestone&&(g+=.5*(_(o.endTime)-_(o.startTime))-.5*n,p=g+n),o.vert)return _(o.startTime)+y;const D=this.getBBox().width;return D>p-g?p+D+1.5*a.leftPadding>f?g+y-5:p+y+5:(p-g)/2+g+y}).attr("y",function(o,g){return o.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(g=o.order,g*w+a.barHeight/2+(a.fontSize/2-2)+T)}).attr("text-height",n).attr("class",function(o){const g=_(o.startTime);let p=_(o.endTime);o.milestone&&(p=g+n);const D=this.getBBox().width;let v="";o.classes.length>0&&(v=o.classes.join(" "));let I=0;for(const[dt,Tt]of O.entries())o.type===Tt&&(I=dt%a.numberSectionStyles);let E="";return o.active&&(o.crit?E="activeCritText"+I:E="activeText"+I),o.done?o.crit?E=E+" doneCritText"+I:E=E+" doneText"+I:o.crit&&(E=E+" critText"+I),o.milestone&&(E+=" milestoneText"),o.vert&&(E+=" vertText"),D>p-g?p+D+1.5*a.leftPadding>f?v+" taskTextOutsideLeft taskTextOutside"+I+" "+E:v+" taskTextOutsideRight taskTextOutside"+I+" "+E+" width-"+D:v+" taskText taskText"+I+" "+E+" width-"+D}),Z().securityLevel==="sandbox"){let o;o=mt("#i"+i);const g=o.nodes()[0].contentDocument;x.filter(function(p){return c.has(p.id)}).each(function(p){var D=g.querySelector("#"+CSS.escape(i+"-"+p.id)),v=g.querySelector("#"+CSS.escape(i+"-"+p.id+"-text"));const I=D.parentNode;var E=g.createElement("a");E.setAttribute("xlink:href",c.get(p.id)),E.setAttribute("target","_top"),I.appendChild(E),E.appendChild(D),E.appendChild(v)})}}l(at,"drawRects");function nt(k,w,T,y,n,d,f,u){if(f.length===0&&u.length===0)return;let b,e;for(const{startTime:p,endTime:D}of d)(b===void 0||p<b)&&(b=p),(e===void 0||D>e)&&(e=D);if(!b||!e)return;if(L(e).diff(L(b),"year")>5){G.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const x=r.db.getDateFormat(),c=[];let F=null,o=L(b);for(;o.valueOf()<=e;)r.db.isInvalidDate(o,x,f,u)?F?F.end=o:F={start:o,end:o}:F&&(c.push(F),F=null),o=o.add(1,"d");W.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",p=>i+"-exclude-"+p.start.format("YYYY-MM-DD")).attr("x",p=>_(p.start.startOf("day"))+T).attr("y",a.gridLineStartPadding).attr("width",p=>_(p.end.endOf("day"))-_(p.start.startOf("day"))).attr("height",n-w-a.gridLineStartPadding).attr("transform-origin",function(p,D){return(_(p.start)+T+.5*(_(p.end)-_(p.start))).toString()+"px "+(D*k+.5*n).toString()+"px"}).attr("class","exclude-range")}l(nt,"drawExcludeDays");function K(k,w,T,y){if(T<=0||k>w)return 1/0;const n=w-k,d=L.duration({[y??"day"]:T}).asMilliseconds();return d<=0?1/0:Math.ceil(n/d)}l(K,"getEstimatedTickCount");function ot(k,w,T,y){const n=r.db.getDateFormat(),d=r.db.getAxisFormat();let f;d?f=d:n==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let u=Te(_).tickSize(-y+w+a.gridLineStartPadding).tickFormat(Yt(f));const e=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(e!==null){const x=parseInt(e[1],10);if(isNaN(x)||x<=0)G.warn(`Invalid tick interval value: "${e[1]}". Skipping custom tick interval.`);else{const c=e[2],F=r.db.getWeekday()||a.weekday,o=_.domain(),g=o[0],p=o[1],D=K(g,p,x,c);if(D>wt)G.warn(`The tick interval "${x}${c}" would generate ${D} ticks, which exceeds the maximum allowed (${wt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(c){case"millisecond":u.ticks(Ut.every(x));break;case"second":u.ticks(Xt.every(x));break;case"minute":u.ticks(jt.every(x));break;case"hour":u.ticks(qt.every(x));break;case"day":u.ticks(zt.every(x));break;case"week":u.ticks(Kt[F].every(x));break;case"month":u.ticks(Bt.every(x));break}}}if(W.append("g").attr("class","grid").attr("transform","translate("+k+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let x=Se(_).tickSize(-y+w+a.gridLineStartPadding).tickFormat(Yt(f));if(e!==null){const c=parseInt(e[1],10);if(isNaN(c)||c<=0)G.warn(`Invalid tick interval value: "${e[1]}". Skipping custom tick interval.`);else{const F=e[2],o=r.db.getWeekday()||a.weekday,g=_.domain(),p=g[0],D=g[1];if(K(p,D,c,F)<=wt)switch(F){case"millisecond":x.ticks(Ut.every(c));break;case"second":x.ticks(Xt.every(c));break;case"minute":x.ticks(jt.every(c));break;case"hour":x.ticks(qt.every(c));break;case"day":x.ticks(zt.every(c));break;case"week":x.ticks(Kt[o].every(c));break;case"month":x.ticks(Bt.every(c));break}}}W.append("g").attr("class","grid").attr("transform","translate("+k+", "+w+")").call(x).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}l(ot,"makeGrid");function ct(k,w){let T=0;const y=Object.keys(N).map(n=>[n,N[n]]);W.append("g").selectAll("text").data(y).enter().append(function(n){const d=n[0].split(he.lineBreakRegex),f=-(d.length-1)/2,u=M.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[b,e]of d.entries()){const x=M.createElementNS("http://www.w3.org/2000/svg","tspan");x.setAttribute("alignment-baseline","central"),x.setAttribute("x","10"),b>0&&x.setAttribute("dy","1em"),x.textContent=e,u.appendChild(x)}return u}).attr("x",10).attr("y",function(n,d){if(d>0)for(let f=0;f<d;f++)return T+=y[d-1][1],n[1]*k/2+T*k+w;else return n[1]*k/2+w}).attr("font-size",a.sectionFontSize).attr("class",function(n){for(const[d,f]of O.entries())if(n[0]===f)return"sectionTitle sectionTitle"+d%a.numberSectionStyles;return"sectionTitle"})}l(ct,"vertLabels");function lt(k,w,T,y){const n=r.db.getTodayMarker();if(n==="off")return;const d=W.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",_(f)+k).attr("x2",_(f)+k).attr("y1",a.titleTopMargin).attr("y2",y-a.titleTopMargin).attr("class","today"),n!==""&&u.attr("style",n.replace(/,/g,";"))}l(lt,"drawToday");function ut(k){const w={},T=[];for(let y=0,n=k.length;y<n;++y)Object.prototype.hasOwnProperty.call(w,k[y])||(w[k[y]]=!0,T.push(k[y]));return T}l(ut,"checkUnique")},"draw"),bi={setConf:vi,draw:xi},wi=l(t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var d=this.next();return d||this.lex()},"lex"),begin:l(function(d){this.conditionStack.push(d)},"begin"),popState:l(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:l(function(d){this.begin(d)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(d,f,u,b){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return y})();k.lexer=w;function T(){this.yy={}}return l(T,"Parser"),T.prototype=k,k.Parser=T,new T})();_t.parser=_t;var Ve=_t;L.extend(ve);L.extend(Te);L.extend(xe);var Gt={friday:5,saturday:6},B="",St="",It=void 0,At="",tt=[],et=[],Ft=new Map,Lt=[],pt=[],st="",Mt="",Jt=["active","done","crit","milestone","vert"],Ot=[],Q="",ft=!1,Vt=!1,Rt="sunday",vt="saturday",Ct=0,Re=l(function(){Lt=[],pt=[],st="",Ot=[],yt=0,Et=void 0,gt=void 0,A=[],B="",St="",Mt="",It=void 0,At="",tt=[],et=[],ft=!1,Vt=!1,Ct=0,Ft=new Map,Q="",me(),Rt="sunday",vt="saturday"},"clear"),We=l(function(t){Q=t},"setDiagramId"),Pe=l(function(t){St=t},"setAxisFormat"),Ne=l(function(){return St},"getAxisFormat"),Ye=l(function(t){It=t},"setTickInterval"),Be=l(function(){return It},"getTickInterval"),ze=l(function(t){At=t},"setTodayMarker"),qe=l(function(){return At},"getTodayMarker"),je=l(function(t){B=t},"setDateFormat"),Xe=l(function(){ft=!0},"enableInclusiveEndDates"),Ue=l(function(){return ft},"endDatesAreInclusive"),Ge=l(function(){Vt=!0},"enableTopAxis"),He=l(function(){return Vt},"topAxisEnabled"),Ke=l(function(t){Mt=t},"setDisplayMode"),Je=l(function(){return Mt},"getDisplayMode"),Qe=l(function(){return B},"getDateFormat"),Qt=l((t,s)=>{const i=s.toLowerCase().split(/[\s,]+/).filter(a=>a!=="");return[...new Set([...t,...i])]},"mergeTokens"),Ze=l(function(t){tt=Qt(tt,t)},"setIncludes"),$e=l(function(){return tt},"getIncludes"),ts=l(function(t){et=Qt(et,t)},"setExcludes"),es=l(function(){return et},"getExcludes"),ss=l(function(){return Ft},"getLinks"),is=l(function(t){st=t,Lt.push(t)},"addSection"),as=l(function(){return Lt},"getSections"),rs=l(function(){let t=Ht();const s=10;let i=0;for(;!t&&i<s;)t=Ht(),i++;return pt=A,pt},"getTasks"),Zt=l(function(t,s,i,a){const r=t.format(s.trim()),h=t.format("YYYY-MM-DD");return a.includes(r)||a.includes(h)?!1:i.includes("weekends")&&(t.isoWeekday()===Gt[vt]||t.isoWeekday()===Gt[vt]+1)||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(r)||i.includes(h)},"isInvalidDate"),ns=l(function(t){Rt=t},"setWeekday"),os=l(function(){return Rt},"getWeekday"),cs=l(function(t){vt=t},"setWeekend"),$t=l(function(t,s,i,a){if(!i.length||t.manualEndTime)return;let r;t.startTime instanceof Date?r=L(t.startTime):r=L(t.startTime,s,!0),r=r.add(1,"d");let h;t.endTime instanceof Date?h=L(t.endTime):h=L(t.endTime,s,!0);const[m,C]=ls(r,h,s,i,a);t.endTime=m.toDate(),t.renderEndTime=C},"checkTaskDates"),ls=l(function(t,s,i,a,r){let h=!1,m=null;const C=s.add(1e4,"d");for(;t<=s;){if(h||(m=s.toDate()),h=Zt(t,i,a,r),h&&(s=s.add(1,"d"),s>C))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,m]},"fixTaskDates"),Dt=l(function(t,s,i){if(i=i.trim(),l(C=>{const M=C.trim();return M==="x"||M==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(i))return new Date(Number(i));const h=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(h!==null){let C=null;for(const z of h.groups.ids.split(" ")){let S=H(z);S!==void 0&&(!C||S.endTime>C.endTime)&&(C=S)}if(C)return C.endTime;const M=new Date;return M.setHours(0,0,0,0),M}let m=L(i,s.trim(),!0);if(m.isValid())return m.toDate();{G.debug("Invalid date:"+i),G.debug("With date format:"+s.trim());const C=new Date(i);if(C===void 0||isNaN(C.getTime())||C.getFullYear()<-1e4||C.getFullYear()>1e4)throw new Error("Invalid date:"+i);return C}},"getStartDate"),te=l(function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),ee=l(function(t,s,i,a=!1){i=i.trim();const h=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(h!==null){let S=null;for(const O of h.groups.ids.split(" ")){let N=H(O);N!==void 0&&(!S||N.startTime<S.startTime)&&(S=N)}if(S)return S.startTime;const Y=new Date;return Y.setHours(0,0,0,0),Y}let m=L(i,s.trim(),!0);if(m.isValid())return a&&(m=m.add(1,"d")),m.toDate();let C=L(t);const[M,z]=te(i);if(!Number.isNaN(M)){const S=C.add(M,z);S.isValid()&&(C=S)}return C.toDate()},"getEndDate"),yt=0,$=l(function(t){return t===void 0?(yt=yt+1,"task"+yt):t},"parseId"),us=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const a=i.split(","),r={};Wt(a,r,Jt);for(let m=0;m<a.length;m++)a[m]=a[m].trim();let h="";switch(a.length){case 1:r.id=$(),r.startTime=t.endTime,h=a[0];break;case 2:r.id=$(),r.startTime=Dt(void 0,B,a[0]),h=a[1];break;case 3:r.id=$(a[0]),r.startTime=Dt(void 0,B,a[1]),h=a[2];break}return h&&(r.endTime=ee(r.startTime,B,h,ft),r.manualEndTime=L(h,"YYYY-MM-DD",!0).isValid(),$t(r,B,et,tt)),r},"compileData"),ds=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const a=i.split(","),r={};Wt(a,r,Jt);for(let h=0;h<a.length;h++)a[h]=a[h].trim();switch(a.length){case 1:r.id=$(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:a[0]};break;case 2:r.id=$(),r.startTime={type:"getStartDate",startData:a[0]},r.endTime={data:a[1]};break;case 3:r.id=$(a[0]),r.startTime={type:"getStartDate",startData:a[1]},r.endTime={data:a[2]};break}return r},"parseData"),Et,gt,A=[],se={},fs=l(function(t,s){const i={section:st,type:st,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},a=ds(gt,s);i.raw.startTime=a.startTime,i.raw.endTime=a.endTime,i.id=a.id,i.prevTaskId=gt,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,i.vert?i.order=-1:(i.order=Ct,Ct++);const r=A.push(i);gt=i.id,se[i.id]=r-1},"addTask"),H=l(function(t){const s=se[t];return A[s]},"findTaskById"),hs=l(function(t,s){const i={section:st,type:st,description:t,task:t,classes:[]},a=us(Et,s);i.startTime=a.startTime,i.endTime=a.endTime,i.id=a.id,i.active=a.active,i.done=a.done,i.crit=a.crit,i.milestone=a.milestone,i.vert=a.vert,Et=i,pt.push(i)},"addTaskOrg"),Ht=l(function(){const t=l(function(i){const a=A[i];let r="";switch(A[i].raw.startTime.type){case"prevTaskEnd":{const h=H(a.prevTaskId);a.startTime=h.endTime;break}case"getStartDate":r=Dt(void 0,B,A[i].raw.startTime.startData),r&&(A[i].startTime=r);break}return A[i].startTime&&(A[i].endTime=ee(A[i].startTime,B,A[i].raw.endTime.data,ft),A[i].endTime&&(A[i].processed=!0,A[i].manualEndTime=L(A[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$t(A[i],B,et,tt))),A[i].processed},"compileTask");let s=!0;for(const[i,a]of A.entries())t(i),s=s&&a.processed;return s},"compileTasks"),ks=l(function(t,s){let i=s;Z().securityLevel!=="loose"&&(i=ke.sanitizeUrl(s)),t.split(",").forEach(function(a){H(a)!==void 0&&(ae(a,()=>{window.open(i,"_self")}),Ft.set(a,i))}),ie(t,"clickable")},"setLink"),ie=l(function(t,s){t.split(",").forEach(function(i){let a=H(i);a!==void 0&&a.classes.push(s)})},"setClass"),ms=l(function(t,s,i){if(Z().securityLevel!=="loose"||s===void 0)return;let a=[];if(typeof i=="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<a.length;h++){let m=a[h].trim();m.startsWith('"')&&m.endsWith('"')&&(m=m.substr(1,m.length-2)),a[h]=m}}a.length===0&&a.push(t),H(t)!==void 0&&ae(t,()=>{ye.runFunc(s,...a)})},"setClickFun"),ae=l(function(t,s){Ot.push(function(){const i=Q?`${Q}-${t}`:t,a=document.querySelector(`[id="${i}"]`);a!==null&&a.addEventListener("click",function(){s()})},function(){const i=Q?`${Q}-${t}`:t,a=document.querySelector(`[id="${i}-text"]`);a!==null&&a.addEventListener("click",function(){s()})})},"pushFun"),ys=l(function(t,s,i){t.split(",").forEach(function(a){ms(a,s,i)}),ie(t,"clickable")},"setClickEvent"),gs=l(function(t){Ot.forEach(function(s){s(t)})},"bindFunctions"),ps={getConfig:l(()=>Z().gantt,"getConfig"),clear:Re,setDateFormat:je,getDateFormat:Qe,enableInclusiveEndDates:Xe,endDatesAreInclusive:Ue,enableTopAxis:Ge,topAxisEnabled:He,setAxisFormat:Pe,getAxisFormat:Ne,setTickInterval:Ye,getTickInterval:Be,setTodayMarker:ze,getTodayMarker:qe,setAccTitle:de,getAccTitle:ue,setDiagramTitle:le,getDiagramTitle:ce,setDiagramId:We,setDisplayMode:Ke,getDisplayMode:Je,setAccDescription:oe,getAccDescription:ne,addSection:is,getSections:as,getTasks:rs,addTask:fs,findTaskById:H,addTaskOrg:hs,setIncludes:Ze,getIncludes:$e,setExcludes:ts,getExcludes:es,setClickEvent:ys,setLink:ks,getLinks:ss,bindFunctions:gs,parseDuration:te,isInvalidDate:Zt,setWeekday:ns,getWeekday:os,setWeekend:cs};function Wt(t,s,i){let a=!0;for(;a;)a=!1,i.forEach(function(r){const h="^\\s*"+r+"\\s*$",m=new RegExp(h);t[0].match(m)&&(s[r]=!0,t.shift(1),a=!0)})}l(Wt,"getTaskTags");L.extend(be);var vs=l(function(){G.debug("Something is calling, setConf, remove the call")},"setConf"),Kt={monday:Me,tuesday:Le,wednesday:Fe,thursday:Ae,friday:Ie,saturday:Se,sunday:Ee},Ts=l((t,s)=>{let i=[...t].map(()=>-1/0),a=[...t].sort((h,m)=>h.startTime-m.startTime||h.order-m.order),r=0;for(const h of a)for(let m=0;m<i.length;m++)if(h.startTime>=i[m]){i[m]=h.endTime,h.order=m+s,m>r&&(r=m);break}return r},"getMaxIntersections"),j,wt=1e4,xs=l(function(t,s,i,a){const r=Z().gantt;a.db.setDiagramId(s);const h=Z().securityLevel;let m;h==="sandbox"&&(m=mt("#i"+s));const C=h==="sandbox"?mt(m.nodes()[0].contentDocument.body):mt("body"),M=h==="sandbox"?m.nodes()[0].contentDocument:document,z=M.getElementById(s);j=z.parentElement.offsetWidth,j===void 0&&(j=1200),r.useWidth!==void 0&&(j=r.useWidth);const S=a.db.getTasks(),Y=S.filter(k=>!k.vert);let O=[];for(const k of Y)O.push(k.type);O=ut(O);const N={};let X=2*r.topPadding;if(a.db.getDisplayMode()==="compact"||r.displayMode==="compact"){const k={};for(const T of Y)k[T.section]===void 0?k[T.section]=[T]:k[T.section].push(T);let w=0;for(const T of Object.keys(k)){const y=Ts(k[T],w)+1;w+=y,X+=y*(r.barHeight+r.barGap),N[T]=y}}else{X+=Y.length*(r.barHeight+r.barGap);for(const k of O)N[k]=Y.filter(w=>w.type===k).length}z.setAttribute("viewBox","0 0 "+j+" "+X);const W=C.select(`[id="${s}"]`),_=we().domain([_e(S,function(k){return k.startTime}),Ce(S,function(k){return k.endTime})]).rangeRound([0,j-r.leftPadding-r.rightPadding]);function it(k,w){const T=k.startTime,y=w.startTime;let n=0;return T>y?n=1:T<y&&(n=-1),n}l(it,"taskCompare"),S.sort(it),at(S,j,X),fe(W,X,j,r.useMaxWidth),W.append("text").text(a.db.getDiagramTitle()).attr("x",j/2).attr("y",r.titleTopMargin).attr("class","titleText");function at(k,w,T){const y=r.barHeight,n=y+r.barGap,d=r.topPadding,f=r.leftPadding,u=De().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Oe);nt(n,d,f,w,T,k,a.db.getExcludes(),a.db.getIncludes()),ot(f,d,w,T),rt(k,n,d,f,y,u,w),ct(n,d),lt(f,d,w,T)}l(at,"makeGantt");function rt(k,w,T,y,n,d,f){k.sort((o,g)=>o.vert===g.vert?0:o.vert?1:-1);const u=k.filter(o=>!o.vert),e=[...new Set(u.map(o=>o.order))].map(o=>u.find(g=>g.order===o));W.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",function(o,g){return g=o.order,g*w+T-2}).attr("width",function(){return f-r.rightPadding/2}).attr("height",w).attr("class",function(o){for(const[g,p]of O.entries())if(o.type===p)return"section section"+g%r.numberSectionStyles;return"section section0"}).enter();const x=W.append("g").selectAll("rect").data(k).enter(),c=a.db.getLinks();if(x.append("rect").attr("id",function(o){return s+"-"+o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?_(o.startTime)+y+.5*(_(o.endTime)-_(o.startTime))-.5*n:_(o.startTime)+y}).attr("y",function(o,g){return g=o.order,o.vert?r.gridLineStartPadding:g*w+T}).attr("width",function(o){return o.milestone?n:o.vert?.08*n:_(o.renderEndTime||o.endTime)-_(o.startTime)}).attr("height",function(o){return o.vert?u.length*(r.barHeight+r.barGap)+r.barHeight*2:n}).attr("transform-origin",function(o,g){return g=o.order,(_(o.startTime)+y+.5*(_(o.endTime)-_(o.startTime))).toString()+"px "+(g*w+T+.5*n).toString()+"px"}).attr("class",function(o){const g="task";let p="";o.classes.length>0&&(p=o.classes.join(" "));let D=0;for(const[I,E]of O.entries())o.type===E&&(D=I%r.numberSectionStyles);let v="";return o.active?o.crit?v+=" activeCrit":v=" active":o.done?o.crit?v=" doneCrit":v=" done":o.crit&&(v+=" crit"),v.length===0&&(v=" task"),o.milestone&&(v=" milestone "+v),o.vert&&(v=" vert "+v),v+=D,v+=" "+p,g+v}),x.append("text").attr("id",function(o){return s+"-"+o.id+"-text"}).text(function(o){return o.task}).attr("font-size",r.fontSize).attr("x",function(o){let g=_(o.startTime),p=_(o.renderEndTime||o.endTime);if(o.milestone&&(g+=.5*(_(o.endTime)-_(o.startTime))-.5*n,p=g+n),o.vert)return _(o.startTime)+y;const D=this.getBBox().width;return D>p-g?p+D+1.5*r.leftPadding>f?g+y-5:p+y+5:(p-g)/2+g+y}).attr("y",function(o,g){return o.vert?r.gridLineStartPadding+u.length*(r.barHeight+r.barGap)+60:(g=o.order,g*w+r.barHeight/2+(r.fontSize/2-2)+T)}).attr("text-height",n).attr("class",function(o){const g=_(o.startTime);let p=_(o.endTime);o.milestone&&(p=g+n);const D=this.getBBox().width;let v="";o.classes.length>0&&(v=o.classes.join(" "));let I=0;for(const[dt,Tt]of O.entries())o.type===Tt&&(I=dt%r.numberSectionStyles);let E="";return o.active&&(o.crit?E="activeCritText"+I:E="activeText"+I),o.done?o.crit?E=E+" doneCritText"+I:E=E+" doneText"+I:o.crit&&(E=E+" critText"+I),o.milestone&&(E+=" milestoneText"),o.vert&&(E+=" vertText"),D>p-g?p+D+1.5*r.leftPadding>f?v+" taskTextOutsideLeft taskTextOutside"+I+" "+E:v+" taskTextOutsideRight taskTextOutside"+I+" "+E+" width-"+D:v+" taskText taskText"+I+" "+E+" width-"+D}),Z().securityLevel==="sandbox"){let o;o=mt("#i"+s);const g=o.nodes()[0].contentDocument;x.filter(function(p){return c.has(p.id)}).each(function(p){var D=g.querySelector("#"+CSS.escape(s+"-"+p.id)),v=g.querySelector("#"+CSS.escape(s+"-"+p.id+"-text"));const I=D.parentNode;var E=g.createElement("a");E.setAttribute("xlink:href",c.get(p.id)),E.setAttribute("target","_top"),I.appendChild(E),E.appendChild(D),E.appendChild(v)})}}l(rt,"drawRects");function nt(k,w,T,y,n,d,f,u){if(f.length===0&&u.length===0)return;let b,e;for(const{startTime:p,endTime:D}of d)(b===void 0||p<b)&&(b=p),(e===void 0||D>e)&&(e=D);if(!b||!e)return;if(L(e).diff(L(b),"year")>5){G.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const x=a.db.getDateFormat(),c=[];let F=null,o=L(b);for(;o.valueOf()<=e;)a.db.isInvalidDate(o,x,f,u)?F?F.end=o:F={start:o,end:o}:F&&(c.push(F),F=null),o=o.add(1,"d");W.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",p=>s+"-exclude-"+p.start.format("YYYY-MM-DD")).attr("x",p=>_(p.start.startOf("day"))+T).attr("y",r.gridLineStartPadding).attr("width",p=>_(p.end.endOf("day"))-_(p.start.startOf("day"))).attr("height",n-w-r.gridLineStartPadding).attr("transform-origin",function(p,D){return(_(p.start)+T+.5*(_(p.end)-_(p.start))).toString()+"px "+(D*k+.5*n).toString()+"px"}).attr("class","exclude-range")}l(nt,"drawExcludeDays");function K(k,w,T,y){if(T<=0||k>w)return 1/0;const n=w-k,d=L.duration({[y??"day"]:T}).asMilliseconds();return d<=0?1/0:Math.ceil(n/d)}l(K,"getEstimatedTickCount");function ot(k,w,T,y){const n=a.db.getDateFormat(),d=a.db.getAxisFormat();let f;d?f=d:n==="D"?f="%d":f=r.axisFormat??"%Y-%m-%d";let u=ge(_).tickSize(-y+w+r.gridLineStartPadding).tickFormat(Yt(f));const e=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||r.tickInterval);if(e!==null){const x=parseInt(e[1],10);if(isNaN(x)||x<=0)G.warn(`Invalid tick interval value: "${e[1]}". Skipping custom tick interval.`);else{const c=e[2],F=a.db.getWeekday()||r.weekday,o=_.domain(),g=o[0],p=o[1],D=K(g,p,x,c);if(D>wt)G.warn(`The tick interval "${x}${c}" would generate ${D} ticks, which exceeds the maximum allowed (${wt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(c){case"millisecond":u.ticks(Ut.every(x));break;case"second":u.ticks(Xt.every(x));break;case"minute":u.ticks(jt.every(x));break;case"hour":u.ticks(qt.every(x));break;case"day":u.ticks(zt.every(x));break;case"week":u.ticks(Kt[F].every(x));break;case"month":u.ticks(Bt.every(x));break}}}if(W.append("g").attr("class","grid").attr("transform","translate("+k+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||r.topAxis){let x=pe(_).tickSize(-y+w+r.gridLineStartPadding).tickFormat(Yt(f));if(e!==null){const c=parseInt(e[1],10);if(isNaN(c)||c<=0)G.warn(`Invalid tick interval value: "${e[1]}". Skipping custom tick interval.`);else{const F=e[2],o=a.db.getWeekday()||r.weekday,g=_.domain(),p=g[0],D=g[1];if(K(p,D,c,F)<=wt)switch(F){case"millisecond":x.ticks(Ut.every(c));break;case"second":x.ticks(Xt.every(c));break;case"minute":x.ticks(jt.every(c));break;case"hour":x.ticks(qt.every(c));break;case"day":x.ticks(zt.every(c));break;case"week":x.ticks(Kt[o].every(c));break;case"month":x.ticks(Bt.every(c));break}}}W.append("g").attr("class","grid").attr("transform","translate("+k+", "+w+")").call(x).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}l(ot,"makeGrid");function ct(k,w){let T=0;const y=Object.keys(N).map(n=>[n,N[n]]);W.append("g").selectAll("text").data(y).enter().append(function(n){const d=n[0].split(he.lineBreakRegex),f=-(d.length-1)/2,u=M.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[b,e]of d.entries()){const x=M.createElementNS("http://www.w3.org/2000/svg","tspan");x.setAttribute("alignment-baseline","central"),x.setAttribute("x","10"),b>0&&x.setAttribute("dy","1em"),x.textContent=e,u.appendChild(x)}return u}).attr("x",10).attr("y",function(n,d){if(d>0)for(let f=0;f<d;f++)return T+=y[d-1][1],n[1]*k/2+T*k+w;else return n[1]*k/2+w}).attr("font-size",r.sectionFontSize).attr("class",function(n){for(const[d,f]of O.entries())if(n[0]===f)return"sectionTitle sectionTitle"+d%r.numberSectionStyles;return"sectionTitle"})}l(ct,"vertLabels");function lt(k,w,T,y){const n=a.db.getTodayMarker();if(n==="off")return;const d=W.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",_(f)+k).attr("x2",_(f)+k).attr("y1",r.titleTopMargin).attr("y2",y-r.titleTopMargin).attr("class","today"),n!==""&&u.attr("style",n.replace(/,/g,";"))}l(lt,"drawToday");function ut(k){const w={},T=[];for(let y=0,n=k.length;y<n;++y)Object.prototype.hasOwnProperty.call(w,k[y])||(w[k[y]]=!0,T.push(k[y]));return T}l(ut,"checkUnique")},"draw"),bs={setConf:vs,draw:xs},ws=l(t=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${t.fontFamily};
|
|
9
9
|
}
|
|
@@ -289,4 +289,4 @@ Expecting `+kt.join(", ")+", got '"+(this.terminals_[V]||V)+"'":bt="Parse error
|
|
|
289
289
|
fill: ${t.titleColor||t.textColor};
|
|
290
290
|
font-family: ${t.fontFamily};
|
|
291
291
|
}
|
|
292
|
-
`,"getStyles"),
|
|
292
|
+
`,"getStyles"),_s=ws,Ns={parser:Ve,db:ps,renderer:bs,styles:_s};export{Ns as diagram};
|