@1agents/dsh-a2a 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 +57 -2
- package/cordis.patch.yml +10 -0
- package/dist/approvals.js +50 -0
- package/dist/cli.js +32596 -0
- package/dist/executor.js +24896 -0
- package/dist/index.js +32595 -0
- package/dist/sdk-runtime.js +166 -0
- package/dist/server.js +32581 -0
- package/dist/shared/a2a/workbench-ui.js +186 -0
- package/dist/workbench-ui/app.css +453 -0
- package/dist/workbench-ui/app.js +13 -0
- package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
- package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
- package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
- package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
- package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
- package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
- package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
- package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
- package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
- package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
- package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
- package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
- package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
- package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
- package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
- package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
- package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
- package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
- package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
- package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
- package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
- package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
- package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
- package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
- package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
- package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
- package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
- package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
- package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
- package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
- package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
- package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
- package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
- package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
- package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
- package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
- package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
- package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
- package/dist/workbench-ui/chunk-E253Y562.js +1 -0
- package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
- package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
- package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
- package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
- package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
- package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
- package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
- package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
- package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
- package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
- package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
- package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
- package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
- package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
- package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
- package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
- package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
- package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
- package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
- package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
- package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
- package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
- package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
- package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
- package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
- package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
- package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
- package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
- package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
- package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
- package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
- package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
- package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
- package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
- package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
- package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
- package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
- package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
- package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
- package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
- package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
- package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
- package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
- package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
- package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
- package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
- package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
- package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
- package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
- package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
- package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
- package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
- package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
- package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
- package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
- package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
- package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
- package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
- package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
- package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
- package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
- package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
- package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
- package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
- package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
- package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
- package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
- package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
- package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
- package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
- package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
- package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
- package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
- package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
- package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
- package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
- package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
- package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
- package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
- package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
- package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
- package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
- package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
- package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
- package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
- package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
- package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
- package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
- package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
- package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
- package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
- package/dist/workbench-ui/index.html +14 -0
- package/dist/workbench.js +222 -0
- package/package.json +33 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";function _(e){let s=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},n=e.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let t={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={begin:/\[/,end:/\]/,contains:[n,i,t,c,a,"self"],relevance:0},E=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,b=/'[^']*'/,o=s.either(E,l,b),g=s.concat(o,"(\\s*\\.\\s*",o,")*",s.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[n,r,i,t,c,a]}}]}}export{_ as default};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{a as fe}from"./chunk-PFHOOWV3.js";import{a as $e}from"./chunk-KINKFJY7.js";import{a as pe}from"./chunk-ZJPSORPP.js";import"./chunk-C3QSRS6E.js";import"./chunk-4YN4BS7I.js";import"./chunk-WBKLDCV6.js";import"./chunk-TP6U4EDH.js";import"./chunk-ZOP3ZYH7.js";import"./chunk-3XJZ6DIE.js";import"./chunk-KKQSA4LI.js";import"./chunk-FVOHPMS6.js";import"./chunk-HSIHOBTY.js";import"./chunk-3H6STGPV.js";import"./chunk-HSEAD2JH.js";import"./chunk-SVI7DGIE.js";import"./chunk-YUADQVB2.js";import"./chunk-WOKJM3FY.js";import"./chunk-S6ZQZNOX.js";import"./chunk-CUS65DKZ.js";import{h as le,o as me,p as ge}from"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import{M as E,S as re,T as ae,U as oe,V as se,W as ne,X as ce,Y as ie,Z as q,ba as de,j as te,t as F}from"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as w,h as he}from"./chunk-JR4SIX7A.js";import{a as l}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ee=te.gitGraph,D=l(()=>me({...Ee,...F().gitGraph}),"getConfig"),d=new fe(()=>{let e=D(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function j(){return le({length:7})}l(j,"getID");function xe(e,t){let r=Object.create(null);return e.reduce((s,n)=>{let i=t(n);return r[i]||(r[i]=!0,s.push(n)),s},[])}l(xe,"uniqBy");var Te=l(function(e){d.records.direction=e},"setDirection"),Le=l(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(t){w.error("error while parsing gitGraph options",t.message)}},"setOptions"),Me=l(function(){return d.records.options},"getOptions"),Pe=l(function(e){let t=e.msg,r=e.id,s=e.type,n=e.tags;w.info("commit",t,r,s,n),w.debug("Entering commit:",t,r,s,n);let i=D();r=E.sanitizeText(r,i),t=E.sanitizeText(t,i),n=n?.map(a=>E.sanitizeText(a,i));let o={id:r||d.records.seq+"-"+j(),message:t,seq:d.records.seq++,type:s??x.NORMAL,tags:n??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=o,w.info("main branch",i.mainBranchName),d.records.commits.has(o.id)&&w.warn(`Commit ID ${o.id} already exists`),d.records.commits.set(o.id,o),d.records.branches.set(d.records.currBranch,o.id),w.debug("in pushCommit "+o.id)},"commit"),Re=l(function(e){let t=e.name,r=e.order;if(t=E.sanitizeText(t,D()),d.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);d.records.branches.set(t,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(t,{name:t,order:r}),ue(t),w.debug("in createBranch")},"branch"),Oe=l(e=>{let t=e.branch,r=e.id,s=e.type,n=e.tags,i=D();t=E.sanitizeText(t,i),r&&(r=E.sanitizeText(r,i));let o=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(t),h=o?d.records.commits.get(o):void 0,g=a?d.records.commits.get(a):void 0;if(h&&g&&h.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(d.records.currBranch===t){let c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},c}if(h===void 0||!h){let c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},c}if(!d.records.branches.has(t)){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},c}if(g===void 0||!g){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},c}if(h===g){let c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},c}if(r&&d.records.commits.has(r)){let c=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw c.hash={text:`merge ${t} ${r} ${s} ${n?.join(" ")}`,token:`merge ${t} ${r} ${s} ${n?.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${s} ${n?.join(" ")}`]},c}let f=a||"",m={id:r||`${d.records.seq}-${j()}`,message:`merged branch ${t} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,f],branch:d.records.currBranch,type:x.MERGE,customType:s,customId:!!r,tags:n??[]};d.records.head=m,d.records.commits.set(m.id,m),d.records.branches.set(d.records.currBranch,m.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ie=l(function(e){let t=e.id,r=e.targetId,s=e.tags,n=e.parent;w.debug("Entering cherryPick:",t,r,s);let i=D();if(t=E.sanitizeText(t,i),r=E.sanitizeText(r,i),s=s?.map(h=>E.sanitizeText(h,i)),n=E.sanitizeText(n,i),!t||!d.records.commits.has(t)){let h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},h}let o=d.records.commits.get(t);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(o.parents)&&o.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let a=o.branch;if(o.type===x.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!d.records.commits.has(r)){if(a===d.records.currBranch){let m=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let h=d.records.branches.get(d.records.currBranch);if(h===void 0||!h){let m=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let g=d.records.commits.get(h);if(g===void 0||!g){let m=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let f={id:d.records.seq+"-"+j(),message:`cherry-picked ${o?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,o.id],branch:d.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${n}`:""}`]};d.records.head=f,d.records.commits.set(f.id,f),d.records.branches.set(d.records.currBranch,f.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ue=l(function(e){if(e=E.sanitizeText(e,D()),d.records.branches.has(e)){d.records.currBranch=e;let t=d.records.branches.get(d.records.currBranch);t===void 0||!t?d.records.head=null:d.records.head=d.records.commits.get(t)??null}else{let t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");function Z(e,t,r){let s=e.indexOf(t);s===-1?e.push(r):e.splice(s,1,r)}l(Z,"upsert");function J(e){let t=e.reduce((n,i)=>n.seq>i.seq?n:i,e[0]),r="";e.forEach(function(n){n===t?r+=" *":r+=" |"});let s=[r,t.id,t.seq];for(let n in d.records.branches)d.records.branches.get(n)===t.id&&s.push(n);if(w.debug(s.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=d.records.commits.get(t.parents[0]);Z(e,t,n),t.parents[1]&&e.push(d.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let n=d.records.commits.get(t.parents[0]);Z(e,t,n)}}e=xe(e,n=>n.id),J(e)}l(J,"prettyPrintCommitHistory");var _e=l(function(){w.debug(d.records.commits);let e=be()[0];J([e])},"prettyPrint"),Ge=l(function(){d.reset(),re()},"clear"),De=l(function(){return[...d.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),We=l(function(){return d.records.branches},"getBranches"),qe=l(function(){return d.records.commits},"getCommits"),be=l(function(){let e=[...d.records.commits.values()];return e.forEach(function(t){w.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),Ae=l(function(){return d.records.currBranch},"getCurrentBranch"),He=l(function(){return d.records.direction},"getDirection"),Se=l(function(){return d.records.head},"getHead"),we={commitType:x,getConfig:D,setDirection:Te,setOptions:Le,getOptions:Me,commit:Pe,branch:Re,merge:Oe,cherryPick:Ie,checkout:ue,prettyPrint:_e,clear:Ge,getBranchesAsObjArray:De,getBranches:We,getCommits:qe,getCommitsArray:be,getCurrentBranch:Ae,getDirection:He,getHead:Se,setAccTitle:ae,getAccTitle:oe,getAccDescription:ne,setAccDescription:se,setDiagramTitle:ce,getDiagramTitle:ie},Ne=l((e,t)=>{$e(e,t),e.dir&&t.setDirection(e.dir);for(let r of e.statements)Fe(r,t)},"populate"),Fe=l((e,t)=>{let s={Commit:l(n=>t.commit(ze(n)),"Commit"),Branch:l(n=>t.branch(Ye(n)),"Branch"),Merge:l(n=>t.merge(je(n)),"Merge"),Checkout:l(n=>t.checkout(Ke(n)),"Checkout"),CherryPicking:l(n=>t.cherryPick(Ue(n)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=l(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?x[e.type]:x.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=l(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=l(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?x[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=l(e=>e.branch,"parseCheckout"),Ue=l(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:l(async e=>{let t=await pe("gitGraph",e);w.debug(t),Ne(t,we)},"parse")},O=10,I=40,L=4,P=2,_=8,K=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Q=new Set(["redux-color","redux-dark-color"]),Ze=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),G=l((e,t,r=!1)=>r&&e>0?(e-1)%(t-1)+1:e%t,"calcColorIndex"),C=new Map,v=new Map,z=30,H=new Map,Y=[],R=0,p="LR",Xe=l(()=>{C.clear(),v.clear(),H.clear(),R=0,Y=[],p="LR"},"clear"),Be=l(e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{let n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=s.trim(),t.appendChild(n)}),t},"drawText"),ke=l(e=>{let t,r,s;return p==="BT"?(r=l((n,i)=>n<=i,"comparisonFunc"),s=1/0):(r=l((n,i)=>n>=i,"comparisonFunc"),s=0),e.forEach(n=>{let i=p==="TB"||p=="BT"?v.get(n)?.y:v.get(n)?.x;i!==void 0&&r(i,s)&&(t=n,s=i)}),t},"findClosestParent"),Je=l(e=>{let t="",r=1/0;return e.forEach(s=>{let n=v.get(s).y;n<=r&&(t=s,r=n)}),t||void 0},"findClosestParentBT"),Qe=l((e,t,r)=>{let s=r,n=r,i=[];e.forEach(o=>{let a=t.get(o);if(!a)throw new Error(`Commit not found for key ${o}`);a.parents.length?(s=tt(a),n=Math.max(s,n)):i.push(a),rt(a,s)}),s=n,i.forEach(o=>{at(o,s,r)}),e.forEach(o=>{let a=t.get(o);if(a?.parents.length){let h=Je(a.parents);s=v.get(h).y-I,s<=n&&(n=s);let g=C.get(a.branch).pos,f=s-O;v.set(a.id,{x:g,y:f})}})},"setParallelBTPos"),et=l(e=>{let t=ke(e.parents.filter(s=>s!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);let r=v.get(t)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),tt=l(e=>et(e)+I,"calculateCommitPosition"),rt=l((e,t)=>{let r=C.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);let s=r.pos,n=t+O;return v.set(e.id,{x:s,y:n}),{x:s,y:n}},"setCommitPosition"),at=l((e,t,r)=>{let s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);let n=t+r,i=s.pos;v.set(e.id,{x:i,y:n})},"setRootPosition"),ot=l((e,t,r,s,n,i)=>{let{theme:o}=q(),a=K.has(o??""),h=Q.has(o??""),g=Ze.has(o??"");if(i===x.HIGHLIGHT)e.append("rect").attr("x",r.x-10+(a?3:0)).attr("y",r.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${t.id} commit-highlight${G(n,_,h)} ${s}-outer`),e.append("rect").attr("x",r.x-6+(a?2:0)).attr("y",r.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${t.id} commit${G(n,_,h)} ${s}-inner`);else if(i===x.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",a?7:10).attr("class",`commit ${t.id} ${s}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`);else{let f=e.append("circle");if(f.attr("cx",r.x),f.attr("cy",r.y),f.attr("r",a?7:10),f.attr("class",`commit ${t.id} commit${G(n,_,h)}`),i===x.MERGE){let m=e.append("circle");m.attr("cx",r.x),m.attr("cy",r.y),m.attr("r",a?5:6),m.attr("class",`commit ${s} ${t.id} commit${G(n,_,h)}`)}if(i===x.REVERSE){let m=e.append("path"),c=a?4:5;m.attr("d",`M ${r.x-c},${r.y-c}L${r.x+c},${r.y+c}M${r.x-c},${r.y+c}L${r.x+c},${r.y-c}`).attr("class",`commit ${s} ${t.id} commit${G(n,_,h)}`)}}},"drawCommitBullet"),st=l((e,t,r,s,n)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&n.showCommitLabel){let i=e.append("g"),o=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",r.y+25).attr("class","commit-label").text(t.id),h=a.node()?.getBBox();if(h&&(o.attr("x",r.posWithOffset-h.width/2-P).attr("y",r.y+13.5).attr("width",h.width+2*P).attr("height",h.height+2*P),p==="TB"||p==="BT"?(o.attr("x",r.x-(h.width+4*L+5)).attr("y",r.y-12),a.attr("x",r.x-(h.width+4*L)).attr("y",r.y+h.height-12)):a.attr("x",r.posWithOffset-h.width/2),n.rotateCommitLabel))if(p==="TB"||p==="BT")a.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),o.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;i.attr("transform","translate("+g+", "+f+") rotate(-45, "+s+", "+r.y+")")}}},"drawCommitLabel"),nt=l((e,t,r,s)=>{if(t.tags.length>0){let n=0,i=0,o=0,a=[];for(let h of t.tags.reverse()){let g=e.insert("polygon"),f=e.append("circle"),m=e.append("text").attr("y",r.y-16-n).attr("class","tag-label").text(h),c=m.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),o=Math.max(o,c.height),m.attr("x",r.posWithOffset-c.width/2),a.push({tag:m,hole:f,rect:g,yOffset:n}),n+=20}for(let{tag:h,hole:g,rect:f,yOffset:m}of a){let c=o/2,y=r.y-19.2-m;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${s-i/2-L/2},${y+P}
|
|
3
|
+
${s-i/2-L/2},${y-P}
|
|
4
|
+
${r.posWithOffset-i/2-L},${y-c-P}
|
|
5
|
+
${r.posWithOffset+i/2+L},${y-c-P}
|
|
6
|
+
${r.posWithOffset+i/2+L},${y+c+P}
|
|
7
|
+
${r.posWithOffset-i/2-L},${y+c+P}`),g.attr("cy",y).attr("cx",s-i/2+L/2).attr("r",1.5).attr("class","tag-hole"),p==="TB"||p==="BT"){let $=s+m;f.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${r.x},${$+2}
|
|
9
|
+
${r.x},${$-2}
|
|
10
|
+
${r.x+O},${$-c-2}
|
|
11
|
+
${r.x+O+i+4},${$-c-2}
|
|
12
|
+
${r.x+O+i+4},${$+c+2}
|
|
13
|
+
${r.x+O},${$+c+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+s+")"),g.attr("cx",r.x+L/2).attr("cy",$).attr("transform","translate(12,12) rotate(45, "+r.x+","+s+")"),h.attr("x",r.x+5).attr("y",$+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+s+")")}}}},"drawCommitTags"),ct=l(e=>{switch(e.customType??e.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),it=l((e,t,r,s)=>{let n={x:0,y:0};if(e.parents.length>0){let i=ke(e.parents);if(i){let o=s.get(i)??n;return t==="TB"?o.y+I:t==="BT"?(s.get(e.id)??n).y-I:o.x+I}}else return t==="TB"?z:t==="BT"?(s.get(e.id)??n).y-I:0;return 0},"calculatePosition"),dt=l((e,t,r)=>{let s=p==="BT"&&r?t:t+O,n=C.get(e.branch)?.pos,i=p==="TB"||p==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||n===void 0)throw new Error(`Position were undefined for commit ${e.id}`);let o=K.has(q().theme??""),a=p==="TB"||p==="BT"?s:n+(o?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),ye=l((e,t,r,s)=>{let n=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels"),o=p==="TB"||p==="BT"?z:0,a=[...t.keys()],h=s.parallelCommits??!1,g=l((m,c)=>{let y=t.get(m)?.seq,$=t.get(c)?.seq;return y!==void 0&&$!==void 0?y-$:0},"sortKeys"),f=a.sort(g);p==="BT"&&(h&&Qe(f,t,o),f=f.reverse()),f.forEach(m=>{let c=t.get(m);if(!c)throw new Error(`Commit not found for key ${m}`);h&&(o=it(c,p,o,v));let y=dt(c,o,h);if(r){let $=ct(c),u=c.customType??c.type,b=C.get(c.branch)?.index??0;ot(n,c,y,$,b,u),st(i,c,y,o,s),nt(i,c,y,o)}p==="TB"||p==="BT"?v.set(c.id,{x:y.x,y:y.posWithOffset}):v.set(c.id,{x:y.posWithOffset,y:y.y}),o=p==="BT"&&h?o+I:o+I+O,o>R&&(R=o)})},"drawCommits"),ht=l((e,t,r,s,n)=>{let o=(p==="TB"||p==="BT"?r.x<s.x:r.y<s.y)?t.branch:e.branch,a=l(g=>g.branch===o,"isOnBranchToGetCurve"),h=l(g=>g.seq>e.seq&&g.seq<t.seq,"isBetweenCommits");return[...n.values()].some(g=>h(g)&&a(g))},"shouldRerouteArrow"),S=l((e,t,r=0)=>{let s=e+Math.abs(e-t)/2;if(r>5)return s;if(Y.every(o=>Math.abs(o-s)>=10))return Y.push(s),s;let i=Math.abs(e-t);return S(e,t-i/5,r+1)},"findLane"),lt=l((e,t,r,s)=>{let{theme:n}=q(),i=Q.has(n??""),o=v.get(t.id),a=v.get(r.id);if(o===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);let h=ht(t,r,o,a,s),g="",f="",m=0,c=0,y=C.get(r.branch)?.index;r.type===x.MERGE&&t.id!==r.parents[0]&&(y=C.get(t.branch)?.index);let $;if(h){g="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",m=10,c=10;let u=o.y<a.y?S(o.y,a.y):S(a.y,o.y),b=o.x<a.x?S(o.x,a.x):S(a.x,o.x);p==="TB"?o.x<a.x?$=`M ${o.x} ${o.y} L ${b-m} ${o.y} ${f} ${b} ${o.y+c} L ${b} ${a.y-m} ${g} ${b+c} ${a.y} L ${a.x} ${a.y}`:(y=C.get(t.branch)?.index,$=`M ${o.x} ${o.y} L ${b+m} ${o.y} ${g} ${b} ${o.y+c} L ${b} ${a.y-m} ${f} ${b-c} ${a.y} L ${a.x} ${a.y}`):p==="BT"?o.x<a.x?$=`M ${o.x} ${o.y} L ${b-m} ${o.y} ${g} ${b} ${o.y-c} L ${b} ${a.y+m} ${f} ${b+c} ${a.y} L ${a.x} ${a.y}`:(y=C.get(t.branch)?.index,$=`M ${o.x} ${o.y} L ${b+m} ${o.y} ${f} ${b} ${o.y-c} L ${b} ${a.y+m} ${g} ${b-c} ${a.y} L ${a.x} ${a.y}`):o.y<a.y?$=`M ${o.x} ${o.y} L ${o.x} ${u-m} ${g} ${o.x+c} ${u} L ${a.x-m} ${u} ${f} ${a.x} ${u+c} L ${a.x} ${a.y}`:(y=C.get(t.branch)?.index,$=`M ${o.x} ${o.y} L ${o.x} ${u+m} ${f} ${o.x+c} ${u} L ${a.x-m} ${u} ${g} ${a.x} ${u-c} L ${a.x} ${a.y}`)}else g="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",m=20,c=20,p==="TB"?(o.x<a.x&&(r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${g} ${o.x+c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${f} ${a.x} ${o.y+c} L ${a.x} ${a.y}`),o.x>a.x&&(g="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",m=20,c=20,r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${f} ${o.x-c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x+m} ${o.y} ${g} ${a.x} ${o.y+c} L ${a.x} ${a.y}`),o.x===a.x&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):p==="BT"?(o.x<a.x&&(r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${f} ${o.x+c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${g} ${a.x} ${o.y-c} L ${a.x} ${a.y}`),o.x>a.x&&(g="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",m=20,c=20,r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${g} ${o.x-c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x+m} ${o.y} ${f} ${a.x} ${o.y-c} L ${a.x} ${a.y}`),o.x===a.x&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):(o.y<a.y&&(r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${f} ${a.x} ${o.y+c} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${g} ${o.x+c} ${a.y} L ${a.x} ${a.y}`),o.y>a.y&&(r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${g} ${a.x} ${o.y-c} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${f} ${o.x+c} ${a.y} L ${a.x} ${a.y}`),o.y===a.y&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`));if($===void 0)throw new Error("Line definition not found");e.append("path").attr("d",$).attr("class","arrow arrow"+G(y,_,i))},"drawArrow"),mt=l((e,t)=>{let r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(s=>{let n=t.get(s);n.parents&&n.parents.length>0&&n.parents.forEach(i=>{lt(r,t.get(i),n,t)})})},"drawArrows"),gt=l((e,t,r,s)=>{let{look:n,theme:i,themeVariables:o}=q(),{dropShadow:a,THEME_COLOR_LIMIT:h}=o,g=K.has(i??""),f=Q.has(i??""),m=e.append("g");t.forEach((c,y)=>{let $=G(y,g?h:_,f),u=C.get(c.name)?.pos;if(u===void 0)throw new Error(`Position not found for branch ${c.name}`);let b=p==="TB"||p==="BT"?u:g?u+X/2+1:u-2,B=m.append("line");B.attr("x1",0),B.attr("y1",b),B.attr("x2",R),B.attr("y2",b),B.attr("class","branch branch"+$),p==="TB"?(B.attr("y1",z),B.attr("x1",u),B.attr("y2",R),B.attr("x2",u)):p==="BT"&&(B.attr("y1",R),B.attr("x1",u),B.attr("y2",z),B.attr("x2",u)),Y.push(b);let U=c.name,A=Be(U),T=m.insert("rect"),M=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+$);M.node().appendChild(A);let k=A.getBBox(),ee=g?0:4,N=g?16:0,W=g?X:0;n==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+$).attr("style",n==="neo"?`filter:${g?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-k.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-k.height/2+10).attr("width",k.width+18+N).attr("height",k.height+4+W),M.attr("transform","translate("+(-k.width-14-(r.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-k.height/2-2)+")"),p==="TB"?(T.attr("x",u-k.width/2-10).attr("y",0),M.attr("transform","translate("+(u-k.width/2-5)+", 0)"),g&&(T.attr("transform",`translate(${-N/2-3}, ${-W-10})`),M.attr("transform","translate("+(u-k.width/2-5)+", "+(-W*2+7)+")"))):p==="BT"?(T.attr("x",u-k.width/2-10).attr("y",R),M.attr("transform","translate("+(u-k.width/2-5)+", "+R+")"),g&&(T.attr("transform",`translate(${-N/2-3}, ${W+10})`),M.attr("transform","translate("+(u-k.width/2-5)+", "+(R+W*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-W/2)+")")})},"drawBranches"),ft=l(function(e,t,r,s,n){return C.set(e,{pos:t,index:r}),t+=50+(n?40:0)+(p==="TB"||p==="BT"?s.width/2:0),t},"setBranchPosition"),$t=l(function(e,t,r,s){Xe(),w.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",t,r);let n=s.db;if(!n.getConfig){w.error("getConfig method is not available on db");return}let i=n.getConfig(),o=i.rotateCommitLabel??!1;H=n.getCommits();let a=n.getBranchesAsObjArray();p=n.getDirection();let h=he(`[id="${t}"]`),{look:g,theme:f,themeVariables:m}=q(),{useGradient:c,gradientStart:y,gradientStop:$,filterColor:u}=m;if(c){let B=h.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");B.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),B.append("stop").attr("offset","100%").attr("stop-color",$).attr("stop-opacity",1)}g==="neo"&&K.has(f??"")&&h.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",u);let b=0;a.forEach((B,U)=>{let A=Be(B.name),T=h.append("g"),V=T.insert("g").attr("class","branchLabel"),M=V.insert("g").attr("class","label branch-label");M.node()?.appendChild(A);let k=A.getBBox();b=ft(B.name,b,U,k,o),M.remove(),V.remove(),T.remove()}),ye(h,H,!1,i),i.showBranches&>(h,a,i,t),mt(h,H),ye(h,H,!0,i),ge.insertTitle(h,"gitTitleText",i.titleTopMargin??0,n.getDiagramTitle()),de(void 0,h,i.diagramPadding,i.useMaxWidth)},"draw"),pt={draw:$t},Ce=8,ve=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),yt=new Set(["redux-color","redux-dark-color"]),xt=new Set(["neo","neo-dark"]),ut=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),bt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wt=l(e=>{let{svgId:t}=e,r="";if(e.useGradient&&t)for(let s=0;s<e.THEME_COLOR_LIMIT;s++)r+=`
|
|
15
|
+
.label${s} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return r},"genGitGraphGradient"),Bt=l(e=>{let t=F(),{theme:r,themeVariables:s}=t,{borderColorArray:n}=s,i=ve.has(r);if(xt.has(r)){let o="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)o+=`
|
|
17
|
+
.branch-label${a} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${wt(e)}`;else{let h=a%Ce;o+=`
|
|
24
|
+
.branch-label${a} { fill: ${e["gitBranchLabel"+h]}; }
|
|
25
|
+
.commit${a} { stroke: ${e["git"+h]}; fill: ${e["git"+h]}; }
|
|
26
|
+
.commit-highlight${a} { stroke: ${e["gitInv"+h]}; fill: ${e["gitInv"+h]}; }
|
|
27
|
+
.arrow${a} { stroke: ${e["git"+h]}; }
|
|
28
|
+
`}return o}else if(yt.has(r)){let o="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)o+=`
|
|
29
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:""} }
|
|
30
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:""} }
|
|
33
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{let h=a%n.length;o+=`
|
|
36
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:""} }
|
|
37
|
+
.commit${a} { stroke: ${n[h]}; fill: ${n[h]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${n[h]}; fill: ${n[h]}; }
|
|
39
|
+
.label${a} { fill: ${ut.has(r)?e.mainBkg:n[h]}; stroke: ${n[h]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${n[h]}; }
|
|
41
|
+
`}return o}else{let o="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)o+=`
|
|
42
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:""} }
|
|
43
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:""}}
|
|
46
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return o}},"genColor"),kt=l(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(t,r)=>r).map(t=>{let r=t%Ce;return`
|
|
50
|
+
.branch-label${t} { fill: ${e["gitBranchLabel"+r]}; }
|
|
51
|
+
.commit${t} { stroke: ${e["git"+r]}; fill: ${e["git"+r]}; }
|
|
52
|
+
.commit-highlight${t} { stroke: ${e["gitInv"+r]}; fill: ${e["gitInv"+r]}; }
|
|
53
|
+
.label${t} { fill: ${e["git"+r]}; }
|
|
54
|
+
.arrow${t} { stroke: ${e["git"+r]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),Ct=l(e=>{let t=F(),{theme:r}=t,s=bt.has(r);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
|
+
${s?Bt(e):kt(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${s?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${s?e.nodeBorder:e.commitLabelColor}; ${s?`font-weight:${e.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${s?"transparent":e.commitLabelBackground}; opacity: ${s?"":.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${s?e.mainBkg:e.tagLabelBackground}; stroke: ${s?e.nodeBorder:e.tagLabelBorder}; ${s?`filter:${e.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${s?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${s?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${s?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${s?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${s?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${s?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${s?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${ve.has(r)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),vt=Ct,_t={parser:Ve,db:we,renderer:pt,styles:vt};export{_t as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";function j(n){let a=n.regex,c=n.COMMENT("--","$"),l={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},_={begin:/"/,end:/"/,contains:[{match:/""/}]},u=["true","false","unknown"],g=["double precision","large object","with timezone","without timezone"],m=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],s=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],o=s,f=[...d,...p].filter(e=>!s.includes(e)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},y={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:a.concat(/\b/,a.either(...o),/\s*\(/),relevance:0,keywords:{built_in:o}};function i(e){return a.concat(/\b/,a.either(...e.map(t=>t.replace(/\s+/,"\\s+"))),/\b/)}let x={scope:"keyword",match:i(b),relevance:0};function E(e,{exceptions:t,when:k}={}){let O=k;return t=t||[],e.map(r=>r.match(/\|\d+$/)||t.includes(r)?r:O(r)?`${r}|0`:r)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(f,{when:e=>e.length<3}),literal:u,type:m,built_in:h},contains:[{scope:"type",match:i(g)},x,w,v,l,_,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,c,y]}}export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var qa=typeof global=="object"&&global&&global.Object===Object&&global,qr=qa;var $a=typeof self=="object"&&self&&self.Object===Object&&self,Va=qr||$a||Function("return this")(),g=Va;var Ya=g.Symbol,_=Ya;var Gt=Object.prototype,Za=Gt.hasOwnProperty,Ja=Gt.toString,Rr=_?_.toStringTag:void 0;function Xa(r){var t=Za.call(r,Rr),e=r[Rr];try{r[Rr]=void 0;var o=!0}catch{}var a=Ja.call(r);return o&&(t?r[Rr]=e:delete r[Rr]),a}var Ut=Xa;var Qa=Object.prototype,ka=Qa.toString;function rf(r){return ka.call(r)}var Kt=rf;var tf="[object Null]",ef="[object Undefined]",Wt=_?_.toStringTag:void 0;function of(r){return r==null?r===void 0?ef:tf:Wt&&Wt in Object(r)?Ut(r):Kt(r)}var P=of;function af(r){return r!=null&&typeof r=="object"}var y=af;var ff="[object Symbol]";function nf(r){return typeof r=="symbol"||y(r)&&P(r)==ff}var L=nf;function sf(r,t){for(var e=-1,o=r==null?0:r.length,a=Array(o);++e<o;)a[e]=t(r[e],e,r);return a}var B=sf;var pf=Array.isArray,m=pf;var uf=1/0,Ht=_?_.prototype:void 0,zt=Ht?Ht.toString:void 0;function qt(r){if(typeof r=="string")return r;if(m(r))return B(r,qt)+"";if(L(r))return zt?zt.call(r):"";var t=r+"";return t=="0"&&1/r==-uf?"-0":t}var $t=qt;var mf=/\s/;function lf(r){for(var t=r.length;t--&&mf.test(r.charAt(t)););return t}var Vt=lf;var df=/^\s+/;function cf(r){return r&&r.slice(0,Vt(r)+1).replace(df,"")}var Yt=cf;function xf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var h=xf;var Zt=NaN,hf=/^[-+]0x[0-9a-f]+$/i,gf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,yf=parseInt;function _f(r){if(typeof r=="number")return r;if(L(r))return Zt;if(h(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=h(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Yt(r);var e=gf.test(r);return e||bf.test(r)?yf(r.slice(2),e?2:8):hf.test(r)?Zt:+r}var Jt=_f;var Xt=1/0,vf=17976931348623157e292;function Of(r){if(!r)return r===0?r:0;if(r=Jt(r),r===Xt||r===-Xt){var t=r<0?-1:1;return t*vf}return r===r?r:0}var cr=Of;function Af(r){var t=cr(r),e=t%1;return t===t?e?t-e:t:0}var Qt=Af;function Tf(r){return r}var I=Tf;var wf="[object AsyncFunction]",Sf="[object Function]",Pf="[object GeneratorFunction]",Cf="[object Proxy]";function If(r){if(!h(r))return!1;var t=P(r);return t==Sf||t==Pf||t==wf||t==Cf}var G=If;var Ef=g["__core-js_shared__"],$r=Ef;var kt=(function(){var r=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function jf(r){return!!kt&&kt in r}var re=jf;var Lf=Function.prototype,Mf=Lf.toString;function Ff(r){if(r!=null){try{return Mf.call(r)}catch{}try{return r+""}catch{}}return""}var H=Ff;var Rf=/[\\^$.*+?()[\]{}|]/g,Nf=/^\[object .+?Constructor\]$/,Df=Function.prototype,Bf=Object.prototype,Gf=Df.toString,Uf=Bf.hasOwnProperty,Kf=RegExp("^"+Gf.call(Uf).replace(Rf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(r){if(!h(r)||re(r))return!1;var t=G(r)?Kf:Nf;return t.test(H(r))}var te=Wf;function Hf(r,t){return r?.[t]}var ee=Hf;function zf(r,t){var e=ee(r,t);return te(e)?e:void 0}var E=zf;var qf=E(g,"WeakMap"),Vr=qf;var oe=Object.create,$f=(function(){function r(){}return function(t){if(!h(t))return{};if(oe)return oe(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),ae=$f;function Vf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var fe=Vf;function Yf(){}var ne=Yf;function Zf(r,t){var e=-1,o=r.length;for(t||(t=Array(o));++e<o;)t[e]=r[e];return t}var Yr=Zf;var Jf=800,Xf=16,Qf=Date.now;function kf(r){var t=0,e=0;return function(){var o=Qf(),a=Xf-(o-e);if(e=o,a>0){if(++t>=Jf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var ie=kf;function rn(r){return function(){return r}}var V=rn;var tn=(function(){try{var r=E(Object,"defineProperty");return r({},"",{}),r}catch{}})(),xr=tn;var en=xr?function(r,t){return xr(r,"toString",{configurable:!0,enumerable:!1,value:V(t),writable:!0})}:I,se=en;var on=ie(se),Zr=on;function an(r,t){for(var e=-1,o=r==null?0:r.length;++e<o&&t(r[e],e,r)!==!1;);return r}var Jr=an;function fn(r,t,e,o){for(var a=r.length,f=e+(o?1:-1);o?f--:++f<a;)if(t(r[f],f,r))return f;return-1}var Xr=fn;function nn(r){return r!==r}var pe=nn;function sn(r,t,e){for(var o=e-1,a=r.length;++o<a;)if(r[o]===t)return o;return-1}var ue=sn;function pn(r,t,e){return t===t?ue(r,t,e):Xr(r,pe,e)}var me=pn;function un(r,t){var e=r==null?0:r.length;return!!e&&me(r,t,0)>-1}var le=un;var mn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function dn(r,t){var e=typeof r;return t=t??mn,!!t&&(e=="number"||e!="symbol"&&ln.test(r))&&r>-1&&r%1==0&&r<t}var Y=dn;function cn(r,t,e){t=="__proto__"&&xr?xr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var Z=cn;function xn(r,t){return r===t||r!==r&&t!==t}var F=xn;var hn=Object.prototype,gn=hn.hasOwnProperty;function bn(r,t,e){var o=r[t];(!(gn.call(r,t)&&F(o,e))||e===void 0&&!(t in r))&&Z(r,t,e)}var J=bn;function yn(r,t,e,o){var a=!e;e||(e={});for(var f=-1,n=t.length;++f<n;){var i=t[f],s=o?o(e[i],r[i],i,e,r):void 0;s===void 0&&(s=r[i]),a?Z(e,i,s):J(e,i,s)}return e}var U=yn;var de=Math.max;function _n(r,t,e){return t=de(t===void 0?r.length-1:t,0),function(){for(var o=arguments,a=-1,f=de(o.length-t,0),n=Array(f);++a<f;)n[a]=o[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=o[a];return i[t]=e(n),fe(r,this,i)}}var Qr=_n;function vn(r,t){return Zr(Qr(r,t,I),r+"")}var X=vn;var On=9007199254740991;function An(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=On}var hr=An;function Tn(r){return r!=null&&hr(r.length)&&!G(r)}var v=Tn;function wn(r,t,e){if(!h(e))return!1;var o=typeof t;return(o=="number"?v(e)&&Y(t,e.length):o=="string"&&t in e)?F(e[t],r):!1}var z=wn;function Sn(r){return X(function(t,e){var o=-1,a=e.length,f=a>1?e[a-1]:void 0,n=a>2?e[2]:void 0;for(f=r.length>3&&typeof f=="function"?(a--,f):void 0,n&&z(e[0],e[1],n)&&(f=a<3?void 0:f,a=1),t=Object(t);++o<a;){var i=e[o];i&&r(t,i,o,f)}return t})}var ce=Sn;var Pn=Object.prototype;function Cn(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Pn;return r===e}var Q=Cn;function In(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var xe=In;var En="[object Arguments]";function jn(r){return y(r)&&P(r)==En}var Pt=jn;var he=Object.prototype,Ln=he.hasOwnProperty,Mn=he.propertyIsEnumerable,Fn=Pt((function(){return arguments})())?Pt:function(r){return y(r)&&Ln.call(r,"callee")&&!Mn.call(r,"callee")},R=Fn;function Rn(){return!1}var ge=Rn;var _e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,be=_e&&typeof module=="object"&&module&&!module.nodeType&&module,Nn=be&&be.exports===_e,ye=Nn?g.Buffer:void 0,Dn=ye?ye.isBuffer:void 0,Bn=Dn||ge,N=Bn;var Gn="[object Arguments]",Un="[object Array]",Kn="[object Boolean]",Wn="[object Date]",Hn="[object Error]",zn="[object Function]",qn="[object Map]",$n="[object Number]",Vn="[object Object]",Yn="[object RegExp]",Zn="[object Set]",Jn="[object String]",Xn="[object WeakMap]",Qn="[object ArrayBuffer]",kn="[object DataView]",ri="[object Float32Array]",ti="[object Float64Array]",ei="[object Int8Array]",oi="[object Int16Array]",ai="[object Int32Array]",fi="[object Uint8Array]",ni="[object Uint8ClampedArray]",ii="[object Uint16Array]",si="[object Uint32Array]",x={};x[ri]=x[ti]=x[ei]=x[oi]=x[ai]=x[fi]=x[ni]=x[ii]=x[si]=!0;x[Gn]=x[Un]=x[Qn]=x[Kn]=x[kn]=x[Wn]=x[Hn]=x[zn]=x[qn]=x[$n]=x[Vn]=x[Yn]=x[Zn]=x[Jn]=x[Xn]=!1;function pi(r){return y(r)&&hr(r.length)&&!!x[P(r)]}var ve=pi;function ui(r){return function(t){return r(t)}}var k=ui;var Oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nr=Oe&&typeof module=="object"&&module&&!module.nodeType&&module,mi=Nr&&Nr.exports===Oe,Ct=mi&&qr.process,li=(function(){try{var r=Nr&&Nr.require&&Nr.require("util").types;return r||Ct&&Ct.binding&&Ct.binding("util")}catch{}})(),q=li;var Ae=q&&q.isTypedArray,di=Ae?k(Ae):ve,rr=di;var ci=Object.prototype,xi=ci.hasOwnProperty;function hi(r,t){var e=m(r),o=!e&&R(r),a=!e&&!o&&N(r),f=!e&&!o&&!a&&rr(r),n=e||o||a||f,i=n?xe(r.length,String):[],s=i.length;for(var p in r)(t||xi.call(r,p))&&!(n&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Y(p,s)))&&i.push(p);return i}var kr=hi;function gi(r,t){return function(e){return r(t(e))}}var rt=gi;var bi=rt(Object.keys,Object),Te=bi;var yi=Object.prototype,_i=yi.hasOwnProperty;function vi(r){if(!Q(r))return Te(r);var t=[];for(var e in Object(r))_i.call(r,e)&&e!="constructor"&&t.push(e);return t}var gr=vi;function Oi(r){return v(r)?kr(r):gr(r)}var b=Oi;function Ai(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var we=Ai;var Ti=Object.prototype,wi=Ti.hasOwnProperty;function Si(r){if(!h(r))return we(r);var t=Q(r),e=[];for(var o in r)o=="constructor"&&(t||!wi.call(r,o))||e.push(o);return e}var Se=Si;function Pi(r){return v(r)?kr(r,!0):Se(r)}var j=Pi;var Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/;function Ei(r,t){if(m(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||L(r)?!0:Ii.test(r)||!Ci.test(r)||t!=null&&r in Object(t)}var br=Ei;var ji=E(Object,"create"),$=ji;function Li(){this.__data__=$?$(null):{},this.size=0}var Pe=Li;function Mi(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ce=Mi;var Fi="__lodash_hash_undefined__",Ri=Object.prototype,Ni=Ri.hasOwnProperty;function Di(r){var t=this.__data__;if($){var e=t[r];return e===Fi?void 0:e}return Ni.call(t,r)?t[r]:void 0}var Ie=Di;var Bi=Object.prototype,Gi=Bi.hasOwnProperty;function Ui(r){var t=this.__data__;return $?t[r]!==void 0:Gi.call(t,r)}var Ee=Ui;var Ki="__lodash_hash_undefined__";function Wi(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=$&&t===void 0?Ki:t,this}var je=Wi;function yr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}yr.prototype.clear=Pe;yr.prototype.delete=Ce;yr.prototype.get=Ie;yr.prototype.has=Ee;yr.prototype.set=je;var It=yr;function Hi(){this.__data__=[],this.size=0}var Le=Hi;function zi(r,t){for(var e=r.length;e--;)if(F(r[e][0],t))return e;return-1}var tr=zi;var qi=Array.prototype,$i=qi.splice;function Vi(r){var t=this.__data__,e=tr(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():$i.call(t,e,1),--this.size,!0}var Me=Vi;function Yi(r){var t=this.__data__,e=tr(t,r);return e<0?void 0:t[e][1]}var Fe=Yi;function Zi(r){return tr(this.__data__,r)>-1}var Re=Zi;function Ji(r,t){var e=this.__data__,o=tr(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var Ne=Ji;function _r(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}_r.prototype.clear=Le;_r.prototype.delete=Me;_r.prototype.get=Fe;_r.prototype.has=Re;_r.prototype.set=Ne;var er=_r;var Xi=E(g,"Map"),or=Xi;function Qi(){this.size=0,this.__data__={hash:new It,map:new(or||er),string:new It}}var De=Qi;function ki(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Be=ki;function rs(r,t){var e=r.__data__;return Be(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ar=rs;function ts(r){var t=ar(this,r).delete(r);return this.size-=t?1:0,t}var Ge=ts;function es(r){return ar(this,r).get(r)}var Ue=es;function os(r){return ar(this,r).has(r)}var Ke=os;function as(r,t){var e=ar(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var We=as;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}vr.prototype.clear=De;vr.prototype.delete=Ge;vr.prototype.get=Ue;vr.prototype.has=Ke;vr.prototype.set=We;var mr=vr;var fs="Expected a function";function Et(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(fs);var e=function(){var o=arguments,a=t?t.apply(this,o):o[0],f=e.cache;if(f.has(a))return f.get(a);var n=r.apply(this,o);return e.cache=f.set(a,n)||f,n};return e.cache=new(Et.Cache||mr),e}Et.Cache=mr;var He=Et;var ns=500;function is(r){var t=He(r,function(o){return e.size===ns&&e.clear(),o}),e=t.cache;return t}var ze=is;var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ps=/\\(\\)?/g,us=ze(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(ss,function(e,o,a,f){t.push(a?f.replace(ps,"$1"):o||e)}),t}),qe=us;function ms(r){return r==null?"":$t(r)}var tt=ms;function ls(r,t){return m(r)?r:br(r,t)?[r]:qe(tt(r))}var fr=ls;var ds=1/0;function cs(r){if(typeof r=="string"||L(r))return r;var t=r+"";return t=="0"&&1/r==-ds?"-0":t}var K=cs;function xs(r,t){t=fr(t,r);for(var e=0,o=t.length;r!=null&&e<o;)r=r[K(t[e++])];return e&&e==o?r:void 0}var nr=xs;function hs(r,t,e){var o=r==null?void 0:nr(r,t);return o===void 0?e:o}var $e=hs;function gs(r,t){for(var e=-1,o=t.length,a=r.length;++e<o;)r[a+e]=t[e];return r}var Or=gs;var Ve=_?_.isConcatSpreadable:void 0;function bs(r){return m(r)||R(r)||!!(Ve&&r&&r[Ve])}var Ye=bs;function Ze(r,t,e,o,a){var f=-1,n=r.length;for(e||(e=Ye),a||(a=[]);++f<n;){var i=r[f];t>0&&e(i)?t>1?Ze(i,t-1,e,o,a):Or(a,i):o||(a[a.length]=i)}return a}var Ar=Ze;function ys(r){var t=r==null?0:r.length;return t?Ar(r,1):[]}var jt=ys;function _s(r){return Zr(Qr(r,void 0,jt),r+"")}var Je=_s;var vs=rt(Object.getPrototypeOf,Object),Tr=vs;var Os="[object Object]",As=Function.prototype,Ts=Object.prototype,Xe=As.toString,ws=Ts.hasOwnProperty,Ss=Xe.call(Object);function Ps(r){if(!y(r)||P(r)!=Os)return!1;var t=Tr(r);if(t===null)return!0;var e=ws.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Xe.call(e)==Ss}var Qe=Ps;var Cs="\\ud800-\\udfff",Is="\\u0300-\\u036f",Es="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",Ls=Is+Es+js,Ms="\\ufe0e\\ufe0f",Fs="\\u200d",Rs=RegExp("["+Fs+Cs+Ls+Ms+"]");function Ns(r){return Rs.test(r)}var ke=Ns;function Ds(r,t,e,o){var a=-1,f=r==null?0:r.length;for(o&&f&&(e=r[++a]);++a<f;)e=t(e,r[a],a,r);return e}var ro=Ds;function Bs(){this.__data__=new er,this.size=0}var to=Bs;function Gs(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var eo=Gs;function Us(r){return this.__data__.get(r)}var oo=Us;function Ks(r){return this.__data__.has(r)}var ao=Ks;var Ws=200;function Hs(r,t){var e=this.__data__;if(e instanceof er){var o=e.__data__;if(!or||o.length<Ws-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new mr(o)}return e.set(r,t),this.size=e.size,this}var fo=Hs;function wr(r){var t=this.__data__=new er(r);this.size=t.size}wr.prototype.clear=to;wr.prototype.delete=eo;wr.prototype.get=oo;wr.prototype.has=ao;wr.prototype.set=fo;var W=wr;function zs(r,t){return r&&U(t,b(t),r)}var no=zs;function qs(r,t){return r&&U(t,j(t),r)}var io=qs;var mo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,so=mo&&typeof module=="object"&&module&&!module.nodeType&&module,$s=so&&so.exports===mo,po=$s?g.Buffer:void 0,uo=po?po.allocUnsafe:void 0;function Vs(r,t){if(t)return r.slice();var e=r.length,o=uo?uo(e):new r.constructor(e);return r.copy(o),o}var et=Vs;function Ys(r,t){for(var e=-1,o=r==null?0:r.length,a=0,f=[];++e<o;){var n=r[e];t(n,e,r)&&(f[a++]=n)}return f}var ot=Ys;function Zs(){return[]}var at=Zs;var Js=Object.prototype,Xs=Js.propertyIsEnumerable,lo=Object.getOwnPropertySymbols,Qs=lo?function(r){return r==null?[]:(r=Object(r),ot(lo(r),function(t){return Xs.call(r,t)}))}:at,Sr=Qs;function ks(r,t){return U(r,Sr(r),t)}var co=ks;var rp=Object.getOwnPropertySymbols,tp=rp?function(r){for(var t=[];r;)Or(t,Sr(r)),r=Tr(r);return t}:at,ft=tp;function ep(r,t){return U(r,ft(r),t)}var xo=ep;function op(r,t,e){var o=t(r);return m(r)?o:Or(o,e(r))}var nt=op;function ap(r){return nt(r,b,Sr)}var Dr=ap;function fp(r){return nt(r,j,ft)}var ho=fp;var np=E(g,"DataView"),it=np;var ip=E(g,"Promise"),st=ip;var sp=E(g,"Set"),ir=sp;var go="[object Map]",pp="[object Object]",bo="[object Promise]",yo="[object Set]",_o="[object WeakMap]",vo="[object DataView]",up=H(it),mp=H(or),lp=H(st),dp=H(ir),cp=H(Vr),lr=P;(it&&lr(new it(new ArrayBuffer(1)))!=vo||or&&lr(new or)!=go||st&&lr(st.resolve())!=bo||ir&&lr(new ir)!=yo||Vr&&lr(new Vr)!=_o)&&(lr=function(r){var t=P(r),e=t==pp?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case up:return vo;case mp:return go;case lp:return bo;case dp:return yo;case cp:return _o}return t});var M=lr;var xp=Object.prototype,hp=xp.hasOwnProperty;function gp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&hp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Oo=gp;var bp=g.Uint8Array,Pr=bp;function yp(r){var t=new r.constructor(r.byteLength);return new Pr(t).set(new Pr(r)),t}var Cr=yp;function _p(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var Ao=_p;var vp=/\w*$/;function Op(r){var t=new r.constructor(r.source,vp.exec(r));return t.lastIndex=r.lastIndex,t}var To=Op;var wo=_?_.prototype:void 0,So=wo?wo.valueOf:void 0;function Ap(r){return So?Object(So.call(r)):{}}var Po=Ap;function Tp(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var pt=Tp;var wp="[object Boolean]",Sp="[object Date]",Pp="[object Map]",Cp="[object Number]",Ip="[object RegExp]",Ep="[object Set]",jp="[object String]",Lp="[object Symbol]",Mp="[object ArrayBuffer]",Fp="[object DataView]",Rp="[object Float32Array]",Np="[object Float64Array]",Dp="[object Int8Array]",Bp="[object Int16Array]",Gp="[object Int32Array]",Up="[object Uint8Array]",Kp="[object Uint8ClampedArray]",Wp="[object Uint16Array]",Hp="[object Uint32Array]";function zp(r,t,e){var o=r.constructor;switch(t){case Mp:return Cr(r);case wp:case Sp:return new o(+r);case Fp:return Ao(r,e);case Rp:case Np:case Dp:case Bp:case Gp:case Up:case Kp:case Wp:case Hp:return pt(r,e);case Pp:return new o;case Cp:case jp:return new o(r);case Ip:return To(r);case Ep:return new o;case Lp:return Po(r)}}var Co=zp;function qp(r){return typeof r.constructor=="function"&&!Q(r)?ae(Tr(r)):{}}var ut=qp;var $p="[object Map]";function Vp(r){return y(r)&&M(r)==$p}var Io=Vp;var Eo=q&&q.isMap,Yp=Eo?k(Eo):Io,jo=Yp;var Zp="[object Set]";function Jp(r){return y(r)&&M(r)==Zp}var Lo=Jp;var Mo=q&&q.isSet,Xp=Mo?k(Mo):Lo,Fo=Xp;var Qp=1,kp=2,ru=4,Ro="[object Arguments]",tu="[object Array]",eu="[object Boolean]",ou="[object Date]",au="[object Error]",No="[object Function]",fu="[object GeneratorFunction]",nu="[object Map]",iu="[object Number]",Do="[object Object]",su="[object RegExp]",pu="[object Set]",uu="[object String]",mu="[object Symbol]",lu="[object WeakMap]",du="[object ArrayBuffer]",cu="[object DataView]",xu="[object Float32Array]",hu="[object Float64Array]",gu="[object Int8Array]",bu="[object Int16Array]",yu="[object Int32Array]",_u="[object Uint8Array]",vu="[object Uint8ClampedArray]",Ou="[object Uint16Array]",Au="[object Uint32Array]",c={};c[Ro]=c[tu]=c[du]=c[cu]=c[eu]=c[ou]=c[xu]=c[hu]=c[gu]=c[bu]=c[yu]=c[nu]=c[iu]=c[Do]=c[su]=c[pu]=c[uu]=c[mu]=c[_u]=c[vu]=c[Ou]=c[Au]=!0;c[au]=c[No]=c[lu]=!1;function mt(r,t,e,o,a,f){var n,i=t&Qp,s=t&kp,p=t&ru;if(e&&(n=a?e(r,o,a,f):e(r)),n!==void 0)return n;if(!h(r))return r;var u=m(r);if(u){if(n=Oo(r),!i)return Yr(r,n)}else{var l=M(r),d=l==No||l==fu;if(N(r))return et(r,i);if(l==Do||l==Ro||d&&!a){if(n=s||d?{}:ut(r),!i)return s?xo(r,io(n,r)):co(r,no(n,r))}else{if(!c[l])return a?r:{};n=Co(r,l,i)}}f||(f=new W);var T=f.get(r);if(T)return T;f.set(r,n),Fo(r)?r.forEach(function(A){n.add(mt(A,t,e,A,r,f))}):jo(r)&&r.forEach(function(A,S){n.set(S,mt(A,t,e,S,r,f))});var O=p?s?ho:Dr:s?j:b,C=u?void 0:O(r);return Jr(C||r,function(A,S){C&&(S=A,A=r[S]),J(n,S,mt(A,t,e,S,r,f))}),n}var Bo=mt;var Tu=1,wu=4;function Su(r){return Bo(r,Tu|wu)}var Pu=Su;var Cu="__lodash_hash_undefined__";function Iu(r){return this.__data__.set(r,Cu),this}var Go=Iu;function Eu(r){return this.__data__.has(r)}var Uo=Eu;function lt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new mr;++t<e;)this.add(r[t])}lt.prototype.add=lt.prototype.push=Go;lt.prototype.has=Uo;var dt=lt;function ju(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}var Ko=ju;function Lu(r,t){return r.has(t)}var ct=Lu;var Mu=1,Fu=2;function Ru(r,t,e,o,a,f){var n=e&Mu,i=r.length,s=t.length;if(i!=s&&!(n&&s>i))return!1;var p=f.get(r),u=f.get(t);if(p&&u)return p==t&&u==r;var l=-1,d=!0,T=e&Fu?new dt:void 0;for(f.set(r,t),f.set(t,r);++l<i;){var O=r[l],C=t[l];if(o)var A=n?o(C,O,l,t,r,f):o(O,C,l,r,t,f);if(A!==void 0){if(A)continue;d=!1;break}if(T){if(!Ko(t,function(S,ur){if(!ct(T,ur)&&(O===S||a(O,S,e,o,f)))return T.push(ur)})){d=!1;break}}else if(!(O===C||a(O,C,e,o,f))){d=!1;break}}return f.delete(r),f.delete(t),d}var xt=Ru;function Nu(r){var t=-1,e=Array(r.size);return r.forEach(function(o,a){e[++t]=[a,o]}),e}var Wo=Nu;function Du(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var Ir=Du;var Bu=1,Gu=2,Uu="[object Boolean]",Ku="[object Date]",Wu="[object Error]",Hu="[object Map]",zu="[object Number]",qu="[object RegExp]",$u="[object Set]",Vu="[object String]",Yu="[object Symbol]",Zu="[object ArrayBuffer]",Ju="[object DataView]",Ho=_?_.prototype:void 0,Lt=Ho?Ho.valueOf:void 0;function Xu(r,t,e,o,a,f,n){switch(e){case Ju:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zu:return!(r.byteLength!=t.byteLength||!f(new Pr(r),new Pr(t)));case Uu:case Ku:case zu:return F(+r,+t);case Wu:return r.name==t.name&&r.message==t.message;case qu:case Vu:return r==t+"";case Hu:var i=Wo;case $u:var s=o&Bu;if(i||(i=Ir),r.size!=t.size&&!s)return!1;var p=n.get(r);if(p)return p==t;o|=Gu,n.set(r,t);var u=xt(i(r),i(t),o,a,f,n);return n.delete(r),u;case Yu:if(Lt)return Lt.call(r)==Lt.call(t)}return!1}var zo=Xu;var Qu=1,ku=Object.prototype,rm=ku.hasOwnProperty;function tm(r,t,e,o,a,f){var n=e&Qu,i=Dr(r),s=i.length,p=Dr(t),u=p.length;if(s!=u&&!n)return!1;for(var l=s;l--;){var d=i[l];if(!(n?d in t:rm.call(t,d)))return!1}var T=f.get(r),O=f.get(t);if(T&&O)return T==t&&O==r;var C=!0;f.set(r,t),f.set(t,r);for(var A=n;++l<s;){d=i[l];var S=r[d],ur=t[d];if(o)var Bt=n?o(ur,S,d,t,r,f):o(S,ur,d,r,t,f);if(!(Bt===void 0?S===ur||a(S,ur,e,o,f):Bt)){C=!1;break}A||(A=d=="constructor")}if(C&&!A){var Hr=r.constructor,zr=t.constructor;Hr!=zr&&"constructor"in r&&"constructor"in t&&!(typeof Hr=="function"&&Hr instanceof Hr&&typeof zr=="function"&&zr instanceof zr)&&(C=!1)}return f.delete(r),f.delete(t),C}var qo=tm;var em=1,$o="[object Arguments]",Vo="[object Array]",ht="[object Object]",om=Object.prototype,Yo=om.hasOwnProperty;function am(r,t,e,o,a,f){var n=m(r),i=m(t),s=n?Vo:M(r),p=i?Vo:M(t);s=s==$o?ht:s,p=p==$o?ht:p;var u=s==ht,l=p==ht,d=s==p;if(d&&N(r)){if(!N(t))return!1;n=!0,u=!1}if(d&&!u)return f||(f=new W),n||rr(r)?xt(r,t,e,o,a,f):zo(r,t,s,e,o,a,f);if(!(e&em)){var T=u&&Yo.call(r,"__wrapped__"),O=l&&Yo.call(t,"__wrapped__");if(T||O){var C=T?r.value():r,A=O?t.value():t;return f||(f=new W),a(C,A,e,o,f)}}return d?(f||(f=new W),qo(r,t,e,o,a,f)):!1}var Zo=am;function Jo(r,t,e,o,a){return r===t?!0:r==null||t==null||!y(r)&&!y(t)?r!==r&&t!==t:Zo(r,t,e,o,Jo,a)}var gt=Jo;var fm=1,nm=2;function im(r,t,e,o){var a=e.length,f=a,n=!o;if(r==null)return!f;for(r=Object(r);a--;){var i=e[a];if(n&&i[2]?i[1]!==r[i[0]]:!(i[0]in r))return!1}for(;++a<f;){i=e[a];var s=i[0],p=r[s],u=i[1];if(n&&i[2]){if(p===void 0&&!(s in r))return!1}else{var l=new W;if(o)var d=o(p,u,s,r,t,l);if(!(d===void 0?gt(u,p,fm|nm,o,l):d))return!1}}return!0}var Xo=im;function sm(r){return r===r&&!h(r)}var bt=sm;function pm(r){for(var t=b(r),e=t.length;e--;){var o=t[e],a=r[o];t[e]=[o,a,bt(a)]}return t}var Qo=pm;function um(r,t){return function(e){return e==null?!1:e[r]===t&&(t!==void 0||r in Object(e))}}var yt=um;function mm(r){var t=Qo(r);return t.length==1&&t[0][2]?yt(t[0][0],t[0][1]):function(e){return e===r||Xo(e,r,t)}}var ko=mm;function lm(r,t){return r!=null&&t in Object(r)}var ra=lm;function dm(r,t,e){t=fr(t,r);for(var o=-1,a=t.length,f=!1;++o<a;){var n=K(t[o]);if(!(f=r!=null&&e(r,n)))break;r=r[n]}return f||++o!=a?f:(a=r==null?0:r.length,!!a&&hr(a)&&Y(n,a)&&(m(r)||R(r)))}var _t=dm;function cm(r,t){return r!=null&&_t(r,t,ra)}var vt=cm;var xm=1,hm=2;function gm(r,t){return br(r)&&bt(t)?yt(K(r),t):function(e){var o=$e(e,r);return o===void 0&&o===t?vt(e,r):gt(t,o,xm|hm)}}var ta=gm;function bm(r){return function(t){return t?.[r]}}var Ot=bm;function ym(r){return function(t){return nr(t,r)}}var ea=ym;function _m(r){return br(r)?Ot(K(r)):ea(r)}var oa=_m;function vm(r){return typeof r=="function"?r:r==null?I:typeof r=="object"?m(r)?ta(r[0],r[1]):ko(r):oa(r)}var w=vm;function Om(r){return function(t,e,o){for(var a=-1,f=Object(t),n=o(t),i=n.length;i--;){var s=n[r?i:++a];if(e(f[s],s,f)===!1)break}return t}}var aa=Om;var Am=aa(),Er=Am;function Tm(r,t){return r&&Er(r,t,b)}var jr=Tm;function wm(r,t){return function(e,o){if(e==null)return e;if(!v(e))return r(e,o);for(var a=e.length,f=t?a:-1,n=Object(e);(t?f--:++f<a)&&o(n[f],f,n)!==!1;);return e}}var fa=wm;var Sm=fa(jr),sr=Sm;var Pm=function(){return g.Date.now()},Cm=Pm;var na=Object.prototype,Im=na.hasOwnProperty,Em=X(function(r,t){r=Object(r);var e=-1,o=t.length,a=o>2?t[2]:void 0;for(a&&z(t[0],t[1],a)&&(o=1);++e<o;)for(var f=t[e],n=j(f),i=-1,s=n.length;++i<s;){var p=n[i],u=r[p];(u===void 0||F(u,na[p])&&!Im.call(r,p))&&(r[p]=f[p])}return r}),jm=Em;function Lm(r,t,e){(e!==void 0&&!F(r[t],e)||e===void 0&&!(t in r))&&Z(r,t,e)}var Br=Lm;function Mm(r){return y(r)&&v(r)}var At=Mm;function Fm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Gr=Fm;function Rm(r){return U(r,j(r))}var ia=Rm;function Nm(r,t,e,o,a,f,n){var i=Gr(r,e),s=Gr(t,e),p=n.get(s);if(p){Br(r,e,p);return}var u=f?f(i,s,e+"",r,t,n):void 0,l=u===void 0;if(l){var d=m(s),T=!d&&N(s),O=!d&&!T&&rr(s);u=s,d||T||O?m(i)?u=i:At(i)?u=Yr(i):T?(l=!1,u=et(s,!0)):O?(l=!1,u=pt(s,!0)):u=[]:Qe(s)||R(s)?(u=i,R(i)?u=ia(i):(!h(i)||G(i))&&(u=ut(s))):l=!1}l&&(n.set(s,u),a(u,s,o,f,n),n.delete(s)),Br(r,e,u)}var sa=Nm;function pa(r,t,e,o,a){r!==t&&Er(t,function(f,n){if(a||(a=new W),h(f))sa(r,t,n,e,pa,o,a);else{var i=o?o(Gr(r,n),f,n+"",r,t,a):void 0;i===void 0&&(i=f),Br(r,n,i)}},j)}var ua=pa;function Dm(r,t,e){for(var o=-1,a=r==null?0:r.length;++o<a;)if(e(t,r[o]))return!0;return!1}var ma=Dm;function Bm(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var Gm=Bm;function Um(r){return typeof r=="function"?r:I}var Lr=Um;function Km(r,t){var e=m(r)?Jr:sr;return e(r,Lr(t))}var D=Km;function Wm(r,t){var e=[];return sr(r,function(o,a,f){t(o,a,f)&&e.push(o)}),e}var la=Wm;function Hm(r,t){var e=m(r)?ot:la;return e(r,w(t,3))}var Mr=Hm;function zm(r){return function(t,e,o){var a=Object(t);if(!v(t)){var f=w(e,3);t=b(t),e=function(i){return f(a[i],i,a)}}var n=r(t,e,o);return n>-1?a[f?t[n]:n]:void 0}}var da=zm;var qm=Math.max;function $m(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var a=e==null?0:Qt(e);return a<0&&(a=qm(o+a,0)),Xr(r,w(t,3),a)}var ca=$m;var Vm=da(ca),Ym=Vm;function Zm(r,t){var e=-1,o=v(r)?Array(r.length):[];return sr(r,function(a,f,n){o[++e]=t(a,f,n)}),o}var Tt=Zm;function Jm(r,t){var e=m(r)?B:Tt;return e(r,w(t,3))}var Xm=Jm;function Qm(r,t){return r==null?r:Er(r,Lr(t),j)}var km=Qm;function rl(r,t){return r&&jr(r,Lr(t))}var tl=rl;function el(r,t){return r>t}var xa=el;var ol=Object.prototype,al=ol.hasOwnProperty;function fl(r,t){return r!=null&&al.call(r,t)}var ha=fl;function nl(r,t){return r!=null&&_t(r,t,ha)}var il=nl;var sl="[object String]";function pl(r){return typeof r=="string"||!m(r)&&y(r)&&P(r)==sl}var ga=pl;function ul(r,t){return B(t,function(e){return r[e]})}var ba=ul;function ml(r){return r==null?[]:ba(r,b(r))}var Ur=ml;var ll="[object Map]",dl="[object Set]",cl=Object.prototype,xl=cl.hasOwnProperty;function hl(r){if(r==null)return!0;if(v(r)&&(m(r)||typeof r=="string"||typeof r.splice=="function"||N(r)||rr(r)||R(r)))return!r.length;var t=M(r);if(t==ll||t==dl)return!r.size;if(Q(r))return!gr(r).length;for(var e in r)if(xl.call(r,e))return!1;return!0}var wt=hl;function gl(r){return r===void 0}var pr=gl;function bl(r,t){return r<t}var St=bl;function yl(r,t){var e={};return t=w(t,3),jr(r,function(o,a,f){Z(e,a,t(o,a,f))}),e}var _l=yl;function vl(r,t,e){for(var o=-1,a=r.length;++o<a;){var f=r[o],n=t(f);if(n!=null&&(i===void 0?n===n&&!L(n):e(n,i)))var i=n,s=f}return s}var Fr=vl;function Ol(r){return r&&r.length?Fr(r,I,xa):void 0}var Al=Ol;var Tl=ce(function(r,t,e){ua(r,t,e)}),wl=Tl;function Sl(r){return r&&r.length?Fr(r,I,St):void 0}var Pl=Sl;function Cl(r,t){return r&&r.length?Fr(r,w(t,2),St):void 0}var Il=Cl;function El(r,t,e,o){if(!h(r))return r;t=fr(t,r);for(var a=-1,f=t.length,n=f-1,i=r;i!=null&&++a<f;){var s=K(t[a]),p=e;if(s==="__proto__"||s==="constructor"||s==="prototype")return r;if(a!=n){var u=i[s];p=o?o(u,s,i):void 0,p===void 0&&(p=h(u)?u:Y(t[a+1])?[]:{})}J(i,s,p),i=i[s]}return r}var ya=El;function jl(r,t,e){for(var o=-1,a=t.length,f={};++o<a;){var n=t[o],i=nr(r,n);e(i,n)&&ya(f,fr(n,r),i)}return f}var _a=jl;function Ll(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}var va=Ll;function Ml(r,t){if(r!==t){var e=r!==void 0,o=r===null,a=r===r,f=L(r),n=t!==void 0,i=t===null,s=t===t,p=L(t);if(!i&&!p&&!f&&r>t||f&&n&&s&&!i&&!p||o&&n&&s||!e&&s||!a)return 1;if(!o&&!f&&!p&&r<t||p&&e&&a&&!o&&!f||i&&e&&a||!n&&a||!s)return-1}return 0}var Oa=Ml;function Fl(r,t,e){for(var o=-1,a=r.criteria,f=t.criteria,n=a.length,i=e.length;++o<n;){var s=Oa(a[o],f[o]);if(s){if(o>=i)return s;var p=e[o];return s*(p=="desc"?-1:1)}}return r.index-t.index}var Aa=Fl;function Rl(r,t,e){t.length?t=B(t,function(f){return m(f)?function(n){return nr(n,f.length===1?f[0]:f)}:f}):t=[I];var o=-1;t=B(t,k(w));var a=Tt(r,function(f,n,i){var s=B(t,function(p){return p(f)});return{criteria:s,index:++o,value:f}});return va(a,function(f,n){return Aa(f,n,e)})}var Ta=Rl;var Nl=Ot("length"),wa=Nl;var Pa="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Bl="\\ufe20-\\ufe2f",Gl="\\u20d0-\\u20ff",Ul=Dl+Bl+Gl,Kl="\\ufe0e\\ufe0f",Wl="["+Pa+"]",Mt="["+Ul+"]",Ft="\\ud83c[\\udffb-\\udfff]",Hl="(?:"+Mt+"|"+Ft+")",Ca="[^"+Pa+"]",Ia="(?:\\ud83c[\\udde6-\\uddff]){2}",Ea="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="\\u200d",ja=Hl+"?",La="["+Kl+"]?",ql="(?:"+zl+"(?:"+[Ca,Ia,Ea].join("|")+")"+La+ja+")*",$l=La+ja+ql,Vl="(?:"+[Ca+Mt+"?",Mt,Ia,Ea,Wl].join("|")+")",Sa=RegExp(Ft+"(?="+Ft+")|"+Vl+$l,"g");function Yl(r){for(var t=Sa.lastIndex=0;Sa.test(r);)++t;return t}var Ma=Yl;function Zl(r){return ke(r)?Ma(r):wa(r)}var Fa=Zl;function Jl(r,t){return _a(r,t,function(e,o){return vt(r,o)})}var Ra=Jl;var Xl=Je(function(r,t){return r==null?{}:Ra(r,t)}),Ql=Xl;var kl=Math.ceil,rd=Math.max;function td(r,t,e,o){for(var a=-1,f=rd(kl((t-r)/(e||1)),0),n=Array(f);f--;)n[o?f:++a]=r,r+=e;return n}var Na=td;function ed(r){return function(t,e,o){return o&&typeof o!="number"&&z(t,e,o)&&(e=o=void 0),t=cr(t),e===void 0?(e=t,t=0):e=cr(e),o=o===void 0?t<e?1:-1:cr(o),Na(t,e,o,r)}}var Da=ed;var od=Da(),ad=od;function fd(r,t,e,o,a){return a(r,function(f,n,i){e=o?(o=!1,f):t(e,f,n,i)}),e}var Ba=fd;function nd(r,t,e){var o=m(r)?ro:Ba,a=arguments.length<3;return o(r,w(t,4),e,a,sr)}var Rt=nd;var id="[object Map]",sd="[object Set]";function pd(r){if(r==null)return 0;if(v(r))return ga(r)?Fa(r):r.length;var t=M(r);return t==id||t==sd?r.size:gr(r).length}var ud=pd;var md=X(function(r,t){if(r==null)return[];var e=t.length;return e>1&&z(r,t[0],t[1])?t=[]:e>2&&z(t[0],t[1],t[2])&&(t=[t[0]]),Ta(r,Ar(t,1),[])}),ld=md;var dd=1/0,cd=ir&&1/Ir(new ir([,-0]))[1]==dd?function(r){return new ir(r)}:ne,Ga=cd;var xd=200;function hd(r,t,e){var o=-1,a=le,f=r.length,n=!0,i=[],s=i;if(e)n=!1,a=ma;else if(f>=xd){var p=t?null:Ga(r);if(p)return Ir(p);n=!1,a=ct,s=new dt}else s=t?[]:i;r:for(;++o<f;){var u=r[o],l=t?t(u):u;if(u=e||u!==0?u:0,n&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue r;t&&s.push(l),i.push(u)}else a(s,l,e)||(s!==i&&s.push(l),i.push(u))}return i}var Ua=hd;var gd=X(function(r){return Ua(Ar(r,1,At,!0))}),Nt=gd;var bd=0;function yd(r){var t=++bd;return tt(r)+t}var _d=yd;function vd(r,t,e){for(var o=-1,a=r.length,f=t.length,n={};++o<a;){var i=o<f?t[o]:void 0;e(n,r[o],i)}return n}var Ka=vd;function Od(r,t){return Ka(r||[],t||[],J)}var Ad=Od;var wd="\0",dr="\0",Wa="",Wr=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=V(void 0),this._defaultEdgeLabelFn=V(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[dr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return G(t)||(t=V(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return b(this._nodes)}sources(){var t=this;return Mr(this.nodes(),function(e){return wt(t._in[e])})}sinks(){var t=this;return Mr(this.nodes(),function(e){return wt(t._out[e])})}setNodes(t,e){var o=arguments,a=this;return D(t,function(f){o.length>1?a.setNode(f,e):a.setNode(f)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=dr,this._children[t]={},this._children[dr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=o=>this.removeEdge(this._edgeObjs[o]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],D(this.children(t),o=>{this.setParent(o)}),delete this._children[t]),D(b(this._in[t]),e),delete this._in[t],delete this._preds[t],D(b(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(pr(e))e=dr;else{e+="";for(var o=e;!pr(o);o=this.parent(o))if(o===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==dr)return e}}children(t){if(pr(t)&&(t=dr),this._isCompound){var e=this._children[t];if(e)return b(e)}else{if(t===dr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return b(e)}successors(t){var e=this._sucs[t];if(e)return b(e)}neighbors(t){var e=this.predecessors(t);if(e)return Nt(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var o=this;D(this._nodes,function(n,i){t(i)&&e.setNode(i,n)}),D(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,o.edge(n))});var a={};function f(n){var i=o.parent(n);return i===void 0||e.hasNode(i)?(a[n]=i,i):i in a?a[i]:f(i)}return this._isCompound&&D(e.nodes(),function(n){e.setParent(n,f(n))}),e}setDefaultEdgeLabel(t){return G(t)||(t=V(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ur(this._edgeObjs)}setPath(t,e){var o=this,a=arguments;return Rt(t,function(f,n){return a.length>1?o.setEdge(f,n,e):o.setEdge(f,n),n}),this}setEdge(){var t,e,o,a,f=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,o=n.name,arguments.length===2&&(a=arguments[1],f=!0)):(t=n,e=arguments[1],o=arguments[3],arguments.length>2&&(a=arguments[2],f=!0)),t=""+t,e=""+e,pr(o)||(o=""+o);var i=Kr(this._isDirected,t,e,o);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i))return f&&(this._edgeLabels[i]=a),this;if(!pr(o)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=f?a:this._defaultEdgeLabelFn(t,e,o);var s=Sd(this._isDirected,t,e,o);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[i]=s,Ha(this._preds[e],t),Ha(this._sucs[t],e),this._in[e][i]=s,this._out[t][i]=s,this._edgeCount++,this}edge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return this._edgeLabels[a]}hasEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o),f=this._edgeObjs[a];return f&&(t=f.v,e=f.w,delete this._edgeLabels[a],delete this._edgeObjs[a],za(this._preds[e],t),za(this._sucs[t],e),delete this._in[e][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,e){var o=this._in[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.v===e}):a}}outEdges(t,e){var o=this._out[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.w===e}):a}}nodeEdges(t,e){var o=this.inEdges(t,e);if(o)return o.concat(this.outEdges(t,e))}};Wr.prototype._nodeCount=0;Wr.prototype._edgeCount=0;function Ha(r,t){r[t]?r[t]++:r[t]=1}function za(r,t){--r[t]||delete r[t]}function Kr(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}return a+Wa+f+Wa+(pr(o)?wd:o)}function Sd(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}var i={v:a,w:f};return o&&(i.name=o),i}function Dt(r,t){return Kr(r,t.v,t.w,t.name)}export{m as a,V as b,jt as c,Pu as d,Cm as e,jm as f,Gm as g,D as h,Mr as i,Ym as j,Xm as k,km as l,tl as m,il as n,Ur as o,pr as p,_l as q,Al as r,wl as s,Pl as t,Il as u,Ql as v,ad as w,Rt as x,ud as y,ld as z,_d as A,Ad as B,Wr as C};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import{a as lt}from"./chunk-ZLGCSTR2.js";import{a as ct}from"./chunk-H2KMMTJB.js";import{b as rt,c as nt}from"./chunk-XLLPZ2WO.js";import{a as ot}from"./chunk-RVAIT6JW.js";import{h as ut}from"./chunk-U6OCY4ZH.js";import{p as Ae,s as at}from"./chunk-6DWWYA6G.js";import{G as He,I as P,M as v,S as Je,T as Ze,U as $e,V as et,W as tt,X as st,Y as it,Z as F}from"./chunk-LWDL4HZB.js";import{a as qe}from"./chunk-VXPNUNUX.js";import{b as pe,h as Z}from"./chunk-JR4SIX7A.js";import{a as b}from"./chunk-5FIPUNR4.js";var Ve=(function(){var t=b(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],k=[1,25],f=[1,32],N=[1,33],fe=[1,34],g=[1,45],ke=[1,35],me=[1,36],ge=[1,37],Ce=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],C=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],$=[1,58],ee=[1,59],te=[1,60],se=[1,61],ie=[1,62],_e=[1,63],Se=[1,64],_=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ae=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],ue=[12,39],Ne=[1,8,9,39,41,44,46],le=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:b(function(o,h,p,l,m,e,J){var s=e.length-1;switch(m){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:k,54:f,56:N,57:fe,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:ee,70:te,71:se,72:ie,73:_e,74:Se}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:g,86:C,100:E,102:T},{16:39,17:40,19:70,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:71,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:72,60:g,86:C,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:87,60:g,86:C,100:E,102:T,103:y},t(ae,[2,133]),t(ae,[2,134]),t(ae,[2,135]),t(ae,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:k,54:f,56:N,57:fe,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:k,54:f,56:N,57:fe,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:E,102:T,103:y},{53:92,66:56,67:57,68:$,69:ee,70:te,71:se,72:ie,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(re,[2,83],{66:94,68:$,69:ee,70:te,71:se,72:ie}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:f,56:N},{16:100,60:g,86:C,100:E,102:T},{41:[1,102],45:101,51:ne},{16:104,60:g,86:C,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Me,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Ge,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:E,102:T,103:y}),t(ue,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(le,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:E,102:T,103:y},t(re,[2,82],{66:136,68:$,69:ee,70:te,71:se,72:ie}),t(re,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:f,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:E,102:T,103:y},t(ue,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(le,[2,69]),t(le,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:E,102:T,103:y},t(re,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:f,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:f,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:f,56:N},{45:163,51:ne},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(ue,[2,11]),t(le,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(Ne,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:b(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:b(function(o){var h=this,p=[0],l=[],m=[null],e=[],J=this.table,s="",oe=0,Ke=0,We=0,bt=2,Qe=1,ft=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(w.yy[xe]=this.yy[xe]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var kt=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(S){p.length=p.length-2*S,m.length=m.length-S,e.length=e.length-S}b(mt,"popStack");function je(){var S;return S=l.pop()||D.lex()||Qe,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}b(je,"lex");for(var B,Ie,V,L,yt,Oe,G={},he,I,Xe,de;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=je()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var we="";de=[];for(he in J[V])this.terminals_[he]&&he>bt&&de.push("'"+this.terminals_[he]+"'");D.showPosition?we="Parse error on line "+(oe+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":we="Parse error on line "+(oe+1)+": Unexpected "+(B==Qe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(we,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:de})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+B);switch(L[0]){case 1:p.push(B),m.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ie?(B=Ie,Ie=null):(Ke=D.yyleng,s=D.yytext,oe=D.yylineno,ve=D.yylloc,We>0&&We--);break;case 2:if(I=this.productions_[L[1]][1],G.$=m[m.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},kt&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Oe=this.performAction.apply(G,[s,Ke,oe,w.yy,L[1],m,e].concat(ft)),typeof Oe<"u")return Oe;I&&(p=p.slice(0,-1*I*2),m=m.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),m.push(G.$),e.push(G._$),Xe=J[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},At=(function(){var O={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:b(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(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:b(function(o){this.unput(this.match.slice(o))},"less"),pastInput:b(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+h+"^"},"showPosition"),test_match:b(function(o,h){var p,l,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in m)this[e]=m[e];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,h,p,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),e=0;e<m.length;e++)if(p=this._input.match(this.rules[m[e]]),p&&(!h||p[0].length>h[0].length)){if(h=p,l=e,this.options.backtrack_lexer){if(o=this.test_match(p,m[e]),o!==!1)return o;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(o=this.test_match(h,m[l]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var h=this.next();return h||this.lex()},"lex"),begin:b(function(h){this.conditionStack.push(h)},"begin"),popState:b(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:b(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:b(function(h){this.begin(h)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(h,p,l,m){var e=m;switch(l){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();Le.lexer=At;function ce(){this.yy={}}return b(ce,"Parser"),ce.prototype=Le,Le.Parser=ce,new ce})();Ve.parser=Ve;var It=Ve,ht=["#","+","~","-",""],dt=class{static{b(this,"ClassMember")}constructor(t,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";let a=He(t,F());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+P(this.id);this.memberType==="method"&&(t+=`(${P(this.parameters.trim())})`,this.returnType&&(t+=" : "+P(this.returnType))),t=t.trim();let i=this.parseClassifier();return{displayText:t,cssStyle:i}}parseMember(t){let i="";if(this.memberType==="method"){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(n){let c=n[1]?n[1].trim():"";if(ht.includes(c)&&(this.visibility=c),this.id=n[2],this.parameters=n[3]?n[3].trim():"",i=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",i===""){let u=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(u)&&(i=u,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let r=t.length,n=t.substring(0,1),c=t.substring(r-1);ht.includes(n)&&(this.visibility=n),/[$*]/.exec(c)&&(i=c),this.id=t.substring(this.visibility===""?0:1,i===""?r:r-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let a=`${this.visibility?"\\"+this.visibility:""}${P(this.id)}${this.memberType==="method"?`(${P(this.parameters)})${this.returnType?" : "+P(this.returnType):""}`:""}`;this.text=a.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},be="classId-",pt=0,M=b(t=>v.sanitizeText(t,F()),"sanitizeText"),Vt=class Pe{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=b(i=>{let a=ut();Z(i).select("svg").selectAll("g").filter(function(){return Z(this).attr("title")!==null}).on("mouseover",c=>{let u=Z(c.currentTarget),d=u.attr("title");if(!d)return;let k=c.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(qe.sanitize(d)).style("left",`${window.scrollX+k.left+k.width/2}px`).style("top",`${window.scrollY+k.bottom+4}px`),u.classed("hover",!0)}).on("mouseout",c=>{a.transition().duration(500).style("opacity",0),Z(c.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ze,this.getAccTitle=$e,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=b(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{b(this,"ClassDB")}splitClassNameAndType(i){let a=v.sanitizeText(i,F()),r="",n=a;if(a.indexOf("~")>0){let c=a.split("~");n=M(c[0]),r=M(c[1])}return{className:n,type:r}}setClassLabel(i,a){let r=v.sanitizeText(i,F());a&&(a=M(a));let{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){let a=v.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;let c=v.sanitizeText(r,F());this.classes.set(c,{id:c,type:n,label:c,text:`${c}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:be+c+"-"+pt}),pt++}addInterface(i,a){let r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=v.sanitizeText(i,F());if(this.classes.has(a)){let r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Je()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){pe.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=v.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=v.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);let r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){let c=a.trim();c.startsWith("<<")&&c.endsWith(">>")?n.annotations.push(M(c.substring(2,c.length-2))):c.indexOf(")")>0?n.methods.push(new dt(c,"method")):c&&n.members.push(new dt(c,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){let r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),M(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=be+n),n=this.splitClassNameAndType(n).className;let c=this.classes.get(n);c&&(c.cssClasses+=" "+a)})}defineClass(i,a){for(let r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(c=>{if(/color/.exec(c)){let u=c.replace("fill","bgFill");n.textStyles.push(u)}n.styles.push(c)}),this.classes.forEach(c=>{c.cssClasses.includes(r)&&c.styles.push(...a.flatMap(u=>u.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){let n=this.splitClassNameAndType(r).className,c=this.classes.get(n);c&&(c.tooltip=M(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){let n=F();i.split(",").forEach(c=>{let u=c;/\d/.exec(c[0])&&(u=be+u),u=this.splitClassNameAndType(u).className;let d=this.classes.get(u);d&&(d.link=Ae.formatUrl(a,n),n.securityLevel==="sandbox"?d.linkTarget="_top":typeof r=="string"?d.linkTarget=M(r):d.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);let c=this.splitClassNameAndType(n).className,u=this.classes.get(c);u&&(u.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){let n=v.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let u=this.splitClassNameAndType(n).className;if(this.classes.has(u)){let d=[];if(typeof r=="string"){d=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let k=0;k<d.length;k++){let f=d[k].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),d[k]=f}}d.length===0&&d.push(u),this.functions.push(()=>{let k=this.lookUpDomId(u),f=document.querySelector(`[id="${k}"]`);f!==null&&f.addEventListener("click",()=>{Ae.runFunc(a,...d)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){let r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){let a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n<a.length;n++)r[n]=`${r[n-1]}.${a[n]}`;return r}createNamespaceNode(i,a,r,n=!1){return{id:i,label:a,classes:new Map,notes:new Map,children:new Map,domId:be+i+"-"+this.namespaceCounter++,parent:r,explicit:n}}linkParentChild(i,a){let r=this.namespaces.get(i),n=this.namespaces.get(a);!r||!n||(r.children.has(a)||r.children.set(a,n),n.parent??=i)}addNamespace(i,a){let r=Pe.resolveQualifiedId(i,this.namespaceStack);if(this.namespaceStack.push(r),this.namespaces.has(r)){let u=this.namespaces.get(r);return u.explicit=!0,a&&(u.label=a),r}let n=r.split("."),c=Pe.getAncestorIds(r);for(let u=0;u<c.length;u++){let d=c[u],k=u>0?c[u-1]:void 0,f=u===c.length-1,N=f&&a?a:n[u];this.namespaces.has(d)?f&&(this.namespaces.get(d).explicit=!0):this.namespaces.set(d,this.createNamespaceNode(d,N,k,f)),k&&this.linkParentChild(k,d)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(let n of a){let{className:c}=this.splitClassNameAndType(n),u=this.getClass(c);u.parent=i,this.namespaces.get(i).classes.set(c,u)}for(let n of r){let c=this.getNote(n);c.parent=i,this.namespaces.get(i).notes.set(n,c)}}}setCssStyle(i,a){let r=this.classes.get(i);if(!(!a||!r))for(let n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){let r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){let i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(let u of this.namespaces.values()){if(!n&&!u.explicit)continue;let d={id:u.id,label:n?u.label:u.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?u.parent:void 0};i.push(d)}for(let u of this.classes.values()){let d=n?u.parent:this.resolveExplicitAncestor(u.parent),k={...u,type:void 0,isGroup:!1,parentId:d,look:r.look};i.push(k)}for(let u of this.notes.values()){let d=n?u.parent:this.resolveExplicitAncestor(u.parent),k={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:d,labelType:"markdown"};i.push(k);let f=this.classes.get(u.class)?.id;if(f){let N={id:`edgeNote${u.index}`,start:u.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(N)}}for(let u of this.interfaces){let d={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(d)}let c=0;for(let u of this.relations){c++;let d={id:at(u.id1,u.id2,{prefix:"id",counter:c}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(d)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},gt=b(t=>`g.classGroup text {
|
|
7
|
+
fill: ${t.nodeBorder||t.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${t.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cluster-label text {
|
|
19
|
+
fill: ${t.titleColor};
|
|
20
|
+
}
|
|
21
|
+
.cluster-label span {
|
|
22
|
+
color: ${t.titleColor};
|
|
23
|
+
}
|
|
24
|
+
.cluster-label span p {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cluster rect {
|
|
29
|
+
fill: ${t.clusterBkg};
|
|
30
|
+
stroke: ${t.clusterBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cluster text {
|
|
35
|
+
fill: ${t.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cluster span {
|
|
39
|
+
color: ${t.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nodeLabel, .edgeLabel {
|
|
43
|
+
color: ${t.classText};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
47
|
+
color: ${t.noteTextColor};
|
|
48
|
+
}
|
|
49
|
+
.edgeLabel .label rect {
|
|
50
|
+
fill: ${t.mainBkg};
|
|
51
|
+
}
|
|
52
|
+
.label text {
|
|
53
|
+
fill: ${t.classText};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.labelBkg {
|
|
57
|
+
background: ${t.mainBkg};
|
|
58
|
+
}
|
|
59
|
+
.edgeLabel .label span {
|
|
60
|
+
background: ${t.mainBkg};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.classTitle {
|
|
64
|
+
font-weight: bolder;
|
|
65
|
+
}
|
|
66
|
+
.node rect,
|
|
67
|
+
.node circle,
|
|
68
|
+
.node ellipse,
|
|
69
|
+
.node polygon,
|
|
70
|
+
.node path {
|
|
71
|
+
fill: ${t.mainBkg};
|
|
72
|
+
stroke: ${t.nodeBorder};
|
|
73
|
+
stroke-width: ${t.strokeWidth};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
.divider {
|
|
78
|
+
stroke: ${t.nodeBorder};
|
|
79
|
+
stroke-width: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
g.clickable {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
g.classGroup rect {
|
|
87
|
+
fill: ${t.mainBkg};
|
|
88
|
+
stroke: ${t.nodeBorder};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
g.classGroup line {
|
|
92
|
+
stroke: ${t.nodeBorder};
|
|
93
|
+
stroke-width: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.classLabel .box {
|
|
97
|
+
stroke: none;
|
|
98
|
+
stroke-width: 0;
|
|
99
|
+
fill: ${t.mainBkg};
|
|
100
|
+
opacity: 0.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.classLabel .label {
|
|
104
|
+
fill: ${t.nodeBorder};
|
|
105
|
+
font-size: 10px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.relation {
|
|
109
|
+
stroke: ${t.lineColor};
|
|
110
|
+
stroke-width: ${t.strokeWidth};
|
|
111
|
+
fill: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dashed-line{
|
|
115
|
+
stroke-dasharray: 3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.dotted-line{
|
|
119
|
+
stroke-dasharray: 1 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[id$="-compositionStart"], .composition {
|
|
123
|
+
fill: ${t.lineColor} !important;
|
|
124
|
+
stroke: ${t.lineColor} !important;
|
|
125
|
+
stroke-width: 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[id$="-compositionEnd"], .composition {
|
|
129
|
+
fill: ${t.lineColor} !important;
|
|
130
|
+
stroke: ${t.lineColor} !important;
|
|
131
|
+
stroke-width: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[id$="-dependencyStart"], .dependency {
|
|
135
|
+
fill: ${t.lineColor} !important;
|
|
136
|
+
stroke: ${t.lineColor} !important;
|
|
137
|
+
stroke-width: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[id$="-dependencyEnd"], .dependency {
|
|
141
|
+
fill: ${t.lineColor} !important;
|
|
142
|
+
stroke: ${t.lineColor} !important;
|
|
143
|
+
stroke-width: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[id$="-extensionStart"], .extension {
|
|
147
|
+
fill: transparent !important;
|
|
148
|
+
stroke: ${t.lineColor} !important;
|
|
149
|
+
stroke-width: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[id$="-extensionEnd"], .extension {
|
|
153
|
+
fill: transparent !important;
|
|
154
|
+
stroke: ${t.lineColor} !important;
|
|
155
|
+
stroke-width: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[id$="-aggregationStart"], .aggregation {
|
|
159
|
+
fill: transparent !important;
|
|
160
|
+
stroke: ${t.lineColor} !important;
|
|
161
|
+
stroke-width: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
165
|
+
fill: transparent !important;
|
|
166
|
+
stroke: ${t.lineColor} !important;
|
|
167
|
+
stroke-width: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[id$="-lollipopStart"], .lollipop {
|
|
171
|
+
fill: ${t.mainBkg} !important;
|
|
172
|
+
stroke: ${t.lineColor} !important;
|
|
173
|
+
stroke-width: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
177
|
+
fill: ${t.mainBkg} !important;
|
|
178
|
+
stroke: ${t.lineColor} !important;
|
|
179
|
+
stroke-width: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.edgeTerminals {
|
|
183
|
+
font-size: 11px;
|
|
184
|
+
line-height: initial;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.classTitleText {
|
|
188
|
+
text-anchor: middle;
|
|
189
|
+
font-size: 18px;
|
|
190
|
+
fill: ${t.textColor};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.edgeLabel[data-look="neo"] {
|
|
194
|
+
background-color: ${t.edgeLabelBackground};
|
|
195
|
+
p {
|
|
196
|
+
background-color: ${t.edgeLabelBackground};
|
|
197
|
+
}
|
|
198
|
+
rect {
|
|
199
|
+
opacity: 0.5;
|
|
200
|
+
background-color: ${t.edgeLabelBackground};
|
|
201
|
+
fill: ${t.edgeLabelBackground};
|
|
202
|
+
}
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
${lt()}
|
|
206
|
+
`,"getStyles"),Pt=gt,Ct=b((t,i="TB")=>{if(!t.doc)return i;let a=i;for(let r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Et=b(function(t,i){return i.db.getClasses()},"getClasses"),Tt=b(async function(t,i,a,r){pe.info("REF0:"),pe.info("Drawing class diagram (v3)",i);let{securityLevel:n,state:c,layout:u}=F();r.db.setDiagramId(i);let d=r.db.getData(),k=ct(i,n);d.type=r.type,d.layoutAlgorithm=nt(u),d.nodeSpacing=c?.nodeSpacing||50,d.rankSpacing=c?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=i,await rt(d,k);let f=8;Ae.insertTitle(k,"classDiagramTitleText",c?.titleTopMargin??25,r.db.getDiagramTitle()),ot(k,f,"classDiagram",c?.useMaxWidth??!0)},"draw"),Mt={getClasses:Et,draw:Tt,getDir:Ct};export{It as a,Vt as b,Pt as c,Mt as d};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as o,b as e}from"./chunk-AZRIGIV2.js";import"./chunk-SLPRGYUV.js";import"./chunk-ZLGCSTR2.js";import"./chunk-H2KMMTJB.js";import"./chunk-XLLPZ2WO.js";import"./chunk-RVAIT6JW.js";import"./chunk-MVYC3CY4.js";import"./chunk-XBZAO4ID.js";import"./chunk-PZCGBYVO.js";import"./chunk-U6OCY4ZH.js";import"./chunk-CK7M2PJ3.js";import"./chunk-44KDLLKJ.js";import"./chunk-JFT2LC2T.js";import"./chunk-AUSLTP43.js";import"./chunk-GLU2YQV2.js";import"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import"./chunk-JR4SIX7A.js";import{a as r}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var m=r(t=>`${o(t)}
|
|
2
|
+
.swimlane.cluster rect {
|
|
3
|
+
stroke: ${t.clusterBorder} !important;
|
|
4
|
+
}
|
|
5
|
+
[data-look="neo"].cluster rect {
|
|
6
|
+
filter: none;
|
|
7
|
+
}
|
|
8
|
+
`,"getStyles"),i=m,B=e({defaultLayout:"swimlane",styles:i});export{B as diagram};
|