@sme.up/ketchup2 2.7.0 → 2.8.1
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/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/graphlib-CkkG5MuS.cjs +0 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/rough.esm-r0QOSzHM.cjs +0 -1
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/v4-Dyp-SQ1c.cjs +0 -1
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
const e=require("./src-DEmZ9bFr.cjs"),t=require("./chunk-CSCIHK7Q-BAdl6GW-.cjs"),n=require("./linear-1lpO_WlJ.cjs"),r=require("./init-07zIhv_j.cjs"),i=require("./dist-D8RD2QWc.cjs"),a=require("./chunk-5ZQYHXKU-DMrStm4M.cjs");function o(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function s(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function c(e){return e}var l=1,u=2,d=3,f=4,p=1e-6;function m(e){return`translate(`+e+`,0)`}function h(e){return`translate(0,`+e+`)`}function g(e){return t=>+e(t)}function _(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function v(){return!this.__axis}function y(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,y=typeof window<`u`&&window.devicePixelRatio>1?0:.5,b=e===l||e===f?-1:1,x=e===f||e===u?`x`:`y`,S=e===l||e===d?m:h;function C(m){var h=r??(t.ticks?t.ticks.apply(t,n):t.domain()),C=i??(t.tickFormat?t.tickFormat.apply(t,n):c),w=Math.max(a,0)+s,T=t.range(),E=+T[0]+y,D=+T[T.length-1]+y,O=(t.bandwidth?_:g)(t.copy(),y),k=m.selection?m.selection():m,A=k.selectAll(`.domain`).data([null]),j=k.selectAll(`.tick`).data(h,t).order(),M=j.exit(),ee=j.enter().append(`g`).attr(`class`,`tick`),N=j.select(`line`),P=j.select(`text`);A=A.merge(A.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),j=j.merge(ee),N=N.merge(ee.append(`line`).attr(`stroke`,`currentColor`).attr(x+`2`,b*a)),P=P.merge(ee.append(`text`).attr(`fill`,`currentColor`).attr(x,b*w).attr(`dy`,e===l?`0em`:e===d?`0.71em`:`0.32em`)),m!==k&&(A=A.transition(m),j=j.transition(m),N=N.transition(m),P=P.transition(m),M=M.transition(m).attr(`opacity`,p).attr(`transform`,function(e){return isFinite(e=O(e))?S(e+y):this.getAttribute(`transform`)}),ee.attr(`opacity`,p).attr(`transform`,function(e){var t=this.parentNode.__axis;return S((t&&isFinite(t=t(e))?t:O(e))+y)})),M.remove(),A.attr(`d`,e===f||e===u?o?`M`+b*o+`,`+E+`H`+y+`V`+D+`H`+b*o:`M`+y+`,`+E+`V`+D:o?`M`+E+`,`+b*o+`V`+y+`H`+D+`V`+b*o:`M`+E+`,`+y+`H`+D),j.attr(`opacity`,1).attr(`transform`,function(e){return S(O(e)+y)}),N.attr(x+`2`,b*a),P.attr(x,b*w).text(C),k.filter(v).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===u?`start`:e===f?`end`:`middle`),k.each(function(){this.__axis=O})}return C.scale=function(e){return arguments.length?(t=e,C):t},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),C):n.slice()},C.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),C):r&&r.slice()},C.tickFormat=function(e){return arguments.length?(i=e,C):i},C.tickSize=function(e){return arguments.length?(a=o=+e,C):a},C.tickSizeInner=function(e){return arguments.length?(a=+e,C):a},C.tickSizeOuter=function(e){return arguments.length?(o=+e,C):o},C.tickPadding=function(e){return arguments.length?(s=+e,C):s},C.offset=function(e){return arguments.length?(y=+e,C):y},C}function b(e){return y(l,e)}function x(e){return y(d,e)}var S=Math.PI/180,C=180/Math.PI,w=18,T=.96422,E=1,D=.82521,O=4/29,k=6/29,A=3*k*k,j=k*k*k;function M(t){if(t instanceof N)return new N(t.l,t.a,t.b,t.opacity);if(t instanceof F)return oe(t);t instanceof e.c||(t=e.u(t));var n=re(t.r),r=re(t.g),i=re(t.b),a=P((.2225045*n+.7168786*r+.0606169*i)/E),o,s;return n===r&&r===i?o=s=a:(o=P((.4360747*n+.3850649*r+.1430804*i)/T),s=P((.0139322*n+.0971045*r+.7141733*i)/D)),new N(116*a-16,500*(o-a),200*(a-s),t.opacity)}function ee(e,t,n,r){return arguments.length===1?M(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}e.d(N,ee,e.f(e.s,{brighter(e){return new N(this.l+w*(e??1),this.a,this.b,this.opacity)},darker(e){return new N(this.l-w*(e??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return n=T*te(n),t=E*te(t),r=D*te(r),new e.c(ne(3.1338561*n-1.6168667*t-.4906146*r),ne(-.9787684*n+1.9161415*t+.033454*r),ne(.0719453*n-.2289914*t+1.4052427*r),this.opacity)}}));function P(e){return e>j?e**(1/3):e/A+O}function te(e){return e>k?e*e*e:A*(e-O)}function ne(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function re(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function ie(e){if(e instanceof F)return new F(e.h,e.c,e.l,e.opacity);if(e instanceof N||(e=M(e)),e.a===0&&e.b===0)return new F(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*C;return new F(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ae(e,t,n,r){return arguments.length===1?ie(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function oe(e){if(isNaN(e.h))return new N(e.l,0,0,e.opacity);var t=e.h*S;return new N(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e.d(F,ae,e.f(e.s,{brighter(e){return new F(this.h,this.c,this.l+w*(e??1),this.opacity)},darker(e){return new F(this.h,this.c,this.l-w*(e??1),this.opacity)},rgb(){return oe(this).rgb()}}));function se(t){return function(n,r){var i=t((n=ae(n)).h,(r=ae(r)).h),a=e.a(n.c,r.c),o=e.a(n.l,r.l),s=e.a(n.opacity,r.opacity);return function(e){return n.h=i(e),n.c=a(e),n.l=o(e),n.opacity=s(e),n+``}}}var ce=se(e.i);e.a;function le(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var ue=new Date,de=new Date;function I(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>I(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(ue.setTime(+t),de.setTime(+r),e(ue),e(de),Math.floor(n(ue,de))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var fe=I(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?I(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fe),fe.range;var L=1e3,R=L*60,z=R*60,B=z*24,pe=B*7,me=B*30,he=B*365,V=I(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getUTCSeconds());V.range;var ge=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*L)},(e,t)=>{e.setTime(+e+t*R)},(e,t)=>(t-e)/R,e=>e.getMinutes());ge.range;var _e=I(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*R)},(e,t)=>(t-e)/R,e=>e.getUTCMinutes());_e.range;var ve=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*L-e.getMinutes()*R)},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getHours());ve.range;var ye=I(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getUTCHours());ye.range;var H=I(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*R)/B,e=>e.getDate()-1);H.range;var be=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/B,e=>e.getUTCDate()-1);be.range;var xe=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/B,e=>Math.floor(e/B));xe.range;function U(e){return I(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*R)/pe)}var Se=U(0),Ce=U(1),we=U(2),Te=U(3),W=U(4),Ee=U(5),De=U(6);Se.range,Ce.range,we.range,Te.range,W.range,Ee.range,De.range;function G(e){return I(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/pe)}var Oe=G(0),ke=G(1),Ae=G(2),je=G(3),Me=G(4),Ne=G(5),Pe=G(6);Oe.range,ke.range,Ae.range,je.range,Me.range,Ne.range,Pe.range;var Fe=I(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Fe.range;var Ie=I(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ie.range;var K=I(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());K.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),K.range;var q=I(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),q.range;function Le(e,t,r,i,a,o){let s=[[V,1,L],[V,5,5*L],[V,15,15*L],[V,30,30*L],[o,1,R],[o,5,5*R],[o,15,15*R],[o,30,30*R],[a,1,z],[a,3,3*z],[a,6,6*z],[a,12,12*z],[i,1,B],[i,2,2*B],[r,1,pe],[t,1,me],[t,3,3*me],[e,1,he]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,r,i){let a=Math.abs(r-t)/i,o=n.a(([,,e])=>e).right(s,a);if(o===s.length)return e.every(n.i(t/he,r/he,i));if(o===0)return fe.every(Math.max(n.i(t,r,i),1));let[c,l]=s[a/s[o-1][2]<s[o][2]/a?o-1:o];return c.every(l)}return[c,l]}var[Re,ze]=Le(q,Ie,Oe,xe,ye,_e),[Be,Ve]=Le(K,Fe,Se,H,ve,ge);function He(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ue(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function We(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Xe(i),u=Ze(i),d=Xe(a),f=Ze(a),p=Xe(o),m=Ze(o),h=Xe(s),g=Ze(s),_=Xe(c),v=Ze(c),y={a:ee,A:N,b:P,B:te,c:null,d:vt,e:vt,f:Ct,g:Pt,G:It,H:yt,I:bt,j:xt,L:St,m:wt,M:Tt,p:ne,q:re,Q:on,s:sn,S:Et,u:Dt,U:Ot,V:At,w:jt,W:Mt,x:null,X:null,y:Nt,Y:Ft,Z:Lt,"%":an},b={a:ie,A:ae,b:F,B:oe,c:null,d:Rt,e:Rt,f:Ut,g:en,G:nn,H:zt,I:Bt,j:Vt,L:Ht,m:Wt,M:Gt,p:se,q:ce,Q:on,s:sn,S:Kt,u:qt,U:Jt,V:Xt,w:Zt,W:Qt,x:null,X:null,y:$t,Y:tn,Z:rn,"%":an},x={a:E,A:D,b:O,B:k,c:A,d:ct,e:ct,f:mt,g:it,G:rt,H:ut,I:ut,j:lt,L:pt,m:st,M:dt,p:T,q:ot,Q:gt,s:_t,S:ft,u:$e,U:et,V:tt,w:Qe,W:nt,x:j,X:M,y:it,Y:rt,Z:at,"%":ht};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=Ke[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=We(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Ue(We(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?ke.ceil(a):ke(a),a=be.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=He(We(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Ce.ceil(a):Ce(a),a=H.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Ue(We(r.y,0,1)).getUTCDay():He(We(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Ue(r)):He(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in Ke?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function ee(e){return o[e.getDay()]}function N(e){return a[e.getDay()]}function P(e){return c[e.getMonth()]}function te(e){return s[e.getMonth()]}function ne(e){return i[+(e.getHours()>=12)]}function re(e){return 1+~~(e.getMonth()/3)}function ie(e){return o[e.getUTCDay()]}function ae(e){return a[e.getUTCDay()]}function F(e){return c[e.getUTCMonth()]}function oe(e){return s[e.getUTCMonth()]}function se(e){return i[+(e.getUTCHours()>=12)]}function ce(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var Ke={"-":``,_:` `,0:`0`},J=/^\s*\d+/,qe=/^%/,Je=/[\\^$*+?|[\]().{}]/g;function Y(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Ye(e){return e.replace(Je,`\\$&`)}function Xe(e){return RegExp(`^(?:`+e.map(Ye).join(`|`)+`)`,`i`)}function Ze(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Qe(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $e(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function et(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rt(e,t,n){var r=J.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function it(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function at(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function ot(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function st(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ct(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lt(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pt(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mt(e,t,n){var r=J.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ht(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gt(e,t,n){var r=J.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=J.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vt(e,t){return Y(e.getDate(),t,2)}function yt(e,t){return Y(e.getHours(),t,2)}function bt(e,t){return Y(e.getHours()%12||12,t,2)}function xt(e,t){return Y(1+H.count(K(e),e),t,3)}function St(e,t){return Y(e.getMilliseconds(),t,3)}function Ct(e,t){return St(e,t)+`000`}function wt(e,t){return Y(e.getMonth()+1,t,2)}function Tt(e,t){return Y(e.getMinutes(),t,2)}function Et(e,t){return Y(e.getSeconds(),t,2)}function Dt(e){var t=e.getDay();return t===0?7:t}function Ot(e,t){return Y(Se.count(K(e)-1,e),t,2)}function kt(e){var t=e.getDay();return t>=4||t===0?W(e):W.ceil(e)}function At(e,t){return e=kt(e),Y(W.count(K(e),e)+(K(e).getDay()===4),t,2)}function jt(e){return e.getDay()}function Mt(e,t){return Y(Ce.count(K(e)-1,e),t,2)}function Nt(e,t){return Y(e.getFullYear()%100,t,2)}function Pt(e,t){return e=kt(e),Y(e.getFullYear()%100,t,2)}function Ft(e,t){return Y(e.getFullYear()%1e4,t,4)}function It(e,t){var n=e.getDay();return e=n>=4||n===0?W(e):W.ceil(e),Y(e.getFullYear()%1e4,t,4)}function Lt(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Y(t/60|0,`0`,2)+Y(t%60,`0`,2)}function Rt(e,t){return Y(e.getUTCDate(),t,2)}function zt(e,t){return Y(e.getUTCHours(),t,2)}function Bt(e,t){return Y(e.getUTCHours()%12||12,t,2)}function Vt(e,t){return Y(1+be.count(q(e),e),t,3)}function Ht(e,t){return Y(e.getUTCMilliseconds(),t,3)}function Ut(e,t){return Ht(e,t)+`000`}function Wt(e,t){return Y(e.getUTCMonth()+1,t,2)}function Gt(e,t){return Y(e.getUTCMinutes(),t,2)}function Kt(e,t){return Y(e.getUTCSeconds(),t,2)}function qt(e){var t=e.getUTCDay();return t===0?7:t}function Jt(e,t){return Y(Oe.count(q(e)-1,e),t,2)}function Yt(e){var t=e.getUTCDay();return t>=4||t===0?Me(e):Me.ceil(e)}function Xt(e,t){return e=Yt(e),Y(Me.count(q(e),e)+(q(e).getUTCDay()===4),t,2)}function Zt(e){return e.getUTCDay()}function Qt(e,t){return Y(ke.count(q(e)-1,e),t,2)}function $t(e,t){return Y(e.getUTCFullYear()%100,t,2)}function en(e,t){return e=Yt(e),Y(e.getUTCFullYear()%100,t,2)}function tn(e,t){return Y(e.getUTCFullYear()%1e4,t,4)}function nn(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Me(e):Me.ceil(e),Y(e.getUTCFullYear()%1e4,t,4)}function rn(){return`+0000`}function an(){return`%`}function on(e){return+e}function sn(e){return Math.floor(e/1e3)}var cn,ln;un({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function un(e){return cn=Ge(e),ln=cn.format,cn.parse,cn.utcFormat,cn.utcParse,cn}function dn(e){return new Date(e)}function fn(e){return e instanceof Date?+e:+new Date(+e)}function pn(e,t,r,i,a,o,s,c,l,u){var d=n.n(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e)<e?m:c(e)<e?h:s(e)<e?g:o(e)<e?_:i(e)<e?a(e)<e?v:y:r(e)<e?b:x)(e)}return d.invert=function(e){return new Date(f(e))},d.domain=function(e){return arguments.length?p(Array.from(e,fn)):p().map(dn)},d.ticks=function(t){var n=p();return e(n[0],n[n.length-1],t??10)},d.tickFormat=function(e,t){return t==null?S:u(t)},d.nice=function(e){var n=p();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?p(le(n,e)):d},d.copy=function(){return n.r(d,pn(e,t,r,i,a,o,s,c,l,u))},d}function mn(){return r.t.apply(pn(Be,Ve,K,Fe,Se,H,ve,ge,V,ln).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var hn=e.y(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))})),gn=e.y(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),_n=e.y(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),vn=e.y(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/s),e%=s,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),yn=i.t(),X=e.x(e.v(),1),bn=e.x(hn(),1),xn=e.x(gn(),1),Sn=e.x(_n(),1),Cn=e.x(vn(),1),wn=(function(){var t=e.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[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],r=[1,26],i=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:e.h(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:e.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:e.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.h(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
-
`+h.showPosition()+`
|
|
3
|
-
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:e.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.h(function(){return this._more=!0,this},`more`),reject:e.h(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
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:e.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:e.h(function(){return this.next()||this.lex()},`lex`),begin:e.h(function(e){this.conditionStack.push(e)},`begin`),popState:e.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.h(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:e.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.h(function(e){this.begin(e)},`pushState`),stateStackSize:e.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e.h(function(e,t,n,r){switch(n){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}}}})();function O(){this.yy={}}return e.h(O,`Parser`),O.prototype=D,D.Parser=O,new O})();wn.parser=wn;var Tn=wn;X.default.extend(bn.default),X.default.extend(xn.default),X.default.extend(Sn.default);var En={friday:5,saturday:6},Z=``,Dn=``,On=void 0,kn=``,An=[],jn=[],Mn=new Map,Nn=[],Pn=[],Fn=``,In=``,Ln=[`active`,`done`,`crit`,`milestone`,`vert`],Rn=[],zn=``,Bn=!1,Vn=!1,Hn=`sunday`,Un=`saturday`,Wn=0,Gn=e.h(function(){Nn=[],Pn=[],Fn=``,Rn=[],wr=0,Or=void 0,kr=void 0,Q=[],Z=``,Dn=``,In=``,On=void 0,kn=``,An=[],jn=[],Bn=!1,Vn=!1,Wn=0,Mn=new Map,zn=``,t.a(),Hn=`sunday`,Un=`saturday`},`clear`),Kn=e.h(function(e){zn=e},`setDiagramId`),qn=e.h(function(e){Dn=e},`setAxisFormat`),Jn=e.h(function(){return Dn},`getAxisFormat`),Yn=e.h(function(e){On=e},`setTickInterval`),Xn=e.h(function(){return On},`getTickInterval`),Zn=e.h(function(e){kn=e},`setTodayMarker`),Qn=e.h(function(){return kn},`getTodayMarker`),$n=e.h(function(e){Z=e},`setDateFormat`),er=e.h(function(){Bn=!0},`enableInclusiveEndDates`),tr=e.h(function(){return Bn},`endDatesAreInclusive`),nr=e.h(function(){Vn=!0},`enableTopAxis`),rr=e.h(function(){return Vn},`topAxisEnabled`),ir=e.h(function(e){In=e},`setDisplayMode`),ar=e.h(function(){return In},`getDisplayMode`),or=e.h(function(){return Z},`getDateFormat`),sr=e.h(function(e){An=e.toLowerCase().split(/[\s,]+/)},`setIncludes`),cr=e.h(function(){return An},`getIncludes`),lr=e.h(function(e){jn=e.toLowerCase().split(/[\s,]+/)},`setExcludes`),ur=e.h(function(){return jn},`getExcludes`),dr=e.h(function(){return Mn},`getLinks`),fr=e.h(function(e){Fn=e,Nn.push(e)},`addSection`),pr=e.h(function(){return Nn},`getSections`),mr=e.h(function(){let e=Pr(),t=0;for(;!e&&t<10;)e=Pr(),t++;return Pn=Q,Pn},`getTasks`),hr=e.h(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===En[Un]||e.isoWeekday()===En[Un]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),gr=e.h(function(e){Hn=e},`setWeekday`),_r=e.h(function(){return Hn},`getWeekday`),vr=e.h(function(e){Un=e},`setWeekend`),yr=e.h(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,X.default)(e.startTime):(0,X.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,X.default)(e.endTime):(0,X.default)(e.endTime,t,!0);let[o,s]=br(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),br=e.h(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=hr(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),xr=e.h(function(t,n,r){if(r=r.trim(),e.h(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(n)&&/^\d+$/.test(r))return new Date(Number(r));let i=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Mr(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,X.default)(r,n.trim(),!0);if(a.isValid())return a.toDate();{e.g.debug(`Invalid date:`+r),e.g.debug(`With date format:`+n.trim());let t=new Date(r);if(t===void 0||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw Error(`Invalid date:`+r);return t}},`getStartDate`),Sr=e.h(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),Cr=e.h(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Mr(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,X.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,X.default)(e),[s,c]=Sr(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),wr=0,Tr=e.h(function(e){return e===void 0?(wr+=1,`task`+wr):e},`parseId`),Er=e.h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Br(r,i,Ln);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=Tr(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=Tr(),i.startTime=xr(void 0,Z,r[0]),a=r[1];break;case 3:i.id=Tr(r[0]),i.startTime=xr(void 0,Z,r[1]),a=r[2];break;default:}return a&&(i.endTime=Cr(i.startTime,Z,a,Bn),i.manualEndTime=(0,X.default)(a,`YYYY-MM-DD`,!0).isValid(),yr(i,Z,jn,An)),i},`compileData`),Dr=e.h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Br(r,i,Ln);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=Tr(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=Tr(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Tr(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]};break;default:}return i},`parseData`),Or,kr,Q=[],Ar={},jr=e.h(function(e,t){let n={section:Fn,type:Fn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=Dr(kr,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=kr,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Wn,Wn++;let i=Q.push(n);kr=n.id,Ar[n.id]=i-1},`addTask`),Mr=e.h(function(e){let t=Ar[e];return Q[t]},`findTaskById`),Nr=e.h(function(e,t){let n={section:Fn,type:Fn,description:e,task:e,classes:[]},r=Er(Or,t);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,n.vert=r.vert,Or=n,Pn.push(n)},`addTaskOrg`),Pr=e.h(function(){let t=e.h(function(e){let t=Q[e],n=``;switch(Q[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Mr(t.prevTaskId).endTime;break;case`getStartDate`:n=xr(void 0,Z,Q[e].raw.startTime.startData),n&&(Q[e].startTime=n);break}return Q[e].startTime&&(Q[e].endTime=Cr(Q[e].startTime,Z,Q[e].raw.endTime.data,Bn),Q[e].endTime&&(Q[e].processed=!0,Q[e].manualEndTime=(0,X.default)(Q[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),yr(Q[e],Z,jn,An))),Q[e].processed},`compileTask`),n=!0;for(let[e,r]of Q.entries())t(e),n&&=r.processed;return n},`compileTasks`),Fr=e.h(function(e,n){let r=n;t.x().securityLevel!==`loose`&&(r=(0,yn.sanitizeUrl)(n)),e.split(`,`).forEach(function(e){Mr(e)!==void 0&&(Rr(e,()=>{window.open(r,`_self`)}),Mn.set(e,r))}),Ir(e,`clickable`)},`setLink`),Ir=e.h(function(e,t){e.split(`,`).forEach(function(e){let n=Mr(e);n!==void 0&&n.classes.push(t)})},`setClass`),Lr=e.h(function(e,n,r){if(t.x().securityLevel!==`loose`||n===void 0)return;let i=[];if(typeof r==`string`){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),i[e]=t}}i.length===0&&i.push(e),Mr(e)!==void 0&&Rr(e,()=>{a.g.runFunc(n,...i)})},`setClickFun`),Rr=e.h(function(e,t){Rn.push(function(){let n=zn?`${zn}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=zn?`${zn}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),zr={getConfig:e.h(()=>t.x().gantt,`getConfig`),clear:Gn,setDateFormat:$n,getDateFormat:or,enableInclusiveEndDates:er,endDatesAreInclusive:tr,enableTopAxis:nr,topAxisEnabled:rr,setAxisFormat:qn,getAxisFormat:Jn,setTickInterval:Yn,getTickInterval:Xn,setTodayMarker:Zn,getTodayMarker:Qn,setAccTitle:t.U,getAccTitle:t.y,setDiagramTitle:t.K,getDiagramTitle:t.w,setDiagramId:Kn,setDisplayMode:ir,getDisplayMode:ar,setAccDescription:t.H,getAccDescription:t.v,addSection:fr,getSections:pr,getTasks:mr,addTask:jr,findTaskById:Mr,addTaskOrg:Nr,setIncludes:sr,getIncludes:cr,setExcludes:lr,getExcludes:ur,setClickEvent:e.h(function(e,t,n){e.split(`,`).forEach(function(e){Lr(e,t,n)}),Ir(e,`clickable`)},`setClickEvent`),setLink:Fr,getLinks:dr,bindFunctions:e.h(function(e){Rn.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:Sr,isInvalidDate:hr,setWeekday:gr,getWeekday:_r,setWeekend:vr};function Br(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}e.h(Br,`getTaskTags`),X.default.extend(Cn.default);var Vr=e.h(function(){e.g.debug(`Something is calling, setConf, remove the call`)},`setConf`),Hr={monday:Ce,tuesday:we,wednesday:Te,thursday:W,friday:Ee,saturday:De,sunday:Se},Ur=e.h((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,Wr=1e4,Gr={parser:Tn,db:zr,renderer:{setConf:Vr,draw:e.h(function(r,i,a,c){let l=t.x().gantt;c.db.setDiagramId(i);let u=t.x().securityLevel,d;u===`sandbox`&&(d=e.p(`#i`+i));let f=u===`sandbox`?e.p(d.nodes()[0].contentDocument.body):e.p(`body`),p=u===`sandbox`?d.nodes()[0].contentDocument:document,m=p.getElementById(i);$=m.parentElement.offsetWidth,$===void 0&&($=1200),l.useWidth!==void 0&&($=l.useWidth);let h=c.db.getTasks(),g=[];for(let e of h)g.push(e.type);g=j(g);let _={},v=2*l.topPadding;if(c.db.getDisplayMode()===`compact`||l.displayMode===`compact`){let e={};for(let t of h)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Ur(e[n],t)+1;t+=r,v+=r*(l.barHeight+l.barGap),_[n]=r}}else{v+=h.length*(l.barHeight+l.barGap);for(let e of g)_[e]=h.filter(t=>t.type===e).length}m.setAttribute(`viewBox`,`0 0 `+$+` `+v);let y=f.select(`[id="${i}"]`),S=mn().domain([s(h,function(e){return e.startTime}),o(h,function(e){return e.endTime})]).rangeRound([0,$-l.leftPadding-l.rightPadding]);function C(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}e.h(C,`taskCompare`),h.sort(C),w(h,$,v),t.c(y,v,$,l.useMaxWidth),y.append(`text`).text(c.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,l.titleTopMargin).attr(`class`,`titleText`);function w(e,t,r){let i=l.barHeight,a=i+l.barGap,o=l.topPadding,s=l.leftPadding,u=n.t().domain([0,g.length]).range([`#00B9FA`,`#F95002`]).interpolate(ce);E(a,o,s,t,r,e,c.db.getExcludes(),c.db.getIncludes()),O(s,o,t,r),T(e,a,o,s,i,u,t,r),k(a,o,s,i,u),A(s,o,t,r)}e.h(w,`makeGantt`);function T(n,r,a,o,s,u,d){n.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let f=[...new Set(n.map(e=>e.order))].map(e=>n.find(t=>t.order===e));y.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*r+a-2}).attr(`width`,function(){return d-l.rightPadding/2}).attr(`height`,r).attr(`class`,function(e){for(let[t,n]of g.entries())if(e.type===n)return`section section`+t%l.numberSectionStyles;return`section section0`}).enter();let p=y.append(`g`).selectAll(`rect`).data(n).enter(),m=c.db.getLinks();if(p.append(`rect`).attr(`id`,function(e){return i+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?S(e.startTime)+o+.5*(S(e.endTime)-S(e.startTime))-.5*s:S(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?l.gridLineStartPadding:t*r+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:S(e.renderEndTime||e.endTime)-S(e.startTime)}).attr(`height`,function(e){return e.vert?h.length*(l.barHeight+l.barGap)+l.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(S(e.startTime)+o+.5*(S(e.endTime)-S(e.startTime))).toString()+`px `+(t*r+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of g.entries())e.type===r&&(n=t%l.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),p.append(`text`).attr(`id`,function(e){return i+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,l.fontSize).attr(`x`,function(e){let t=S(e.startTime),n=S(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(S(e.endTime)-S(e.startTime))-.5*s,n=t+s),e.vert)return S(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*l.leftPadding>d?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?l.gridLineStartPadding+h.length*(l.barHeight+l.barGap)+60:(t=e.order,t*r+l.barHeight/2+(l.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=S(e.startTime),n=S(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,i=``;e.classes.length>0&&(i=e.classes.join(` `));let a=0;for(let[t,n]of g.entries())e.type===n&&(a=t%l.numberSectionStyles);let o=``;return e.active&&(o=e.crit?`activeCritText`+a:`activeText`+a),e.done?o=e.crit?o+` doneCritText`+a:o+` doneText`+a:e.crit&&(o=o+` critText`+a),e.milestone&&(o+=` milestoneText`),e.vert&&(o+=` vertText`),r>n-t?n+r+1.5*l.leftPadding>d?i+` taskTextOutsideLeft taskTextOutside`+a+` `+o:i+` taskTextOutsideRight taskTextOutside`+a+` `+o+` width-`+r:i+` taskText taskText`+a+` `+o+` width-`+r}),t.x().securityLevel===`sandbox`){let t;t=e.p(`#i`+i);let n=t.nodes()[0].contentDocument;p.filter(function(e){return m.has(e.id)}).each(function(e){var t=n.querySelector(`#`+CSS.escape(i+`-`+e.id)),r=n.querySelector(`#`+CSS.escape(i+`-`+e.id+`-text`));let a=t.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,m.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(t),o.appendChild(r)})}}e.h(T,`drawRects`);function E(t,n,r,a,o,s,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of s)(f===void 0||e<f)&&(f=e),(p===void 0||t>p)&&(p=t);if(!f||!p)return;if((0,X.default)(p).diff((0,X.default)(f),`year`)>5){e.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}let m=c.db.getDateFormat(),h=[],g=null,_=(0,X.default)(f);for(;_.valueOf()<=p;)c.db.isInvalidDate(_,m,u,d)?g?g.end=_:g={start:_,end:_}:g&&=(h.push(g),null),_=_.add(1,`d`);y.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>i+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>S(e.start.startOf(`day`))+r).attr(`y`,l.gridLineStartPadding).attr(`width`,e=>S(e.end.endOf(`day`))-S(e.start.startOf(`day`))).attr(`height`,o-n-l.gridLineStartPadding).attr(`transform-origin`,function(e,n){return(S(e.start)+r+.5*(S(e.end)-S(e.start))).toString()+`px `+(n*t+.5*o).toString()+`px`}).attr(`class`,`exclude-range`)}e.h(E,`drawExcludeDays`);function D(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=X.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}e.h(D,`getEstimatedTickCount`);function O(t,n,r,i){let a=c.db.getDateFormat(),o=c.db.getAxisFormat(),s;s=o||(a===`D`?`%d`:l.axisFormat??`%Y-%m-%d`);let u=x(S).tickSize(-i+n+l.gridLineStartPadding).tickFormat(ln(s)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(c.db.getTickInterval()||l.tickInterval);if(d!==null){let t=parseInt(d[1],10);if(isNaN(t)||t<=0)e.g.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let n=d[2],r=c.db.getWeekday()||l.weekday,i=S.domain(),a=i[0],o=i[1],s=D(a,o,t,n);if(s>Wr)e.g.warn(`The tick interval "${t}${n}" would generate ${s} ticks, which exceeds the maximum allowed (${Wr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(n){case`millisecond`:u.ticks(fe.every(t));break;case`second`:u.ticks(V.every(t));break;case`minute`:u.ticks(ge.every(t));break;case`hour`:u.ticks(ve.every(t));break;case`day`:u.ticks(H.every(t));break;case`week`:u.ticks(Hr[r].every(t));break;case`month`:u.ticks(Fe.every(t));break}}}if(y.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+t+`, `+(i-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),c.db.topAxisEnabled()||l.topAxis){let r=b(S).tickSize(-i+n+l.gridLineStartPadding).tickFormat(ln(s));if(d!==null){let t=parseInt(d[1],10);if(isNaN(t)||t<=0)e.g.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let e=d[2],n=c.db.getWeekday()||l.weekday,i=S.domain(),a=i[0],o=i[1];if(D(a,o,t,e)<=Wr)switch(e){case`millisecond`:r.ticks(fe.every(t));break;case`second`:r.ticks(V.every(t));break;case`minute`:r.ticks(ge.every(t));break;case`hour`:r.ticks(ve.every(t));break;case`day`:r.ticks(H.every(t));break;case`week`:r.ticks(Hr[n].every(t));break;case`month`:r.ticks(Fe.every(t));break}}}y.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+t+`, `+n+`)`).call(r).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}e.h(O,`makeGrid`);function k(e,n){let r=0,i=Object.keys(_).map(e=>[e,_[e]]);y.append(`g`).selectAll(`text`).data(i).enter().append(function(e){let n=e[0].split(t.s.lineBreakRegex),r=-(n.length-1)/2,i=p.createElementNS(`http://www.w3.org/2000/svg`,`text`);i.setAttribute(`dy`,r+`em`);for(let[e,t]of n.entries()){let n=p.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttribute(`alignment-baseline`,`central`),n.setAttribute(`x`,`10`),e>0&&n.setAttribute(`dy`,`1em`),n.textContent=t,i.appendChild(n)}return i}).attr(`x`,10).attr(`y`,function(t,a){if(a>0)for(let o=0;o<a;o++)return r+=i[a-1][1],t[1]*e/2+r*e+n;else return t[1]*e/2+n}).attr(`font-size`,l.sectionFontSize).attr(`class`,function(e){for(let[t,n]of g.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%l.numberSectionStyles;return`sectionTitle`})}e.h(k,`vertLabels`);function A(e,t,n,r){let i=c.db.getTodayMarker();if(i===`off`)return;let a=y.append(`g`).attr(`class`,`today`),o=new Date,s=a.append(`line`);s.attr(`x1`,S(o)+e).attr(`x2`,S(o)+e).attr(`y1`,l.titleTopMargin).attr(`y2`,r-l.titleTopMargin).attr(`class`,`today`),i!==``&&s.attr(`style`,i.replace(/,/g,`;`))}e.h(A,`drawToday`);function j(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}e.h(j,`checkUnique`)},`draw`)},styles:e.h(e=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${e.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${e.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${e.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${e.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${e.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${e.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${e.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${e.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${e.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${e.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${e.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${e.fontFamily};
|
|
66
|
-
fill: ${e.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${e.todayLineColor};
|
|
79
|
-
stroke-width: 2px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* Task styling */
|
|
84
|
-
|
|
85
|
-
/* Default task */
|
|
86
|
-
|
|
87
|
-
.task {
|
|
88
|
-
stroke-width: 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.taskText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-family: ${e.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${e.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${e.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${e.taskTextDarkColor};
|
|
104
|
-
text-anchor: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/* Special case clickable */
|
|
109
|
-
|
|
110
|
-
.task.clickable {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.taskText.clickable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* Specific task settings for the sections*/
|
|
134
|
-
|
|
135
|
-
.taskText0,
|
|
136
|
-
.taskText1,
|
|
137
|
-
.taskText2,
|
|
138
|
-
.taskText3 {
|
|
139
|
-
fill: ${e.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${e.taskBkgColor};
|
|
147
|
-
stroke: ${e.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${e.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${e.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${e.activeTaskBkgColor};
|
|
169
|
-
stroke: ${e.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${e.doneTaskBorderColor};
|
|
187
|
-
fill: ${e.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
-
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
-
.doneText0.taskTextOutsideLeft,
|
|
201
|
-
.doneText0.taskTextOutsideRight,
|
|
202
|
-
.doneText1.taskTextOutsideLeft,
|
|
203
|
-
.doneText1.taskTextOutsideRight,
|
|
204
|
-
.doneText2.taskTextOutsideLeft,
|
|
205
|
-
.doneText2.taskTextOutsideRight,
|
|
206
|
-
.doneText3.taskTextOutsideLeft,
|
|
207
|
-
.doneText3.taskTextOutsideRight {
|
|
208
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${e.critBorderColor};
|
|
219
|
-
fill: ${e.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${e.critBorderColor};
|
|
228
|
-
fill: ${e.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${e.critBorderColor};
|
|
237
|
-
fill: ${e.doneTaskBkgColor};
|
|
238
|
-
stroke-width: 2;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
shape-rendering: crispEdges;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.milestone {
|
|
244
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.milestoneText {
|
|
248
|
-
font-style: italic;
|
|
249
|
-
}
|
|
250
|
-
.doneCritText0,
|
|
251
|
-
.doneCritText1,
|
|
252
|
-
.doneCritText2,
|
|
253
|
-
.doneCritText3 {
|
|
254
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
258
|
-
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
-
.doneCritText0.taskTextOutsideRight,
|
|
260
|
-
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
-
.doneCritText1.taskTextOutsideRight,
|
|
262
|
-
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
-
.doneCritText2.taskTextOutsideRight,
|
|
264
|
-
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
-
.doneCritText3.taskTextOutsideRight {
|
|
266
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${e.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${e.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${e.titleColor||e.textColor};
|
|
290
|
-
font-family: ${e.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,`getStyles`)};exports.diagram=Gr;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("./chunk-NNHCCRGN-qV8bfiMQ.cjs");const e=require("./mermaid-parser.core-ADyJ_PY4.cjs");exports.createGitGraphServices=e._;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const e=require("./src-DEmZ9bFr.cjs"),t=require("./chunk-CSCIHK7Q-BAdl6GW-.cjs"),n=require("./chunk-5ZQYHXKU-DMrStm4M.cjs"),r=require("./mermaid-parser.core-ADyJ_PY4.cjs"),i=require("./chunk-4BX2VUAB-C8VW0QW0.cjs"),a=require("./chunk-QZHKN3VN-ZJ4hLUIw.cjs");var o={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},s=t.f.gitGraph,c=e.h(()=>n.i({...s,...t.b().gitGraph}),`getConfig`),l=new a.t(()=>{let e=c(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function u(){return n.m({length:7})}e.h(u,`getID`);function d(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}e.h(d,`uniqBy`);var f=e.h(function(e){l.records.direction=e},`setDirection`),p=e.h(function(t){e.g.debug(`options str`,t),t=t?.trim(),t||=`{}`;try{l.records.options=JSON.parse(t)}catch(t){e.g.error(`error while parsing gitGraph options`,t.message)}},`setOptions`),m=e.h(function(){return l.records.options},`getOptions`),h=e.h(function(n){let r=n.msg,i=n.id,a=n.type,s=n.tags;e.g.info(`commit`,r,i,a,s),e.g.debug(`Entering commit:`,r,i,a,s);let d=c();i=t.s.sanitizeText(i,d),r=t.s.sanitizeText(r,d),s=s?.map(e=>t.s.sanitizeText(e,d));let f={id:i||l.records.seq+`-`+u(),message:r,seq:l.records.seq++,type:a??o.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=f,e.g.info(`main branch`,d.mainBranchName),l.records.commits.has(f.id)&&e.g.warn(`Commit ID ${f.id} already exists`),l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),e.g.debug(`in pushCommit `+f.id)},`commit`),g=e.h(function(n){let r=n.name,i=n.order;if(r=t.s.sanitizeText(r,c()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head==null?null:l.records.head.id),l.records.branchConfig.set(r,{name:r,order:i}),y(r),e.g.debug(`in createBranch`)},`branch`),_=e.h(n=>{let r=n.branch,i=n.id,a=n.type,s=n.tags,d=c();r=t.s.sanitizeText(r,d),i&&=t.s.sanitizeText(i,d);let f=l.records.branches.get(l.records.currBranch),p=l.records.branches.get(r),m=f?l.records.commits.get(f):void 0,h=p?l.records.commits.get(p):void 0;if(m&&h&&m.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`commit`]},e}if(!l.records.branches.has(r)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) does not exist`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(i&&l.records.commits.has(i)){let e=Error(`Incorrect usage of "merge". Commit with id:`+i+` already exists, use different custom id`);throw e.hash={text:`merge ${r} ${i} ${a} ${s?.join(` `)}`,token:`merge ${r} ${i} ${a} ${s?.join(` `)}`,expected:[`merge ${r} ${i}_UNIQUE ${a} ${s?.join(` `)}`]},e}let g=p||``,_={id:i||`${l.records.seq}-${u()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,g],branch:l.records.currBranch,type:o.MERGE,customType:a,customId:!!i,tags:s??[]};l.records.head=_,l.records.commits.set(_.id,_),l.records.branches.set(l.records.currBranch,_.id),e.g.debug(l.records.branches),e.g.debug(`in mergeBranch`)},`merge`),v=e.h(function(n){let r=n.id,i=n.targetId,a=n.tags,s=n.parent;e.g.debug(`Entering cherryPick:`,r,i,a);let d=c();if(r=t.s.sanitizeText(r,d),i=t.s.sanitizeText(i,d),a=a?.map(e=>t.s.sanitizeText(e,d)),s=t.s.sanitizeText(s,d),!r||!l.records.commits.has(r)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let f=l.records.commits.get(r);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(s&&!(Array.isArray(f.parents)&&f.parents.includes(s)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let p=f.branch;if(f.type===o.MERGE&&!s)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!l.records.commits.has(i)){if(p===l.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let t=l.records.branches.get(l.records.currBranch);if(t===void 0||!t){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let n=l.records.commits.get(t);if(n===void 0||!n){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:l.records.seq+`-`+u(),message:`cherry-picked ${f?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,f.id],branch:l.records.currBranch,type:o.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===o.MERGE?`|parent:${s}`:``}`]};l.records.head=c,l.records.commits.set(c.id,c),l.records.branches.set(l.records.currBranch,c.id),e.g.debug(l.records.branches),e.g.debug(`in cherryPick`)}},`cherryPick`),y=e.h(function(e){if(e=t.s.sanitizeText(e,c()),l.records.branches.has(e)){l.records.currBranch=e;let t=l.records.branches.get(l.records.currBranch);t===void 0||!t?l.records.head=null:l.records.head=l.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function b(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}e.h(b,`upsert`);function x(t){let n=t.reduce((e,t)=>e.seq>t.seq?e:t,t[0]),r=``;t.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in l.records.branches)l.records.branches.get(e)===n.id&&i.push(e);if(e.g.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let e=l.records.commits.get(n.parents[0]);b(t,n,e),n.parents[1]&&t.push(l.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let e=l.records.commits.get(n.parents[0]);b(t,n,e)}t=d(t,e=>e.id),x(t)}e.h(x,`prettyPrintCommitHistory`);var S=e.h(function(){e.g.debug(l.records.commits);let t=w()[0];x([t])},`prettyPrint`),C=e.h(function(){l.reset(),t.a()},`clear`),ee=e.h(function(){return[...l.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),te=e.h(function(){return l.records.branches},`getBranches`),ne=e.h(function(){return l.records.commits},`getCommits`),w=e.h(function(){let t=[...l.records.commits.values()];return t.forEach(function(t){e.g.debug(t.id)}),t.sort((e,t)=>e.seq-t.seq),t},`getCommitsArray`),T={commitType:o,getConfig:c,setDirection:f,setOptions:p,getOptions:m,commit:h,branch:g,merge:_,cherryPick:v,checkout:y,prettyPrint:S,clear:C,getBranchesAsObjArray:ee,getBranches:te,getCommits:ne,getCommitsArray:w,getCurrentBranch:e.h(function(){return l.records.currBranch},`getCurrentBranch`),getDirection:e.h(function(){return l.records.direction},`getDirection`),getHead:e.h(function(){return l.records.head},`getHead`),setAccTitle:t.U,getAccTitle:t.y,getAccDescription:t.v,setAccDescription:t.H,setDiagramTitle:t.K,getDiagramTitle:t.w},E=e.h((e,t)=>{i.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)D(n,t)},`populate`),D=e.h((t,n)=>{let r={Commit:e.h(e=>n.commit(O(e)),`Commit`),Branch:e.h(e=>n.branch(k(e)),`Branch`),Merge:e.h(e=>n.merge(re(e)),`Merge`),Checkout:e.h(e=>n.checkout(ie(e)),`Checkout`),CherryPicking:e.h(e=>n.cherryPick(ae(e)),`CherryPicking`)}[t.$type];r?r(t):e.g.error(`Unknown statement type: ${t.$type}`)},`parseStatement`),O=e.h(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?o.NORMAL:o[e.type],tags:e.tags??void 0}),`parseCommit`),k=e.h(e=>({name:e.name,order:e.order??0}),`parseBranch`),re=e.h(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:o[e.type],tags:e.tags??void 0}),`parseMerge`),ie=e.h(e=>e.branch,`parseCheckout`),ae=e.h(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),oe={parse:e.h(async t=>{let n=await r.t(`gitGraph`,t);e.g.debug(n),E(n,T)},`parse`)},A=10,j=40,M=4,N=2,P=8,F=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),I=12,L=new Set([`redux-color`,`redux-dark-color`]),se=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),R=e.h((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),z=new Map,B=new Map,V=30,H=new Map,U=[],W=0,G=`LR`,K=e.h(()=>{z.clear(),B.clear(),H.clear(),W=0,U=[],G=`LR`},`clear`),q=e.h(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=e.h(t=>{let n,r,i;return G===`BT`?(r=e.h((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=e.h((e,t)=>e>=t,`comparisonFunc`),i=0),t.forEach(e=>{let t=G===`TB`||G==`BT`?B.get(e)?.y:B.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),ce=e.h(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=B.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),le=e.h((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=de(n),i=Math.max(r,i)):a.push(n),fe(n,r)}),r=i,a.forEach(e=>{pe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=ce(n.parents);r=B.get(e).y-j,r<=i&&(i=r);let t=z.get(n.branch).pos,a=r-A;B.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),ue=e.h(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=B.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),de=e.h(e=>ue(e)+j,`calculateCommitPosition`),fe=e.h((e,t)=>{let n=z.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+A;return B.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),pe=e.h((e,t,n)=>{let r=z.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;B.set(e.id,{x:a,y:i})},`setRootPosition`),me=e.h((e,n,r,i,a,s)=>{let{theme:c}=t.x(),l=F.has(c??``),u=L.has(c??``),d=se.has(c??``);if(s===o.HIGHLIGHT)e.append(`rect`).attr(`x`,r.x-10+(l?3:0)).attr(`y`,r.y-10+(l?3:0)).attr(`width`,l?14:20).attr(`height`,l?14:20).attr(`class`,`commit ${n.id} commit-highlight${R(a,P,u)} ${i}-outer`),e.append(`rect`).attr(`x`,r.x-6+(l?2:0)).attr(`y`,r.y-6+(l?2:0)).attr(`width`,l?8:12).attr(`height`,l?8:12).attr(`class`,`commit ${n.id} commit${R(a,P,u)} ${i}-inner`);else if(s===o.CHERRY_PICK)e.append(`circle`).attr(`cx`,r.x).attr(`cy`,r.y).attr(`r`,l?7:10).attr(`class`,`commit ${n.id} ${i}`),e.append(`circle`).attr(`cx`,r.x-3).attr(`cy`,r.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),e.append(`circle`).attr(`cx`,r.x+3).attr(`cy`,r.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),e.append(`line`).attr(`x1`,r.x+3).attr(`y1`,r.y+1).attr(`x2`,r.x).attr(`y2`,r.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),e.append(`line`).attr(`x1`,r.x-3).attr(`y1`,r.y+1).attr(`x2`,r.x).attr(`y2`,r.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`);else{let t=e.append(`circle`);if(t.attr(`cx`,r.x),t.attr(`cy`,r.y),t.attr(`r`,l?7:10),t.attr(`class`,`commit ${n.id} commit${R(a,P,u)}`),s===o.MERGE){let t=e.append(`circle`);t.attr(`cx`,r.x),t.attr(`cy`,r.y),t.attr(`r`,l?5:6),t.attr(`class`,`commit ${i} ${n.id} commit${R(a,P,u)}`)}if(s===o.REVERSE){let t=e.append(`path`),o=l?4:5;t.attr(`d`,`M ${r.x-o},${r.y-o}L${r.x+o},${r.y+o}M${r.x-o},${r.y+o}L${r.x+o},${r.y-o}`).attr(`class`,`commit ${i} ${n.id} commit${R(a,P,u)}`)}}},`drawCommitBullet`),he=e.h((e,t,n,r,i)=>{if(t.type!==o.CHERRY_PICK&&(t.customId&&t.type===o.MERGE||t.type!==o.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-N).attr(`y`,n.y+13.5).attr(`width`,c.width+2*N).attr(`height`,c.height+2*N),G===`TB`||G===`BT`?(o.attr(`x`,n.x-(c.width+4*M+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*M)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(G===`TB`||G===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),ge=e.h((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
|
-
${r-a/2-M/2},${l+N}
|
|
3
|
-
${r-a/2-M/2},${l-N}
|
|
4
|
-
${n.posWithOffset-a/2-M},${l-s-N}
|
|
5
|
-
${n.posWithOffset+a/2+M},${l-s-N}
|
|
6
|
-
${n.posWithOffset+a/2+M},${l+s+N}
|
|
7
|
-
${n.posWithOffset-a/2-M},${l+s+N}`),t.attr(`cy`,l).attr(`cx`,r-a/2+M/2).attr(`r`,1.5).attr(`class`,`tag-hole`),G===`TB`||G===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
8
|
-
${n.x},${o+2}
|
|
9
|
-
${n.x},${o-2}
|
|
10
|
-
${n.x+A},${o-s-2}
|
|
11
|
-
${n.x+A+a+4},${o-s-2}
|
|
12
|
-
${n.x+A+a+4},${o+s+2}
|
|
13
|
-
${n.x+A},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+M/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),_e=e.h(e=>{switch(e.customType??e.type){case o.NORMAL:return`commit-normal`;case o.REVERSE:return`commit-reverse`;case o.HIGHLIGHT:return`commit-highlight`;case o.MERGE:return`commit-merge`;case o.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),ve=e.h((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+j:t===`BT`?(r.get(e.id)??i).y-j:a.x+j}}else if(t===`TB`)return V;else if(t===`BT`)return(r.get(e.id)??i).y-j;else return 0;return 0},`calculatePosition`),ye=e.h((e,n,r)=>{let i=G===`BT`&&r?n:n+A,a=z.get(e.branch)?.pos,o=G===`TB`||G===`BT`?z.get(e.branch)?.pos:i;if(o===void 0||a===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=F.has(t.x().theme??``);return{x:o,y:G===`TB`||G===`BT`?i:a+(s?I/2+1:-2),posWithOffset:i}},`getCommitPosition`),Y=e.h((t,n,r,i)=>{let a=t.append(`g`).attr(`class`,`commit-bullets`),o=t.append(`g`).attr(`class`,`commit-labels`),s=G===`TB`||G===`BT`?V:0,c=[...n.keys()],l=i.parallelCommits??!1,u=e.h((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=c.sort(u);G===`BT`&&(l&&le(d,n,s),d=d.reverse()),d.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);l&&(s=ve(t,G,s,B));let c=ye(t,s,l);if(r){let e=_e(t),n=t.customType??t.type;me(a,t,c,e,z.get(t.branch)?.index??0,n),he(o,t,c,s,i),ge(o,t,c,s)}G===`TB`||G===`BT`?B.set(t.id,{x:c.x,y:c.posWithOffset}):B.set(t.id,{x:c.posWithOffset,y:c.y}),s=G===`BT`&&l?s+j:s+j+A,s>W&&(W=s)})},`drawCommits`),be=e.h((t,n,r,i,a)=>{let o=(G===`TB`||G===`BT`?r.x<i.x:r.y<i.y)?n.branch:t.branch,s=e.h(e=>e.branch===o,`isOnBranchToGetCurve`),c=e.h(e=>e.seq>t.seq&&e.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),X=e.h((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:U.every(e=>Math.abs(e-r)>=10)?(U.push(r),r):X(e,t-Math.abs(e-t)/5,n+1)},`findLane`),xe=e.h((e,n,r,i)=>{let{theme:a}=t.x(),s=L.has(a??``),c=B.get(n.id),l=B.get(r.id);if(c===void 0||l===void 0)throw Error(`Commit positions not found for commits ${n.id} and ${r.id}`);let u=be(n,r,c,l,i),d=``,f=``,p=0,m=0,h=z.get(r.branch)?.index;r.type===o.MERGE&&n.id!==r.parents[0]&&(h=z.get(n.branch)?.index);let g;if(u){d=`A 10 10, 0, 0, 0,`,f=`A 10 10, 0, 0, 1,`,p=10,m=10;let e=c.y<l.y?X(c.y,l.y):X(l.y,c.y),t=c.x<l.x?X(c.x,l.x):X(l.x,c.x);G===`TB`?c.x<l.x?g=`M ${c.x} ${c.y} L ${t-p} ${c.y} ${f} ${t} ${c.y+m} L ${t} ${l.y-p} ${d} ${t+m} ${l.y} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${t+p} ${c.y} ${d} ${t} ${c.y+m} L ${t} ${l.y-p} ${f} ${t-m} ${l.y} L ${l.x} ${l.y}`):G===`BT`?c.x<l.x?g=`M ${c.x} ${c.y} L ${t-p} ${c.y} ${d} ${t} ${c.y-m} L ${t} ${l.y+p} ${f} ${t+m} ${l.y} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${t+p} ${c.y} ${f} ${t} ${c.y-m} L ${t} ${l.y+p} ${d} ${t-m} ${l.y} L ${l.x} ${l.y}`):c.y<l.y?g=`M ${c.x} ${c.y} L ${c.x} ${e-p} ${d} ${c.x+m} ${e} L ${l.x-p} ${e} ${f} ${l.x} ${e+m} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${c.x} ${e+p} ${f} ${c.x+m} ${e} L ${l.x-p} ${e} ${d} ${l.x} ${e-m} L ${l.x} ${l.y}`)}else d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,G===`TB`?(c.x<l.x&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${d} ${c.x+m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${f} ${l.x} ${c.y+m} L ${l.x} ${l.y}`),c.x>l.x&&(d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${f} ${c.x-m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x+p} ${c.y} ${d} ${l.x} ${c.y+m} L ${l.x} ${l.y}`),c.x===l.x&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`)):G===`BT`?(c.x<l.x&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${f} ${c.x+m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${d} ${l.x} ${c.y-m} L ${l.x} ${l.y}`),c.x>l.x&&(d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${d} ${c.x-m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x+p} ${c.y} ${f} ${l.x} ${c.y-m} L ${l.x} ${l.y}`),c.x===l.x&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`)):(c.y<l.y&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${f} ${l.x} ${c.y+m} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${d} ${c.x+m} ${l.y} L ${l.x} ${l.y}`),c.y>l.y&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${d} ${l.x} ${c.y-m} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${f} ${c.x+m} ${l.y} L ${l.x} ${l.y}`),c.y===l.y&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`));if(g===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,g).attr(`class`,`arrow arrow`+R(h,P,s))},`drawArrow`),Z=e.h((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{xe(n,t.get(e),r,t)})})},`drawArrows`),Se=e.h((e,n,r,i)=>{let{look:a,theme:o,themeVariables:s}=t.x(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=F.has(o??``),d=L.has(o??``),f=e.append(`g`);n.forEach((e,t)=>{let n=R(t,u?l:P,d),o=z.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let s=G===`TB`||G===`BT`?o:u?o+I/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,s),p.attr(`x2`,W),p.attr(`y2`,s),p.attr(`class`,`branch branch`+n),G===`TB`?(p.attr(`y1`,V),p.attr(`x1`,o),p.attr(`y2`,W),p.attr(`x2`,o)):G===`BT`&&(p.attr(`y1`,W),p.attr(`x1`,o),p.attr(`y2`,V),p.attr(`x2`,o)),U.push(s);let m=e.name,h=q(m),g=f.insert(`rect`),_=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+n);_.node().appendChild(h);let v=h.getBBox(),y=u?0:4,b=u?16:0,x=u?I:0;a===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+n).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(r.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(r.rotateCommitLabel===!0?30:0)+b/2)+`, `+(s-v.height/2-2)+`)`),G===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):G===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,W),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+W+`)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(W+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(s-12-x/2)+`)`)})},`drawBranches`),Ce=e.h(function(e,t,n,r,i){return z.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(G===`TB`||G===`BT`?r.width/2:0),t},`setBranchPosition`),we={draw:e.h(function(r,i,a,o){K(),e.g.debug(`in gitgraph renderer`,r+`
|
|
14
|
-
`,`id:`,i,a);let s=o.db;if(!s.getConfig){e.g.error(`getConfig method is not available on db`);return}let c=s.getConfig(),l=c.rotateCommitLabel??!1;H=s.getCommits();let u=s.getBranchesAsObjArray();G=s.getDirection();let d=e.p(`[id="${i}"]`),{look:f,theme:p,themeVariables:m}=t.x(),{useGradient:h,gradientStart:g,gradientStop:_,filterColor:v}=m;if(h){let e=d.append(`defs`).append(`linearGradient`).attr(`id`,i+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}f===`neo`&&F.has(p??``)&&d.append(`defs`).append(`filter`).attr(`id`,i+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,v);let y=0;u.forEach((e,t)=>{let n=q(e.name),r=d.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();y=Ce(e.name,y,t,o,l),a.remove(),i.remove(),r.remove()}),Y(d,H,!1,c),c.showBranches&&Se(d,u,c,i),Z(d,H),Y(d,H,!0,c),n.g.insertTitle(d,`gitTitleText`,c.titleTopMargin??0,s.getDiagramTitle()),t.Y(void 0,d,c.diagramPadding,c.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Te=new Set([`redux-color`,`redux-dark-color`]),Ee=new Set([`neo`,`neo-dark`]),De=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Oe=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),ke=e.h(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
|
|
15
|
-
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
-
`;return n},`genGitGraphGradient`),Ae=e.h(e=>{let{theme:n,themeVariables:r}=t.b(),{borderColorArray:i}=r,a=$.has(n);if(Ee.has(n)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
|
|
17
|
-
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
18
|
-
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
19
|
-
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
-
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
21
|
-
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
-
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
23
|
-
${ke(e)}`;else{let r=n%Q;t+=`
|
|
24
|
-
.branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
|
|
25
|
-
.commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
|
|
26
|
-
.commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
|
|
27
|
-
.arrow${n} { stroke: ${e[`git`+r]}; }
|
|
28
|
-
`}return t}else if(Te.has(n)){let t=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++)if(r===0)t+=`
|
|
29
|
-
.branch-label${r} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
30
|
-
.commit${r} { stroke: ${e.nodeBorder}; }
|
|
31
|
-
.commit-highlight${r} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
-
.label${r} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
33
|
-
.arrow${r} { stroke: ${e.nodeBorder}; }
|
|
34
|
-
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
-
`;else{let o=r%i.length;t+=`
|
|
36
|
-
.branch-label${r} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
37
|
-
.commit${r} { stroke: ${i[o]}; fill: ${i[o]}; }
|
|
38
|
-
.commit-highlight${r} { stroke: ${i[o]}; fill: ${i[o]}; }
|
|
39
|
-
.label${r} { fill: ${De.has(n)?e.mainBkg:i[o]}; stroke: ${i[o]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
-
.arrow${r} { stroke: ${i[o]}; }
|
|
41
|
-
`}return t}else{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
|
|
42
|
-
.branch-label${n} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:``} }
|
|
43
|
-
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
44
|
-
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
-
.label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:``}}
|
|
46
|
-
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
47
|
-
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
-
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
49
|
-
`;return t}},`genColor`),je=e.h(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return`
|
|
50
|
-
.branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
|
|
51
|
-
.commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
|
|
52
|
-
.commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
|
|
53
|
-
.label${t} { fill: ${e[`git`+n]}; }
|
|
54
|
-
.arrow${t} { stroke: ${e[`git`+n]}; }
|
|
55
|
-
`}).join(`
|
|
56
|
-
`)}`,`normalTheme`),Me={parser:oe,db:T,renderer:we,styles:e.h(e=>{let{theme:n}=t.b(),r=Oe.has(n);return`
|
|
57
|
-
.commit-id,
|
|
58
|
-
.commit-msg,
|
|
59
|
-
.branch-label {
|
|
60
|
-
fill: lightgrey;
|
|
61
|
-
color: lightgrey;
|
|
62
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
-
font-family: var(--mermaid-font-family);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
${r?Ae(e):je(e)}
|
|
67
|
-
|
|
68
|
-
.branch {
|
|
69
|
-
stroke-width: ${e.strokeWidth};
|
|
70
|
-
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
-
stroke-dasharray: ${r?`4 2`:`2`};
|
|
72
|
-
}
|
|
73
|
-
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${r?e.nodeBorder:e.commitLabelColor}; ${r?`font-weight:${e.noteFontWeight};`:``}}
|
|
74
|
-
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${r?`transparent`:e.commitLabelBackground}; opacity: ${r?``:.5}; }
|
|
75
|
-
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
-
.tag-label-bkg { fill: ${r?e.mainBkg:e.tagLabelBackground}; stroke: ${r?e.nodeBorder:e.tagLabelBorder}; ${r?`filter:${e.dropShadow}`:``} }
|
|
77
|
-
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
-
|
|
79
|
-
.commit-merge {
|
|
80
|
-
stroke: ${r?e.mainBkg:e.primaryColor};
|
|
81
|
-
fill: ${r?e.mainBkg:e.primaryColor};
|
|
82
|
-
}
|
|
83
|
-
.commit-reverse {
|
|
84
|
-
stroke: ${r?e.mainBkg:e.primaryColor};
|
|
85
|
-
fill: ${r?e.mainBkg:e.primaryColor};
|
|
86
|
-
stroke-width: ${r?e.strokeWidth:3};
|
|
87
|
-
}
|
|
88
|
-
.commit-highlight-outer {
|
|
89
|
-
}
|
|
90
|
-
.commit-highlight-inner {
|
|
91
|
-
stroke: ${r?e.mainBkg:e.primaryColor};
|
|
92
|
-
fill: ${r?e.mainBkg:e.primaryColor};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.arrow {
|
|
96
|
-
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
-
stroke-width: ${$.has(n)?e.strokeWidth:8};
|
|
98
|
-
stroke-linecap: round;
|
|
99
|
-
fill: none
|
|
100
|
-
}
|
|
101
|
-
.gitTitleText {
|
|
102
|
-
text-anchor: middle;
|
|
103
|
-
font-size: 18px;
|
|
104
|
-
fill: ${e.textColor};
|
|
105
|
-
}
|
|
106
|
-
`},`getStyles`)};exports.diagram=Me;
|