@bkm016/basalt 0.0.0-stage → 0.1.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 +275 -2
- package/chunk-09vr609h.js +2 -0
- package/chunk-0hbjv3y6.js +11 -0
- package/chunk-0qqb6v41.js +3753 -0
- package/chunk-0szjy61m.js +2 -0
- package/chunk-0yytz0r1.js +59 -0
- package/chunk-1aspj1hn.js +3 -0
- package/chunk-1b7gbe8g.js +10 -0
- package/chunk-1v7st27a.js +25 -0
- package/chunk-1yzt0qm0.js +2 -0
- package/chunk-2bb01ddq.js +16 -0
- package/chunk-2wkaw73s.js +9 -0
- package/chunk-2zqny2sy.js +2 -0
- package/chunk-32at88hc.js +3 -0
- package/chunk-3m7qwfm3.js +7 -0
- package/chunk-44ek81ad.js +3 -0
- package/chunk-45cz26ap.js +39 -0
- package/chunk-501zkf9b.js +3 -0
- package/chunk-58vz2qsq.js +2 -0
- package/chunk-6e49xsf5.js +3 -0
- package/chunk-6qertm2t.js +3 -0
- package/chunk-8dxzqwq3.js +2 -0
- package/chunk-9mmz6wt3.js +2 -0
- package/chunk-a3tqx584.js +10 -0
- package/chunk-a6r4z44b.js +2 -0
- package/chunk-a8nyk4k9.js +2 -0
- package/chunk-agntrqs9.js +2 -0
- package/chunk-bhqyxyap.js +3 -0
- package/chunk-bpw6q7g0.js +3 -0
- package/chunk-c25s4w6a.js +5 -0
- package/chunk-cv5wsd9m.js +8 -0
- package/chunk-d48bfd2e.js +3 -0
- package/chunk-dakrpbe6.js +3 -0
- package/chunk-dhm42y04.js +7 -0
- package/chunk-exnn1867.js +2 -0
- package/chunk-f7egr55n.js +31 -0
- package/chunk-g2t6t8fk.js +3 -0
- package/chunk-h6sw8fbt.js +5 -0
- package/chunk-hat3s3pr.js +3 -0
- package/chunk-hcn9cf6v.js +2 -0
- package/chunk-jhd54p1b.js +3 -0
- package/chunk-k7w7ac9q.js +18 -0
- package/chunk-kf8hq21a.js +25 -0
- package/chunk-kfq8wyd3.js +3 -0
- package/chunk-n6e43rvk.js +3 -0
- package/chunk-nt2gntad.js +2 -0
- package/chunk-pmc3y1z8.js +2 -0
- package/chunk-pvncysbb.js +3 -0
- package/chunk-q8zx3kt6.js +2 -0
- package/chunk-qczbfccb.js +12 -0
- package/chunk-qnr1f5pj.js +3 -0
- package/chunk-qx0m82rw.js +2 -0
- package/chunk-r9aatvwm.js +3 -0
- package/chunk-rm3kcxq9.js +20 -0
- package/chunk-rv06x0kn.js +7 -0
- package/chunk-ry0z4ev6.js +2 -0
- package/chunk-s37s3k24.js +12 -0
- package/chunk-sh74qzvt.js +5 -0
- package/chunk-szat3vp4.js +3 -0
- package/chunk-t057xfrt.js +5 -0
- package/chunk-tvm4zmgj.js +3 -0
- package/chunk-v9fea96h.js +3 -0
- package/chunk-vgvq3q12.js +3 -0
- package/chunk-vkkj4awb.js +2 -0
- package/chunk-vv7fp27r.js +3 -0
- package/chunk-wjd9fr23.js +2 -0
- package/chunk-wx7kdf0b.js +2 -0
- package/chunk-x3dnb9sz.js +3 -0
- package/chunk-xsbxykr4.js +2 -0
- package/chunk-xysny0ve.js +3 -0
- package/chunk-y69ewdn2.js +3 -0
- package/chunk-yskm0hsy.js +2 -0
- package/chunk-zef13k3h.js +471 -0
- package/cli.js +89 -0
- package/compiled.js +23 -0
- package/icon-dp9pmcvp.png +0 -0
- package/package.json +21 -4
- package/ui-test-worker.js +226 -0
- package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
- package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
- package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
- package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
- package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
- package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
- package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
- package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
- package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
- package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
- package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
- package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
- package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
- package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
- package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
- package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
- package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
- package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
- package/web/apple-touch-icon-7dkm33qp.png +0 -0
- package/web/apple-touch-icon.png +0 -0
- package/web/chunk-05w4fyzc.js +1 -0
- package/web/chunk-0mrkjnte.js +1 -0
- package/web/chunk-0pbjgdgp.js +2 -0
- package/web/chunk-0s80zw00.js +1 -0
- package/web/chunk-0vt9fg48.js +2 -0
- package/web/chunk-20q90epj.js +2 -0
- package/web/chunk-22a4ety5.js +1 -0
- package/web/chunk-24mfx6w1.js +2 -0
- package/web/chunk-2j4m0bh1.js +2 -0
- package/web/chunk-2m12wyrb.js +16 -0
- package/web/chunk-2msj52w6.js +1 -0
- package/web/chunk-2ps6mepk.js +120 -0
- package/web/chunk-2pver6r4.js +1 -0
- package/web/chunk-2scce33n.js +1 -0
- package/web/chunk-37ajk6zg.js +2 -0
- package/web/chunk-3ee04tmm.js +200 -0
- package/web/chunk-3jhyzmnf.js +292 -0
- package/web/chunk-45fzdcgz.js +30 -0
- package/web/chunk-4gavbw65.js +1 -0
- package/web/chunk-4ks96e4r.js +1 -0
- package/web/chunk-4rm1vy7w.js +1 -0
- package/web/chunk-4v8en1yw.js +40 -0
- package/web/chunk-4wd9r73y.js +1 -0
- package/web/chunk-4wkm9fda.js +1 -0
- package/web/chunk-54thej0t.js +2 -0
- package/web/chunk-59kqahb3.js +1 -0
- package/web/chunk-5vw9rs4r.js +4 -0
- package/web/chunk-6beqrmtq.js +1 -0
- package/web/chunk-6m69hczt.js +2 -0
- package/web/chunk-70qwwwak.js +2 -0
- package/web/chunk-74j07k8k.js +2 -0
- package/web/chunk-8g239029.js +1 -0
- package/web/chunk-8p4tc9f4.js +70 -0
- package/web/chunk-90kp4pnz.js +2 -0
- package/web/chunk-9an7cjd9.js +291 -0
- package/web/chunk-9dxjafp2.js +78 -0
- package/web/chunk-9p12mgs6.js +2 -0
- package/web/chunk-9v1f6yc8.js +1 -0
- package/web/chunk-9yakxvjb.js +2 -0
- package/web/chunk-a1z5qx1r.js +36 -0
- package/web/chunk-a3verqw9.js +214 -0
- package/web/chunk-a5x2zveg.js +7 -0
- package/web/chunk-ad6x47yy.js +1 -0
- package/web/chunk-amzgyy1k.js +1 -0
- package/web/chunk-b1pe46zz.js +2 -0
- package/web/chunk-b4wbk7vc.js +217 -0
- package/web/chunk-bc78qf1m.js +7 -0
- package/web/chunk-bgnnrpna.js +89 -0
- package/web/chunk-bj90t5gh.js +99 -0
- package/web/chunk-bjkc94mv.js +1 -0
- package/web/chunk-ca682sm6.js +370 -0
- package/web/chunk-cff5hcm8.js +8 -0
- package/web/chunk-cg3jterp.js +2 -0
- package/web/chunk-d18r4m14.js +141 -0
- package/web/chunk-dmqtdeb4.js +1 -0
- package/web/chunk-dt462hk9.js +332 -0
- package/web/chunk-dy2gm1fs.js +1 -0
- package/web/chunk-dzwxgqgm.js +39 -0
- package/web/chunk-e32y85kx.js +1 -0
- package/web/chunk-e53wfgb8.js +1 -0
- package/web/chunk-e6jxqbv7.js +3 -0
- package/web/chunk-esp1mmgr.js +1 -0
- package/web/chunk-ew3cgdtd.js +1 -0
- package/web/chunk-f26smjjf.js +2 -0
- package/web/chunk-f91wzwtk.js +1 -0
- package/web/chunk-fk0dh93x.js +89 -0
- package/web/chunk-fm2ybfj5.js +98 -0
- package/web/chunk-fscafg24.js +34 -0
- package/web/chunk-fz06t6km.js +55 -0
- package/web/chunk-g1ev11wx.js +1 -0
- package/web/chunk-g4azyef7.js +106 -0
- package/web/chunk-gjq1pxw3.js +1 -0
- package/web/chunk-gqw3f02j.js +140 -0
- package/web/chunk-h5ejbf6e.js +1 -0
- package/web/chunk-hev4hq89.js +2 -0
- package/web/chunk-hfaffkrh.js +1 -0
- package/web/chunk-hp167dbv.js +1 -0
- package/web/chunk-j2vt8c8v.js +1 -0
- package/web/chunk-jjh5jvva.js +1 -0
- package/web/chunk-jrcyc9s9.js +38 -0
- package/web/chunk-jwzd9tzk.js +24 -0
- package/web/chunk-k5btcvbg.js +1 -0
- package/web/chunk-ka3q31t1.js +1 -0
- package/web/chunk-kdyjnwdx.js +2 -0
- package/web/chunk-kpvgecwy.js +1 -0
- package/web/chunk-kq40ss39.js +1 -0
- package/web/chunk-m2d1sp30.js +1 -0
- package/web/chunk-n1dmrz44.js +2 -0
- package/web/chunk-n90cqdvg.js +2 -0
- package/web/chunk-nj0cv1cq.js +257 -0
- package/web/chunk-nzey7cpv.js +1 -0
- package/web/chunk-p3b9crsa.js +2 -0
- package/web/chunk-pf2ab8p8.js +1 -0
- package/web/chunk-pxe3vna4.js +1 -0
- package/web/chunk-q0p5xqe1.js +84 -0
- package/web/chunk-q5ke7a33.js +24 -0
- package/web/chunk-q7dsnvpf.js +1 -0
- package/web/chunk-qd8bxxdj.js +1 -0
- package/web/chunk-qefasa1j.js +2 -0
- package/web/chunk-qh7265qw.js +4 -0
- package/web/chunk-qnaqf0cr.js +1 -0
- package/web/chunk-r1dnh0s8.js +1 -0
- package/web/chunk-r5eakmw6.js +1 -0
- package/web/chunk-rg426vkf.js +1 -0
- package/web/chunk-rpmpttbk.js +12 -0
- package/web/chunk-rtf2zzzv.js +1 -0
- package/web/chunk-ry9256r7.js +1 -0
- package/web/chunk-rykfak98.js +2 -0
- package/web/chunk-scpwc9ev.js +1 -0
- package/web/chunk-srrfphes.js +1 -0
- package/web/chunk-ss1bcb0n.js +2 -0
- package/web/chunk-ssy07dd2.js +1 -0
- package/web/chunk-t6agpn2z.js +1 -0
- package/web/chunk-taynqrgq.js +142 -0
- package/web/chunk-tgpbhzn9.js +1 -0
- package/web/chunk-tmvakq7n.js +19 -0
- package/web/chunk-tqmwd9qp.js +139 -0
- package/web/chunk-ts7zrf5b.js +2 -0
- package/web/chunk-ttg6tbwx.js +2 -0
- package/web/chunk-v28fx2nd.js +1 -0
- package/web/chunk-v5cnt7c8.js +1 -0
- package/web/chunk-vt40e1kp.js +1136 -0
- package/web/chunk-w53rba6g.js +1 -0
- package/web/chunk-w86n42dy.js +1 -0
- package/web/chunk-w880psmw.js +1 -0
- package/web/chunk-wptv8atc.js +2 -0
- package/web/chunk-wtawdeej.css +1 -0
- package/web/chunk-xbty0rv7.js +41 -0
- package/web/chunk-xet1jjy9.js +1 -0
- package/web/chunk-xjxv8dg8.js +169 -0
- package/web/chunk-xrxne80b.js +62 -0
- package/web/chunk-xzp7jf7e.js +2 -0
- package/web/chunk-y0m8hrwz.js +303 -0
- package/web/chunk-y49fhfda.js +7 -0
- package/web/chunk-yd46jhqv.js +1 -0
- package/web/chunk-ydtrc1ay.js +2 -0
- package/web/chunk-z09emmrb.js +1 -0
- package/web/chunk-z7dcbxws.js +1 -0
- package/web/chunk-zbj1trar.js +2 -0
- package/web/chunk-zde7mj43.js +1 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/icon-yx2p2pye.svg +13 -0
- package/web/icon.svg +13 -0
- package/web/index.html +23 -0
- package/web/install.ps1 +91 -0
- package/web/install.sh +177 -0
- package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
- package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
- package/web/manifest-txf6vfbq.webmanifest +35 -0
- package/web/manifest.webmanifest +35 -0
- package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
- package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
- package/web/sw.js +90 -0
- package/worker.js +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ta}from"./chunk-cg3jterp.js";export{ta as default};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{hn}from"./chunk-9p12mgs6.js";import{W}from"./chunk-b1pe46zz.js";import{e,r,D,b,y,C,S,E,T,A,I,L,s,wr,p,Ui,U,N}from"./chunk-y0m8hrwz.js";import{X}from"./chunk-taynqrgq.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new hn(()=>{let t=J(),{mainBranchName:a,mainBranchOrder:o}=t;return{mainBranchName:a,commits:new Map,head:null,branchConfig:new Map([[a,{name:a,order:o}]]),branches:new Map([[a,null]]),currBranch:a,direction:"LR",seq:0,options:{}}});function ne(){return Ui({length:7})}e(ne,"getID");function pe(t,a){let o=Object.create(null);return t.reduce((i,d)=>{let l=a(d);if(!o[l])o[l]=!0,i.push(d);return i},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){r.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(a){r.error("error while parsing gitGraph options",a.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:a,id:o,type:i,tags:d}=t;r.info("commit",a,o,i,d),r.debug("Entering commit:",a,o,i,d);let l=J();o=y.sanitizeText(o,l),a=y.sanitizeText(a,l),d=d?.map((n)=>y.sanitizeText(n,l));let c={id:o?o:m.records.seq+"-"+ne(),message:a,seq:m.records.seq++,type:i??v.NORMAL,tags:d??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=c,r.info("main branch",l.mainBranchName),m.records.commits.has(c.id))r.warn(`Commit ID ${c.id} already exists`);m.records.commits.set(c.id,c),m.records.branches.set(m.records.currBranch,c.id),r.debug("in pushCommit "+c.id)},"commit"),Me=e(function(t){let{name:a,order:o}=t;if(a=y.sanitizeText(a,J()),m.records.branches.has(a))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 ${a}")`);m.records.branches.set(a,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(a,{name:a,order:o}),ye(a),r.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:a,id:o,type:i,tags:d}=t,l=J();if(a=y.sanitizeText(a,l),o)o=y.sanitizeText(o,l);let c=m.records.branches.get(m.records.currBranch),n=m.records.branches.get(a),g=c?m.records.commits.get(c):void 0,x=n?m.records.commits.get(n):void 0;if(g&&x&&g.branch===a)throw Error(`Cannot merge branch '${a}' into itself.`);if(m.records.currBranch===a){let h=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(g===void 0||!g){let h=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["commit"]},h}if(!m.records.branches.has(a)){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") does not exist");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:[`branch ${a}`]},h}if(x===void 0||!x){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") has no commits");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:['"commit"']},h}if(g===x){let h=Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(o&&m.records.commits.has(o)){let h=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw h.hash={text:`merge ${a} ${o} ${i} ${d?.join(" ")}`,token:`merge ${a} ${o} ${i} ${d?.join(" ")}`,expected:[`merge ${a} ${o}_UNIQUE ${i} ${d?.join(" ")}`]},h}let u=n?n:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${a} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:i,customId:o?!0:!1,tags:d??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),r.debug(m.records.branches),r.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:a,targetId:o,tags:i,parent:d}=t;r.debug("Entering cherryPick:",a,o,i);let l=J();if(a=y.sanitizeText(a,l),o=y.sanitizeText(o,l),i=i?.map((g)=>y.sanitizeText(g,l)),d=y.sanitizeText(d,l),!a||!m.records.commits.has(a)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},g}let c=m.records.commits.get(a);if(c===void 0||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(d&&!(Array.isArray(c.parents)&&c.parents.includes(d)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let n=c.branch;if(c.type===v.MERGE&&!d)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(n===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let x=m.records.commits.get(g);if(x===void 0||!x){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${c?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,c.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${c.id}${c.type===v.MERGE?`|parent:${d}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),r.debug(m.records.branches),r.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,J()),!m.records.branches.has(t)){let a=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw a.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},a}else{m.records.currBranch=t;let a=m.records.branches.get(m.records.currBranch);if(a===void 0||!a)m.records.head=null;else m.records.head=m.records.commits.get(a)??null}},"checkout");function he(t,a,o){let i=t.indexOf(a);if(i===-1)t.push(o);else t.splice(i,1,o)}e(he,"upsert");function me(t){let a=t.reduce((d,l)=>{if(d.seq>l.seq)return d;return l},t[0]),o="";t.forEach(function(d){if(d===a)o+="\t*";else o+="\t|"});let i=[o,a.id,a.seq];for(let d in m.records.branches)if(m.records.branches.get(d)===a.id)i.push(d);if(r.debug(i.join(" ")),a.parents&&a.parents.length==2&&a.parents[0]&&a.parents[1]){let d=m.records.commits.get(a.parents[0]);if(he(t,a,d),a.parents[1])t.push(m.records.commits.get(a.parents[1]))}else if(a.parents.length==0)return;else if(a.parents[0]){let d=m.records.commits.get(a.parents[0]);he(t,a,d)}t=pe(t,(d)=>d.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){r.debug(m.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){m.reset(),C()},"clear"),_e=e(function(){return[...m.records.branchConfig.values()].map((a,o)=>{if(a.order!==null&&a.order!==void 0)return a;return{...a,order:parseFloat(`0.${o}`)}}).sort((a,o)=>(a.order??0)-(o.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),Ge=e(function(){return m.records.branches},"getBranches"),De=e(function(){return m.records.commits},"getCommits"),xe=e(function(){let t=[...m.records.commits.values()];return t.forEach(function(a){r.debug(a.id)}),t.sort((a,o)=>a.seq-o.seq),t},"getCommitsArray"),We=e(function(){return m.records.currBranch},"getCurrentBranch"),qe=e(function(){return m.records.direction},"getDirection"),Ae=e(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L},He=e((t,a)=>{if(W(t,a),t.dir)a.setDirection(t.dir);for(let o of t.statements)Se(o,a)},"populate"),Se=e((t,a)=>{let i={Commit:e((d)=>a.commit(Ne(d)),"Commit"),Branch:e((d)=>a.branch(Fe(d)),"Branch"),Merge:e((d)=>a.merge(ze(d)),"Merge"),Checkout:e((d)=>a.checkout(Ye(d)),"Checkout"),CherryPicking:e((d)=>a.cherryPick(je(d)),"CherryPicking")}[t.$type];if(i)i(t);else r.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let a=await X("gitGraph",t);r.debug(a),He(a,ue)},"parse")},j=10,K=40,H=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=e((t,a,o=!1)=>{if(o&&t>0)return(t-1)%(a-1)+1;return t%a},"calcColorIndex"),_=new Map,G=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=e(()=>{_.clear(),G.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=e((t)=>{let a=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((i)=>{let d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),d.setAttribute("class","row"),d.textContent=i.trim(),a.appendChild(d)}),a},"drawText"),we=e((t)=>{let a,o,i;if(B==="BT")o=e((d,l)=>d<=l,"comparisonFunc"),i=1/0;else o=e((d,l)=>d>=l,"comparisonFunc"),i=0;return t.forEach((d)=>{let l=B==="TB"||B=="BT"?G.get(d)?.y:G.get(d)?.x;if(l!==void 0&&o(l,i))a=d,i=l}),a},"findClosestParent"),Ze=e((t)=>{let a="",o=1/0;return t.forEach((i)=>{let d=G.get(i).y;if(d<=o)a=i,o=d}),a||void 0},"findClosestParentBT"),Xe=e((t,a,o)=>{let i=o,d=o,l=[];t.forEach((c)=>{let n=a.get(c);if(!n)throw Error(`Commit not found for key ${c}`);if(n.parents.length)i=Qe(n),d=Math.max(i,d);else l.push(n);et(n,i)}),i=d,l.forEach((c)=>{tt(c,i,o)}),t.forEach((c)=>{let n=a.get(c);if(n?.parents.length){let g=Ze(n.parents);if(i=G.get(g).y-K,i<=d)d=i;let x=_.get(n.branch).pos,u=i-j;G.set(n.id,{x,y:u})}})},"setParallelBTPos"),Je=e((t)=>{let a=we(t.parents.filter((i)=>i!==null));if(!a)throw Error(`Closest parent not found for commit ${t.id}`);let o=G.get(a)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return o},"findClosestParentPos"),Qe=e((t)=>Je(t)+K,"calculateCommitPosition"),et=e((t,a)=>{let o=_.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let i=o.pos,d=a+j;return G.set(t.id,{x:i,y:d}),{x:i,y:d}},"setCommitPosition"),tt=e((t,a,o)=>{let i=_.get(t.branch);if(!i)throw Error(`Branch not found for commit ${t.id}`);let d=a+o,l=i.pos;G.set(t.id,{x:l,y:d})},"setRootPosition"),rt=e((t,a,o,i,d,l)=>{let{theme:c}=s(),n=ce.has(c??""),g=ge.has(c??""),x=Ue.has(c??"");if(l===v.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(n?3:0)).attr("y",o.y-10+(n?3:0)).attr("width",n?14:20).attr("height",n?14:20).attr("class",`commit ${a.id} commit-highlight${Z(d,V,g)} ${i}-outer`),t.append("rect").attr("x",o.x-6+(n?2:0)).attr("y",o.y-6+(n?2:0)).attr("width",n?8:12).attr("height",n?8:12).attr("class",`commit ${a.id} commit${Z(d,V,g)} ${i}-inner`);else if(l===v.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",n?7:10).attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`);else{let u=t.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",n?7:10),u.attr("class",`commit ${a.id} commit${Z(d,V,g)}`),l===v.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",n?5:6),f.attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}if(l===v.REVERSE){let f=t.append("path"),h=n?4:5;f.attr("d",`M ${o.x-h},${o.y-h}L${o.x+h},${o.y+h}M${o.x-h},${o.y+h}L${o.x+h},${o.y-h}`).attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}}},"drawCommitBullet"),at=e((t,a,o,i,d)=>{if(a.type!==v.CHERRY_PICK&&(a.customId&&a.type===v.MERGE||a.type!==v.MERGE)&&d.showCommitLabel){let l=t.append("g"),c=l.insert("rect").attr("class","commit-label-bkg"),n=l.append("text").attr("x",i).attr("y",o.y+25).attr("class","commit-label").text(a.id),g=n.node()?.getBBox();if(g){if(c.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")c.attr("x",o.x-(g.width+4*H+5)).attr("y",o.y-12),n.attr("x",o.x-(g.width+4*H)).attr("y",o.y+g.height-12);else n.attr("x",o.posWithOffset-g.width/2);if(d.rotateCommitLabel)if(B==="TB"||B==="BT")n.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),c.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let x=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;l.attr("transform","translate("+x+", "+u+") rotate(-45, "+i+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,a,o,i)=>{if(a.tags.length>0){let d=0,l=0,c=0,n=[];for(let g of a.tags.reverse()){let x=t.insert("polygon"),u=t.append("circle"),f=t.append("text").attr("y",o.y-16-d).attr("class","tag-label").text(g),h=f.node()?.getBBox();if(!h)throw Error("Tag bbox not found");l=Math.max(l,h.width),c=Math.max(c,h.height),f.attr("x",o.posWithOffset-h.width/2),n.push({tag:f,hole:u,rect:x,yOffset:d}),d+=20}for(let{tag:g,hole:x,rect:u,yOffset:f}of n){let h=c/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${i-l/2-H/2},${k+z}
|
|
3
|
+
${i-l/2-H/2},${k-z}
|
|
4
|
+
${o.posWithOffset-l/2-H},${k-h-z}
|
|
5
|
+
${o.posWithOffset+l/2+H},${k-h-z}
|
|
6
|
+
${o.posWithOffset+l/2+H},${k+h+z}
|
|
7
|
+
${o.posWithOffset-l/2-H},${k+h+z}`),x.attr("cy",k).attr("cx",i-l/2+H/2).attr("r",1.5).attr("class","tag-hole"),B==="TB"||B==="BT"){let w=i+f;u.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${o.x},${w+2}
|
|
9
|
+
${o.x},${w-2}
|
|
10
|
+
${o.x+j},${w-h-2}
|
|
11
|
+
${o.x+j+l+4},${w-h-2}
|
|
12
|
+
${o.x+j+l+4},${w+h+2}
|
|
13
|
+
${o.x+j},${w+h+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+i+")"),x.attr("cx",o.x+H/2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+o.x+","+i+")"),g.attr("x",o.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+i+")")}}}},"drawCommitTags"),st=e((t)=>{switch(t.customType??t.type){case v.NORMAL:return"commit-normal";case v.REVERSE:return"commit-reverse";case v.HIGHLIGHT:return"commit-highlight";case v.MERGE:return"commit-merge";case v.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=e((t,a,o,i)=>{let d={x:0,y:0};if(t.parents.length>0){let l=we(t.parents);if(l){let c=i.get(l)??d;if(a==="TB")return c.y+K;else if(a==="BT")return(i.get(t.id)??d).y-K;else return c.x+K}}else if(a==="TB")return oe;else if(a==="BT")return(i.get(t.id)??d).y-K;else return 0;return 0},"calculatePosition"),ct=e((t,a,o)=>{let i=B==="BT"&&o?a:a+j,d=_.get(t.branch)?.pos,l=B==="TB"||B==="BT"?_.get(t.branch)?.pos:i;if(l===void 0||d===void 0)throw Error(`Position were undefined for commit ${t.id}`);let c=ce.has(s().theme??""),n=B==="TB"||B==="BT"?i:d+(c?le/2+1:-2);return{x:l,y:n,posWithOffset:i}},"getCommitPosition"),$e=e((t,a,o,i)=>{let d=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c=B==="TB"||B==="BT"?oe:0,n=[...a.keys()],g=i.parallelCommits??!1,x=e((f,h)=>{let k=a.get(f)?.seq,w=a.get(h)?.seq;return k!==void 0&&w!==void 0?k-w:0},"sortKeys"),u=n.sort(x);if(B==="BT"){if(g)Xe(u,a,c);u=u.reverse()}u.forEach((f)=>{let h=a.get(f);if(!h)throw Error(`Commit not found for key ${f}`);if(g)c=nt(h,B,c,G);let k=ct(h,c,g);if(o){let w=st(h),M=h.customType??h.type,P=_.get(h.branch)?.index??0;rt(d,h,k,w,P,M),at(l,h,k,c,i),ot(l,h,k,c)}if(B==="TB"||B==="BT")G.set(h.id,{x:k.x,y:k.posWithOffset});else G.set(h.id,{x:k.posWithOffset,y:k.y});if(c=B==="BT"&&g?c+K:c+K+j,c>Y)Y=c})},"drawCommits"),it=e((t,a,o,i,d)=>{let c=(B==="TB"||B==="BT"?o.x<i.x:o.y<i.y)?a.branch:t.branch,n=e((x)=>x.branch===c,"isOnBranchToGetCurve"),g=e((x)=>x.seq>t.seq&&x.seq<a.seq,"isBetweenCommits");return[...d.values()].some((x)=>g(x)&&n(x))},"shouldRerouteArrow"),re=e((t,a,o=0)=>{let i=t+Math.abs(t-a)/2;if(o>5)return i;if(se.every((c)=>Math.abs(c-i)>=10))return se.push(i),i;let l=Math.abs(t-a);return re(t,a-l/5,o+1)},"findLane"),dt=e((t,a,o,i)=>{let{theme:d}=s(),l=ge.has(d??""),c=G.get(a.id),n=G.get(o.id);if(c===void 0||n===void 0)throw Error(`Commit positions not found for commits ${a.id} and ${o.id}`);let g=it(a,o,c,n,i),x="",u="",f=0,h=0,k=_.get(o.branch)?.index;if(o.type===v.MERGE&&a.id!==o.parents[0])k=_.get(a.branch)?.index;let w;if(g){x="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",f=10,h=10;let M=c.y<n.y?re(c.y,n.y):re(n.y,c.y),P=c.x<n.x?re(c.x,n.x):re(n.x,c.x);if(B==="TB")if(c.x<n.x)w=`M ${c.x} ${c.y} L ${P-f} ${c.y} ${u} ${P} ${c.y+h} L ${P} ${n.y-f} ${x} ${P+h} ${n.y} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${P+f} ${c.y} ${x} ${P} ${c.y+h} L ${P} ${n.y-f} ${u} ${P-h} ${n.y} L ${n.x} ${n.y}`;else if(B==="BT")if(c.x<n.x)w=`M ${c.x} ${c.y} L ${P-f} ${c.y} ${x} ${P} ${c.y-h} L ${P} ${n.y+f} ${u} ${P+h} ${n.y} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${P+f} ${c.y} ${u} ${P} ${c.y-h} L ${P} ${n.y+f} ${x} ${P-h} ${n.y} L ${n.x} ${n.y}`;else if(c.y<n.y)w=`M ${c.x} ${c.y} L ${c.x} ${M-f} ${x} ${c.x+h} ${M} L ${n.x-f} ${M} ${u} ${n.x} ${M+h} L ${n.x} ${n.y}`;else k=_.get(a.branch)?.index,w=`M ${c.x} ${c.y} L ${c.x} ${M+f} ${u} ${c.x+h} ${M} L ${n.x-f} ${M} ${x} ${n.x} ${M-h} L ${n.x} ${n.y}`}else if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,B==="TB"){if(c.x<n.x)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${x} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${u} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;if(c.x>n.x)if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${u} ${c.x-h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x+f} ${c.y} ${x} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;if(c.x===n.x)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}else if(B==="BT"){if(c.x<n.x)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${u} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${x} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;if(c.x>n.x)if(x="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",f=20,h=20,o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${x} ${c.x-h} ${n.y} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${n.x+f} ${c.y} ${u} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;if(c.x===n.x)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}else{if(c.y<n.y)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${u} ${n.x} ${c.y+h} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${c.x} ${n.y-f} ${x} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;if(c.y>n.y)if(o.type===v.MERGE&&a.id!==o.parents[0])w=`M ${c.x} ${c.y} L ${n.x-f} ${c.y} ${x} ${n.x} ${c.y-h} L ${n.x} ${n.y}`;else w=`M ${c.x} ${c.y} L ${c.x} ${n.y+f} ${u} ${c.x+h} ${n.y} L ${n.x} ${n.y}`;if(c.y===n.y)w=`M ${c.x} ${c.y} L ${n.x} ${n.y}`}if(w===void 0)throw Error("Line definition not found");t.append("path").attr("d",w).attr("class","arrow arrow"+Z(k,V,l))},"drawArrow"),ht=e((t,a)=>{let o=t.append("g").attr("class","commit-arrows");[...a.keys()].forEach((i)=>{let d=a.get(i);if(d.parents&&d.parents.length>0)d.parents.forEach((l)=>{dt(o,a.get(l),d,a)})})},"drawArrows"),lt=e((t,a,o,i)=>{let{look:d,theme:l,themeVariables:c}=s(),{dropShadow:n,THEME_COLOR_LIMIT:g}=c,x=ce.has(l??""),u=ge.has(l??""),f=t.append("g");a.forEach((h,k)=>{let w=Z(k,x?g:V,u),M=_.get(h.name)?.pos;if(M===void 0)throw Error(`Position not found for branch ${h.name}`);let P=B==="TB"||B==="BT"?M:x?M+le/2+1:M-2,R=f.append("line");if(R.attr("x1",0),R.attr("y1",P),R.attr("x2",Y),R.attr("y2",P),R.attr("class","branch branch"+w),B==="TB")R.attr("y1",oe),R.attr("x1",M),R.attr("y2",Y),R.attr("x2",M);else if(B==="BT")R.attr("y1",Y),R.attr("x1",M),R.attr("y2",oe),R.attr("x2",M);se.push(P);let ie=h.name,ee=be(ie),q=f.insert("rect"),F=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+w);F.node().appendChild(ee);let O=ee.getBBox(),fe=x?0:4,ae=x?16:0,Q=x?le:0;if(d==="neo")q.attr("data-look","neo");if(q.attr("class","branchLabelBkg label"+w).attr("style",d==="neo"?`filter:${x?`url(#${i}-drop-shadow)`:n}`:"").attr("rx",fe).attr("ry",fe).attr("x",-O.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-O.height/2+10).attr("width",O.width+18+ae).attr("height",O.height+4+Q),F.attr("transform","translate("+(-O.width-14-(o.rotateCommitLabel===!0?30:0)+ae/2)+", "+(P-O.height/2-2)+")"),B==="TB"){if(q.attr("x",M-O.width/2-10).attr("y",0),F.attr("transform","translate("+(M-O.width/2-5)+", 0)"),x)q.attr("transform",`translate(${-ae/2-3}, ${-Q-10})`),F.attr("transform","translate("+(M-O.width/2-5)+", "+(-Q*2+7)+")")}else if(B==="BT"){if(q.attr("x",M-O.width/2-10).attr("y",Y),F.attr("transform","translate("+(M-O.width/2-5)+", "+Y+")"),x)q.attr("transform",`translate(${-ae/2-3}, ${Q+10})`),F.attr("transform","translate("+(M-O.width/2-5)+", "+(Y+Q*2+4)+")")}else q.attr("transform","translate(-19, "+(P-12-Q/2)+")")})},"drawBranches"),mt=e(function(t,a,o,i,d){return _.set(t,{pos:a,index:o}),a+=50+(d?40:0)+(B==="TB"||B==="BT"?i.width/2:0),a},"setBranchPosition"),gt=e(function(t,a,o,i){Ve(),r.debug("in gitgraph renderer",t+`
|
|
14
|
+
`,"id:",a,o);let d=i.db;if(!d.getConfig){r.error("getConfig method is not available on db");return}let l=d.getConfig(),c=l.rotateCommitLabel??!1;te=d.getCommits();let n=d.getBranchesAsObjArray();B=d.getDirection();let g=p(`[id="${a}"]`),{look:x,theme:u,themeVariables:f}=s(),{useGradient:h,gradientStart:k,gradientStop:w,filterColor:M}=f;if(h){let R=g.append("defs").append("linearGradient").attr("id",a+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}if(x==="neo"&&ce.has(u??""))g.append("defs").append("filter").attr("id",a+"-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",M);let P=0;if(n.forEach((R,ie)=>{let ee=be(R.name),q=g.append("g"),de=q.insert("g").attr("class","branchLabel"),F=de.insert("g").attr("class","label branch-label");F.node()?.appendChild(ee);let O=ee.getBBox();P=mt(R.name,P,ie,O,c),F.remove(),de.remove(),q.remove()}),$e(g,te,!1,l),l.showBranches)lt(g,n,l,a);ht(g,te),$e(g,te,!0,l),N.insertTitle(g,"gitTitleText",l.titleTopMargin??0,d.getDiagramTitle()),wr(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=e((t)=>{let{svgId:a}=t,o="";if(t.useGradient&&a)for(let i=0;i<t.THEME_COLOR_LIMIT;i++)o+=`
|
|
15
|
+
.label${i} { fill: ${t.mainBkg}; stroke: url(${a}-gradient); stroke-width: ${t.strokeWidth};}
|
|
16
|
+
`;return o},"genGitGraphGradient"),bt=e((t)=>{let a=b(),{theme:o,themeVariables:i}=a,{borderColorArray:d}=i,l=ke.has(o);if(pt.has(o)){let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(n===0)c+=`
|
|
17
|
+
.branch-label${n} { fill: ${t.nodeBorder};}
|
|
18
|
+
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
19
|
+
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
20
|
+
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
|
|
23
|
+
${ut(t)}`;else{let g=n%Be;c+=`
|
|
24
|
+
.branch-label${n} { fill: ${t["gitBranchLabel"+g]}; }
|
|
25
|
+
.commit${n} { stroke: ${t["git"+g]}; fill: ${t["git"+g]}; }
|
|
26
|
+
.commit-highlight${n} { stroke: ${t["gitInv"+g]}; fill: ${t["gitInv"+g]}; }
|
|
27
|
+
.arrow${n} { stroke: ${t["git"+g]}; }
|
|
28
|
+
`}return c}else if(!$t.has(o)){let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)c+=`
|
|
29
|
+
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
30
|
+
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
31
|
+
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
32
|
+
.label${n} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${l?`font-weight:${t.noteFontWeight}`:""}}
|
|
33
|
+
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
35
|
+
.commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
|
|
36
|
+
`;return c}else{let c="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(n===0)c+=`
|
|
37
|
+
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
38
|
+
.commit${n} { stroke: ${t.nodeBorder}; }
|
|
39
|
+
.commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
|
|
40
|
+
.label${n} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
41
|
+
.arrow${n} { stroke: ${t.nodeBorder}; }
|
|
42
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
43
|
+
`;else{let g=n%d.length;c+=`
|
|
44
|
+
.branch-label${n} { fill: ${t.nodeBorder}; ${l?`font-weight:${t.noteFontWeight}`:""} }
|
|
45
|
+
.commit${n} { stroke: ${d[g]}; fill: ${d[g]}; }
|
|
46
|
+
.commit-highlight${n} { stroke: ${d[g]}; fill: ${d[g]}; }
|
|
47
|
+
.label${n} { fill: ${yt.has(o)?t.mainBkg:d[g]}; stroke: ${d[g]}; stroke-width: ${t.strokeWidth}; }
|
|
48
|
+
.arrow${n} { stroke: ${d[g]}; }
|
|
49
|
+
`}return c}},"genColor"),wt=e((t)=>`${Array.from({length:t.THEME_COLOR_LIMIT},(a,o)=>o).map((a)=>{let o=a%Be;return`
|
|
50
|
+
.branch-label${a} { fill: ${t["gitBranchLabel"+o]}; }
|
|
51
|
+
.commit${a} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }
|
|
52
|
+
.commit-highlight${a} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }
|
|
53
|
+
.label${a} { fill: ${t["git"+o]}; }
|
|
54
|
+
.arrow${a} { stroke: ${t["git"+o]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),Bt=e((t)=>{let a=b(),{theme:o}=a,i=xt.has(o);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
|
+
${i?bt(t):wt(t)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${t.strokeWidth};
|
|
70
|
+
stroke: ${t.commitLineColor??t.lineColor};
|
|
71
|
+
stroke-dasharray: ${i?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${i?t.nodeBorder:t.commitLabelColor}; ${i?`font-weight:${t.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${i?"transparent":t.commitLabelBackground}; opacity: ${i?"":0.5}; }
|
|
75
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${i?t.mainBkg:t.tagLabelBackground}; stroke: ${i?t.nodeBorder:t.tagLabelBorder}; ${i?`filter:${t.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${t.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
81
|
+
fill: ${i?t.mainBkg:t.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
85
|
+
fill: ${i?t.mainBkg:t.primaryColor};
|
|
86
|
+
stroke-width: ${i?t.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${i?t.mainBkg:t.primaryColor};
|
|
92
|
+
fill: ${i?t.mainBkg:t.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: ${ke.has(o)?t.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${t.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),kt=Bt,Ot={parser:Ke,db:ue,renderer:ft,styles:kt};export{Ot as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{yi}from"./chunk-taynqrgq.js";export{yi as createWardleyServices};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{e,r,se,b,y,B,C,s,p,Da,Rn,sn,Na,Er,Ar,Lr,Ir,Ma,Pa,Oa,$a,Ba,Fa,za,Ua,ja,qa,Va,Ga,Wa,Ha,Ya,Za,Xa,ln,Qa,le,ae,ie,Ye,Ze,St,ht,Tt,Hn,Qt,Yn}from"./chunk-y0m8hrwz.js";import{Q}from"./chunk-kdyjnwdx.js";import{je}from"./chunk-2m12wyrb.js";import{Pt}from"./chunk-37ajk6zg.js";function Te(t){return Array.isArray(t)}function Ne(t){if(Rn(t))return t;let l=sn(t);if(!Qe(t))return{};if(Te(t)){let n=Array.from(t);if(t.length>0&&typeof t[0]==="string"&&Object.hasOwn(t,"index"))n.index=t.index,n.input=t.input;return n}if(ln(t)){let n=t;return new n.constructor(n.buffer,n.byteOffset,n.length)}if(l==="[object ArrayBuffer]")return new ArrayBuffer(t.byteLength);if(l==="[object DataView]"){let n=t,{buffer:g,byteOffset:f,byteLength:i}=n,d=new ArrayBuffer(i),w=new Uint8Array(g,f,i);return new Uint8Array(d).set(w),new DataView(d)}if(l==="[object Boolean]"||l==="[object Number]"||l==="[object String]"){let g=new t.constructor(t.valueOf());if(l==="[object String]")et(g,t);else pe(g,t);return g}if(l==="[object Date]")return new Date(Number(t));if(l==="[object RegExp]"){let n=t,g=new RegExp(n.source,n.flags);return g.lastIndex=n.lastIndex,g}if(l==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(t));if(l==="[object Map]"){let n=t,g=new Map;return n.forEach((f,i)=>{g.set(i,f)}),g}if(l==="[object Set]"){let n=t,g=new Set;return n.forEach((f)=>{g.add(f)}),g}if(l==="[object Arguments]"){let n=t,g={};return pe(g,n),g.length=n.length,g[Symbol.iterator]=n[Symbol.iterator],g}let u={};return tt(u,t),pe(u,t),$e(u,t),u}function Qe(t){switch(sn(t)){case Ir:case Ba:case Fa:case Ua:case Lr:case Pa:case Za:case Xa:case Wa:case Ha:case Ya:case Oa:case Ar:case za:case Na:case $a:case Er:case Ma:case ja:case qa:case Va:case Ga:return!0;default:return!1}}function pe(t,l){for(let u in l)if(Object.hasOwn(l,u))t[u]=l[u]}function $e(t,l){let u=Object.getOwnPropertySymbols(l);for(let n=0;n<u.length;n++){let g=u[n];if(Object.prototype.propertyIsEnumerable.call(l,g))t[g]=l[g]}}function et(t,l){let u=l.valueOf().length;for(let n in l)if(Object.hasOwn(l,n)&&(Number.isNaN(Number(n))||Number(n)>=u))t[n]=l[n]}function tt(t,l){let u=Object.getPrototypeOf(l);if(u!==null){if(typeof l.constructor==="function")Object.setPrototypeOf(t,u)}}var be=function(){var t=e(function(R,S,o,h){for(o=o||{},h=R.length;h--;o[R[h]]=S);return o},"o"),l=[1,15],u=[1,7],n=[1,13],g=[1,14],f=[1,19],i=[1,16],d=[1,17],w=[1,18],E=[8,30],L=[8,10,21,28,29,30,31,39,43,46],m=[1,23],_=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],k=[8,10,15,16,21,27,28,29,30,31,39,43,46],I=[1,49],N={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e(function(S,o,h,x,D,a,H){var c=a.length-1;switch(D){case 4:x.getLogger().debug("Rule: separator (NL) ");break;case 5:x.getLogger().debug("Rule: separator (Space) ");break;case 6:x.getLogger().debug("Rule: separator (EOF) ");break;case 7:x.getLogger().debug("Rule: hierarchy: ",a[c-1]),x.setHierarchy(a[c-1]);break;case 8:x.getLogger().debug("Stop NL ");break;case 9:x.getLogger().debug("Stop EOF ");break;case 10:x.getLogger().debug("Stop NL2 ");break;case 11:x.getLogger().debug("Stop EOF2 ");break;case 12:x.getLogger().debug("Rule: statement: ",a[c]),typeof a[c].length==="number"?this.$=a[c]:this.$=[a[c]];break;case 13:x.getLogger().debug("Rule: statement #2: ",a[c-1]),this.$=[a[c-1]].concat(a[c]);break;case 14:x.getLogger().debug("Rule: link: ",a[c],S),this.$={edgeTypeStr:a[c],label:""};break;case 15:x.getLogger().debug("Rule: LABEL link: ",a[c-3],a[c-1],a[c]),this.$={edgeTypeStr:a[c],label:a[c-1]};break;case 18:let V=parseInt(a[c]),j=x.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:x.getLogger().debug("Rule: (nodeStatement link node) ",a[c-2],a[c-1],a[c]," typestr: ",a[c-1].edgeTypeStr);let G=x.edgeStrToEdgeData(a[c-1].edgeTypeStr),ne=x.edgeStrToEdgeStartData(a[c-1].edgeTypeStr),q=x.edgeStrToThickness(a[c-1].edgeTypeStr),oe=x.edgeStrToPattern(a[c-1].edgeTypeStr);this.$=[{id:a[c-2].id,label:a[c-2].label,type:a[c-2].type,directions:a[c-2].directions},{id:a[c-2].id+"-"+a[c].id,start:a[c-2].id,end:a[c].id,label:a[c-1].label,type:"edge",thickness:q,pattern:oe,directions:a[c].directions,arrowTypeEnd:G,arrowTypeStart:ne},{id:a[c].id,label:a[c].label,type:x.typeStr2Type(a[c].typeStr),directions:a[c].directions}];break;case 24:x.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[c-1],a[c]),this.$={id:a[c-1].id,label:a[c-1].label,type:x.typeStr2Type(a[c-1].typeStr),directions:a[c-1].directions,widthInColumns:parseInt(a[c],10)};break;case 25:x.getLogger().debug("Rule: nodeStatement (node) ",a[c]),this.$={id:a[c].id,label:a[c].label,type:x.typeStr2Type(a[c].typeStr),directions:a[c].directions,widthInColumns:1};break;case 26:x.getLogger().debug("APA123",this?this:"na"),x.getLogger().debug("COLUMNS: ",a[c]),this.$={type:"column-setting",columns:a[c]==="auto"?-1:parseInt(a[c])};break;case 27:x.getLogger().debug("Rule: id-block statement : ",a[c-2],a[c-1]);let O=x.generateId();this.$={...a[c-2],type:"composite",children:a[c-1]};break;case 28:x.getLogger().debug("Rule: blockStatement : ",a[c-2],a[c-1],a[c]);let K=x.generateId();this.$={id:K,type:"composite",label:"",children:a[c-1]};break;case 29:x.getLogger().debug("Rule: node (NODE_ID separator): ",a[c]),this.$={id:a[c]};break;case 30:x.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[c-1],a[c]),this.$={id:a[c-1],label:a[c].label,typeStr:a[c].typeStr,directions:a[c].directions};break;case 31:x.getLogger().debug("Rule: dirList: ",a[c]),this.$=[a[c]];break;case 32:x.getLogger().debug("Rule: dirList: ",a[c-1],a[c]),this.$=[a[c-1]].concat(a[c]);break;case 33:x.getLogger().debug("Rule: nodeShapeNLabel: ",a[c-2],a[c-1],a[c]),this.$={typeStr:a[c-2]+a[c],label:a[c-1]};break;case 34:x.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[c-3],a[c-2]," #3:",a[c-1],a[c]),this.$={typeStr:a[c-3]+a[c],label:a[c-2],directions:a[c-1]};break;case 35:case 36:this.$={type:"classDef",id:a[c-1].trim(),css:a[c].trim()};break;case 37:this.$={type:"applyClass",id:a[c-1].trim(),styleClass:a[c].trim()};break;case 38:this.$={type:"applyStyles",id:a[c-1].trim(),stylesStr:a[c].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:l,11:3,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{8:[1,20]},t(E,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:l,21:u,28:n,29:g,31:f,39:i,43:d,46:w}),t(L,[2,16],{14:22,15:m,16:_}),t(L,[2,17]),t(L,[2,18]),t(L,[2,19]),t(L,[2,20]),t(L,[2,21]),t(L,[2,22]),t(T,[2,25],{27:[1,25]}),t(L,[2,26]),{19:26,26:12,31:f},{10:l,11:27,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(k,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(E,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},t(T,[2,24]),{10:l,11:37,13:4,14:22,15:m,16:_,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(k,[2,30]),{18:[1,43]},{18:[1,44]},t(T,[2,23]),{18:[1,45]},{30:[1,46]},t(L,[2,28]),t(L,[2,35]),t(L,[2,36]),t(L,[2,37]),t(L,[2,38]),{36:[1,47]},{33:48,34:I},{15:[1,50]},t(L,[2,27]),t(k,[2,33]),{38:[1,51]},{33:52,34:I,38:[2,31]},{31:[2,15]},t(k,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e(function(S,o){if(o.recoverable)this.trace(S);else{var h=Error(S);throw h.hash=o,h}},"parseError"),parse:e(function(S){var o=this,h=[0],x=[],D=[null],a=[],H=this.table,c="",V=0,j=0,G=0,ne=2,q=1,oe=a.slice.call(arguments,1),O=Object.create(this.lexer),K={yy:{}};for(var ce in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ce))K.yy[ce]=this.yy[ce];if(O.setInput(S,K.yy),K.yy.lexer=O,K.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var ue=O.yylloc;a.push(ue);var qe=O.options&&O.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Je(F){h.length=h.length-2*F,D.length=D.length-F,a.length=a.length-F}e(Je,"popStack");function _e(){var F=x.pop()||O.lex()||q;if(typeof F!=="number"){if(F instanceof Array)x=F,F=x.pop();F=o.symbols_[F]||F}return F}e(_e,"lex");var A,he,W,P,At,ge,U={},J,Y,De,Z;while(!0){if(W=h[h.length-1],this.defaultActions[W])P=this.defaultActions[W];else{if(A===null||typeof A>"u")A=_e();P=H[W]&&H[W][A]}if(typeof P>"u"||!P.length||!P[0]){var de="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>ne)Z.push("'"+this.terminals_[J]+"'");if(O.showPosition)de="Parse error on line "+(V+1)+`:
|
|
2
|
+
`+O.showPosition()+`
|
|
3
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else de="Parse error on line "+(V+1)+": Unexpected "+(A==q?"end of input":"'"+(this.terminals_[A]||A)+"'");this.parseError(de,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:ue,expected:Z})}if(P[0]instanceof Array&&P.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(P[0]){case 1:if(h.push(A),D.push(O.yytext),a.push(O.yylloc),h.push(P[1]),A=null,!he){if(j=O.yyleng,c=O.yytext,V=O.yylineno,ue=O.yylloc,G>0)G--}else A=he,he=null;break;case 2:if(Y=this.productions_[P[1]][1],U.$=D[D.length-Y],U._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},qe)U._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]];if(ge=this.performAction.apply(U,[c,j,V,K.yy,P[1],D,a].concat(oe)),typeof ge<"u")return ge;if(Y)h=h.slice(0,-1*Y*2),D=D.slice(0,-1*Y),a=a.slice(0,-1*Y);h.push(this.productions_[P[1]][0]),D.push(U.$),a.push(U._$),De=H[h[h.length-2]][h[h.length-1]],h.push(De);break;case 3:return!0}}return!0},"parse")},v=function(){var R={EOF:1,parseError:e(function(o,h){if(this.yy.parser)this.yy.parser.parseError(o,h);else throw Error(o)},"parseError"),setInput:e(function(S,o){if(this.yy=o||this.yy||{},this._input=S,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];return this.offset=0,this},"setInput"),input:e(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var o=S.match(/(?:\r\n?|\n).*/g);if(o)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),S},"input"),unput:e(function(S){var o=S.length,h=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1)this.yylineno-=h.length-1;var D=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===x.length?this.yylloc.first_column:0)+x[x.length-h.length].length-h[0].length:this.yylloc.first_column-o},this.options.ranges)this.yylloc.range=[D[0],D[0]+this.yyleng-o];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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(function(S){this.unput(this.match.slice(S))},"less"),pastInput:e(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var S=this.match;if(S.length<20)S+=this._input.substr(0,20-S.length);return(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var S=this.pastInput(),o=Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
5
|
+
`+o+"^"},"showPosition"),test_match:e(function(S,o){var h,x,D;if(this.options.backtrack_lexer){if(D={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)D.yylloc.range=this.yylloc.range.slice(0)}if(x=S[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],h=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(h)return h;else if(this._backtrack){for(var a in D)this[a]=D[a];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var S,o,h,x;if(!this._more)this.yytext="",this.match="";var D=this._currentRules();for(var a=0;a<D.length;a++)if(h=this._input.match(this.rules[D[a]]),h&&(!o||h[0].length>o[0].length)){if(o=h,x=a,this.options.backtrack_lexer)if(S=this.test_match(h,D[a]),S!==!1)return S;else if(this._backtrack){o=!1;continue}else return!1;else if(!this.options.flex)break}if(o){if(S=this.test_match(o,D[x]),S!==!1)return S;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var o=this.next();if(o)return o;else return this.lex()},"lex"),begin:e(function(o){this.conditionStack.push(o)},"begin"),popState:e(function(){var o=this.conditionStack.length-1;if(o>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:e(function(o){this.begin(o)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(o,h,x,D){var a=D;switch(x){case 0:return o.getLogger().debug("Found block-beta"),10;break;case 1:return o.getLogger().debug("Found id-block"),29;break;case 2:return o.getLogger().debug("Found block"),10;break;case 3:o.getLogger().debug(".",h.yytext);break;case 4:o.getLogger().debug("_",h.yytext);break;case 5:return 5;case 6:return h.yytext=-1,28;break;case 7:return h.yytext=h.yytext.replace(/columns\s+/,""),o.getLogger().debug("COLUMNS (LEX)",h.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:o.getLogger().debug("LEX: POPPING STR:",h.yytext),this.popState();break;case 13:return o.getLogger().debug("LEX: STR end:",h.yytext),"STR";break;case 14:return h.yytext=h.yytext.replace(/space\:/,""),o.getLogger().debug("SPACE NUM (LEX)",h.yytext),21;break;case 15:return h.yytext="1",o.getLogger().debug("COLUMNS (LEX)",h.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),o.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),o.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),o.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),o.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),o.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),o.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),o.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),o.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),o.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),o.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return o.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return o.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return o.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return o.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return o.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return o.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return o.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),o.getLogger().debug("LEX ARR START"),37;break;case 74:return o.getLogger().debug("Lex: NODE_ID",h.yytext),31;break;case 75:return o.getLogger().debug("Lex: EOF",h.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:o.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:o.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return o.getLogger().debug("LEX: NODE_DESCR:",h.yytext),"NODE_DESCR";break;case 83:o.getLogger().debug("LEX POPPING"),this.popState();break;case 84:o.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (right): dir:",h.yytext),"DIR";break;case 86:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (left):",h.yytext),"DIR";break;case 87:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (x):",h.yytext),"DIR";break;case 88:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (y):",h.yytext),"DIR";break;case 89:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (up):",h.yytext),"DIR";break;case 90:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (down):",h.yytext),"DIR";break;case 91:return h.yytext="]>",o.getLogger().debug("Lex (ARROW_DIR end):",h.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 93:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 94:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 95:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 96:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 97:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 98:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return o.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 102:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 103:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 104:return o.getLogger().debug("Lex: COLON",h.yytext),h.yytext=h.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return R}();N.lexer=v;function z(){this.yy={}}return e(z,"Parser"),z.prototype=N,N.Parser=z,new z}();be.parser=be;var rt=be,M=new Map,me=[],Se=new Map,Ie="color",Oe="fill",st="bgFill",ve=",",ee=new Map,Le="",it=e((t)=>y.sanitizeText(t,s()),"sanitizeText"),at=e(function(t,l=""){let u=ee.get(t);if(!u)u={id:t,styles:[],textStyles:[]},ee.set(t,u);if(l!==void 0&&l!==null)l.split(ve).forEach((n)=>{let g=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Ie).exec(n)){let i=g.replace(Oe,st).replace(Ie,Oe);u.textStyles.push(i)}u.styles.push(g)})},"addStyleClass"),nt=e(function(t,l=""){let u=M.get(t);if(l!==void 0&&l!==null)u.styles=l.split(ve)},"addStyle2Node"),ot=e(function(t,l){t.split(",").forEach(function(u){let n=M.get(u);if(n===void 0){let g=u.trim();n={id:g,type:"na",children:[]},M.set(g,n)}if(!n.classes)n.classes=[];n.classes.push(l)})},"setCssClass"),Ae=0,ze=e((t,l)=>{let u=t.flat(),n=[],f=u.find((i)=>i?.type==="column-setting")?.columns??-1;for(let i of u){if(typeof f==="number"&&f>0&&i.type!=="column-setting"&&typeof i.widthInColumns==="number"&&i.widthInColumns>f)r.warn(`Block ${i.id} width ${i.widthInColumns} exceeds configured column width ${f}`);if(i.label)i.label=it(i.label);if(i.type==="classDef"){at(i.id,i.css);continue}if(i.type==="applyClass"){ot(i.id,i?.styleClass??"");continue}if(i.type==="applyStyles"){if(i?.stylesStr)nt(i.id,i?.stylesStr);continue}if(i.type==="column-setting")l.columns=i.columns??-1;else if(i.type==="edge"){let d=(Se.get(i.id)??0)+1;Se.set(i.id,d),i.id=d+"-"+i.id,me.push(i)}else{if(!i.label)if(i.type==="composite")i.label="";else i.label=i.id;let d=M.get(i.id);if(d===void 0){if(i.type==="composite")i.colorIndex=Ae++;M.set(i.id,i)}else{if(i.type!=="na")d.type=i.type;if(i.label!==i.id)d.label=i.label}if(i.children)ze(i.children,i);if(i.type==="space"){let w=i.width??1;for(let E=0;E<w;E++){let L=Ne(i);L.id=L.id+"-"+E,M.set(L.id,L),n.push(L)}}else if(d===void 0)n.push(i)}}l.children=n},"populateBlockDatabase"),ke=[],X={id:"root",type:"composite",children:[],columns:-1},lt=e(()=>{r.debug("Clear called"),C(),X={id:"root",type:"composite",children:[],columns:-1},M=new Map([["root",X]]),ke=[],ee=new Map,me=[],Se=new Map,Le="",Ae=0},"clear");function Be(t){switch(r.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return r.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}e(Be,"typeStr2Type");function Re(t){switch(r.debug("typeStr2Type",t),t){case"==":return"thick";default:return"normal"}}e(Re,"edgeTypeStr2Type");function Pe(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}e(Pe,"edgeStrToEdgeData");function Fe(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}e(Fe,"edgeStrToEdgeStartData");function Me(t){return t.includes("==")?"thick":"normal"}e(Me,"edgeStrToThickness");function Ke(t){if(t.includes(".-"))return"dotted";return"solid"}e(Ke,"edgeStrToPattern");var Ce=0,ct=e(()=>(Ce++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ce),"generateId"),ut=e((t)=>{X.children=t,ze(t,X),ke=X.children},"setHierarchy"),gt=e((t)=>{let l=M.get(t);if(!l)return-1;if(l.columns)return l.columns;if(!l.children)return-1;return l.children.length},"getColumns"),dt=e(()=>[...M.values()],"getBlocksFlat"),pt=e(()=>ke||[],"getBlocks"),ft=e(()=>me,"getEdges"),bt=e((t)=>M.get(t),"getBlock"),xt=e((t)=>{M.set(t.id,t)},"setBlock"),mt=e((t)=>{Le=t},"setDiagramId"),Lt=e(()=>Le,"getDiagramId"),kt=e(()=>r,"getLogger"),yt=e(function(){return ee},"getClasses"),wt={getConfig:e(()=>b().block,"getConfig"),typeStr2Type:Be,edgeTypeStr2Type:Re,edgeStrToEdgeData:Pe,edgeStrToEdgeStartData:Fe,edgeStrToThickness:Me,edgeStrToPattern:Ke,getLogger:kt,getBlocksFlat:dt,getBlocks:pt,getEdges:ft,setHierarchy:ut,getBlock:bt,setBlock:xt,getColumns:gt,getClasses:yt,clear:lt,generateId:ct,setDiagramId:mt,getDiagramId:Lt},Et=wt,_t=e((t)=>{let{theme:l,bkgColorArray:u,borderColorArray:n}=t;if(!ae(l,n))return"";let g=ie(t.look),f=le(u),i="";for(let d=0;d<Ye(t.THEME_COLOR_LIMIT,n);d++){let w=n[d%n.length],E=f?`fill: ${u[d%u.length]};`:"",L=`[data-look="${g}"][data-color-id="color-${d}"]`;i+=`
|
|
7
|
+
|
|
8
|
+
${L}.node rect.composite {
|
|
9
|
+
stroke: ${w};
|
|
10
|
+
${E}
|
|
11
|
+
}
|
|
12
|
+
`}return i},"genColor"),fe=e((t,l)=>{let u=Pt,n=u(t,"r"),g=u(t,"g"),f=u(t,"b");return se(n,g,f,l)},"fade"),Dt=e((t)=>`${_t(t)}
|
|
13
|
+
.label {
|
|
14
|
+
font-family: ${t.fontFamily};
|
|
15
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
16
|
+
}
|
|
17
|
+
.cluster-label text {
|
|
18
|
+
fill: ${t.titleColor};
|
|
19
|
+
}
|
|
20
|
+
.cluster-label span {
|
|
21
|
+
color: ${t.titleColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.label text,span {
|
|
27
|
+
fill: ${t.nodeTextColor||t.textColor};
|
|
28
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.node rect,
|
|
32
|
+
.node circle,
|
|
33
|
+
.node ellipse,
|
|
34
|
+
.node polygon,
|
|
35
|
+
.node path {
|
|
36
|
+
fill: ${t.mainBkg};
|
|
37
|
+
stroke: ${t.nodeBorder};
|
|
38
|
+
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
39
|
+
thinner border than an identical flowchart node under any theme asking for more --
|
|
40
|
+
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
41
|
+
and filter, never stroke-width. */
|
|
42
|
+
stroke-width: ${t.strokeWidth??1}px;
|
|
43
|
+
}
|
|
44
|
+
.flowchart-label text {
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
}
|
|
47
|
+
// .flowchart-label .text-outer-tspan {
|
|
48
|
+
// text-anchor: middle;
|
|
49
|
+
// }
|
|
50
|
+
// .flowchart-label .text-inner-tspan {
|
|
51
|
+
// text-anchor: start;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${t.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePaths .path {
|
|
66
|
+
stroke: ${t.lineColor};
|
|
67
|
+
stroke-width: 2.0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${t.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${t.edgeLabelBackground};
|
|
77
|
+
/*
|
|
78
|
+
* This is for backward compatibility with existing code that didn't
|
|
79
|
+
* add a \`<p>\` around edge labels.
|
|
80
|
+
*
|
|
81
|
+
* TODO: We should probably remove this in a future release.
|
|
82
|
+
*/
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
rect {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
background-color: ${t.edgeLabelBackground};
|
|
91
|
+
fill: ${t.edgeLabelBackground};
|
|
92
|
+
}
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* For html labels only */
|
|
97
|
+
.labelBkg {
|
|
98
|
+
background-color: ${t.edgeLabelBackground};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.node .cluster {
|
|
102
|
+
// fill: ${fe(t.mainBkg,0.5)};
|
|
103
|
+
fill: ${fe(t.clusterBkg,0.5)};
|
|
104
|
+
stroke: ${fe(t.clusterBorder,0.2)};
|
|
105
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
|
+
stroke-width: 1px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cluster text {
|
|
110
|
+
fill: ${t.titleColor};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cluster span {
|
|
114
|
+
color: ${t.titleColor};
|
|
115
|
+
}
|
|
116
|
+
/* .cluster div {
|
|
117
|
+
color: ${t.titleColor};
|
|
118
|
+
} */
|
|
119
|
+
|
|
120
|
+
div.mermaidTooltip {
|
|
121
|
+
position: absolute;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 200px;
|
|
124
|
+
padding: 2px;
|
|
125
|
+
font-family: ${t.fontFamily};
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
background: ${t.tertiaryColor};
|
|
128
|
+
border: 1px solid ${t.border2};
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
z-index: 100;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flowchartTitleText {
|
|
135
|
+
text-anchor: middle;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
fill: ${t.textColor};
|
|
138
|
+
}
|
|
139
|
+
${je()}
|
|
140
|
+
`,"getStyles"),Nt=Dt;function xe(t,l){if(t===0||!Number.isInteger(t))throw Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw Error("Position must be a non-negative integer."+l);if(t<0)return{px:l,py:0};if(t===1)return{px:0,py:l};let u=l%t,n=Math.floor(l/t);return{px:u,py:n}}e(xe,"calculateBlockPosition");var It=e((t)=>{let l=0,u=0;for(let n of t.children){let{width:g,height:f,x:i,y:d}=n.size??{width:0,height:0,x:0,y:0};if(r.debug("getMaxChildSize abc95 child:",n.id,"width:",g,"height:",f,"x:",i,"y:",d,n.type),n.type==="space")continue;let w=g/(n.widthInColumns??1);if(w>l)l=w;if(f>u)u=f}return{width:l,height:u}},"getMaxChildSize");function te(t,l,u=0,n=0,g=8){if(r.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",u),!t?.size?.width)t.size={width:u,height:n,x:0,y:0};let f=0,i=0;if(t.children?.length>0){for(let k of t.children)te(k,l,0,0,g);let d=It(t);f=d.width,i=d.height,r.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",f,i);for(let k of t.children)if(k.size)r.debug(`abc95 Setting size of children of ${t.id} id=${k.id} ${f} ${i} ${JSON.stringify(k.size)}`),k.size.width=f*(k.widthInColumns??1)+g*((k.widthInColumns??1)-1),k.size.height=i,k.size.x=0,k.size.y=0,r.debug(`abc95 updating size of ${t.id} children child:${k.id} maxWidth:${f} maxHeight:${i}`);for(let k of t.children)te(k,l,f,i,g);let w=t.columns??-1,E=0;for(let k of t.children)E+=k.widthInColumns??1;let L=t.children.length;if(w>0&&w<E)L=w;let m=Math.ceil(E/L),_=L*(f+g)+g,T=m*(i+g)+g;if(_<u){r.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${u} siblingHeight ${n} width ${_}`),_=u,T=n;let k=(u-L*g-g)/L,I=(n-m*g-g)/m;r.debug("Size indata abc88",t.id,"childWidth",k,"maxWidth",f),r.debug("Size indata abc88",t.id,"childHeight",I,"maxHeight",i),r.debug("Size indata abc88 xSize",L,"padding",g);for(let N of t.children)if(N.size)N.size.width=k,N.size.height=I,N.size.x=0,N.size.y=0}if(r.debug(`abc95 (finale calc) ${t.id} xSize ${L} ySize ${m} columns ${w}${t.children.length} width=${Math.max(_,t.size?.width||0)}`),_<(t?.size?.width||0)){_=t?.size?.width||0;let k=w>0?Math.min(t.children.length,w):t.children.length;if(k>0){let I=(_-k*g-g)/k;r.debug("abc95 (growing to fit) width",t.id,_,t.size?.width,I);for(let N of t.children)if(N.size)N.size.width=I}}t.size={width:_,height:T,x:0,y:0}}r.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}e(te,"setBlockSizes");function ye(t,l,u=8){r.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let n=t.columns??-1;if(r.debug("layoutBlocks columns abc95",t.id,"=>",n,t),t.children&&t.children.length>0){let g=t?.children[0]?.size?.width??0,f=t.children.length*g+(t.children.length-1)*u;r.debug("widthOfChildren 88",f,"posX");let i=new Map;{let m=0;for(let _ of t.children){if(!_.size)continue;let{py:T}=xe(n,m),k=i.get(T)??0;if(_.size.height>k)i.set(T,_.size.height);let I=_?.widthInColumns??1;if(n>0)I=Math.min(I,n-m%n);m+=I}}let d=new Map;{let m=0,_=[...i.keys()].sort((T,k)=>T-k);for(let T of _)d.set(T,m),m+=(i.get(T)??0)+u}let w=0;r.debug("abc91 block?.size?.x",t.id,t?.size?.x);let E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,L=0;for(let m of t.children){let _=t;if(!m.size)continue;let{width:T,height:k}=m.size,{px:I,py:N}=xe(n,w);if(N!=L)L=N,E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,r.debug("New row in layout for block",t.id," and child ",m.id,L);if(r.debug(`abc89 layout blocks (child) id: ${m.id} Pos: ${w} (px, py) ${I},${N} (${_?.size?.x},${_?.size?.y}) parent: ${_.id} width: ${T}${u}`),_.size){let z=T/2;m.size.x=E+u+z,r.debug(`abc91 layout blocks (calc) px, pyid:${m.id} startingPos=X${E} new startingPosX${m.size.x} ${z} padding=${u} width=${T} halfWidth=${z} => x:${m.size.x} y:${m.size.y} ${m.widthInColumns} (width * (child?.w || 1)) / 2 ${T*(m?.widthInColumns??1)/2}`),E=m.size.x+z;let R=d.get(N)??0,S=i.get(N)??k;m.size.y=_.size.y-_.size.height/2+R+S/2+u,r.debug(`abc88 layout blocks (calc) px, pyid:${m.id}startingPosX${E}${u}${z}=>x:${m.size.x}y:${m.size.y}${m.widthInColumns}(width * (child?.w || 1)) / 2${T*(m?.widthInColumns??1)/2}`)}if(m.children)ye(m,l,u);let v=m?.widthInColumns??1;if(n>0)v=Math.min(v,n-w%n);w+=v,r.debug("abc88 columnsPos",m,w)}}r.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}e(ye,"layoutBlocks");function we(t,{minX:l,minY:u,maxX:n,maxY:g}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){let{x:f,y:i,width:d,height:w}=t.size;if(f-d/2<l)l=f-d/2;if(i-w/2<u)u=i-w/2;if(f+d/2>n)n=f+d/2;if(i+w/2>g)g=i+w/2}if(t.children)for(let f of t.children)({minX:l,minY:u,maxX:n,maxY:g}=we(f,{minX:l,minY:u,maxX:n,maxY:g}));return{minX:l,minY:u,maxX:n,maxY:g}}e(we,"findBounds");function We(t){let l=t.getBlock("root");if(!l)return;let u=s()?.block?.padding??8;te(l,t,0,0,u),ye(l,t,u),r.debug("getBlocks",JSON.stringify(l,null,2));let{minX:n,minY:g,maxX:f,maxY:i}=we(l),d=i-g,w=f-n;return{x:n,y:g,width:w,height:d}}e(We,"layout");function Ee(t,l,u=!1){let n=t,g="default";if((n?.classes?.length||0)>0)g=(n?.classes??[]).join(" ");g=g+" flowchart-label";let f=(n?.classes??[]).flatMap((k)=>l.getClasses().get(k)?.styles??[]),i=0,d="rect",w;switch(n.type){case"round":i=5,d="rect";break;case"composite":i=0,d="composite",w=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let E=Qa(n?.styles??[]),L=n.label,m=n.size??{width:0,height:0,x:0,y:0},_=l.getDiagramId();return{labelStyle:E.labelStyle,shape:d,label:L,labelText:L,rx:i,ry:i,class:g,cssClasses:g,cssStyles:n?.styles??[],cssCompiledStyles:f,style:E.style,id:n.id,domId:_?`${_}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:m.width||void 0,height:m.height||void 0,wrappingWidth:m.width||Number.POSITIVE_INFINITY,x:m.x,y:m.y,positioned:u,intersect:void 0,padding:w??b()?.block?.padding??0,widthInColumns:n.widthInColumns??1,colorIndex:n.colorIndex,look:b().look}}e(Ee,"getNodeFromBlock");async function Ve(t,l,u){let n=Ee(l,u,!1);if(l.type==="group")return;let g=b(),f=await St(t,n,{config:g}),i=f.node()?.getBBox()??{width:0,height:0},d=u.getBlock(n.id);d.size={width:i.width,height:i.height,x:0,y:0,node:f},u.setBlock(d),f.remove()}e(Ve,"calculateBlockSize");async function Ue(t,l,u){let n=Ee(l,u,!0);if(u.getBlock(n.id).type!=="space"){let f=b(),i=await St(t,n,{config:f});if(n.colorIndex!==void 0)Ze(i,n.colorIndex,f.theme,f.themeVariables?.borderColorArray);l.intersect=n?.intersect,ht(n)}}e(Ue,"insertBlockPositioned");async function re(t,l,u,n){for(let g of l)if(await n(t,g,u),g.children)await re(t,g.children,u,n)}e(re,"performOperations");async function He(t,l,u){await re(t,l,u,Ve)}e(He,"calculateBlockSizes");async function Xe(t,l,u){await re(t,l,u,Ue)}e(Xe,"insertBlocks");async function Ge(t,l,u,n,g){let f=new Q({multigraph:!0,compound:!0});f.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let i of u)if(i.size)f.setNode(i.id,{width:i.size.width,height:i.size.height,intersect:i.intersect});for(let i of l)if(i.start&&i.end){let d=n.getBlock(i.start),w=n.getBlock(i.end);if(d?.size&&w?.size){let E=d.size,L=w.size,m=[{x:E.x,y:E.y},{x:E.x+(L.x-E.x)/2,y:E.y+(L.y-E.y)/2},{x:L.x,y:L.y}],_=g?`${g}-${i.id}`:i.id,T=i.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",k=i.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",I=`${T} ${k} flowchart-link LS-a1 LE-b1`;if(Qt(t,{...i,id:_,arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:m,classes:I},{},"block",f.node(i.start),f.node(i.end),g),i.label)await Tt(t,{...i,label:i.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:m,classes:I}),Hn({...i,x:m[1].x,y:m[1].y},{originalPath:m})}}}e(Ge,"insertEdges");var Ot=e(function(t,l){return l.db.getClasses()},"getClasses"),Ct=e(async function(t,l,u,n){let{securityLevel:g,block:f}=b(),i=n.db;i.setDiagramId(l);let d;if(g==="sandbox")d=p("#i"+l);let w=g==="sandbox"?p(d.nodes()[0].contentDocument.body):p("body"),E=g==="sandbox"?w.select(`[id="${l}"]`):p(`[id="${l}"]`);Da(E,b()),Yn(E,["point","circle","cross"],n.type,l);let m=i.getBlocks(),_=i.getBlocksFlat(),T=i.getEdges(),k=E.insert("g").attr("class","block");await He(k,m,i);let I=We(i);await Xe(k,m,i),await Ge(k,T,_,i,l);let N=k.node()?.getBBox(),v=N&&Number.isFinite(N.width)&&Number.isFinite(N.height)?N:I;if(v){let z=Math.max(1,Math.round(0.125*(v.width/v.height))),R=v.height+z+10,S=v.width+10,{useMaxWidth:o}=f;B(E,R,S,!!o),r.debug("Here Bounds",I,v),E.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),vt={draw:Ct,getClasses:Ot},nr={parser:rt,db:Et,renderer:vt,styles:Nt};export{nr as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-y0m8hrwz.js";import"./chunk-kdyjnwdx.js";import"./chunk-wptv8atc.js";import{Ji}from"./chunk-qh7265qw.js";export{Ji as render};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e,r,B}from"./chunk-y0m8hrwz.js";var oe=e((t,i,o,n)=>{t.attr("class",o);let{width:h,height:a,x:w,y:x}=u(t,i);B(t,a,h,n);let c=m(w,x,h,a,i);t.attr("viewBox",c),r.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,n,h)=>`${t-h} ${i-h} ${o} ${n}`,"createViewBox");
|
|
2
|
+
export{oe};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{pi}from"./chunk-n90cqdvg.js";export{pi as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.freeze(JSON.parse(`{"displayName":"Kotlin","fileTypes":["kt","kts"],"name":"kotlin","patterns":[{"include":"#import"},{"include":"#package"},{"include":"#code"}],"repository":{"annotation-simple":{"match":"(?<!\\\\w)@[.\\\\w]+\\\\b(?!:)","name":"entity.name.type.annotation.kotlin"},"annotation-site":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*(?!\\\\[)","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"$","patterns":[{"include":"#unescaped-annotation"}]},"annotation-site-list":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*\\\\[","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"]","patterns":[{"include":"#unescaped-annotation"}]},"binary-literal":{"match":"0([Bb])[01][01_]*","name":"constant.numeric.binary.kotlin"},"boolean-literal":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.kotlin"},"character":{"begin":"'","end":"'","name":"string.quoted.single.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"}]},"class-declaration":{"captures":{"1":{"name":"keyword.hard.class.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(class|(?:fun\\\\s+)?interface)\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"code":{"patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#annotation-simple"},{"include":"#annotation-site-list"},{"include":"#annotation-site"},{"include":"#class-declaration"},{"include":"#object"},{"include":"#type-alias"},{"include":"#function"},{"include":"#variable-declaration"},{"include":"#type-constraint"},{"include":"#type-annotation"},{"include":"#function-call"},{"include":"#method-reference"},{"include":"#key"},{"include":"#string"},{"include":"#string-empty"},{"include":"#string-multiline"},{"include":"#character"},{"include":"#lambda-arrow"},{"include":"#operators"},{"include":"#self-reference"},{"include":"#decimal-literal"},{"include":"#hex-literal"},{"include":"#binary-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"}]},"comment-block":{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.kotlin"},"comment-javadoc":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.javadoc.kotlin","patterns":[{"match":"@(return|constructor|receiver|sample|see|author|since|suppress)\\\\b","name":"keyword.other.documentation.javadoc.kotlin"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@p(?:aram|roperty))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@param)\\\\[(\\\\S+)]"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"name":"variable.parameter.kotlin"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*}"}]}]},"comment-line":{"begin":"//","end":"$","name":"comment.line.double-slash.kotlin"},"comments":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-javadoc"}]},"control-keywords":{"match":"\\\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\\\b","name":"keyword.control.kotlin"},"decimal-literal":{"match":"\\\\b\\\\d[_\\\\d]*(\\\\.[_\\\\d]+)?(([Ee])\\\\d+)?([Uu])?([FLf])?\\\\b","name":"constant.numeric.decimal.kotlin"},"function":{"captures":{"1":{"name":"keyword.hard.fun.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]},"4":{"name":"entity.name.type.class.extension.kotlin"},"5":{"name":"entity.name.function.declaration.kotlin"}},"match":"\\\\b(fun)\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?:(?:(\\\\w+)\\\\.)?(\\\\b\\\\w+\\\\b|\`[^\`]+\`))?"},"function-call":{"captures":{"1":{"name":"entity.name.function.call.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\??\\\\.?(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?=[({])"},"hard-keywords":{"match":"\\\\b(as|typeof|is|in)\\\\b","name":"keyword.hard.kotlin"},"hex-literal":{"match":"0([Xx])\\\\h[_\\\\h]*([Uu])?","name":"constant.numeric.hex.kotlin"},"import":{"begin":"\\\\b(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.soft.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.import.kotlin","patterns":[{"include":"#comments"},{"include":"#hard-keywords"},{"match":"\\\\*","name":"variable.language.wildcard.kotlin"}]},"key":{"captures":{"1":{"name":"variable.parameter.kotlin"},"2":{"name":"keyword.operator.assignment.kotlin"}},"match":"\\\\b(\\\\w=)\\\\s*(=)"},"keywords":{"patterns":[{"include":"#prefix-modifiers"},{"include":"#postfix-modifiers"},{"include":"#soft-keywords"},{"include":"#hard-keywords"},{"include":"#control-keywords"}]},"lambda-arrow":{"match":"->","name":"storage.type.function.arrow.kotlin"},"method-reference":{"captures":{"1":{"name":"entity.name.function.reference.kotlin"}},"match":"\\\\??::(\\\\b\\\\w+\\\\b|\`[^\`]+\`)"},"null-literal":{"match":"\\\\bnull\\\\b","name":"constant.language.null.kotlin"},"object":{"captures":{"1":{"name":"keyword.hard.object.kotlin"},"2":{"name":"entity.name.type.object.kotlin"}},"match":"\\\\b(object)(?:\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`))?"},"operators":{"patterns":[{"match":"(===?|!==?|<=|>=|[<>])","name":"keyword.operator.comparison.kotlin"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.kotlin"},{"match":"(=)","name":"keyword.operator.assignment.kotlin"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.kotlin"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.kotlin"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.kotlin"},{"match":"(\\\\.\\\\.)","name":"keyword.operator.range.kotlin"}]},"package":{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.hard.package.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.package.kotlin","patterns":[{"include":"#comments"}]},"postfix-modifiers":{"match":"\\\\b(where|by|get|set)\\\\b","name":"storage.modifier.other.kotlin"},"prefix-modifiers":{"match":"\\\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\\\b","name":"storage.modifier.other.kotlin"},"self-reference":{"match":"\\\\b(this|super)(@\\\\w+)?\\\\b","name":"variable.language.this.kotlin"},"soft-keywords":{"match":"\\\\b(init|catch|finally|field)\\\\b","name":"keyword.soft.kotlin"},"string":{"begin":"(?<!\\")\\"(?!\\")","end":"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"string-empty":{"match":"(?<!\\")\\"\\"(?!\\")","name":"string.quoted.double.kotlin"},"string-escape-bracketed":{"begin":"(?<!\\\\\\\\)(\\\\$\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.template-expression.begin"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.template-expression.end"}},"name":"meta.template.expression.kotlin","patterns":[{"include":"#code"}]},"string-escape-simple":{"match":"(?<!\\\\\\\\)\\\\$\\\\w+\\\\b","name":"variable.string-escape.kotlin"},"string-multiline":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"type-alias":{"captures":{"1":{"name":"keyword.hard.typealias.kotlin"},"2":{"name":"entity.name.type.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(typealias)\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"type-annotation":{"captures":{"0":{"patterns":[{"include":"#type-parameter"}]}},"match":"(?<![:?]):\\\\s*([?\\\\w\\\\s]|->|(?<GROUP>[(<]([^\\"'()<>]|\\\\g<GROUP>)+[)>]))+"},"type-parameter":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"entity.name.type.kotlin"},{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.kotlin"}]},"unescaped-annotation":{"match":"\\\\b[.\\\\w]+\\\\b","name":"entity.name.type.annotation.kotlin"},"variable-declaration":{"captures":{"1":{"name":"keyword.hard.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(va[lr])\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"}},"scopeName":"source.kotlin","aliases":["kt","kts"]}`)),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Et}from"./chunk-ts7zrf5b.js";export{Et as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ti}from"./chunk-taynqrgq.js";export{Ti as createEventModelingServices};
|