@pi-outpost/embed 0.61.0 → 0.62.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/README.md +4 -0
- package/dist/{abnfDiagram-S7VZAUFO-BdOzCXh1.js → abnfDiagram-S7VZAUFO-BvdbTr4n.js} +2 -2
- package/dist/{abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs → abnfDiagram-S7VZAUFO-C14iOswH.cjs} +1 -1
- package/dist/{architectureDiagram-YGSQEFNW-DiYOcBqo.js → architectureDiagram-YGSQEFNW-CPW5HJ_P.js} +20 -20
- package/dist/{architectureDiagram-YGSQEFNW-gEzRb5xY.cjs → architectureDiagram-YGSQEFNW-CfDEcnft.cjs} +3 -3
- package/dist/{blockDiagram-APKKGZFW-CIX-8mpK.js → blockDiagram-APKKGZFW-C4ig73DE.js} +5 -5
- package/dist/{blockDiagram-APKKGZFW-KL3nQT0s.cjs → blockDiagram-APKKGZFW-DLTDUF2F.cjs} +1 -1
- package/dist/{c4Diagram-KJ2TOQU5-BS_M90FN.js → c4Diagram-KJ2TOQU5-BViiS4eZ.js} +4 -4
- package/dist/{c4Diagram-KJ2TOQU5-D-dCJWvI.cjs → c4Diagram-KJ2TOQU5-BZrZGJnq.cjs} +1 -1
- package/dist/chunk-6MUBBAK2-Do5Y2VaL.js +631 -0
- package/dist/chunk-6MUBBAK2-fxSdrddJ.cjs +2 -0
- package/dist/{chunk-AXFCVDMN-DrVQa3gP.js → chunk-AXFCVDMN-BTcT9L5T.js} +196 -196
- package/dist/{chunk-AXFCVDMN-B6dhmE32.cjs → chunk-AXFCVDMN-DSN0_Pz7.cjs} +7 -7
- package/dist/{chunk-DQASFODM-DAaU7yoa.js → chunk-DQASFODM-BjATojAo.js} +30 -30
- package/dist/chunk-DQASFODM-GtaZ5zZF.cjs +10 -0
- package/dist/{chunk-HFQBQIA3-lOxrhpos.cjs → chunk-HFQBQIA3-Bt4zc3D1.cjs} +1 -1
- package/dist/{chunk-HFQBQIA3-DqHSeXIz.js → chunk-HFQBQIA3-l7lNC9FO.js} +1 -1
- package/dist/{chunk-KQLB2F66-C7twW9LJ.js → chunk-KQLB2F66-P-DwEW1U.js} +5 -5
- package/dist/{chunk-KQLB2F66-Ec2IAtUR.cjs → chunk-KQLB2F66-xBZn8cMv.cjs} +1 -1
- package/dist/{chunk-KS47KZWR-OD3AMBe8.js → chunk-KS47KZWR-Ca0eP7K6.js} +1 -1
- package/dist/{chunk-KS47KZWR-C7Yv0kfF.cjs → chunk-KS47KZWR-DLYUwvq1.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-BFGXlIAt.cjs → chunk-LEVMRMFU-8QpYqPF4.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-NLMudZfn.js → chunk-LEVMRMFU-DXj_Ks_M.js} +2 -2
- package/dist/{chunk-M57EVK23-BSZ7OEGY.cjs → chunk-M57EVK23-Cvl56jvK.cjs} +1 -1
- package/dist/{chunk-M57EVK23-C8-Jp43x.js → chunk-M57EVK23-D_qW99As.js} +3 -3
- package/dist/{chunk-OY52VR5R-B7NRk2-S.js → chunk-OY52VR5R-DAhIWmSX.js} +1 -1
- package/dist/{chunk-OY52VR5R-CvyV3pJF.cjs → chunk-OY52VR5R-DoFojbud.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DaIXN7QF.cjs → chunk-QB3YPZ4I-CcobelQp.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DPQ26dC9.js → chunk-QB3YPZ4I-DZ4KU0AI.js} +5 -5
- package/dist/{chunk-STOXU5M4-0WKKmqbF.js → chunk-STOXU5M4-CcGFpnKt.js} +7 -7
- package/dist/{chunk-STOXU5M4-CmoaBap6.cjs → chunk-STOXU5M4-_pvE8f8d.cjs} +2 -2
- package/dist/{classDiagram-v2-L25IHNXF-CAts0vNW.js → classDiagram-v2-L25IHNXF-CoK-3RrH.js} +8 -8
- package/dist/{classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs → classDiagram-v2-L25IHNXF-DUh5AzbW.cjs} +1 -1
- package/dist/{conversationExport-C-0oWDfL.cjs → conversationExport-DXxmgLoF.cjs} +1 -1
- package/dist/{conversationExport-BGLSsVDO.js → conversationExport-jRLUX0kH.js} +3 -3
- package/dist/{conversationHistory-CRkCClAn.js → conversationHistory-3pDBlkZZ.js} +11 -6
- package/dist/{conversationHistory-BgnXSxWk.cjs → conversationHistory-C6PqGsO9.cjs} +2 -2
- package/dist/{cynefinDiagram-L36ESFBY-CrsJmb7x.cjs → cynefinDiagram-L36ESFBY-BLUfdwhj.cjs} +1 -1
- package/dist/{cynefinDiagram-L36ESFBY-ByHpHKCc.js → cynefinDiagram-L36ESFBY-COLv504g.js} +7 -7
- package/dist/{dagre-SPEB5RXH-C01_UMxx.js → dagre-SPEB5RXH-CohPsDHQ.js} +7 -7
- package/dist/{dagre-SPEB5RXH-ExCiSqVu.cjs → dagre-SPEB5RXH-DF8bZfUb.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-CRNoSH2i.cjs → diagram-3B7GL73J-CFwrYkyI.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-D7i6eGGQ.js → diagram-3B7GL73J-w28Iaq_1.js} +8 -8
- package/dist/{diagram-DNEMPZML-CkhkOJo2.cjs → diagram-DNEMPZML-CezYrBHl.cjs} +1 -1
- package/dist/{diagram-DNEMPZML-Di5RqN_h.js → diagram-DNEMPZML-HpZqPF1t.js} +6 -6
- package/dist/{diagram-L3MUGCDN-BtQkAzOD.js → diagram-L3MUGCDN-Bg9oF9vU.js} +7 -7
- package/dist/{diagram-L3MUGCDN-B1vXsDB1.cjs → diagram-L3MUGCDN-FmKU8C82.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-DST6DvSP.cjs → diagram-LA4NIPWU-B4zPp12a.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-Badv-tyU.js → diagram-LA4NIPWU-D5S10Z1M.js} +16 -16
- package/dist/{diagram-MHCOC4E2-DmA9ezb9.js → diagram-MHCOC4E2-BMg2Maje.js} +5 -5
- package/dist/{diagram-MHCOC4E2-BafwTqOD.cjs → diagram-MHCOC4E2-DcF56W3-.cjs} +2 -2
- package/dist/{diagram-XPFHEONP-CZHt29x-.js → diagram-XPFHEONP-COT08Qlw.js} +9 -9
- package/dist/{diagram-XPFHEONP-DCm8Rjp8.cjs → diagram-XPFHEONP-GLEfHAAK.cjs} +5 -5
- package/dist/dist-BDWJ0PuE.js +1007 -0
- package/dist/dist-CeGGIzgU.cjs +1 -0
- package/dist/{docxExport-DM0_V94R.cjs → docxExport-D-T3fTj7.cjs} +1 -1
- package/dist/{docxExport-COweplKv.js → docxExport-diU6sv-G.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-DVGQga8g.js → ebnfDiagram-UZSYDL2S-Cu5-1sQW.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-fO0plY-B.cjs → ebnfDiagram-UZSYDL2S-ftYbml6-.cjs} +1 -1
- package/dist/{elk-XV6XMXQE-CioXUob9.cjs → elk-XV6XMXQE-32eNFZGY.cjs} +2 -2
- package/dist/{elk-XV6XMXQE-BkH0WNCd.js → elk-XV6XMXQE-BoimJY8z.js} +9 -8
- package/dist/{erDiagram-EYBAPDEH-CUgDxVam.cjs → erDiagram-EYBAPDEH-BCiRLs1y.cjs} +1 -1
- package/dist/{erDiagram-EYBAPDEH-Byy0RKKe.js → erDiagram-EYBAPDEH-BxyIjrYb.js} +7 -7
- package/dist/flowDiagram-MALGAFMO-BwqIeP0j.js +15 -0
- package/dist/flowDiagram-MALGAFMO-DkxE7jK-.cjs +1 -0
- package/dist/ganttDiagram-23REXITY-CSCN0suz.cjs +292 -0
- package/dist/{ganttDiagram-23REXITY-DAs5LGLL.js → ganttDiagram-23REXITY-uW1Fo-_u.js} +467 -489
- package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs} +3 -3
- package/dist/{gitGraphDiagram-STJD7YCW-BVa0DHTU.js → gitGraphDiagram-STJD7YCW-j7-SImA3.js} +57 -57
- package/dist/{infoDiagram-KBXO4MBG-DRQkxKbg.cjs → infoDiagram-KBXO4MBG-CYMQGNUj.cjs} +1 -1
- package/dist/{infoDiagram-KBXO4MBG-BW7IcSQr.js → infoDiagram-KBXO4MBG-DE6zWbEk.js} +1 -1
- package/dist/init-DP9k4ltr.js +151 -0
- package/dist/init-UgQs1rm8.cjs +1 -0
- package/dist/{ishikawaDiagram-M35NCXHK-DBokYlS8.cjs → ishikawaDiagram-M35NCXHK-DbHbBLzt.cjs} +1 -1
- package/dist/{ishikawaDiagram-M35NCXHK-BiLoyI1l.js → ishikawaDiagram-M35NCXHK-zvWEWMyM.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-DsyubZVY.js → journeyDiagram-OPLOXDXO-Ckjy-e7g.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-CgabMAC2.cjs → journeyDiagram-OPLOXDXO-Df3Isppt.cjs} +2 -2
- package/dist/{kanban-definition-BZKZHSQY-DU8sOWQd.js → kanban-definition-BZKZHSQY-BmePUr-s.js} +6 -6
- package/dist/{kanban-definition-BZKZHSQY-CLi3J9cI.cjs → kanban-definition-BZKZHSQY-C0592yvk.cjs} +1 -1
- package/dist/linear-DgbjLlQ3.cjs +1 -0
- package/dist/linear-uoBSwo4a.js +198 -0
- package/dist/{loadReferencedImage-D47xCpa7.cjs → loadReferencedImage-N3Qidv7i.cjs} +1 -1
- package/dist/{loadReferencedImage-VNYxXIzB.js → loadReferencedImage-u2es0OEX.js} +1 -1
- package/dist/{mermaid.core-DPCy8dJO.js → mermaid.core-BlYpILf7.js} +65 -65
- package/dist/{mermaid.core-BL4WDqAH.cjs → mermaid.core-uCBIzEBU.cjs} +7 -7
- package/dist/{mermaidToImage-CViP9wx2.js → mermaidToImage-CBa4nUvP.js} +1 -1
- package/dist/{mermaidToImage-B7I6iJ9s.cjs → mermaidToImage-Gx6dNGEn.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-GT8_r7or.cjs → mindmap-definition-I2QAS2VK-CRXX7-9C.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-C2KpoDqG.js → mindmap-definition-I2QAS2VK-DgJirDRS.js} +7 -7
- package/dist/ordinal-CeUiYJ7_.cjs +1 -0
- package/dist/ordinal-DFWF7eBM.js +28 -0
- package/dist/{pegDiagram-FD4XPPHP-D0OZoETj.cjs → pegDiagram-FD4XPPHP-DFmA0OWh.cjs} +1 -1
- package/dist/{pegDiagram-FD4XPPHP-CSA4sB83.js → pegDiagram-FD4XPPHP-DpYyVjjQ.js} +2 -2
- package/dist/pi-outpost-embed.cjs +3 -3
- package/dist/pi-outpost-embed.js +3 -3
- package/dist/pieDiagram-J4AKIIQI-Cz-UbIk9.cjs +39 -0
- package/dist/pieDiagram-J4AKIIQI-DuqHiYUq.js +155 -0
- package/dist/{quadrantDiagram-XTYBLID2-BjaZuA3m.js → quadrantDiagram-XTYBLID2-B94UoyXc.js} +1 -1
- package/dist/{quadrantDiagram-XTYBLID2-CfdtTmYm.cjs → quadrantDiagram-XTYBLID2-BCN9RHwV.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs → railroadDiagram-MRQ6NCDL-BlrwhMUX.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DgAKQKiD.js → railroadDiagram-MRQ6NCDL-Br7PQgSm.js} +2 -2
- package/dist/{requirementDiagram-Y7LWUY3S-Bhlk2ueA.js → requirementDiagram-Y7LWUY3S-CT4WIq10.js} +7 -7
- package/dist/{requirementDiagram-Y7LWUY3S-nSr_pknl.cjs → requirementDiagram-Y7LWUY3S-CzR9zsNk.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-x6J896b3.cjs → sankeyDiagram-WGJFYUXA-D8LLSvqn.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-DUYWd4HF.js → sankeyDiagram-WGJFYUXA-DiEth1kw.js} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs → sequenceDiagram-5NDRBG5M-BATWsrlf.cjs} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-D1YS8Amk.js → sequenceDiagram-5NDRBG5M-DJ1ruzP_.js} +4 -4
- package/dist/{stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js → stateDiagram-v2-FJ4FJNEA-CtEFZimW.js} +8 -8
- package/dist/{stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs → stateDiagram-v2-FJ4FJNEA-DS0IS9Xt.cjs} +1 -1
- package/dist/{swimlanes-UMQ2AFYF-CNb1NF60.js → swimlanes-UMQ2AFYF-B9sFO11Y.js} +8 -8
- package/dist/{swimlanes-UMQ2AFYF-BQLQzNLz.cjs → swimlanes-UMQ2AFYF-CNdzpvk7.cjs} +1 -1
- package/dist/{swimlanesDiagram-OMPLPG4O-BOl138lS.js → swimlanesDiagram-OMPLPG4O-CEjeo6Pa.js} +9 -9
- package/dist/swimlanesDiagram-OMPLPG4O-F8fhW_eR.cjs +8 -0
- package/dist/{timeline-definition-SEUHKTQE-B_909Amn.js → timeline-definition-SEUHKTQE-BiPtPmVz.js} +3 -3
- package/dist/{timeline-definition-SEUHKTQE-Du5-RSsU.cjs → timeline-definition-SEUHKTQE-CHvbMdoq.cjs} +2 -2
- package/dist/{usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs → usecaseDiagram-AFA6YXN4-B_KoFCdb.cjs} +1 -1
- package/dist/{usecaseDiagram-AFA6YXN4-CiVGRP5X.js → usecaseDiagram-AFA6YXN4-VzWSjfFU.js} +7 -7
- package/dist/{vennDiagram-NNMJR3RB-CKxaec4G.cjs → vennDiagram-NNMJR3RB-BRWZo29n.cjs} +1 -1
- package/dist/{vennDiagram-NNMJR3RB-l3A_FZxZ.js → vennDiagram-NNMJR3RB-D5u2Njla.js} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs → wardleyDiagram-S7YFUSEH-CSq-zmI3.cjs} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-BMQf5dl9.js → wardleyDiagram-S7YFUSEH-VNmN8A6j.js} +5 -5
- package/dist/{xychartDiagram-GGNKY7IX-CuFU4ynf.js → xychartDiagram-GGNKY7IX-D-eT4Gjt.js} +18 -25
- package/dist/{xychartDiagram-GGNKY7IX-BUma86Wh.cjs → xychartDiagram-GGNKY7IX-D4bccPOk.cjs} +3 -3
- package/package.json +1 -1
- package/dist/arc-37kcMiGl.js +0 -82
- package/dist/arc-C7P0rHQr.cjs +0 -1
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/chunk-6MUBBAK2-BTabKnTR.cjs +0 -2
- package/dist/chunk-6MUBBAK2-DlUTxzYh.js +0 -1334
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +0 -10
- package/dist/dist-BB5r6V4R.cjs +0 -1
- package/dist/dist-CZhfI1u7.js +0 -59
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +0 -15
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +0 -1
- package/dist/ganttDiagram-23REXITY-D82ogzPM.cjs +0 -292
- package/dist/init-BJdqMO10.cjs +0 -1
- package/dist/init-CuXVI8k2.js +0 -13
- package/dist/line-Bf0B129l.cjs +0 -1
- package/dist/line-DRq00lCg.js +0 -34
- package/dist/linear-Bh2vuvAF.cjs +0 -1
- package/dist/linear-CxE0kir0.js +0 -287
- package/dist/ordinal-Bm_chml2.cjs +0 -1
- package/dist/ordinal-D3SPD7Kk.js +0 -65
- package/dist/path-DIS6ck99.cjs +0 -1
- package/dist/path-PGqhG0Rz.js +0 -84
- package/dist/pieDiagram-J4AKIIQI-CNLlH6kK.js +0 -203
- package/dist/pieDiagram-J4AKIIQI-O870G6iX.cjs +0 -39
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +0 -8
package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs"),r=require("./chunk-BG4553SI-DFPUniBw.cjs"),i=require("./chunk-6MUBBAK2-BTabKnTR.cjs"),a=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),o=require("./chunk-2Q5K7J3B-B8v9mTdK.cjs");var s={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},c=r.f.gitGraph,l=t.n(()=>i.i({...c,...r.y().gitGraph}),`getConfig`),u=new o.t(()=>{let e=l(),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 d(){return i.h({length:7})}t.n(d,`getID`);function f(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},[])}t.n(f,`uniqBy`);var p=t.n(function(e){u.records.direction=e},`setDirection`),m=t.n(function(e){n.m.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{u.records.options=JSON.parse(e)}catch(e){n.m.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),h=t.n(function(){return u.records.options},`getOptions`),g=t.n(function(e){let t=e.msg,i=e.id,a=e.type,o=e.tags;n.m.info(`commit`,t,i,a,o),n.m.debug(`Entering commit:`,t,i,a,o);let c=l();i=r.s.sanitizeText(i,c),t=r.s.sanitizeText(t,c),o=o?.map(e=>r.s.sanitizeText(e,c));let f={id:i||u.records.seq+`-`+d(),message:t,seq:u.records.seq++,type:a??s.NORMAL,tags:o??[],parents:u.records.head==null?[]:[u.records.head.id],branch:u.records.currBranch};u.records.head=f,n.m.info(`main branch`,c.mainBranchName),u.records.commits.has(f.id)&&n.m.warn(`Commit ID ${f.id} already exists`),u.records.commits.set(f.id,f),u.records.branches.set(u.records.currBranch,f.id),n.m.debug(`in pushCommit `+f.id)},`commit`),_=t.n(function(e){let t=e.name,i=e.order;if(t=r.s.sanitizeText(t,l()),u.records.branches.has(t))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 ${t}")`);u.records.branches.set(t,u.records.head==null?null:u.records.head.id),u.records.branchConfig.set(t,{name:t,order:i}),b(t),n.m.debug(`in createBranch`)},`branch`),v=t.n(e=>{let t=e.branch,i=e.id,a=e.type,o=e.tags,c=l();t=r.s.sanitizeText(t,c),i&&=r.s.sanitizeText(i,c);let f=u.records.branches.get(u.records.currBranch),p=u.records.branches.get(t),m=f?u.records.commits.get(f):void 0,h=p?u.records.commits.get(p):void 0;if(m&&h&&m.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(u.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!u.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(i&&u.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 ${t} ${i} ${a} ${o?.join(` `)}`,token:`merge ${t} ${i} ${a} ${o?.join(` `)}`,expected:[`merge ${t} ${i}_UNIQUE ${a} ${o?.join(` `)}`]},e}let g=p||``,_={id:i||`${u.records.seq}-${d()}`,message:`merged branch ${t} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,g],branch:u.records.currBranch,type:s.MERGE,customType:a,customId:!!i,tags:o??[]};u.records.head=_,u.records.commits.set(_.id,_),u.records.branches.set(u.records.currBranch,_.id),n.m.debug(u.records.branches),n.m.debug(`in mergeBranch`)},`merge`),y=t.n(function(e){let t=e.id,i=e.targetId,a=e.tags,o=e.parent;n.m.debug(`Entering cherryPick:`,t,i,a);let c=l();if(t=r.s.sanitizeText(t,c),i=r.s.sanitizeText(i,c),a=a?.map(e=>r.s.sanitizeText(e,c)),o=r.s.sanitizeText(o,c),!t||!u.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let f=u.records.commits.get(t);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(o&&!(Array.isArray(f.parents)&&f.parents.includes(o)))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===s.MERGE&&!o)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!u.records.commits.has(i)){if(p===u.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let e=u.records.branches.get(u.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let r=u.records.commits.get(e);if(r===void 0||!r){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:u.records.seq+`-`+d(),message:`cherry-picked ${f?.message} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,f.id],branch:u.records.currBranch,type:s.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===s.MERGE?`|parent:${o}`:``}`]};u.records.head=c,u.records.commits.set(c.id,c),u.records.branches.set(u.records.currBranch,c.id),n.m.debug(u.records.branches),n.m.debug(`in cherryPick`)}},`cherryPick`),b=t.n(function(e){if(e=r.s.sanitizeText(e,l()),u.records.branches.has(e)){u.records.currBranch=e;let t=u.records.branches.get(u.records.currBranch);t===void 0||!t?u.records.head=null:u.records.head=u.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 x(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}t.n(x,`upsert`);function S(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){r+=e===t?` *`:` |`});let i=[r,t.id,t.seq];for(let e in u.records.branches)u.records.branches.get(e)===t.id&&i.push(e);if(n.m.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=u.records.commits.get(t.parents[0]);x(e,t,n),t.parents[1]&&e.push(u.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=u.records.commits.get(t.parents[0]);x(e,t,n)}e=f(e,e=>e.id),S(e)}t.n(S,`prettyPrintCommitHistory`);var C=t.n(function(){n.m.debug(u.records.commits);let e=E()[0];S([e])},`prettyPrint`),w=t.n(function(){u.reset(),r.a()},`clear`),T=t.n(function(){return[...u.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`),ee=t.n(function(){return u.records.branches},`getBranches`),te=t.n(function(){return u.records.commits},`getCommits`),E=t.n(function(){let e=[...u.records.commits.values()];return e.forEach(function(e){n.m.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),D={commitType:s,getConfig:l,setDirection:p,setOptions:m,getOptions:h,commit:g,branch:_,merge:v,cherryPick:y,checkout:b,prettyPrint:C,clear:w,getBranchesAsObjArray:T,getBranches:ee,getCommits:te,getCommitsArray:E,getCurrentBranch:t.n(function(){return u.records.currBranch},`getCurrentBranch`),getDirection:t.n(function(){return u.records.direction},`getDirection`),getHead:t.n(function(){return u.records.head},`getHead`),setAccTitle:r.U,getAccTitle:r.v,getAccDescription:r._,setAccDescription:r.H,setDiagramTitle:r.q,getDiagramTitle:r.C},O=t.n((e,t)=>{a.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)k(n,t)},`populate`),k=t.n((e,r)=>{let i={Commit:t.n(e=>r.commit(ne(e)),`Commit`),Branch:t.n(e=>r.branch(re(e)),`Branch`),Merge:t.n(e=>r.merge(ie(e)),`Merge`),Checkout:t.n(e=>r.checkout(A(e)),`Checkout`),CherryPicking:t.n(e=>r.cherryPick(ae(e)),`CherryPicking`)}[e.$type];i?i(e):n.m.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),ne=t.n(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?s.NORMAL:s[e.type],tags:e.tags??void 0}),`parseCommit`),re=t.n(e=>({name:e.name,order:e.order??0}),`parseBranch`),ie=t.n(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:s[e.type],tags:e.tags??void 0}),`parseMerge`),A=t.n(e=>e.branch,`parseCheckout`),ae=t.n(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),oe={parse:t.n(async t=>{let r=await e.n(`gitGraph`,t);n.m.debug(r),O(r,D)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),se=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=t.n((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,ce=t.n(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=t.n(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=t.n(e=>{let n,r,i;return K===`BT`?(r=t.n((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=t.n((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let t=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),le=t.n(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),ue=t.n((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=le(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Y=t.n(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),de=t.n(e=>Y(e)+M,`calculateCommitPosition`),fe=t.n((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),pe=t.n((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),me=t.n((e,t,n,i,a,o)=>{let{theme:c}=r.b(),l=I.has(c??``),u=R.has(c??``),d=se.has(c??``);if(o===s.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(l?3:0)).attr(`y`,n.y-10+(l?3:0)).attr(`width`,l?14:20).attr(`height`,l?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(a,F,u)} ${i}-outer`),e.append(`rect`).attr(`x`,n.x-6+(l?2:0)).attr(`y`,n.y-6+(l?2:0)).attr(`width`,l?8:12).attr(`height`,l?8:12).attr(`class`,`commit ${t.id} commit${z(a,F,u)} ${i}-inner`);else if(o===s.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,l?7:10).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`);else{let r=e.append(`circle`);if(r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?7:10),r.attr(`class`,`commit ${t.id} commit${z(a,F,u)}`),o===s.MERGE){let r=e.append(`circle`);r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?5:6),r.attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}if(o===s.REVERSE){let r=e.append(`path`),o=l?4:5;r.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}}},`drawCommitBullet`),he=t.n((e,t,n,r,i)=>{if(t.type!==s.CHERRY_PICK&&(t.customId&&t.type===s.MERGE||t.type!==s.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-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`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=t.n((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`,`
|
|
1
|
+
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs"),r=require("./chunk-BG4553SI-DFPUniBw.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),a=require("./chunk-6MUBBAK2-fxSdrddJ.cjs"),o=require("./chunk-2Q5K7J3B-B8v9mTdK.cjs");var s={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},c=r.f.gitGraph,l=t.n(()=>a.i({...c,...r.y().gitGraph}),`getConfig`),u=new o.t(()=>{let e=l(),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 d(){return a.h({length:7})}t.n(d,`getID`);function f(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},[])}t.n(f,`uniqBy`);var p=t.n(function(e){u.records.direction=e},`setDirection`),m=t.n(function(e){n.m.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{u.records.options=JSON.parse(e)}catch(e){n.m.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),h=t.n(function(){return u.records.options},`getOptions`),g=t.n(function(e){let t=e.msg,i=e.id,a=e.type,o=e.tags;n.m.info(`commit`,t,i,a,o),n.m.debug(`Entering commit:`,t,i,a,o);let c=l();i=r.s.sanitizeText(i,c),t=r.s.sanitizeText(t,c),o=o?.map(e=>r.s.sanitizeText(e,c));let f={id:i||u.records.seq+`-`+d(),message:t,seq:u.records.seq++,type:a??s.NORMAL,tags:o??[],parents:u.records.head==null?[]:[u.records.head.id],branch:u.records.currBranch};u.records.head=f,n.m.info(`main branch`,c.mainBranchName),u.records.commits.has(f.id)&&n.m.warn(`Commit ID ${f.id} already exists`),u.records.commits.set(f.id,f),u.records.branches.set(u.records.currBranch,f.id),n.m.debug(`in pushCommit `+f.id)},`commit`),_=t.n(function(e){let t=e.name,i=e.order;if(t=r.s.sanitizeText(t,l()),u.records.branches.has(t))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 ${t}")`);u.records.branches.set(t,u.records.head==null?null:u.records.head.id),u.records.branchConfig.set(t,{name:t,order:i}),b(t),n.m.debug(`in createBranch`)},`branch`),v=t.n(e=>{let t=e.branch,i=e.id,a=e.type,o=e.tags,c=l();t=r.s.sanitizeText(t,c),i&&=r.s.sanitizeText(i,c);let f=u.records.branches.get(u.records.currBranch),p=u.records.branches.get(t),m=f?u.records.commits.get(f):void 0,h=p?u.records.commits.get(p):void 0;if(m&&h&&m.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(u.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!u.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(i&&u.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 ${t} ${i} ${a} ${o?.join(` `)}`,token:`merge ${t} ${i} ${a} ${o?.join(` `)}`,expected:[`merge ${t} ${i}_UNIQUE ${a} ${o?.join(` `)}`]},e}let g=p||``,_={id:i||`${u.records.seq}-${d()}`,message:`merged branch ${t} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,g],branch:u.records.currBranch,type:s.MERGE,customType:a,customId:!!i,tags:o??[]};u.records.head=_,u.records.commits.set(_.id,_),u.records.branches.set(u.records.currBranch,_.id),n.m.debug(u.records.branches),n.m.debug(`in mergeBranch`)},`merge`),y=t.n(function(e){let t=e.id,i=e.targetId,a=e.tags,o=e.parent;n.m.debug(`Entering cherryPick:`,t,i,a);let c=l();if(t=r.s.sanitizeText(t,c),i=r.s.sanitizeText(i,c),a=a?.map(e=>r.s.sanitizeText(e,c)),o=r.s.sanitizeText(o,c),!t||!u.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let f=u.records.commits.get(t);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(o&&!(Array.isArray(f.parents)&&f.parents.includes(o)))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===s.MERGE&&!o)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!u.records.commits.has(i)){if(p===u.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let e=u.records.branches.get(u.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let r=u.records.commits.get(e);if(r===void 0||!r){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${u.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${i}`,token:`cherryPick ${t} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:u.records.seq+`-`+d(),message:`cherry-picked ${f?.message} into ${u.records.currBranch}`,seq:u.records.seq++,parents:u.records.head==null?[]:[u.records.head.id,f.id],branch:u.records.currBranch,type:s.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===s.MERGE?`|parent:${o}`:``}`]};u.records.head=c,u.records.commits.set(c.id,c),u.records.branches.set(u.records.currBranch,c.id),n.m.debug(u.records.branches),n.m.debug(`in cherryPick`)}},`cherryPick`),b=t.n(function(e){if(e=r.s.sanitizeText(e,l()),u.records.branches.has(e)){u.records.currBranch=e;let t=u.records.branches.get(u.records.currBranch);t===void 0||!t?u.records.head=null:u.records.head=u.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 x(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}t.n(x,`upsert`);function S(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){r+=e===t?` *`:` |`});let i=[r,t.id,t.seq];for(let e in u.records.branches)u.records.branches.get(e)===t.id&&i.push(e);if(n.m.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=u.records.commits.get(t.parents[0]);x(e,t,n),t.parents[1]&&e.push(u.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=u.records.commits.get(t.parents[0]);x(e,t,n)}e=f(e,e=>e.id),S(e)}t.n(S,`prettyPrintCommitHistory`);var C=t.n(function(){n.m.debug(u.records.commits);let e=E()[0];S([e])},`prettyPrint`),w=t.n(function(){u.reset(),r.a()},`clear`),T=t.n(function(){return[...u.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`),ee=t.n(function(){return u.records.branches},`getBranches`),te=t.n(function(){return u.records.commits},`getCommits`),E=t.n(function(){let e=[...u.records.commits.values()];return e.forEach(function(e){n.m.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),D={commitType:s,getConfig:l,setDirection:p,setOptions:m,getOptions:h,commit:g,branch:_,merge:v,cherryPick:y,checkout:b,prettyPrint:C,clear:w,getBranchesAsObjArray:T,getBranches:ee,getCommits:te,getCommitsArray:E,getCurrentBranch:t.n(function(){return u.records.currBranch},`getCurrentBranch`),getDirection:t.n(function(){return u.records.direction},`getDirection`),getHead:t.n(function(){return u.records.head},`getHead`),setAccTitle:r.U,getAccTitle:r.v,getAccDescription:r._,setAccDescription:r.H,setDiagramTitle:r.q,getDiagramTitle:r.C},O=t.n((e,t)=>{i.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)k(n,t)},`populate`),k=t.n((e,r)=>{let i={Commit:t.n(e=>r.commit(ne(e)),`Commit`),Branch:t.n(e=>r.branch(re(e)),`Branch`),Merge:t.n(e=>r.merge(ie(e)),`Merge`),Checkout:t.n(e=>r.checkout(A(e)),`Checkout`),CherryPicking:t.n(e=>r.cherryPick(ae(e)),`CherryPicking`)}[e.$type];i?i(e):n.m.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),ne=t.n(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?s.NORMAL:s[e.type],tags:e.tags??void 0}),`parseCommit`),re=t.n(e=>({name:e.name,order:e.order??0}),`parseBranch`),ie=t.n(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:s[e.type],tags:e.tags??void 0}),`parseMerge`),A=t.n(e=>e.branch,`parseCheckout`),ae=t.n(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),oe={parse:t.n(async t=>{let r=await e.n(`gitGraph`,t);n.m.debug(r),O(r,D)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),se=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=t.n((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,ce=t.n(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=t.n(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=t.n(e=>{let n,r,i;return K===`BT`?(r=t.n((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=t.n((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let t=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),le=t.n(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),ue=t.n((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=le(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Y=t.n(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),de=t.n(e=>Y(e)+M,`calculateCommitPosition`),fe=t.n((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),pe=t.n((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),me=t.n((e,t,n,i,a,o)=>{let{theme:c}=r.b(),l=I.has(c??``),u=R.has(c??``),d=se.has(c??``);if(o===s.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(l?3:0)).attr(`y`,n.y-10+(l?3:0)).attr(`width`,l?14:20).attr(`height`,l?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(a,F,u)} ${i}-outer`),e.append(`rect`).attr(`x`,n.x-6+(l?2:0)).attr(`y`,n.y-6+(l?2:0)).attr(`width`,l?8:12).attr(`height`,l?8:12).attr(`class`,`commit ${t.id} commit${z(a,F,u)} ${i}-inner`);else if(o===s.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,l?7:10).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`);else{let r=e.append(`circle`);if(r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?7:10),r.attr(`class`,`commit ${t.id} commit${z(a,F,u)}`),o===s.MERGE){let r=e.append(`circle`);r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,l?5:6),r.attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}if(o===s.REVERSE){let r=e.append(`path`),o=l?4:5;r.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${i} ${t.id} commit${z(a,F,u)}`)}}},`drawCommitBullet`),he=t.n((e,t,n,r,i)=>{if(t.type!==s.CHERRY_PICK&&(t.customId&&t.type===s.MERGE||t.type!==s.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-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`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=t.n((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
2
|
${r-a/2-N/2},${l+P}
|
|
3
3
|
${r-a/2-N/2},${l-P}
|
|
4
4
|
${n.posWithOffset-a/2-N},${l-s-P}
|
|
@@ -10,8 +10,8 @@ const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJ
|
|
|
10
10
|
${n.x+j},${o-s-2}
|
|
11
11
|
${n.x+j+a+4},${o-s-2}
|
|
12
12
|
${n.x+j+a+4},${o+s+2}
|
|
13
|
-
${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/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=t.n(e=>{switch(e.customType??e.type){case s.NORMAL:return`commit-normal`;case s.REVERSE:return`commit-reverse`;case s.HIGHLIGHT:return`commit-highlight`;case s.MERGE:return`commit-merge`;case s.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),ve=t.n((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+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),ye=t.n((e,t,n)=>{let i=K===`BT`&&n?t:t+j,a=B.get(e.branch)?.pos,o=K===`TB`||K===`BT`?B.get(e.branch)?.pos:i;if(o===void 0||a===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=I.has(r.b().theme??``);return{x:o,y:K===`TB`||K===`BT`?i:a+(s?L/2+1:-2),posWithOffset:i}},`getCommitPosition`),X=t.n((e,n,r,i)=>{let a=e.append(`g`).attr(`class`,`commit-bullets`),o=e.append(`g`).attr(`class`,`commit-labels`),s=K===`TB`||K===`BT`?H:0,c=[...n.keys()],l=i.parallelCommits??!1,u=t.n((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);K===`BT`&&(l&&ue(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,K,s,V));let c=ye(t,s,l);if(r){let e=_e(t),n=t.customType??t.type,r=B.get(t.branch)?.index??0;me(a,t,c,e,r,n),he(o,t,c,s,i),ge(o,t,c,s)}K===`TB`||K===`BT`?V.set(t.id,{x:c.x,y:c.posWithOffset}):V.set(t.id,{x:c.posWithOffset,y:c.y}),s=K===`BT`&&l?s+M:s+M+j,s>G&&(G=s)})},`drawCommits`),be=t.n((e,n,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.x<i.x:r.y<i.y)?n.branch:e.branch,s=t.n(e=>e.branch===o,`isOnBranchToGetCurve`),c=t.n(t=>t.seq>e.seq&&t.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),Z=t.n((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),xe=t.n((e,t,n,i)=>{let{theme:a}=r.b(),o=R.has(a??``),c=V.get(t.id),l=V.get(n.id);if(c===void 0||l===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let u=be(t,n,c,l,i),d=``,f=``,p=0,m=0,h=B.get(n.branch)?.index;n.type===s.MERGE&&t.id!==n.parents[0]&&(h=B.get(t.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?Z(c.y,l.y):Z(l.y,c.y),n=c.x<l.x?Z(c.x,l.x):Z(l.x,c.x);K===`TB`?c.x<l.x?g=`M ${c.x} ${c.y} L ${n-p} ${c.y} ${f} ${n} ${c.y+m} L ${n} ${l.y-p} ${d} ${n+m} ${l.y} L ${l.x} ${l.y}`:(h=B.get(t.branch)?.index,g=`M ${c.x} ${c.y} L ${n+p} ${c.y} ${d} ${n} ${c.y+m} L ${n} ${l.y-p} ${f} ${n-m} ${l.y} L ${l.x} ${l.y}`):K===`BT`?c.x<l.x?g=`M ${c.x} ${c.y} L ${n-p} ${c.y} ${d} ${n} ${c.y-m} L ${n} ${l.y+p} ${f} ${n+m} ${l.y} L ${l.x} ${l.y}`:(h=B.get(t.branch)?.index,g=`M ${c.x} ${c.y} L ${n+p} ${c.y} ${f} ${n} ${c.y-m} L ${n} ${l.y+p} ${d} ${n-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=B.get(t.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,K===`TB`?(c.x<l.x&&(g=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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}`)):K===`BT`?(c.x<l.x&&(g=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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`+z(h,F,o))},`drawArrow`),Se=t.n((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`),Ce=t.n((e,t,n,i)=>{let{look:a,theme:o,themeVariables:s}=r.b(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=I.has(o??``),d=R.has(o??``),f=e.append(`g`);t.forEach((e,t)=>{let r=z(t,u?l:F,d),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let s=K===`TB`||K===`BT`?o:u?o+L/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,s),p.attr(`x2`,G),p.attr(`y2`,s),p.attr(`class`,`branch branch`+r),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.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`+r);_.node().appendChild(h);let v=h.getBBox(),y=u?0:4,b=u?16:0,x=u?L:0;a===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+r).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.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-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(s-v.height/2-2)+`)`),K===`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)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(s-12-x/2)+`)`)})},`drawBranches`),we=t.n(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),Te={draw:t.n(function(e,t,
|
|
14
|
-
`,`id:`,t,
|
|
13
|
+
${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/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=t.n(e=>{switch(e.customType??e.type){case s.NORMAL:return`commit-normal`;case s.REVERSE:return`commit-reverse`;case s.HIGHLIGHT:return`commit-highlight`;case s.MERGE:return`commit-merge`;case s.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),ve=t.n((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+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),ye=t.n((e,t,n)=>{let i=K===`BT`&&n?t:t+j,a=B.get(e.branch)?.pos,o=K===`TB`||K===`BT`?B.get(e.branch)?.pos:i;if(o===void 0||a===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=I.has(r.b().theme??``);return{x:o,y:K===`TB`||K===`BT`?i:a+(s?L/2+1:-2),posWithOffset:i}},`getCommitPosition`),X=t.n((e,n,r,i)=>{let a=e.append(`g`).attr(`class`,`commit-bullets`),o=e.append(`g`).attr(`class`,`commit-labels`),s=K===`TB`||K===`BT`?H:0,c=[...n.keys()],l=i.parallelCommits??!1,u=t.n((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);K===`BT`&&(l&&ue(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,K,s,V));let c=ye(t,s,l);if(r){let e=_e(t),n=t.customType??t.type,r=B.get(t.branch)?.index??0;me(a,t,c,e,r,n),he(o,t,c,s,i),ge(o,t,c,s)}K===`TB`||K===`BT`?V.set(t.id,{x:c.x,y:c.posWithOffset}):V.set(t.id,{x:c.posWithOffset,y:c.y}),s=K===`BT`&&l?s+M:s+M+j,s>G&&(G=s)})},`drawCommits`),be=t.n((e,n,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.x<i.x:r.y<i.y)?n.branch:e.branch,s=t.n(e=>e.branch===o,`isOnBranchToGetCurve`),c=t.n(t=>t.seq>e.seq&&t.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),Z=t.n((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),xe=t.n((e,t,n,i)=>{let{theme:a}=r.b(),o=R.has(a??``),c=V.get(t.id),l=V.get(n.id);if(c===void 0||l===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let u=be(t,n,c,l,i),d=``,f=``,p=0,m=0,h=B.get(n.branch)?.index;n.type===s.MERGE&&t.id!==n.parents[0]&&(h=B.get(t.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?Z(c.y,l.y):Z(l.y,c.y),n=c.x<l.x?Z(c.x,l.x):Z(l.x,c.x);K===`TB`?c.x<l.x?g=`M ${c.x} ${c.y} L ${n-p} ${c.y} ${f} ${n} ${c.y+m} L ${n} ${l.y-p} ${d} ${n+m} ${l.y} L ${l.x} ${l.y}`:(h=B.get(t.branch)?.index,g=`M ${c.x} ${c.y} L ${n+p} ${c.y} ${d} ${n} ${c.y+m} L ${n} ${l.y-p} ${f} ${n-m} ${l.y} L ${l.x} ${l.y}`):K===`BT`?c.x<l.x?g=`M ${c.x} ${c.y} L ${n-p} ${c.y} ${d} ${n} ${c.y-m} L ${n} ${l.y+p} ${f} ${n+m} ${l.y} L ${l.x} ${l.y}`:(h=B.get(t.branch)?.index,g=`M ${c.x} ${c.y} L ${n+p} ${c.y} ${f} ${n} ${c.y-m} L ${n} ${l.y+p} ${d} ${n-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=B.get(t.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,K===`TB`?(c.x<l.x&&(g=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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}`)):K===`BT`?(c.x<l.x&&(g=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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=n.type===s.MERGE&&t.id!==n.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`+z(h,F,o))},`drawArrow`),Se=t.n((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`),Ce=t.n((e,t,n,i)=>{let{look:a,theme:o,themeVariables:s}=r.b(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=I.has(o??``),d=R.has(o??``),f=e.append(`g`);t.forEach((e,t)=>{let r=z(t,u?l:F,d),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let s=K===`TB`||K===`BT`?o:u?o+L/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,s),p.attr(`x2`,G),p.attr(`y2`,s),p.attr(`class`,`branch branch`+r),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.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`+r);_.node().appendChild(h);let v=h.getBBox(),y=u?0:4,b=u?16:0,x=u?L:0;a===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+r).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.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-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(s-v.height/2-2)+`)`),K===`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)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(s-12-x/2)+`)`)})},`drawBranches`),we=t.n(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),Te={draw:t.n(function(e,t,i,o){ce(),n.m.debug(`in gitgraph renderer`,e+`
|
|
14
|
+
`,`id:`,t,i);let s=o.db;if(!s.getConfig){n.m.error(`getConfig method is not available on db`);return}let c=s.getConfig(),l=c.rotateCommitLabel??!1;U=s.getCommits();let u=s.getBranchesAsObjArray();K=s.getDirection();let d=n.p(`[id="${t}"]`),{look:f,theme:p,themeVariables:m}=r.b(),{useGradient:h,gradientStart:g,gradientStop:_,filterColor:v}=m;if(h){let e=d.append(`defs`).append(`linearGradient`).attr(`id`,t+`-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`&&I.has(p??``)&&d.append(`defs`).append(`filter`).attr(`id`,t+`-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=we(e.name,y,t,o,l),a.remove(),i.remove(),r.remove()}),X(d,U,!1,c),c.showBranches&&Ce(d,u,c,t),Se(d,U),X(d,U,!0,c),a._.insertTitle(d,`gitTitleText`,c.titleTopMargin??0,s.getDiagramTitle()),r.X(void 0,d,c.diagramPadding,c.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Ee=new Set([`redux-color`,`redux-dark-color`]),De=new Set([`neo`,`neo-dark`]),Oe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),ke=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Ae=t.n(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
|
|
15
15
|
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
16
|
`;return n},`genGitGraphGradient`),je=t.n(e=>{let{theme:t,themeVariables:n}=r.y(),{borderColorArray:i}=n,a=$.has(t);if(De.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
|
|
17
17
|
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
@@ -2,8 +2,8 @@ import { n as e } from "./mermaid-parser.core-IoY9gmm6.js";
|
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n, p as r } from "./src-65Lfw03T.js";
|
|
4
4
|
import { C as i, H as a, U as o, X as s, _ as c, a as l, b as u, f as d, q as f, s as p, v as m, y as h } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { t as g } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
6
|
+
import { _, h as v, i as y } from "./chunk-6MUBBAK2-Do5Y2VaL.js";
|
|
7
7
|
import { t as b } from "./chunk-2Q5K7J3B-DqJF2oYF.js";
|
|
8
8
|
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-STJD7YCW.mjs
|
|
9
9
|
var x = {
|
|
@@ -12,7 +12,7 @@ var x = {
|
|
|
12
12
|
HIGHLIGHT: 2,
|
|
13
13
|
MERGE: 3,
|
|
14
14
|
CHERRY_PICK: 4
|
|
15
|
-
}, ee = d.gitGraph, S = /* @__PURE__ */ t(() =>
|
|
15
|
+
}, ee = d.gitGraph, S = /* @__PURE__ */ t(() => y({
|
|
16
16
|
...ee,
|
|
17
17
|
...h().gitGraph
|
|
18
18
|
}), "getConfig"), C = new b(() => {
|
|
@@ -33,7 +33,7 @@ var x = {
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
function w() {
|
|
36
|
-
return
|
|
36
|
+
return v({ length: 7 });
|
|
37
37
|
}
|
|
38
38
|
t(w, "getID");
|
|
39
39
|
function T(e, t) {
|
|
@@ -291,7 +291,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
291
291
|
setDiagramTitle: f,
|
|
292
292
|
getDiagramTitle: i
|
|
293
293
|
}, pe = /* @__PURE__ */ t((e, t) => {
|
|
294
|
-
|
|
294
|
+
g(e, t), e.dir && t.setDirection(e.dir);
|
|
295
295
|
for (let n of e.statements) me(n, t);
|
|
296
296
|
}, "populate"), me = /* @__PURE__ */ t((e, r) => {
|
|
297
297
|
let i = {
|
|
@@ -333,38 +333,38 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
333
333
|
"redux-dark",
|
|
334
334
|
"redux-dark-color",
|
|
335
335
|
"neo-dark"
|
|
336
|
-
]), z = /* @__PURE__ */ t((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR",
|
|
336
|
+
]), z = /* @__PURE__ */ t((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", q = /* @__PURE__ */ t(() => {
|
|
337
337
|
B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
|
|
338
|
-
}, "clear"),
|
|
338
|
+
}, "clear"), J = /* @__PURE__ */ t((e) => {
|
|
339
339
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
340
340
|
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
341
341
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
342
342
|
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);
|
|
343
343
|
}), t;
|
|
344
|
-
}, "drawText"),
|
|
344
|
+
}, "drawText"), Y = /* @__PURE__ */ t((e) => {
|
|
345
345
|
let n, r, i;
|
|
346
346
|
return K === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
|
|
347
347
|
let t = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
|
|
348
348
|
t !== void 0 && r(t, i) && (n = e, i = t);
|
|
349
349
|
}), n;
|
|
350
|
-
}, "findClosestParent"),
|
|
350
|
+
}, "findClosestParent"), Se = /* @__PURE__ */ t((e) => {
|
|
351
351
|
let t = "", n = Infinity;
|
|
352
352
|
return e.forEach((e) => {
|
|
353
353
|
let r = V.get(e).y;
|
|
354
354
|
r <= n && (t = e, n = r);
|
|
355
355
|
}), t || void 0;
|
|
356
|
-
}, "findClosestParentBT"),
|
|
356
|
+
}, "findClosestParentBT"), Ce = /* @__PURE__ */ t((e, t, n) => {
|
|
357
357
|
let r = n, i = n, a = [];
|
|
358
358
|
e.forEach((e) => {
|
|
359
359
|
let n = t.get(e);
|
|
360
360
|
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
361
|
-
n.parents.length ? (r =
|
|
361
|
+
n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
|
|
362
362
|
}), r = i, a.forEach((e) => {
|
|
363
|
-
|
|
363
|
+
De(e, r, n);
|
|
364
364
|
}), e.forEach((e) => {
|
|
365
365
|
let n = t.get(e);
|
|
366
366
|
if (n?.parents.length) {
|
|
367
|
-
let e =
|
|
367
|
+
let e = Se(n.parents);
|
|
368
368
|
r = V.get(e).y - M, r <= i && (i = r);
|
|
369
369
|
let t = B.get(n.branch).pos, a = r - j;
|
|
370
370
|
V.set(n.id, {
|
|
@@ -373,13 +373,13 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
}, "setParallelBTPos"),
|
|
377
|
-
let t =
|
|
376
|
+
}, "setParallelBTPos"), we = /* @__PURE__ */ t((e) => {
|
|
377
|
+
let t = Y(e.parents.filter((e) => e !== null));
|
|
378
378
|
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
379
379
|
let n = V.get(t)?.y;
|
|
380
380
|
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
381
381
|
return n;
|
|
382
|
-
}, "findClosestParentPos"),
|
|
382
|
+
}, "findClosestParentPos"), Te = /* @__PURE__ */ t((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ t((e, t) => {
|
|
383
383
|
let n = B.get(e.branch);
|
|
384
384
|
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
385
385
|
let r = n.pos, i = t + j;
|
|
@@ -390,7 +390,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
390
390
|
x: r,
|
|
391
391
|
y: i
|
|
392
392
|
};
|
|
393
|
-
}, "setCommitPosition"),
|
|
393
|
+
}, "setCommitPosition"), De = /* @__PURE__ */ t((e, t, n) => {
|
|
394
394
|
let r = B.get(e.branch);
|
|
395
395
|
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
396
396
|
let i = t + n, a = r.pos;
|
|
@@ -398,7 +398,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
398
398
|
x: a,
|
|
399
399
|
y: i
|
|
400
400
|
});
|
|
401
|
-
}, "setRootPosition"),
|
|
401
|
+
}, "setRootPosition"), Oe = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
402
402
|
let { theme: o } = u(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
|
|
403
403
|
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, c)} ${r}-inner`);
|
|
404
404
|
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
@@ -413,7 +413,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
413
413
|
a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
}, "drawCommitBullet"),
|
|
416
|
+
}, "drawCommitBullet"), ke = /* @__PURE__ */ t((e, t, n, r, i) => {
|
|
417
417
|
if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
|
|
418
418
|
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();
|
|
419
419
|
if (c && (o.attr("x", n.posWithOffset - c.width / 2 - P).attr("y", n.y + 13.5).attr("width", c.width + 2 * P).attr("height", c.height + 2 * P), K === "TB" || K === "BT" ? (o.attr("x", n.x - (c.width + 4 * N + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * N)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) {
|
|
@@ -424,7 +424,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
}, "drawCommitLabel"),
|
|
427
|
+
}, "drawCommitLabel"), Ae = /* @__PURE__ */ t((e, t, n, r) => {
|
|
428
428
|
if (t.tags.length > 0) {
|
|
429
429
|
let i = 0, a = 0, o = 0, s = [];
|
|
430
430
|
for (let r of t.tags.reverse()) {
|
|
@@ -457,7 +457,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
}, "drawCommitTags"),
|
|
460
|
+
}, "drawCommitTags"), je = /* @__PURE__ */ t((e) => {
|
|
461
461
|
switch (e.customType ?? e.type) {
|
|
462
462
|
case x.NORMAL: return "commit-normal";
|
|
463
463
|
case x.REVERSE: return "commit-reverse";
|
|
@@ -466,13 +466,13 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
466
466
|
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
467
467
|
default: return "commit-normal";
|
|
468
468
|
}
|
|
469
|
-
}, "getCommitClassType"),
|
|
469
|
+
}, "getCommitClassType"), Me = /* @__PURE__ */ t((e, t, n, r) => {
|
|
470
470
|
let i = {
|
|
471
471
|
x: 0,
|
|
472
472
|
y: 0
|
|
473
473
|
};
|
|
474
474
|
if (e.parents.length > 0) {
|
|
475
|
-
let n =
|
|
475
|
+
let n = Y(e.parents);
|
|
476
476
|
if (n) {
|
|
477
477
|
let a = r.get(n) ?? i;
|
|
478
478
|
return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
|
|
@@ -481,7 +481,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
481
481
|
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
482
482
|
else return 0;
|
|
483
483
|
return 0;
|
|
484
|
-
}, "calculatePosition"),
|
|
484
|
+
}, "calculatePosition"), Ne = /* @__PURE__ */ t((e, t, n) => {
|
|
485
485
|
let r = K === "BT" && n ? t : t + j, i = B.get(e.branch)?.pos, a = K === "TB" || K === "BT" ? B.get(e.branch)?.pos : r;
|
|
486
486
|
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
487
487
|
let o = I.has(u().theme ?? "");
|
|
@@ -490,19 +490,19 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
490
490
|
y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
|
|
491
491
|
posWithOffset: r
|
|
492
492
|
};
|
|
493
|
-
}, "getCommitPosition"),
|
|
493
|
+
}, "getCommitPosition"), X = /* @__PURE__ */ t((e, n, r, i) => {
|
|
494
494
|
let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = K === "TB" || K === "BT" ? H : 0, c = [...n.keys()], l = i.parallelCommits ?? !1, u = /* @__PURE__ */ t((e, t) => {
|
|
495
495
|
let r = n.get(e)?.seq, i = n.get(t)?.seq;
|
|
496
496
|
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
497
497
|
}, "sortKeys"), d = c.sort(u);
|
|
498
|
-
K === "BT" && (l &&
|
|
498
|
+
K === "BT" && (l && Ce(d, n, s), d = d.reverse()), d.forEach((e) => {
|
|
499
499
|
let t = n.get(e);
|
|
500
500
|
if (!t) throw Error(`Commit not found for key ${e}`);
|
|
501
|
-
l && (s =
|
|
502
|
-
let c =
|
|
501
|
+
l && (s = Me(t, K, s, V));
|
|
502
|
+
let c = Ne(t, s, l);
|
|
503
503
|
if (r) {
|
|
504
|
-
let e =
|
|
505
|
-
|
|
504
|
+
let e = je(t), n = t.customType ?? t.type, r = B.get(t.branch)?.index ?? 0;
|
|
505
|
+
Oe(a, t, c, e, r, n), ke(o, t, c, s, i), Ae(o, t, c, s);
|
|
506
506
|
}
|
|
507
507
|
K === "TB" || K === "BT" ? V.set(t.id, {
|
|
508
508
|
x: c.x,
|
|
@@ -512,52 +512,52 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
512
512
|
y: c.y
|
|
513
513
|
}), s = K === "BT" && l ? s + M : s + M + j, s > G && (G = s);
|
|
514
514
|
});
|
|
515
|
-
}, "drawCommits"),
|
|
515
|
+
}, "drawCommits"), Pe = /* @__PURE__ */ t((e, n, r, i, a) => {
|
|
516
516
|
let o = (K === "TB" || K === "BT" ? r.x < i.x : r.y < i.y) ? n.branch : e.branch, s = /* @__PURE__ */ t((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ t((t) => t.seq > e.seq && t.seq < n.seq, "isBetweenCommits");
|
|
517
517
|
return [...a.values()].some((e) => c(e) && s(e));
|
|
518
|
-
}, "shouldRerouteArrow"),
|
|
518
|
+
}, "shouldRerouteArrow"), Z = /* @__PURE__ */ t((e, t, n = 0) => {
|
|
519
519
|
let r = e + Math.abs(e - t) / 2;
|
|
520
|
-
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) :
|
|
521
|
-
}, "findLane"),
|
|
520
|
+
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : Z(e, t - Math.abs(e - t) / 5, n + 1);
|
|
521
|
+
}, "findLane"), Fe = /* @__PURE__ */ t((e, t, n, r) => {
|
|
522
522
|
let { theme: i } = u(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
|
|
523
523
|
if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
524
|
-
let c =
|
|
524
|
+
let c = Pe(t, n, o, s, r), l = "", d = "", f = 0, p = 0, m = B.get(n.branch)?.index;
|
|
525
525
|
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
526
526
|
let h;
|
|
527
527
|
if (c) {
|
|
528
528
|
l = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
|
|
529
|
-
let e = o.y < s.y ?
|
|
529
|
+
let e = o.y < s.y ? Z(o.y, s.y) : Z(s.y, o.y), n = o.x < s.x ? Z(o.x, s.x) : Z(s.x, o.x);
|
|
530
530
|
K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - f} ${o.y} ${d} ${n} ${o.y + p} L ${n} ${s.y - f} ${l} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + f} ${o.y} ${l} ${n} ${o.y + p} L ${n} ${s.y - f} ${d} ${n - p} ${s.y} L ${s.x} ${s.y}`) : K === "BT" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - f} ${o.y} ${l} ${n} ${o.y - p} L ${n} ${s.y + f} ${d} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + f} ${o.y} ${d} ${n} ${o.y - p} L ${n} ${s.y + f} ${l} ${n - p} ${s.y} L ${s.x} ${s.y}`) : o.y < s.y ? h = `M ${o.x} ${o.y} L ${o.x} ${e - f} ${l} ${o.x + p} ${e} L ${s.x - f} ${e} ${d} ${s.x} ${e + p} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${o.x} ${e + f} ${d} ${o.x + p} ${e} L ${s.x - f} ${e} ${l} ${s.x} ${e - p} L ${s.x} ${s.y}`);
|
|
531
531
|
} else l = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, K === "TB" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - f} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - f} ${o.y} ${d} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - f} ${d} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + f} ${o.y} ${l} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : K === "BT" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + f} ${d} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - f} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + f} ${l} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + f} ${o.y} ${d} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : (o.y < s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - f} ${o.y} ${d} ${s.x} ${o.y + p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - f} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y > s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - f} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + f} ${d} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
|
|
532
532
|
if (h === void 0) throw Error("Line definition not found");
|
|
533
533
|
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
534
|
-
}, "drawArrow"),
|
|
534
|
+
}, "drawArrow"), Ie = /* @__PURE__ */ t((e, t) => {
|
|
535
535
|
let n = e.append("g").attr("class", "commit-arrows");
|
|
536
536
|
[...t.keys()].forEach((e) => {
|
|
537
537
|
let r = t.get(e);
|
|
538
538
|
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
539
|
-
|
|
539
|
+
Fe(n, t.get(e), r, t);
|
|
540
540
|
});
|
|
541
541
|
});
|
|
542
|
-
}, "drawArrows"),
|
|
542
|
+
}, "drawArrows"), Le = /* @__PURE__ */ t((e, t, n, r) => {
|
|
543
543
|
let { look: i, theme: a, themeVariables: o } = u(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), d = R.has(a ?? ""), f = e.append("g");
|
|
544
544
|
t.forEach((e, t) => {
|
|
545
545
|
let a = z(t, l ? c : F, d), o = B.get(e.name)?.pos;
|
|
546
546
|
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
547
547
|
let u = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = f.append("line");
|
|
548
548
|
p.attr("x1", 0), p.attr("y1", u), p.attr("x2", G), p.attr("y2", u), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(u);
|
|
549
|
-
let m = e.name, h =
|
|
549
|
+
let m = e.name, h = J(m), g = f.insert("rect"), _ = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
550
550
|
_.node().appendChild(h);
|
|
551
551
|
let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
|
|
552
552
|
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.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 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (u - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (u - 12 - x / 2) + ")");
|
|
553
553
|
});
|
|
554
|
-
}, "drawBranches"),
|
|
554
|
+
}, "drawBranches"), Re = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
555
555
|
return B.set(e, {
|
|
556
556
|
pos: t,
|
|
557
557
|
index: n
|
|
558
558
|
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
559
|
-
}, "setBranchPosition"),
|
|
560
|
-
|
|
559
|
+
}, "setBranchPosition"), ze = { draw: /* @__PURE__ */ t(function(e, t, i, a) {
|
|
560
|
+
q(), n.debug("in gitgraph renderer", e + "\n", "id:", t, i);
|
|
561
561
|
let o = a.db;
|
|
562
562
|
if (!o.getConfig) {
|
|
563
563
|
n.error("getConfig method is not available on db");
|
|
@@ -567,25 +567,25 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
567
567
|
U = o.getCommits();
|
|
568
568
|
let d = o.getBranchesAsObjArray();
|
|
569
569
|
K = o.getDirection();
|
|
570
|
-
let f = r(`[id="${t}"]`), { look: p, theme: m, themeVariables: h } = u(), { useGradient:
|
|
571
|
-
if (
|
|
570
|
+
let f = r(`[id="${t}"]`), { look: p, theme: m, themeVariables: h } = u(), { useGradient: g, gradientStart: v, gradientStop: y, filterColor: b } = h;
|
|
571
|
+
if (g) {
|
|
572
572
|
let e = f.append("defs").append("linearGradient").attr("id", t + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
573
573
|
e.append("stop").attr("offset", "0%").attr("stop-color", v).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", y).attr("stop-opacity", 1);
|
|
574
574
|
}
|
|
575
575
|
p === "neo" && I.has(m ?? "") && f.append("defs").append("filter").attr("id", t + "-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", b);
|
|
576
576
|
let x = 0;
|
|
577
577
|
d.forEach((e, t) => {
|
|
578
|
-
let n =
|
|
578
|
+
let n = J(e.name), r = f.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
579
579
|
a.node()?.appendChild(n);
|
|
580
580
|
let o = n.getBBox();
|
|
581
|
-
x =
|
|
582
|
-
}),
|
|
583
|
-
}, "draw") },
|
|
581
|
+
x = Re(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
|
|
582
|
+
}), X(f, U, !1, c), c.showBranches && Le(f, d, c, t), Ie(f, U), X(f, U, !0, c), _.insertTitle(f, "gitTitleText", c.titleTopMargin ?? 0, o.getDiagramTitle()), s(void 0, f, c.diagramPadding, c.useMaxWidth);
|
|
583
|
+
}, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
|
|
584
584
|
"redux",
|
|
585
585
|
"redux-dark",
|
|
586
586
|
"redux-color",
|
|
587
587
|
"redux-dark-color"
|
|
588
|
-
]),
|
|
588
|
+
]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
|
|
589
589
|
"dark",
|
|
590
590
|
"redux-dark",
|
|
591
591
|
"redux-dark-color",
|
|
@@ -604,8 +604,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
604
604
|
`;
|
|
605
605
|
return n;
|
|
606
606
|
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ t((e) => {
|
|
607
|
-
let { theme: t, themeVariables: n } = h(), { borderColorArray: r } = n, i =
|
|
608
|
-
if (
|
|
607
|
+
let { theme: t, themeVariables: n } = h(), { borderColorArray: r } = n, i = $.has(t);
|
|
608
|
+
if (Ve.has(t)) {
|
|
609
609
|
let t = "";
|
|
610
610
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
611
611
|
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
@@ -616,7 +616,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
616
616
|
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
617
617
|
${We(e)}`;
|
|
618
618
|
else {
|
|
619
|
-
let r = n %
|
|
619
|
+
let r = n % Q;
|
|
620
620
|
t += `
|
|
621
621
|
.branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
|
|
622
622
|
.commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
|
|
@@ -626,7 +626,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
626
626
|
}
|
|
627
627
|
return t;
|
|
628
628
|
}
|
|
629
|
-
if (
|
|
629
|
+
if (Be.has(t)) {
|
|
630
630
|
let n = "";
|
|
631
631
|
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
|
|
632
632
|
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
@@ -662,7 +662,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
662
662
|
return t;
|
|
663
663
|
}
|
|
664
664
|
}, "genColor"), Ke = /* @__PURE__ */ t((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
665
|
-
let n = t %
|
|
665
|
+
let n = t % Q;
|
|
666
666
|
return `
|
|
667
667
|
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
668
668
|
.commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
|
|
@@ -673,7 +673,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
673
673
|
}).join("\n")}`, "normalTheme"), qe = {
|
|
674
674
|
parser: be,
|
|
675
675
|
db: A,
|
|
676
|
-
renderer:
|
|
676
|
+
renderer: ze,
|
|
677
677
|
styles: /* @__PURE__ */ t((e) => {
|
|
678
678
|
let { theme: t } = h(), n = Ue.has(t);
|
|
679
679
|
return `
|
|
@@ -717,7 +717,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
717
717
|
|
|
718
718
|
.arrow {
|
|
719
719
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
720
|
-
stroke-width: ${
|
|
720
|
+
stroke-width: ${$.has(t) ? e.strokeWidth : 8};
|
|
721
721
|
stroke-linecap: round;
|
|
722
722
|
fill: none
|
|
723
723
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs"),r=require("./chunk-BG4553SI-DFPUniBw.cjs"),i=require("./mermaid.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs"),r=require("./chunk-BG4553SI-DFPUniBw.cjs"),i=require("./mermaid.core-uCBIzEBU.cjs");var a={parse:t.n(async t=>{let r=await e.n(`info`,t);n.m.debug(r)},`parse`)},o={version:`12.3.0`},s={parser:a,db:{getVersion:t.n(()=>o.version,`getVersion`)},renderer:{draw:t.n((e,t,a)=>{n.m.debug(`rendering info diagram
|
|
2
2
|
`+e);let o=i.o(t);r.c(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};exports.diagram=s;
|
|
@@ -2,7 +2,7 @@ import { n as e } from "./mermaid-parser.core-IoY9gmm6.js";
|
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n } from "./src-65Lfw03T.js";
|
|
4
4
|
import { c as r } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
5
|
-
import { o as i } from "./mermaid.core-
|
|
5
|
+
import { o as i } from "./mermaid.core-BlYpILf7.js";
|
|
6
6
|
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-KBXO4MBG.mjs
|
|
7
7
|
var a = { parse: /* @__PURE__ */ t(async (t) => {
|
|
8
8
|
let r = await e("info", t);
|