@kw-yeh/vibeflow 4.0.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/LICENSE +21 -0
- package/README.md +146 -0
- package/dist/vibeflow.mjs +6103 -0
- package/dist/web/404/index.html +1 -0
- package/dist/web/404.html +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_buildManifest.js +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_ssgManifest.js +1 -0
- package/dist/web/_next/static/chunks/02e71eac.0250f42685eae210.js +18 -0
- package/dist/web/_next/static/chunks/043de7d2.3a6733c82bc2409f.js +160 -0
- package/dist/web/_next/static/chunks/1201.011a689cd95a4983.js +1 -0
- package/dist/web/_next/static/chunks/1282.d0e740390a16bb90.js +1 -0
- package/dist/web/_next/static/chunks/1396.cb165487d4bf0f35.js +1 -0
- package/dist/web/_next/static/chunks/167.98f928ccaed44837.js +1 -0
- package/dist/web/_next/static/chunks/1672.82392f784373fc1a.js +149 -0
- package/dist/web/_next/static/chunks/1776.9ad96593642a32f0.js +36 -0
- package/dist/web/_next/static/chunks/1840.fa1f1878af23fd9f.js +41 -0
- package/dist/web/_next/static/chunks/1886.22db355b96ff3e38.js +7 -0
- package/dist/web/_next/static/chunks/2039.461f2ac8bbfeb1cf.js +90 -0
- package/dist/web/_next/static/chunks/2107.2540b21d69c927d0.js +1 -0
- package/dist/web/_next/static/chunks/2205.fe6639ba89aebb99.js +1 -0
- package/dist/web/_next/static/chunks/2271.8d52a83cf1b02b3e.js +1 -0
- package/dist/web/_next/static/chunks/2396.a4c1620b6d217c02.js +1 -0
- package/dist/web/_next/static/chunks/260.7db9b90987032402.js +1 -0
- package/dist/web/_next/static/chunks/2806.c2a6f6733f2b439b.js +32 -0
- package/dist/web/_next/static/chunks/2817.a82d851ccf215c35.js +1 -0
- package/dist/web/_next/static/chunks/3082.5086ba86ade06629.js +1 -0
- package/dist/web/_next/static/chunks/3110.db844baaab453716.js +287 -0
- package/dist/web/_next/static/chunks/3289.04108f17cdf795e3.js +1 -0
- package/dist/web/_next/static/chunks/3618.418bfeef9a735cc6.js +148 -0
- package/dist/web/_next/static/chunks/3711.7f07235c9e8ae090.js +1 -0
- package/dist/web/_next/static/chunks/3746.81e4d62ebdb395eb.js +1 -0
- package/dist/web/_next/static/chunks/3846.d63d31d2de9a159c.js +1 -0
- package/dist/web/_next/static/chunks/3927.8202e4c7eeb07487.js +74 -0
- package/dist/web/_next/static/chunks/39a04069.9dd71f191712d3fa.js +62 -0
- package/dist/web/_next/static/chunks/4012.440934d750758d59.js +1 -0
- package/dist/web/_next/static/chunks/4109.f1de572405aa3b2b.js +309 -0
- package/dist/web/_next/static/chunks/4224.c5c8af77fc9b6c44.js +286 -0
- package/dist/web/_next/static/chunks/4270-6c9c75303137e3a5.js +9 -0
- package/dist/web/_next/static/chunks/4292.70e0a2a99b20e418.js +1 -0
- package/dist/web/_next/static/chunks/4459.814d84742e06267c.js +1 -0
- package/dist/web/_next/static/chunks/4485.e209e1d39502d049.js +226 -0
- package/dist/web/_next/static/chunks/4802.6f5a5e00488db074.js +1 -0
- package/dist/web/_next/static/chunks/5432.3349240a8cd1114c.js +94 -0
- package/dist/web/_next/static/chunks/5468.7440c698079f7f79.js +1 -0
- package/dist/web/_next/static/chunks/5469.5e1555e411d9c96b.js +1 -0
- package/dist/web/_next/static/chunks/5695.45dd981e66074a89.js +1 -0
- package/dist/web/_next/static/chunks/5785.01c97ed45f552929.js +8 -0
- package/dist/web/_next/static/chunks/59.a9be2f8a75bc42e9.js +1 -0
- package/dist/web/_next/static/chunks/5918.7a18726fa96ba97d.js +1 -0
- package/dist/web/_next/static/chunks/621.7f06a4c57845924d.js +27 -0
- package/dist/web/_next/static/chunks/6232.4ebeb2a3e3fde2f9.js +1 -0
- package/dist/web/_next/static/chunks/6390.df979849e0b82b10.js +1 -0
- package/dist/web/_next/static/chunks/6747.fe4ace8428cf57b8.js +1 -0
- package/dist/web/_next/static/chunks/67584bf0.bcc252f93280fffc.js +1 -0
- package/dist/web/_next/static/chunks/6848.18adf63b76b43ce0.js +1 -0
- package/dist/web/_next/static/chunks/6863.7c16f1cf40adc214.js +77 -0
- package/dist/web/_next/static/chunks/6981.db8f1cd11466723b.js +1 -0
- package/dist/web/_next/static/chunks/7045.7cf0eb88acb1ee65.js +1 -0
- package/dist/web/_next/static/chunks/7266.5fc4e54a82b394a3.js +23 -0
- package/dist/web/_next/static/chunks/7271.3e11a6c675bba517.js +1 -0
- package/dist/web/_next/static/chunks/7443.de45a50460ec02b4.js +217 -0
- package/dist/web/_next/static/chunks/7449.be3a97c644b086d6.js +86 -0
- package/dist/web/_next/static/chunks/7835.eaf45d5554820d67.js +104 -0
- package/dist/web/_next/static/chunks/7869.b407f42eca1ddf4d.js +1 -0
- package/dist/web/_next/static/chunks/7913.3de14c31f63521fd.js +193 -0
- package/dist/web/_next/static/chunks/7915.e23554d5280c643a.js +1 -0
- package/dist/web/_next/static/chunks/7992.5dde103489d49ad1.js +24 -0
- package/dist/web/_next/static/chunks/8057.16633338493802bd.js +24 -0
- package/dist/web/_next/static/chunks/8244.0a0a340eddcff9ce.js +1 -0
- package/dist/web/_next/static/chunks/8259.62f5c49f967282f1.js +64 -0
- package/dist/web/_next/static/chunks/8372.eb7c979688ab1442.js +62 -0
- package/dist/web/_next/static/chunks/8590.c7e1c62b00e799ea.js +1 -0
- package/dist/web/_next/static/chunks/8655.1a55ea833e35b289.js +115 -0
- package/dist/web/_next/static/chunks/8687.cbb5d2e055f2a05f.js +1 -0
- package/dist/web/_next/static/chunks/8704.bb5e916a22041380.js +1 -0
- package/dist/web/_next/static/chunks/88492ad4.406f106f686c2ea4.js +82 -0
- package/dist/web/_next/static/chunks/898.a636c29260da655a.js +93 -0
- package/dist/web/_next/static/chunks/9371.f52b19a630591b42.js +34 -0
- package/dist/web/_next/static/chunks/94.c653beceaa62934f.js +1 -0
- package/dist/web/_next/static/chunks/9516.3d1f5c6a23f298e9.js +1 -0
- package/dist/web/_next/static/chunks/9525.c2f5e990d374aeb6.js +38 -0
- package/dist/web/_next/static/chunks/9540.9cc4cb31dd3a0d0a.js +1 -0
- package/dist/web/_next/static/chunks/9612.d9f1b4d3209e70dc.js +79 -0
- package/dist/web/_next/static/chunks/9759.ddd2794ce95b458c.js +1 -0
- package/dist/web/_next/static/chunks/b02c773b.2d61cc590e6c1c58.js +1 -0
- package/dist/web/_next/static/chunks/b9dacbaa.d2b59af18cc80870.js +1 -0
- package/dist/web/_next/static/chunks/d94f238e.ed1acca9cb2f0773.js +122 -0
- package/dist/web/_next/static/chunks/f24717c3.caadd8481abaaae2.js +1 -0
- package/dist/web/_next/static/chunks/framework-b92a367cf1ad4bf7.js +1 -0
- package/dist/web/_next/static/chunks/main-ec7fd4c371d06729.js +5 -0
- package/dist/web/_next/static/chunks/pages/_app-320afeed07d86516.js +1 -0
- package/dist/web/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js +1 -0
- package/dist/web/_next/static/chunks/pages/home-efefddd4b88b018d.js +11 -0
- package/dist/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web/_next/static/chunks/webpack-c8aa5df0425f6b7b.js +1 -0
- package/dist/web/_next/static/css/edcc6abb24dfd492.css +2 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/favicon.ico +0 -0
- package/dist/web/home/index.html +1 -0
- package/dist/web/logo.svg +17 -0
- package/package.json +37 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7835],{34765:(t,e,r)=>{function o(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}r.d(e,{S:()=>o}),(0,r(14528).K)(o,"populateCommonDb")},87835:(t,e,r)=>{r.d(e,{diagram:()=>tM});var o=r(95205),a=r(34765),i=r(58959),n=r(95631),s=r(5218),c=r(14528),d=r(64012),l=r(60830),h={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$=n.UI.gitGraph,m=(0,c.K)(()=>(0,i.$t)({...$,...(0,n.zj)().gitGraph}),"getConfig"),g=new o.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function p(){return(0,i.yT)({length:7})}function y(t,e){let r=Object.create(null);return t.reduce((t,o)=>{let a=e(o);return r[a]||(r[a]=!0,t.push(o)),t},[])}(0,c.K)(p,"getID"),(0,c.K)(y,"uniqBy");var f=(0,c.K)(function(t){g.records.direction=t},"setDirection"),x=(0,c.K)(function(t){s.R.debug("options str",t),t=(t=t?.trim())||"{}";try{g.records.options=JSON.parse(t)}catch(t){s.R.error("error while parsing gitGraph options",t.message)}},"setOptions"),u=(0,c.K)(function(){return g.records.options},"getOptions"),b=(0,c.K)(function(t){let e=t.msg,r=t.id,o=t.type,a=t.tags;s.R.info("commit",e,r,o,a),s.R.debug("Entering commit:",e,r,o,a);let i=m();r=n.Y2.sanitizeText(r,i),e=n.Y2.sanitizeText(e,i),a=a?.map(t=>n.Y2.sanitizeText(t,i));let c={id:r||g.records.seq+"-"+p(),message:e,seq:g.records.seq++,type:o??h.NORMAL,tags:a??[],parents:null==g.records.head?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=c,s.R.info("main branch",i.mainBranchName),g.records.commits.has(c.id)&&s.R.warn(`Commit ID ${c.id} already exists`),g.records.commits.set(c.id,c),g.records.branches.set(g.records.currBranch,c.id),s.R.debug("in pushCommit "+c.id)},"commit"),k=(0,c.K)(function(t){let e=t.name,r=t.order;if(e=n.Y2.sanitizeText(e,m()),g.records.branches.has(e))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);g.records.branches.set(e,null!=g.records.head?g.records.head.id:null),g.records.branchConfig.set(e,{name:e,order:r}),E(e),s.R.debug("in createBranch")},"branch"),B=(0,c.K)(t=>{let e=t.branch,r=t.id,o=t.type,a=t.tags,i=m();e=n.Y2.sanitizeText(e,i),r&&(r=n.Y2.sanitizeText(r,i));let c=g.records.branches.get(g.records.currBranch),d=g.records.branches.get(e),l=c?g.records.commits.get(c):void 0,$=d?g.records.commits.get(d):void 0;if(l&&$&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if(g.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!g.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===$||!$){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===$){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&g.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${o} ${a?.join(" ")}`,token:`merge ${e} ${r} ${o} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${o} ${a?.join(" ")}`]},t}let y={id:r||`${g.records.seq}-${p()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,d||""],branch:g.records.currBranch,type:h.MERGE,customType:o,customId:!!r,tags:a??[]};g.records.head=y,g.records.commits.set(y.id,y),g.records.branches.set(g.records.currBranch,y.id),s.R.debug(g.records.branches),s.R.debug("in mergeBranch")},"merge"),w=(0,c.K)(function(t){let e=t.id,r=t.targetId,o=t.tags,a=t.parent;s.R.debug("Entering cherryPick:",e,r,o);let i=m();if(e=n.Y2.sanitizeText(e,i),r=n.Y2.sanitizeText(r,i),o=o?.map(t=>n.Y2.sanitizeText(t,i)),a=n.Y2.sanitizeText(a,i),!e||!g.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let c=g.records.commits.get(e);if(void 0===c||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(c.parents)&&c.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=c.branch;if(c.type===h.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!g.records.commits.has(r)){if(d===g.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=g.records.branches.get(g.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let i=g.records.commits.get(t);if(void 0===i||!i){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n={id:g.records.seq+"-"+p(),message:`cherry-picked ${c?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,c.id],branch:g.records.currBranch,type:h.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${c.id}${c.type===h.MERGE?`|parent:${a}`:""}`]};g.records.head=n,g.records.commits.set(n.id,n),g.records.branches.set(g.records.currBranch,n.id),s.R.debug(g.records.branches),s.R.debug("in cherryPick")}},"cherryPick"),E=(0,c.K)(function(t){if(t=n.Y2.sanitizeText(t,m()),g.records.branches.has(t)){g.records.currBranch=t;let e=g.records.branches.get(g.records.currBranch);void 0!==e&&e?g.records.head=g.records.commits.get(e)??null:g.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function T(t,e,r){let o=t.indexOf(e);-1===o?t.push(r):t.splice(o,1,r)}function C(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+=" *":r+=" |"});let o=[r,e.id,e.seq];for(let t in g.records.branches)g.records.branches.get(t)===e.id&&o.push(t);if(s.R.debug(o.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=g.records.commits.get(e.parents[0]);T(t,e,r),e.parents[1]&&t.push(g.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=g.records.commits.get(e.parents[0]);T(t,e,r)}C(t=y(t,t=>t.id))}(0,c.K)(T,"upsert"),(0,c.K)(C,"prettyPrintCommitHistory");var L=(0,c.K)(function(){s.R.debug(g.records.commits),C([I()[0]])},"prettyPrint"),K=(0,c.K)(function(){g.reset(),(0,n.IU)()},"clear"),M=(0,c.K)(function(){return[...g.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),R=(0,c.K)(function(){return g.records.branches},"getBranches"),v=(0,c.K)(function(){return g.records.commits},"getCommits"),I=(0,c.K)(function(){let t=[...g.records.commits.values()];return t.forEach(function(t){s.R.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),P={commitType:h,getConfig:m,setDirection:f,setOptions:x,getOptions:u,commit:b,branch:k,merge:B,cherryPick:w,checkout:E,prettyPrint:L,clear:K,getBranchesAsObjArray:M,getBranches:R,getCommits:v,getCommitsArray:I,getCurrentBranch:(0,c.K)(function(){return g.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K)(function(){return g.records.direction},"getDirection"),getHead:(0,c.K)(function(){return g.records.head},"getHead"),setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,setDiagramTitle:n.ke,getDiagramTitle:n.ab},O=(0,c.K)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K)((t,e)=>{let r={Commit:(0,c.K)(t=>e.commit(G(t)),"Commit"),Branch:(0,c.K)(t=>e.branch(S(t)),"Branch"),Merge:(0,c.K)(t=>e.merge(H(t)),"Merge"),Checkout:(0,c.K)(t=>e.checkout(D(t)),"Checkout"),CherryPicking:(0,c.K)(t=>e.cherryPick(W(t)),"CherryPicking")}[t.$type];r?r(t):s.R.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),G=(0,c.K)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?h[t.type]:h.NORMAL,tags:t.tags??void 0}),"parseCommit"),S=(0,c.K)(t=>({name:t.name,order:t.order??0}),"parseBranch"),H=(0,c.K)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?h[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),D=(0,c.K)(t=>t.branch,"parseCheckout"),W=(0,c.K)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),q={parse:(0,c.K)(async t=>{let e=await (0,d.qg)("gitGraph",t);s.R.debug(e),O(e,P)},"parse")},_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),z=new Set(["redux-color","redux-dark-color"]),Y=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),N=(0,c.K)((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),j=new Map,F=new Map,U=new Map,V=[],J=0,Q="LR",X=(0,c.K)(()=>{j.clear(),F.clear(),U.clear(),J=0,V=[],Q="LR"},"clear"),Z=(0,c.K)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),tt=(0,c.K)(t=>{let e,r,o;return"BT"===Q?(r=(0,c.K)((t,e)=>t<=e,"comparisonFunc"),o=1/0):(r=(0,c.K)((t,e)=>t>=e,"comparisonFunc"),o=0),t.forEach(t=>{let a="TB"===Q||"BT"==Q?F.get(t)?.y:F.get(t)?.x;void 0!==a&&r(a,o)&&(e=t,o=a)}),e},"findClosestParent"),te=(0,c.K)(t=>{let e="",r=1/0;return t.forEach(t=>{let o=F.get(t).y;o<=r&&(e=t,r=o)}),e||void 0},"findClosestParentBT"),tr=(0,c.K)((t,e,r)=>{let o=r,a=r,i=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?a=Math.max(o=ta(r),a):i.push(r),ti(r,o)}),o=a,i.forEach(t=>{tn(t,o,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=te(r.parents);(o=F.get(t).y-40)<=a&&(a=o);let e=j.get(r.branch).pos,i=o-10;F.set(r.id,{x:e,y:i})}})},"setParallelBTPos"),to=(0,c.K)(t=>{let e=tt(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=F.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),ta=(0,c.K)(t=>to(t)+40,"calculateCommitPosition"),ti=(0,c.K)((t,e)=>{let r=j.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let o=r.pos,a=e+10;return F.set(t.id,{x:o,y:a}),{x:o,y:a}},"setCommitPosition"),tn=(0,c.K)((t,e,r)=>{let o=j.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let a=o.pos;F.set(t.id,{x:a,y:e+r})},"setRootPosition"),ts=(0,c.K)((t,e,r,o,a,i)=>{let{theme:s}=(0,n.D7)(),c=_.has(s??""),d=z.has(s??""),l=Y.has(s??"");if(i===h.HIGHLIGHT)t.append("rect").attr("x",r.x-10+3*!!c).attr("y",r.y-10+3*!!c).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${e.id} commit-highlight${N(a,8,d)} ${o}-outer`),t.append("rect").attr("x",r.x-6+2*!!c).attr("y",r.y-6+2*!!c).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${e.id} commit${N(a,8,d)} ${o}-inner`);else if(i===h.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",c?7:10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{let n=t.append("circle");if(n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",c?7:10),n.attr("class",`commit ${e.id} commit${N(a,8,d)}`),i===h.MERGE){let i=t.append("circle");i.attr("cx",r.x),i.attr("cy",r.y),i.attr("r",c?5:6),i.attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}if(i===h.REVERSE){let i=t.append("path"),n=c?4:5;i.attr("d",`M ${r.x-n},${r.y-n}L${r.x+n},${r.y+n}M${r.x-n},${r.y+n}L${r.x+n},${r.y-n}`).attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}}},"drawCommitBullet"),tc=(0,c.K)((t,e,r,o,a)=>{if(e.type!==h.CHERRY_PICK&&(e.customId&&e.type===h.MERGE||e.type!==h.MERGE)&&a.showCommitLabel){let i=t.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(n.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===Q||"BT"===Q?(n.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),a.rotateCommitLabel))if("TB"===Q||"BT"===Q)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),n.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),td=(0,c.K)((t,e,r,o)=>{if(e.tags.length>0){let a=0,i=0,n=0,s=[];for(let o of e.tags.reverse()){let e=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(o),l=d.node()?.getBBox();if(!l)throw Error("Tag bbox not found");i=Math.max(i,l.width),n=Math.max(n,l.height),d.attr("x",r.posWithOffset-l.width/2),s.push({tag:d,hole:c,rect:e,yOffset:a}),a+=20}for(let{tag:t,hole:e,rect:a,yOffset:c}of s){let s=n/2,d=r.y-19.2-c;if(a.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-i/2-2},${d+2}
|
|
3
|
+
${o-i/2-2},${d-2}
|
|
4
|
+
${r.posWithOffset-i/2-4},${d-s-2}
|
|
5
|
+
${r.posWithOffset+i/2+4},${d-s-2}
|
|
6
|
+
${r.posWithOffset+i/2+4},${d+s+2}
|
|
7
|
+
${r.posWithOffset-i/2-4},${d+s+2}`),e.attr("cy",d).attr("cx",o-i/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===Q||"BT"===Q){let n=o+c;a.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${r.x},${n+2}
|
|
9
|
+
${r.x},${n-2}
|
|
10
|
+
${r.x+10},${n-s-2}
|
|
11
|
+
${r.x+10+i+4},${n-s-2}
|
|
12
|
+
${r.x+10+i+4},${n+s+2}
|
|
13
|
+
${r.x+10},${n+s+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),e.attr("cx",r.x+2).attr("cy",n).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),t.attr("x",r.x+5).attr("y",n+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+o+")")}}}},"drawCommitTags"),tl=(0,c.K)(t=>{switch(t.customType??t.type){case h.NORMAL:return"commit-normal";case h.REVERSE:return"commit-reverse";case h.HIGHLIGHT:return"commit-highlight";case h.MERGE:return"commit-merge";case h.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),th=(0,c.K)((t,e,r,o)=>{let a={x:0,y:0};if(t.parents.length>0){let r=tt(t.parents);if(r){let i=o.get(r)??a;return"TB"===e?i.y+40:"BT"===e?(o.get(t.id)??a).y-40:i.x+40}}else if("TB"===e)return 30;else if("BT"===e)return(o.get(t.id)??a).y-40;return 0},"calculatePosition"),t$=(0,c.K)((t,e,r)=>{let o="BT"===Q&&r?e:e+10,a=j.get(t.branch)?.pos,i="TB"===Q||"BT"===Q?j.get(t.branch)?.pos:o;if(void 0===i||void 0===a)throw Error(`Position were undefined for commit ${t.id}`);let s=_.has((0,n.D7)().theme??"");return{x:i,y:"TB"===Q||"BT"===Q?o:a+(s?7:-2),posWithOffset:o}},"getCommitPosition"),tm=(0,c.K)((t,e,r,o)=>{let a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),n=30*("TB"===Q||"BT"===Q),s=[...e.keys()],d=o.parallelCommits??!1,l=s.sort((0,c.K)((t,r)=>{let o=e.get(t)?.seq,a=e.get(r)?.seq;return void 0!==o&&void 0!==a?o-a:0},"sortKeys"));"BT"===Q&&(d&&tr(l,e,n),l=l.reverse()),l.forEach(t=>{let s=e.get(t);if(!s)throw Error(`Commit not found for key ${t}`);d&&(n=th(s,Q,n,F));let c=t$(s,n,d);if(r){let t=tl(s),e=s.customType??s.type,r=j.get(s.branch)?.index??0;ts(a,s,c,t,r,e),tc(i,s,c,n,o),td(i,s,c,n)}"TB"===Q||"BT"===Q?F.set(s.id,{x:c.x,y:c.posWithOffset}):F.set(s.id,{x:c.posWithOffset,y:c.y}),(n="BT"===Q&&d?n+40:n+40+10)>J&&(J=n)})},"drawCommits"),tg=(0,c.K)((t,e,r,o,a)=>{let i=("TB"===Q||"BT"===Q?r.x<o.x:r.y<o.y)?e.branch:t.branch,n=(0,c.K)(t=>t.branch===i,"isOnBranchToGetCurve"),s=(0,c.K)(r=>r.seq>t.seq&&r.seq<e.seq,"isBetweenCommits");return[...a.values()].some(t=>s(t)&&n(t))},"shouldRerouteArrow"),tp=(0,c.K)((t,e,r=0)=>{let o=t+Math.abs(t-e)/2;if(r>5)return o;if(V.every(t=>Math.abs(t-o)>=10))return V.push(o),o;let a=Math.abs(t-e);return tp(t,e-a/5,r+1)},"findLane"),ty=(0,c.K)((t,e,r,o)=>{let a,{theme:i}=(0,n.D7)(),s=z.has(i??""),c=F.get(e.id),d=F.get(r.id);if(void 0===c||void 0===d)throw Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let l=tg(e,r,c,d,o),$="",m="",g=0,p=0,y=j.get(r.branch)?.index;if(r.type===h.MERGE&&e.id!==r.parents[0]&&(y=j.get(e.branch)?.index),l){$="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",g=10,p=10;let t=c.y<d.y?tp(c.y,d.y):tp(d.y,c.y),r=c.x<d.x?tp(c.x,d.x):tp(d.x,c.x);"TB"===Q?c.x<d.x?a=`M ${c.x} ${c.y} L ${r-g} ${c.y} ${m} ${r} ${c.y+p} L ${r} ${d.y-g} ${$} ${r+p} ${d.y} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${r+g} ${c.y} ${$} ${r} ${c.y+p} L ${r} ${d.y-g} ${m} ${r-p} ${d.y} L ${d.x} ${d.y}`):"BT"===Q?c.x<d.x?a=`M ${c.x} ${c.y} L ${r-g} ${c.y} ${$} ${r} ${c.y-p} L ${r} ${d.y+g} ${m} ${r+p} ${d.y} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${r+g} ${c.y} ${m} ${r} ${c.y-p} L ${r} ${d.y+g} ${$} ${r-p} ${d.y} L ${d.x} ${d.y}`):c.y<d.y?a=`M ${c.x} ${c.y} L ${c.x} ${t-g} ${$} ${c.x+p} ${t} L ${d.x-g} ${t} ${m} ${d.x} ${t+p} L ${d.x} ${d.y}`:(y=j.get(e.branch)?.index,a=`M ${c.x} ${c.y} L ${c.x} ${t+g} ${m} ${c.x+p} ${t} L ${d.x-g} ${t} ${$} ${d.x} ${t-p} L ${d.x} ${d.y}`)}else $="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,"TB"===Q?(c.x<d.x&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${$} ${c.x+p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${m} ${d.x} ${c.y+p} L ${d.x} ${d.y}`),c.x>d.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${m} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${$} ${d.x} ${c.y+p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):"BT"===Q?(c.x<d.x&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${m} ${c.x+p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${$} ${d.x} ${c.y-p} L ${d.x} ${d.y}`),c.x>d.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${$} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${m} ${d.x} ${c.y-p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):(c.y<d.y&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${m} ${d.x} ${c.y+p} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${$} ${c.x+p} ${d.y} L ${d.x} ${d.y}`),c.y>d.y&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${$} ${d.x} ${c.y-p} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${m} ${c.x+p} ${d.y} L ${d.x} ${d.y}`),c.y===d.y&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`));if(void 0===a)throw Error("Line definition not found");t.append("path").attr("d",a).attr("class","arrow arrow"+N(y,8,s))},"drawArrow"),tf=(0,c.K)((t,e)=>{let r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(t=>{let o=e.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{ty(r,e.get(t),o,e)})})},"drawArrows"),tx=(0,c.K)((t,e,r,o)=>{let{look:a,theme:i,themeVariables:s}=(0,n.D7)(),{dropShadow:c,THEME_COLOR_LIMIT:d}=s,l=_.has(i??""),h=z.has(i??""),$=t.append("g");e.forEach((t,e)=>{let i=N(e,l?d:8,h),n=j.get(t.name)?.pos;if(void 0===n)throw Error(`Position not found for branch ${t.name}`);let s="TB"===Q||"BT"===Q?n:l?n+6+1:n-2,m=$.append("line");m.attr("x1",0),m.attr("y1",s),m.attr("x2",J),m.attr("y2",s),m.attr("class","branch branch"+i),"TB"===Q?(m.attr("y1",30),m.attr("x1",n),m.attr("y2",J),m.attr("x2",n)):"BT"===Q&&(m.attr("y1",J),m.attr("x1",n),m.attr("y2",30),m.attr("x2",n)),V.push(s);let g=Z(t.name),p=$.insert("rect"),y=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);y.node().appendChild(g);let f=g.getBBox(),x=4*!l,u=16*!!l,b=12*!!l;"neo"===a&&p.attr("data-look","neo"),p.attr("class","branchLabelBkg label"+i).attr("style","neo"===a?`filter:${l?`url(#${o}-drop-shadow)`:c}`:"").attr("rx",x).attr("ry",x).attr("x",-f.width-4-30*(!0===r.rotateCommitLabel)).attr("y",-f.height/2+10).attr("width",f.width+18+u).attr("height",f.height+4+b),y.attr("transform","translate("+(-f.width-14-30*(!0===r.rotateCommitLabel)+u/2)+", "+(s-f.height/2-2)+")"),"TB"===Q?(p.attr("x",n-f.width/2-10).attr("y",0),y.attr("transform","translate("+(n-f.width/2-5)+", 0)"),l&&(p.attr("transform",`translate(${-u/2-3}, ${-b-10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(-(2*b)+7)+")"))):"BT"===Q?(p.attr("x",n-f.width/2-10).attr("y",J),y.attr("transform","translate("+(n-f.width/2-5)+", "+J+")"),l&&(p.attr("transform",`translate(${-u/2-3}, ${b+10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(J+2*b+4)+")"))):p.attr("transform","translate(-19, "+(s-12-b/2)+")")})},"drawBranches"),tu=(0,c.K)(function(t,e,r,o,a){return j.set(t,{pos:e,index:r}),e+=50+40*!!a+("TB"===Q||"BT"===Q?o.width/2:0)},"setBranchPosition"),tb=(0,c.K)(function(t,e,r,o){X(),s.R.debug("in gitgraph renderer",t+"\n","id:",e,r);let a=o.db;if(!a.getConfig)return void s.R.error("getConfig method is not available on db");let c=a.getConfig(),d=c.rotateCommitLabel??!1;U=a.getCommits();let h=a.getBranchesAsObjArray();Q=a.getDirection();let $=(0,l.Ltv)(`[id="${e}"]`),{look:m,theme:g,themeVariables:p}=(0,n.D7)(),{useGradient:y,gradientStart:f,gradientStop:x,filterColor:u}=p;if(y){let t=$.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",f).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}"neo"===m&&_.has(g??"")&&$.append("defs").append("filter").attr("id",e+"-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;h.forEach((t,e)=>{let r=Z(t.name),o=$.append("g"),a=o.insert("g").attr("class","branchLabel"),i=a.insert("g").attr("class","label branch-label");i.node()?.appendChild(r);let n=r.getBBox();b=tu(t.name,b,e,n,d),i.remove(),a.remove(),o.remove()}),tm($,U,!1,c),c.showBranches&&tx($,h,c,e),tf($,U),tm($,U,!0,c),i._K.insertTitle($,"gitTitleText",c.titleTopMargin??0,a.getDiagramTitle()),(0,n.mj)(void 0,$,c.diagramPadding,c.useMaxWidth)},"draw"),tk=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),tB=new Set(["redux-color","redux-dark-color"]),tw=new Set(["neo","neo-dark"]),tE=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),tT=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),tC=(0,c.K)(t=>{let{svgId:e}=t,r="";if(t.useGradient&&e)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)r+=`
|
|
14
|
+
.label${o} { fill: ${t.mainBkg}; stroke: url(${e}-gradient); stroke-width: ${t.strokeWidth};}
|
|
15
|
+
`;return r},"genGitGraphGradient"),tL=(0,c.K)(t=>{let{theme:e,themeVariables:r}=(0,n.zj)(),{borderColorArray:o}=r,a=tk.has(e);if(tw.has(e)){let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)if(0===r)e+=`
|
|
16
|
+
.branch-label${r} { fill: ${t.nodeBorder};}
|
|
17
|
+
.commit${r} { stroke: ${t.nodeBorder}; }
|
|
18
|
+
.commit-highlight${r} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
19
|
+
.arrow${r} { stroke: ${t.nodeBorder}; }
|
|
20
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
21
|
+
.commit-cherry-pick${r} { stroke: ${t.nodeBorder}; }
|
|
22
|
+
${tC(t)}`;else{let o=r%8;e+=`
|
|
23
|
+
.branch-label${r} { fill: ${t["gitBranchLabel"+o]}; }
|
|
24
|
+
.commit${r} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }
|
|
25
|
+
.commit-highlight${r} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }
|
|
26
|
+
.arrow${r} { stroke: ${t["git"+o]}; }
|
|
27
|
+
`}return e}if(tB.has(e)){let r="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)if(0===i)r+=`
|
|
28
|
+
.branch-label${i} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
29
|
+
.commit${i} { stroke: ${t.nodeBorder}; }
|
|
30
|
+
.commit-highlight${i} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
|
|
31
|
+
.label${i} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
32
|
+
.arrow${i} { stroke: ${t.nodeBorder}; }
|
|
33
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
34
|
+
`;else{let n=i%o.length;r+=`
|
|
35
|
+
.branch-label${i} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
36
|
+
.commit${i} { stroke: ${o[n]}; fill: ${o[n]}; }
|
|
37
|
+
.commit-highlight${i} { stroke: ${o[n]}; fill: ${o[n]}; }
|
|
38
|
+
.label${i} { fill: ${tE.has(e)?t.mainBkg:o[n]}; stroke: ${o[n]}; stroke-width: ${t.strokeWidth}; }
|
|
39
|
+
.arrow${i} { stroke: ${o[n]}; }
|
|
40
|
+
`}return r}{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)e+=`
|
|
41
|
+
.branch-label${r} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
|
|
42
|
+
.commit${r} { stroke: ${t.nodeBorder}; }
|
|
43
|
+
.commit-highlight${r} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
|
|
44
|
+
.label${r} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}
|
|
45
|
+
.arrow${r} { stroke: ${t.nodeBorder}; }
|
|
46
|
+
.commit-bullets { fill: ${t.nodeBorder}; }
|
|
47
|
+
.commit-cherry-pick${r} { stroke: ${t.nodeBorder}; }
|
|
48
|
+
`;return e}},"genColor"),tK=(0,c.K)(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,e)=>e).map(e=>{let r=e%8;return`
|
|
49
|
+
.branch-label${e} { fill: ${t["gitBranchLabel"+r]}; }
|
|
50
|
+
.commit${e} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
|
|
51
|
+
.commit-highlight${e} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
|
|
52
|
+
.label${e} { fill: ${t["git"+r]}; }
|
|
53
|
+
.arrow${e} { stroke: ${t["git"+r]}; }
|
|
54
|
+
`}).join("\n")}`,"normalTheme"),tM={parser:q,db:P,renderer:{draw:tb},styles:(0,c.K)(t=>{let{theme:e}=(0,n.zj)(),r=tT.has(e);return`
|
|
55
|
+
.commit-id,
|
|
56
|
+
.commit-msg,
|
|
57
|
+
.branch-label {
|
|
58
|
+
fill: lightgrey;
|
|
59
|
+
color: lightgrey;
|
|
60
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
61
|
+
font-family: var(--mermaid-font-family);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
${r?tL(t):tK(t)}
|
|
65
|
+
|
|
66
|
+
.branch {
|
|
67
|
+
stroke-width: ${t.strokeWidth};
|
|
68
|
+
stroke: ${t.commitLineColor??t.lineColor};
|
|
69
|
+
stroke-dasharray: ${r?"4 2":"2"};
|
|
70
|
+
}
|
|
71
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${r?t.nodeBorder:t.commitLabelColor}; ${r?`font-weight:${t.noteFontWeight};`:""}}
|
|
72
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${r?"transparent":t.commitLabelBackground}; opacity: ${r?"":.5}; }
|
|
73
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
74
|
+
.tag-label-bkg { fill: ${r?t.mainBkg:t.tagLabelBackground}; stroke: ${r?t.nodeBorder:t.tagLabelBorder}; ${r?`filter:${t.dropShadow}`:""} }
|
|
75
|
+
.tag-hole { fill: ${t.textColor}; }
|
|
76
|
+
|
|
77
|
+
.commit-merge {
|
|
78
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
79
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
80
|
+
}
|
|
81
|
+
.commit-reverse {
|
|
82
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
83
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
84
|
+
stroke-width: ${r?t.strokeWidth:3};
|
|
85
|
+
}
|
|
86
|
+
.commit-highlight-outer {
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-inner {
|
|
89
|
+
stroke: ${r?t.mainBkg:t.primaryColor};
|
|
90
|
+
fill: ${r?t.mainBkg:t.primaryColor};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.arrow {
|
|
94
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
95
|
+
stroke-width: ${tk.has(e)?t.strokeWidth:8};
|
|
96
|
+
stroke-linecap: round;
|
|
97
|
+
fill: none
|
|
98
|
+
}
|
|
99
|
+
.gitTitleText {
|
|
100
|
+
text-anchor: middle;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
fill: ${t.textColor};
|
|
103
|
+
}
|
|
104
|
+
`},"getStyles")}},95205:(t,e,r)=>{r.d(e,{m:()=>a});var o=r(14528),a=class{constructor(t){this.init=t,this.records=this.init()}static{(0,o.K)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{27869:(e,s,c)=>{c.d(s,{createTreeViewServices:()=>r.I});var r=c(57218);c(85477)}}]);
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7913],{14569:(e,t,s)=>{s.d(t,{P:()=>n});var i=s(95631),r=s(5218),a=s(14528),n=(0,a.K)((e,t,s,a)=>{e.attr("class",s);let{width:n,height:u,x:d,y:h}=o(e,t);(0,i.a$)(e,u,n,a);let c=l(d,h,n,u,t);e.attr("viewBox",c),r.R.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),o=(0,a.K)((e,t)=>{let s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*t,height:s.height+2*t,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`,"createViewBox")},26989:(e,t,s)=>{s.d(t,{o:()=>i});var i=(0,s(14528).K)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},31984:(e,t,s)=>{s.d(t,{CP:()=>h,Ck:()=>g,HT:()=>p,PB:()=>c,aC:()=>d,lC:()=>l,m:()=>u,tk:()=>o});var i=s(95631),r=s(14528),a=s(77850),n=s(60830),o=(0,r.K)((e,t)=>{let s=e.append("rect");if(s.attr("x",t.x),s.attr("y",t.y),s.attr("fill",t.fill),s.attr("stroke",t.stroke),s.attr("width",t.width),s.attr("height",t.height),t.name&&s.attr("name",t.name),t.rx&&s.attr("rx",t.rx),t.ry&&s.attr("ry",t.ry),void 0!==t.attrs)for(let e in t.attrs)s.attr(e,t.attrs[e]);return t.class&&s.attr("class",t.class),s},"drawRect"),l=(0,r.K)((e,t)=>{o(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},"drawBackgroundRect"),u=(0,r.K)((e,t)=>{let s=t.text.replace(i.H1," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let a=r.append("tspan");return a.attr("x",t.x+2*t.textMargin),a.text(s),r},"drawText"),d=(0,r.K)((e,t,s,i)=>{let r=e.append("image");r.attr("x",t),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",n)},"drawImage"),h=(0,r.K)((e,t,s,i)=>{let r=e.append("use");r.attr("x",t),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),c=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,r.K)(()=>{let e=(0,n.Ltv)(".mermaidTooltip");return e.empty()&&(e=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip")},63842:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(19519),r=s(62079);let a=(e,t)=>i.A.lang.round(r.A.parse(e)[t])},87913:(e,t,s)=>{s.d(t,{diagram:()=>Y});var i=s(26989),r=s(98204),a=s(14569),n=s(40350),o=s(33280);s(13080);var l=s(31984);s(64299),s(37064),s(83860);var u=s(60833);s(99980),s(96137),s(41329);var d=s(94698),h=s(58959),c=s(95631),p=s(5218),g=s(14528),f=s(60830),m=s(10637),y=s(63842),b=s(37245),A={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},k=new Set([A.SHAPE_UNSUPPORTED,A.SHAPE_REMOVED,A.CONTAINMENT_VIOLATION]);Object.values(A).filter(e=>!k.has(e));var E=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),x=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),C=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),S="roundedRect";function T(e){return e?E.get(e)??e:e}function D(e,t){for(let s of e)if(!s.isGroup){if(s.shape&&"squareRect"!==s.shape&&"rect"!==s.shape||(s.shape=S),x.has(s.shape)){let e=`shape "${s.shape}" was removed in v0.8.1, using "${S}"`;t?.emitError?t.emitError("SHAPE_REMOVED",e,{nodeId:s.id}):p.R.warn(`agentflow: ${e}`),s.shape=S;continue}if(!C.has(s.shape)){let e=`shape "${s.shape}" is not supported, using "${S}"`;t?.emitWarning?t.emitWarning("SHAPE_UNSUPPORTED",e,{nodeId:s.id}):p.R.warn(`agentflow: ${e}`),s.shape=S}}}(0,g.K)(T,"resolveShapeAlias"),(0,g.K)(D,"normaliseNodeShapes");var _=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),v=_.size,F=(0,g.K)(e=>`af-kind-${e}`,"kindClass"),$=[..._.keys()],L=(0,g.K)(e=>Math.max(1,e-v),"containerSlotCount"),B=(0,g.K)((e,t)=>{let s=v+e%L(t);return t>0?s%t:s},"containerSlot");function w(e,t,s){let i=(0,c.D7)().themeVariables?.borderColorArray,r=Array.isArray(i)?i.length:0,a=s.size;for(let i of e??[]){if(i.isGroup||"collapsedGroup"===i.shape){let e=s.get(String(i.id))??a++;i.colorIndex=B(e,r);continue}let e=t(String(i.id));e&&_.has(e)&&(i.cssClasses=`${i.cssClasses??""} ${F(e)}`.replace(/\s+/g," ").trim())}}(0,g.K)(w,"assignColorSlots");var I="agentflow-",M=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),N=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),R={flow:"flowGroup"};function O(e){if(Array.isArray(e))return e.map(e=>O(e));if(null===e||"object"!=typeof e)return e;let t={};for(let s of Object.keys(e))"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(t[s]=O(e[s]));return t}function V(e){let t,s=!1,i=!1,r=0,a=[];for(let n of e.split("\n")){if(void 0!==t){let e=n.length-n.trimStart().length;if(""===n.trim()||e>t){a.push(n);continue}t=void 0}let e=-1;for(let t=0;t<n.length;t++){let a=n[t];if(i)"\\"===a?t++:'"'===a&&(i=!1);else if(s)"'"===a&&(s=!1);else if('"'===a)i=!0;else if("'"===a)s=!0;else if("#"===a&&(0===t||" "===n[t-1]||" "===n[t-1])){e=t;break}else"["===a||"{"===a?r++:("]"===a||"}"===a)&&(r=Math.max(0,r-1))}if(s||i||r>0){a.push(n);continue}let o=e>=0?n.slice(0,e):n,l=e>=0?n.slice(e):"";if(/:\s*[>|][\d+-]*\s*$/.test(o)){t=n.length-n.trimStart().length,a.push(n);continue}a.push(o.replace(/,([\t ]*)$/,"$1")+l)}return a.join("\n")}(0,g.K)(O,"stripPrototypeKeys"),(0,g.K)(V,"stripLineTrailingCommas");var P=class{constructor(){this.vertexCounter=0,this.config=(0,c.D7)(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=c.SV,this.setAccDescription=c.EI,this.setDiagramTitle=c.ke,this.getAccTitle=c.iN,this.getAccDescription=c.m7,this.getDiagramTitle=c.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,g.K)(this,"AgentFlowDB")}sanitizeText(e){return c.Y2.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,s,i,r,a,o={},l,d){let h,p,g;if(!e||0===e.trim().length)return;if(void 0!==l){let e;e=l.includes("\n")?l+"\n":"{\n"+l+"\n}";try{h=(0,n.H)(e,{schema:n.r})??{}}catch(t){let e=l.includes("\n")?V(l):l;if(e!==l)try{h=(0,n.H)(e+"\n",{schema:n.r})??{}}catch{this.rethrowMetadataYamlError(t,l,d)}else this.rethrowMetadataYamlError(t,l,d)}h=O(h)}if(h&&"string"==typeof h.shape){let e=h,t=T(p=e.shape);t&&t!==p&&(e.shape=t)}let f=this.subGraphLookup.get(e);if(f&&h){f.metadata={...f.metadata,...h};return}let m=this.connectors.get(e);if(m&&h){m.metadata={...m.metadata,...h};return}if("connectors"===e)return;let y=this.edges.find(t=>t.id===e);if(y){let e=h;e?.animate!==void 0&&(y.animate=e.animate),e?.animation!==void 0&&(y.animation=e.animation),e?.curve!==void 0&&(y.interpolate=e.curve),h&&(y.metadata={...y.metadata,...h});return}let b=this.vertices.get(e);if(void 0===b&&(b={id:e,labelType:"text",domId:I+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,b)),this.vertexCounter++,void 0!==t?(this.config=(0,c.D7)(),g=this.sanitizeText(t.text.trim()),b.labelType=t.type,g.startsWith('"')&&g.endsWith('"')&&(g=g.substring(1,g.length-1)),b.text=g):void 0===b.text&&(b.text=e),void 0!==s&&(b.type=s),null!=i&&i.forEach(e=>{b.styles.push(e)}),null!=r&&r.forEach(e=>{b.classes.push(e)}),void 0!==a&&(b.dir=a),void 0===b.props?b.props=o:void 0!==o&&Object.assign(b.props,o),h){if(b.metadata={...b.metadata,...h},h.shape){let e=p??h.shape;if("string"!=typeof e)throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`,d);if(e!==e.toLowerCase()||e.includes("_"))throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`,d);if(!(0,u.aP)(h.shape))throw this.positionedShapeError(`No such shape: ${h.shape}.`,d);b.type=h?.shape}h?.label&&(b.text=this.sanitizeText(h.label),b.labelType=this.sanitizeNodeLabelType(h?.labelType))}}positionedShapeError(e,t){let s=Error(e);if(!t)return s;let i=t.first_line+this.frontmatterLineOffset;return Object.assign(s,{hash:{text:"",token:null,line:i-1,loc:{first_line:i,last_line:t.last_line+this.frontmatterLineOffset,first_column:t.first_column,last_column:t.last_column},expected:[]}}),s}rethrowMetadataYamlError(e,t,s){let i;if(!e||"YAMLException"!==e.name||!e.mark||!s)throw e;try{let r=!t.includes("\n"),a=r?"{\n"+t+"\n}":t+"\n",n=s.first_line+this.frontmatterLineOffset,o=s.first_column+2,l=(0,g.K)((e,t)=>r?{line:n,column:o+(1===e?t:0)}:{line:n+e,column:0===e?o+t:t},"toSource"),u=l(e.mark.line,e.mark.column),d=e.reason??(e.message??"").split("\n")[0].replace(/\s*\(\d+:\d+\)\s*$/,""),h=a.split("\n"),c=[];if(r)c.push(1);else for(let t=e.mark.line-1;t<=e.mark.line+1;t++)t<0||t>=h.length||(t!==h.length-1||""!==h[t]||t===e.mark.line)&&c.push(t);let p=Math.max(...c.map(e=>String(l(e,0).line).length)),f=[];for(let t of c){let s=l(t,0).line,i=` ${String(s).padStart(p)} | `;f.push(i+h[t].replace(/\t/g,"→")),t===e.mark.line&&f.push("-".repeat(i.length+e.mark.column)+"^")}i={message:`${d} (${u.line}:${u.column+1})
|
|
16
|
+
|
|
17
|
+
${f.join("\n")}`,markLine:u.line-1,markColumn:u.column,hash:{text:"",token:null,line:u.line-1,loc:{first_line:u.line,last_line:u.line,first_column:u.column,last_column:u.column+1},expected:[]}}}catch{}throw i&&(e.message=i.message,e.mark.line=i.markLine,e.mark.column=i.markColumn,e.hash=i.hash),e}addSingleLink(e,t,s,i){let r={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};p.R.info("abc78 Got edge...",r);let a=s.text;if(void 0!==a&&(r.text=this.sanitizeText(a.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(r.type=s.type,r.stroke=s.stroke,r.length=s.length>10?10:s.length,s.edgeSemantic&&(r.edgeSemantic=s.edgeSemantic)),i&&!this.edges.some(e=>e.id===i))r.id=i,r.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===r.start&&e.end===r.end);0===e.length?r.id=(0,h.rY)(r.start,r.end,{counter:0,prefix:"L"}):r.id=(0,h.rY)(r.start,r.end,{counter:e.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))p.R.info("Pushing edge..."),this.edges.push(r);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
18
|
+
|
|
19
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
20
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
21
|
+
You have to call mermaid.initialize.`)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,s){let i=this.isLinkData(s)?s.id.replace("@",""):void 0;for(let r of(p.R.info("addLink",e,t,i),e))for(let a of t){let n=r===e[e.length-1],o=a===t[0];n&&o?this.addSingleLink(r,a,s,i):this.addSingleLink(r,a,s,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{if("default"===e){this.edges.defaultInterpolate=t;return}if("number"==typeof e&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let s=t.join().replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let t=this.classes.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),null!=s&&s.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(e,t){for(let s of e.split(",")){let e=this.vertices.get(s);e&&e.classes.push(t);let i=this.edges.find(e=>e.id===s);i&&i.classes.push(t);let r=this.subGraphLookup.get(s);r&&r.classes.push(t)}}setTooltip(e,t){if(void 0!==t)for(let s of(t=this.sanitizeText(t),e.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,t)}setClickFun(e,t,s){if("loose"!==(0,c.D7)().securityLevel||void 0===t)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e);let r=this.vertices.get(e);r&&(r.haveCallback=!0,this.funs.push(()=>{let s=this.lookUpDomId(e),r=document.querySelector(`[id="${s}"]`);null!==r&&r.addEventListener("click",()=>{h._K.runFunc(t,...i)},!1)}))}setLink(e,t,s){e.split(",").forEach(e=>{let i=this.vertices.get(e);void 0!==i&&(i.link=h._K.formatUrl(t,this.config),i.linkTarget=s)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,s){e.split(",").forEach(e=>{this.setClickFun(e,t,s)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return N.has(e.type)}getTools(){let e=[];for(let t of this.vertices.values())this.isToolDefinition(t)&&e.push(t);return e}getClasses(){return this.classes}setupToolTips(e){let t=(0,l.Ck)();(0,f.Ltv)(e).select("svg").selectAll("g.node").on("mouseover",e=>{let s=(0,f.Ltv)(e.currentTarget),i=s.attr("title");if(null===i)return;let r=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),t.html(m.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0),(0,f.Ltv)(e.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=(0,c.D7)(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,(0,c.IU)()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,s,i){let r=e?.text?.trim(),a=s?.text;e===s&&s?.text&&/\s/.exec(s.text)&&(r=void 0);let n=(0,g.K)(e=>{let t,s={boolean:{},number:{},string:{}},i=[];return{nodeList:e.filter(function(e){let r=typeof e;return e.stmt&&"dir"===e.stmt?(t=e.value,!1):""!==e.trim()&&(r in s?!s[r].hasOwnProperty(e)&&(s[r][e]=!0):!i.includes(e)&&i.push(e))}),dir:t}},"uniq")(t.flat()),o=n.nodeList,l=n.dir,u=(0,c.D7)().flowchart??{};if(l=l??(u.inheritDir?this.getDirection()??(0,c.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let e=0;e<o.length;e++)o[e]=this.lookUpDomId(o[e]);r=r??"subGraph"+this.subCount,a=a||"",a=this.sanitizeText(a),this.subCount=this.subCount+1;let d={id:r,nodes:o.filter(e=>e!==r&&!this.globalNodes.has(e)),title:a.trim(),classes:[],dir:l,labelType:this.sanitizeNodeLabelType(s?.type),type:i??"flow"};p.R.info("Adding",d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes;let h=this.getPosForId(r);if(-1!==h){let e=this.subGraphs[h];for(let t of d.nodes)e.nodes.includes(t)||e.nodes.push(t);d.title&&(e.title=d.title),d.dir&&(e.dir=d.dir),d.type&&(e.type=d.type),this.subGraphLookup.set(r,e)}else this.subGraphs.push(d),this.subGraphLookup.set(r,d);return r}addGlobal(e){for(let t of e.flat()){if("string"!=typeof t)continue;let e=t.trim();""!==e&&this.globalNodes.add(e)}for(let e of this.subGraphs)e.nodes=e.nodes.filter(e=>!this.globalNodes.has(e))}getPosForId(e){for(let[t,s]of this.subGraphs.entries())if(s.id===e)return t;return -1}indexNodes2(e,t){let s=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let i=0,r=1;for(;i<s.length;){let t=this.getPosForId(s[i]);if(t>=0){let s=this.indexNodes2(e,t);if(s.result)return{result:!0,count:r+s.count};r+=s.count}i+=1}return{result:!1,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,t){let s=e?.text?.trim();if(!s)return"";let i=t?.text?.trim()??"",r=i.length>0?this.sanitizeText(i):s,a=this.connectors.get(s);return a?i.length>0&&(a.text=r):(a={id:s,labelType:"text",domId:I+s+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:r},this.connectors.set(s,a),this.vertices.set(s,a),this.vertexCounter++),s}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}computeEdgeSemantic(e,t){return"arrow_point"===e&&"normal"===t?"sequence":"arrow_cross"===e&&"normal"===t?"failure":"arrow_open"===e&&"dotted"===t?"reference":void 0}destructStartLink(e){let t=e.trim(),s="normal";return t.includes(".")&&(s="dotted"),{type:"arrow_open",stroke:s}}countChar(e,t){let s=t.length,i=0;for(let r=0;r<s;++r)t[r]===e&&++i;return i}destructEndLink(e){let t=e.trim(),s=t.slice(0,-1),i="arrow_open";switch(t.slice(-1)){case"x":i="arrow_cross";break;case">":i="arrow_point";break;case"-":case".":i="arrow_open",s=t}let r="normal",a=s.length-1,n=this.countChar(".",s);return n>0&&(r="dotted",a=n),{type:i,stroke:r,length:a}}destructLink(e,t){let s,i=this.destructEndLink(e);return t?(s=this.destructStartLink(t)).stroke!==i.stroke?{type:"INVALID",stroke:"INVALID"}:(s.type=i.type,s.length=i.length,{...s,edgeSemantic:this.computeEdgeSemantic(s.type,s.stroke)}):{...i,edgeSemantic:this.computeEdgeSemantic(i.type,i.stroke)}}exists(e,t){for(let s of e)if(s.nodes.includes(t))return!0;return!1}makeUniq(e,t){let s=[];return e.nodes.forEach((i,r)=>{this.exists(t,i)||s.push(e.nodes[r])}),{nodes:s}}getTypeFromVertex(e){let t="string"==typeof e.type?T(e.type):e.type;switch(t){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t="none",s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":s=t=e.replace("double_","")}return{arrowTypeStart:t,arrowTypeEnd:s}}addNodeFromVertex(e,t,s,i,r,a){let n=s.get(e.id),o=i.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(" ");else{let s={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:n,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};o?t.push({...s,isGroup:!0,shape:"rect"}):t.push({...s,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:r.agentflow?.wrappingWidth,minWidth:r.agentflow?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let s of e){let e=this.classes.get(s);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();let e=(0,c.D7)(),t=[],s=[],i=this.getSubGraphs(),r=new Map,a=new Map,n=new Set,o=new Map,l=(0,g.K)((e,t,s=new Set)=>{if(s.has(e))return;s.add(e);let i=this.subGraphLookup.get(e);if(i)for(let e of i.nodes)e===t||s.has(e)||(n.add(e),o.set(e,t),l(e,t,s))},"collectDescendants");for(let e of i)e.metadata?.view!=="collapsed"||n.has(e.id)||l(e.id,e.id);let u=(0,g.K)((e,t)=>{let s=new Set,i=t;for(;void 0!==i&&!s.has(i);){if(i===e)return!0;s.add(i),i=r.get(i)}return!1},"wouldCloseContainmentCycle");for(let e=i.length-1;e>=0;e--){let t=i[e];if(!n.has(t.id))for(let e of(t.nodes.length>0&&a.set(t.id,!0),t.nodes)){if(u(e,t.id)){this.emitWarning(A.CONTAINMENT_VIOLATION,`Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:e});continue}r.set(e,t.id)}}for(let s=i.length-1;s>=0;s--){let a=i[s];if(!n.has(a.id))if(a.metadata?.view==="collapsed"){let s={...a.metadata,containerType:a.type};t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"collapsedGroup",dir:a.dir,isGroup:!1,look:e.look,metadata:s})}else t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:R[a.type??"flow"],dir:a.dir,isGroup:!0,look:e.look,metadata:a.metadata})}this.getVertices().forEach(s=>{n.has(s.id)||this.addNodeFromVertex(s,t,r,a,e,e.look||"classic")});let d=this.getEdges();d.forEach((t,i)=>{let r=o.get(t.start)??t.start,a=o.get(t.end)??t.end;if(r===a&&t.start!==t.end)return;let{arrowTypeStart:n,arrowTypeEnd:l}=this.destructEdgeType(t.type),u=[...d.defaultStyle??[]];t.style&&u.push(...t.style);let c={id:(0,h.rY)(r,a,{counter:i,prefix:"L"},t.id),isUserDefinedId:t.isUserDefinedId,start:r,end:a,type:t.type??"normal",label:t.text,labelType:t.labelType,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":n,arrowTypeEnd:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":l,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:u,style:u,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:t.metadata};s.push(c)}),D(t,this);let p=new Map,f=new Map;for(let e of i){let t=r.get(e.id);void 0!==t&&f.set(t,[...f.get(t)??[],e.id])}let m=0,y=(0,g.K)(e=>{if(!p.has(e))for(let t of(p.set(e,m++),f.get(e)??[]))y(t)},"walkContainers");for(let e of i)void 0===r.get(e.id)&&y(e.id);let b=new Set(this.getConnectors().map(e=>e.id));return w(t,e=>{if(b.has(e))return"connector";let t=this.vertices.get(e);return t?this.deriveVertexKind(t,T(t.type)):void 0},p),{nodes:t,edges:s,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return c.ME.flowchart}deriveVertexKind(e,t){return this.isToolDefinition(e)?"tool":"hexagon"===t||"hex"===t?"action":"lean-right"===t||"lean_right"===t?"input":"lin-doc"===t||"lined-document"===t?"refdoc":"diamond"===t?"decision":"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map(e=>e.id)),t=[],s=[];for(let[i,r]of this.vertices){if(e.has(i))continue;if(r.isConnector){let e={id:i};if(void 0!==r.text&&r.text!==i&&(e.title=r.text),r.metadata&&Object.keys(r.metadata).length>0){let t={};for(let[e,s]of Object.entries(r.metadata))M.has(e)||(t[e]=s);Object.keys(t).length>0&&(e.metadata=t)}s.push(e);continue}let a={id:i};void 0!==r.text&&(a.label=r.text);let n="string"==typeof r.type?T(r.type):r.type;if(void 0!==n&&(a.shape=n),a.vertexKind=this.deriveVertexKind(r,n),r.metadata&&Object.keys(r.metadata).length>0){let e={};for(let[t,s]of Object.entries(r.metadata))M.has(t)||(e[t]=s);Object.keys(e).length>0&&(a.metadata=e)}t.push(a)}let i={vertices:t,edges:this.edges.map(e=>{let t={start:e.start,end:e.end};return void 0!==e.id&&(t.id=e.id),"string"==typeof e.text&&e.text.length>0&&(t.label=e.text),void 0!==e.type&&(t.type=e.type),void 0!==e.stroke&&(t.stroke=e.stroke),void 0!==e.edgeSemantic&&(t.edgeSemantic=e.edgeSemantic),void 0!==e.length&&(t.length=e.length),e.metadata&&Object.keys(e.metadata).length>0&&(t.metadata={...e.metadata}),t}),subGraphs:this.subGraphs.map(e=>{let t={id:e.id,nodes:[...e.nodes]};if(void 0!==e.type&&(t.type=e.type),void 0!==e.title&&(t.title=e.title),void 0!==e.dir&&(t.direction=e.dir),e.metadata&&Object.keys(e.metadata).length>0){let s={};for(let[t,i]of Object.entries(e.metadata))M.has(t)||(s[t]=i);Object.keys(s).length>0&&(t.metadata=s)}return t}),connectors:s,diagnostics:this.diagnostics};return void 0!==this.direction&&(i.direction=this.direction),i}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let t=e?.first_line??0,s=e?.first_column??0,i=e?.last_line??t,r=e?.last_column??s,[a,n]=e?.range??[0,0];return{startLine:t+this.frontmatterLineOffset,startColumn:s,endLine:i+this.frontmatterLineOffset,endColumn:r,startIndex:a,endIndex:n}}pushMapping(e,t,s){if(!e)return;let i={id:e,type:t,position:this.toElementPosition(s)};return this.elementMappings.push(i),i}addVertexMapping(e,t,s,i){let r=this.pushMapping(e,"vertex",i);r&&null==s&&this.bareVertexMappings.add(r)}extendVertexMapping(e,t){if(!e||!t)return;let s=this.toElementPosition(t);for(let t=this.elementMappings.length-1;t>=0;t--){let i=this.elementMappings[t];if("vertex"===i.type&&i.id===e){this.bareVertexMappings.has(i)&&(i.type="attachment",this.bareVertexMappings.delete(i)),(s.endLine>i.position.endLine||s.endLine===i.position.endLine&&s.endColumn>i.position.endColumn)&&(i.position.endLine=s.endLine,i.position.endColumn=s.endColumn,i.position.endIndex=s.endIndex);return}}this.pushMapping(e,"attachment",t)}addEdgeMapping(e,t,s,i){let r=Array.isArray(t)?t.map(e=>"string"==typeof e?e:e?.id??"").filter(Boolean):[],a=r.length>0?r.join(">"):"edge";this.pushMapping(a,"edge",i)}addSubgraphMapping(e,t,s,i){let r=("string"==typeof e?e:e?.text)??"",a=this.toElementPosition(s),n=i?this.toElementPosition(i):a;r&&this.elementMappings.push({id:r,type:"subgraph",position:{startLine:a.startLine,startColumn:a.startColumn,endLine:n.endLine,endColumn:n.endColumn,startIndex:a.startIndex,endIndex:n.endIndex}})}addConnectorMapping(e,t,s,i){let r=e?.text?.trim()??"";if(!r)return;let a=this.toElementPosition(s),n=i?this.toElementPosition(i):a;this.elementMappings.push({id:r,type:"connector",position:{startLine:a.startLine,startColumn:a.startColumn,endLine:n.endLine,endColumn:n.endColumn,startIndex:a.startIndex,endIndex:n.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find(t=>t.id===e)}getElementsOnLine(e){return this.elementMappings.filter(t=>e>=t.position.startLine&&e<=t.position.endLine)}getElementAtPosition(e,t){let s=this.elementMappings.filter(s=>{let{startLine:i,startColumn:r,endLine:a,endColumn:n}=s.position;return!(e<i)&&!(e>a)&&(e!==i||!(t<r))&&(e!==a||!(t>n))});if(0===s.length)return;let i=(0,g.K)(({position:e})=>[e.endLine-e.startLine,e.endColumn-e.startColumn],"span");return s.reduce((e,t)=>{let[s,r]=i(e),[a,n]=i(t);return a!==s?a<s?t:e:n<r?t:e})}getMappingStats(){let e=0,t=0,s=0,i=0,r=0;for(let a of this.elementMappings)"vertex"===a.type?e++:"edge"===a.type?t++:"subgraph"===a.type?s++:"connector"===a.type?i++:"attachment"===a.type&&r++;return{vertices:e,edges:t,subgraphs:s,connectors:i,attachments:r,totalElements:this.elementMappings.length}}emitDiagnostic(e,t,s,i){let r=i?.nodeId??i?.edgeId,a=r?this.getElementById(r):void 0,n={id:e,severity:t,message:s,...i?.nodeId?{nodeId:i.nodeId}:{},...i?.edgeId&&!i?.nodeId?{edgeId:i.edgeId}:{},...a?{position:a.position}:{}};if(this.diagnostics.some(e=>e.id===n.id&&e.severity===n.severity&&e.message===n.message&&e.nodeId===n.nodeId&&e.edgeId===n.edgeId))return;this.diagnostics.push(n);let o=`agentflow[${e}]: ${s}`;"error"===t?p.R.error(o):p.R.warn(o)}emitWarning(e,t,s){this.emitDiagnostic(e,"warning",t,s)}emitError(e,t,s){this.emitDiagnostic(e,"error",t,s)}getDiagnostics(){return[...this.diagnostics]}},K=(0,g.K)(function(e,t){return t.db.getClasses()},"getClasses"),G=(0,g.K)(async function(e,t,s,i){p.R.debug("Drawing agentflow diagram",t);let{securityLevel:n,agentflow:l,layout:u}=(0,c.D7)();i.db.setDiagramId(t),p.R.debug("Before getData: ");let d=i.db.getData();p.R.debug("Data: ",d);let g=(0,r.A)(t,n),f=i.db.getDirection();d.type=i.type,d.layoutAlgorithm=(0,o.q7)(u),"dagre"===d.layoutAlgorithm&&"elk"===u&&p.R.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),d.direction=f,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross","hierarchy"],d.diagramId=t,p.R.debug("REF1:",d),await (0,o.XX)(d,g);let m=l?.diagramPadding??8;h._K.insertTitle(g,"agentflowTitleText",l?.titleTopMargin??0,i.db.getDiagramTitle()),(0,a.P)(g,m,"agentflow",l?.useMaxWidth??!0)},"draw"),U=function(){var e=(0,g.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,5],s=[1,4],i=[1,3],r=[1,6],a=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],n=[2,2],o=[1,15],l=[1,16],u=[1,17],d=[1,18],h=[1,19],c=[1,26],p=[1,27],f=[1,28],m=[1,30],y=[1,31],b=[1,32],A=[1,55],k=[1,54],E=[1,34],x=[1,35],C=[1,36],S=[1,37],T=[1,38],D=[1,50],_=[1,52],v=[1,48],F=[1,53],$=[1,49],L=[1,56],B=[1,51],w=[1,57],I=[1,58],M=[1,39],N=[1,40],R=[1,41],O=[1,42],V=[1,43],P=[1,64],K=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],G=[1,70],U=[1,68],j=[1,67],z=[1,69],W=[8,9,10,12,78,80,81],Y=[1,88],H=[1,101],X=[1,106],q=[1,105],J=[1,102],Q=[1,98],Z=[1,104],ee=[1,100],et=[1,107],es=[1,103],ei=[1,108],er=[1,99],ea=[8,9,10,11,12,43,78,80,81],en=[8,9,10,11,12,43,49,78,80,81],eo=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],el=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],eu=[47,63,92,105,108,109,112,114,117,118,119],ed=[1,131],eh=[1,132],ec=[1,134],ep=[1,133],eg=[47,63,65,77,92,105,108,109,112,114,117,118,119],ef=[1,143],em=[1,157],ey=[1,158],eb=[1,159],eA=[1,162],ek=[1,161],eE=[1,160],ex=[1,145],eC=[1,147],eS=[1,151],eT=[1,139],eD=[1,140],e_=[1,152],ev=[1,153],eF=[1,154],e$=[1,155],eL=[1,156],eB=[1,163],ew=[1,164],eI=[1,141],eM=[1,142],eN=[1,149],eR=[1,144],eO=[1,148],eV=[1,146],eP=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],eK=[1,168],eG=[1,170],eU=[8,9,10,12],ej=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],ez=[1,190],eW=[1,186],eY=[1,187],eH=[1,191],eX=[1,188],eq=[1,189],eJ=[80,119,122],eQ=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],eZ=[11,109],e1=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],e0=[1,269],e2=[1,267],e8=[1,271],e3=[1,265],e4=[1,266],e9=[1,268],e7=[1,270],e6=[1,272],e5=[1,292],te=[8,9,10,12,109],tt=[8,9,10,11,12,63,87,108,109,112,113,114,115],ts={trace:(0,g.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:(0,g.K)(function(e,t,s,i,r,a,n){var o=a.length-1;switch(r){case 2:case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 3:(!Array.isArray(a[o])||a[o].length>0)&&a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 198:case 57:case 67:case 89:case 196:this.$=a[o];break;case 13:i.setDirection("TB"),this.$="TB";break;case 14:i.setDirection(a[o-1]),this.$=a[o-1];break;case 32:this.$=a[o-1].nodes;break;case 38:this.$=i.addSubGraph(a[o-6],a[o-1],a[o-4],"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-6],a[o-4],n[o-8],n[o]);break;case 39:this.$=i.addSubGraph(a[o-7],a[o-1],a[o-5],"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-3],n[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-7],a[o-5],n[o-9],n[o]);break;case 40:this.$=i.addSubGraph(a[o-3],a[o-1],{text:"",type:"text"},"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-3],{text:"",type:"text"},n[o-5],n[o]);break;case 41:this.$=i.addSubGraph(a[o-4],a[o-1],{text:"",type:"text"},"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-3],n[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-4],{text:"",type:"text"},n[o-6],n[o]);break;case 42:this.$=i.addSubGraph(void 0,a[o-1],void 0,"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(void 0,void 0,n[o-3],n[o]);break;case 43:i.addGlobal(a[o-1]),this.$=[];break;case 44:this.$=i.addConnector(a[o-4],a[o-2]),i.addConnectorMapping&&i.addConnectorMapping(a[o-4],a[o-2],n[o-6],n[o]);break;case 45:this.$=i.addConnector(a[o-5],a[o-3]),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-1],n[o-1]),i.addConnectorMapping&&i.addConnectorMapping(a[o-5],a[o-3],n[o-7],n[o]);break;case 46:this.$=i.addConnector(a[o-1],{text:"",type:"text"}),i.addConnectorMapping&&i.addConnectorMapping(a[o-1],{text:"",type:"text"},n[o-3],n[o]);break;case 47:this.$=i.addConnector(a[o-2],{text:"",type:"text"}),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-1],n[o-1]),i.addConnectorMapping&&i.addConnectorMapping(a[o-2],{text:"",type:"text"},n[o-4],n[o]);break;case 49:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 50:case 51:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 56:case 148:this.$=a[o-1]+a[o];break;case 58:i.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o],n[o]),i.extendVertexMapping&&i.extendVertexMapping(a[o-1][a[o-1].length-1],n[o]),i.addLink(a[o-3].stmt,a[o-1],a[o-2]),i.addEdgeMapping&&i.addEdgeMapping(a[o-3].stmt,a[o-1],a[o-2],this._$),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 59:i.addLink(a[o-2].stmt,a[o],a[o-1]),i.addEdgeMapping&&i.addEdgeMapping(a[o-2].stmt,a[o],a[o-1],this._$),this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 60:i.addLink(a[o-3].stmt,a[o-1],a[o-2]),i.addEdgeMapping&&i.addEdgeMapping(a[o-3].stmt,a[o-1],a[o-2],this._$),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 61:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 62:i.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o],n[o]),i.extendVertexMapping&&i.extendVertexMapping(a[o-1][a[o-1].length-1],n[o]),this.$={stmt:a[o-1],nodes:a[o-1],shapeData:a[o]};break;case 63:this.$={stmt:a[o],nodes:a[o]};break;case 64:case 143:case 145:this.$=[a[o]];break;case 65:i.addVertex(a[o-5][a[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o-4],n[o-4]),i.extendVertexMapping&&i.extendVertexMapping(a[o-5][a[o-5].length-1],n[o-4]),this.$=a[o-5].concat(a[o]);break;case 66:this.$=a[o-4].concat(a[o]);break;case 68:this.$=a[o-2],i.setClass(a[o-2],a[o]);break;case 69:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"square"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"square",this._$);break;case 70:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"doublecircle"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"doublecircle",this._$);break;case 71:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"circle"),i.addVertexMapping&&i.addVertexMapping(a[o-5],a[o-2],"circle",this._$);break;case 72:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"ellipse"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"ellipse",this._$);break;case 73:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"stadium"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"stadium",this._$);break;case 74:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"subroutine"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"subroutine",this._$);break;case 75:this.$=a[o-7],i.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]])),i.addVertexMapping&&i.addVertexMapping(a[o-7],a[o-1],"rect",this._$);break;case 76:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"cylinder"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"cylinder",this._$);break;case 77:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"round"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"round",this._$);break;case 78:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"diamond"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"diamond",this._$);break;case 79:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"hexagon"),i.addVertexMapping&&i.addVertexMapping(a[o-5],a[o-2],"hexagon",this._$);break;case 80:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"odd"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"odd",this._$);break;case 81:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"trapezoid"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"trapezoid",this._$);break;case 82:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"inv_trapezoid"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"inv_trapezoid",this._$);break;case 83:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_right"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"lean_right",this._$);break;case 84:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_left"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"lean_left",this._$);break;case 85:this.$=a[o],i.addVertex(a[o]),i.addVertexMapping&&i.addVertexMapping(a[o],void 0,void 0,this._$);break;case 86:a[o-1].text=a[o],this.$=a[o-1];break;case 87:case 88:a[o-2].text=a[o-1],this.$=a[o-2];break;case 90:var l=i.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[o-1]};break;case 91:var l=i.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[o-1],id:a[o-3]};break;case 92:case 99:case 116:case 118:this.$={text:a[o],type:"text"};break;case 93:case 100:case 117:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 94:case 101:this.$={text:a[o],type:"string"};break;case 95:case 102:case 119:this.$={text:a[o],type:"markdown"};break;case 96:var l=i.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic};break;case 97:var l=i.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,id:a[o-1]};break;case 98:this.$=a[o-1];break;case 120:this.$=a[o-4],i.addClass(a[o-2],a[o]);break;case 121:this.$=a[o-4],i.setClass(a[o-2],a[o]);break;case 122:case 130:this.$=a[o-1],i.setClickEvent(a[o-1],a[o]);break;case 123:case 131:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 124:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 125:this.$=a[o-4],i.setClickEvent(a[o-4],a[o-3],a[o-2]),i.setTooltip(a[o-4],a[o]);break;case 126:this.$=a[o-2],i.setLink(a[o-2],a[o]);break;case 127:this.$=a[o-4],i.setLink(a[o-4],a[o-2]),i.setTooltip(a[o-4],a[o]);break;case 128:this.$=a[o-4],i.setLink(a[o-4],a[o-2],a[o]);break;case 129:this.$=a[o-6],i.setLink(a[o-6],a[o-4],a[o]),i.setTooltip(a[o-6],a[o-2]);break;case 132:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 133:this.$=a[o-3],i.setLink(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 134:this.$=a[o-3],i.setLink(a[o-3],a[o-2],a[o]);break;case 135:this.$=a[o-5],i.setLink(a[o-5],a[o-4],a[o]),i.setTooltip(a[o-5],a[o-2]);break;case 136:this.$=a[o-4],i.addVertex(a[o-2],void 0,void 0,a[o]);break;case 137:this.$=a[o-4],i.updateLink([a[o-2]],a[o]);break;case 138:this.$=a[o-4],i.updateLink(a[o-2],a[o]);break;case 139:this.$=a[o-8],i.updateLinkInterpolate([a[o-6]],a[o-2]),i.updateLink([a[o-6]],a[o]);break;case 140:this.$=a[o-8],i.updateLinkInterpolate(a[o-6],a[o-2]),i.updateLink(a[o-6],a[o]);break;case 141:this.$=a[o-6],i.updateLinkInterpolate([a[o-4]],a[o]);break;case 142:this.$=a[o-6],i.updateLinkInterpolate(a[o-4],a[o]);break;case 144:case 146:a[o-2].push(a[o]),this.$=a[o-2];break;case 197:case 199:this.$=a[o-1]+""+a[o];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,8:t,10:s,11:i,13:r},{1:[3]},e(a,n,{5:7}),{4:8,8:t,10:s,11:i,13:r},{4:9,8:t,10:s,11:i,13:r},{4:10,8:t,10:s,11:i,13:r},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(a,[2,10]),e(a,[2,11]),e(a,[2,12]),e(a,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:P,16:59,19:62},e(K,[2,3]),e(K,[2,4]),e(K,[2,5]),e(K,[2,6]),e(K,[2,7]),e(K,[2,8]),e(K,[2,9]),{8:G,9:U,10:j,12:z,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:G,9:U,10:j,12:z,22:75},{8:G,9:U,10:j,12:z,22:76},{8:G,9:U,10:j,12:z,22:77},{8:G,9:U,10:j,12:z,22:78},{8:G,9:U,10:j,12:z,22:79},{8:G,9:U,10:j,11:[1,80],12:z,22:81},{8:G,9:U,10:j,12:z,22:82},{11:[1,83]},e(K,[2,48]),{39:[1,84]},{41:[1,85]},e(K,[2,51]),e(W,[2,63],{19:86,34:87,11:P,43:Y}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:H,47:X,63:q,83:[1,96],92:J,98:[1,93],100:[1,94],104:95,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},e(K,[2,200]),e(K,[2,201]),e(K,[2,202]),e(K,[2,203]),e(K,[2,204]),e(ea,[2,64]),e(ea,[2,67],{49:[1,109]}),e(en,[2,85],{116:122,30:[1,110],47:A,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:k,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),e(eo,[2,196]),e(eo,[2,157]),e(eo,[2,158]),e(eo,[2,159]),e(eo,[2,160]),e(eo,[2,161]),e(eo,[2,162]),e(eo,[2,163]),e(eo,[2,164]),e(eo,[2,165]),e(eo,[2,166]),e(eo,[2,167]),e(a,[2,14]),e(a,[2,20]),e(a,[2,21]),{10:[1,123]},e(a,[2,23]),e(el,[2,31],{19:124,11:P}),e(K,[2,32]),{45:125,46:44,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(K,[2,52]),e(K,[2,53]),e(K,[2,54]),e(K,[2,55]),e(eu,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:ed,84:eh,119:ec,122:ep},{78:[1,135],80:[1,136]},e(eg,[2,96]),e(K,[2,33]),e(K,[2,34]),e(K,[2,35]),e(K,[2,36]),e(K,[2,37]),{11:ef,13:em,15:ey,28:eb,29:137,33:eA,35:ek,36:eE,47:ex,63:eC,78:eS,83:eT,84:eD,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:138,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(eP,n,{5:165}),e(eP,n,{5:166}),{11:ef,13:em,15:ey,28:eb,29:167,33:eA,35:ek,36:eE,47:ex,63:eC,78:eS,83:eT,84:eD,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:138,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(K,[2,49]),e(K,[2,50]),e(W,[2,61],{47:eK}),e(W,[2,62],{19:169,11:P,43:eG}),e(ea,[2,57]),{47:A,50:171,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{105:[1,172],106:173,108:[1,174]},{47:A,50:175,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{47:A,50:176,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(eU,[2,130],{123:181,11:[1,180],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,132],{11:[1,182]}),e(ej,[2,198]),e(ej,[2,185]),e(ej,[2,186]),e(ej,[2,187]),e(ej,[2,188]),e(ej,[2,189]),e(ej,[2,190]),e(ej,[2,191]),e(ej,[2,192]),e(ej,[2,193]),e(ej,[2,194]),e(ej,[2,195]),{47:A,50:183,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{31:184,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:192,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:194,53:[1,193],70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:195,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:196,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:197,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{112:[1,198]},{31:199,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:200,68:[1,201],70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:202,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:203,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{31:204,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},e(eo,[2,197]),e(a,[2,22]),e(el,[2,30]),e(W,[2,59],{34:205,19:206,11:P,43:Y}),e(eu,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{80:[1,210],82:211,119:ec,122:ep},e(eJ,[2,92]),e(eJ,[2,94]),e(eJ,[2,95]),e(eJ,[2,183]),e(eJ,[2,184]),{79:212,82:130,83:ed,84:eh,119:ec,122:ep},e(eg,[2,97]),{8:G,9:U,10:j,11:ef,12:z,13:em,15:ey,22:214,28:eb,30:[1,213],33:eA,34:215,35:ek,36:eE,43:Y,47:ex,63:eC,78:eS,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:216,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(eQ,[2,116]),e(eQ,[2,118]),e(eQ,[2,119]),e(eQ,[2,172]),e(eQ,[2,173]),e(eQ,[2,174]),e(eQ,[2,175]),e(eQ,[2,176]),e(eQ,[2,177]),e(eQ,[2,178]),e(eQ,[2,179]),e(eQ,[2,180]),e(eQ,[2,181]),e(eQ,[2,182]),e(eQ,[2,103]),e(eQ,[2,104]),e(eQ,[2,105]),e(eQ,[2,106]),e(eQ,[2,107]),e(eQ,[2,108]),e(eQ,[2,109]),e(eQ,[2,110]),e(eQ,[2,111]),e(eQ,[2,112]),e(eQ,[2,113]),e(eQ,[2,114]),e(eQ,[2,115]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,217],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,218],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,11:ef,12:z,13:em,15:ey,22:220,28:eb,30:[1,219],33:eA,34:221,35:ek,36:eE,43:Y,47:ex,63:eC,78:eS,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:216,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},{11:P,19:222},{47:[1,223]},e(ea,[2,56]),{11:[1,224],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{11:[1,225]},{11:[1,226],109:[1,227]},e(eZ,[2,143]),{11:[1,228],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{11:[1,229],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{83:[1,230]},e(eU,[2,124],{11:[1,231]}),e(eU,[2,126],{11:[1,232]}),{83:[1,233]},e(ej,[2,199]),{83:[1,234],101:[1,235]},e(ea,[2,68],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),{32:[1,236],70:ez,85:237,119:eH,120:eX,121:eq},e(e1,[2,99]),e(e1,[2,101]),e(e1,[2,102]),e(e1,[2,168]),e(e1,[2,169]),e(e1,[2,170]),e(e1,[2,171]),{52:[1,238],70:ez,85:237,119:eH,120:eX,121:eq},{31:239,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{54:[1,240],70:ez,85:237,119:eH,120:eX,121:eq},{56:[1,241],70:ez,85:237,119:eH,120:eX,121:eq},{58:[1,242],70:ez,85:237,119:eH,120:eX,121:eq},{60:[1,243],70:ez,85:237,119:eH,120:eX,121:eq},{63:[1,244]},{67:[1,245],70:ez,85:237,119:eH,120:eX,121:eq},{69:[1,246],70:ez,85:237,119:eH,120:eX,121:eq},{31:247,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},{32:[1,248],70:ez,85:237,119:eH,120:eX,121:eq},{70:ez,72:[1,249],74:[1,250],85:237,119:eH,120:eX,121:eq},{70:ez,72:[1,252],74:[1,251],85:237,119:eH,120:eX,121:eq},e(W,[2,58],{19:169,11:P,43:eG}),e(W,[2,60],{47:eK}),e(eu,[2,88]),e(eu,[2,87]),{65:[1,253],70:ez,85:237,119:eH,120:eX,121:eq},e(eu,[2,90]),e(eJ,[2,93]),{80:[1,254],82:211,119:ec,122:ep},{31:255,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},e(eP,n,{5:256}),{8:G,9:U,10:j,12:z,22:257,43:eG},e(eQ,[2,117]),e(K,[2,42]),e(K,[2,43]),{31:258,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},e(K,[2,46]),{8:G,9:U,10:j,12:z,22:259,43:eG},{46:260,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{11:P,19:261},{11:e0,63:e2,87:e8,95:262,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:273,107:[1,274],108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:275,107:[1,276],108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{108:[1,277]},{11:e0,63:e2,87:e8,95:278,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{47:A,50:279,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(eU,[2,131]),e(eU,[2,133],{11:[1,283]}),e(eU,[2,134]),e(en,[2,69]),e(e1,[2,100]),e(en,[2,70]),{54:[1,284],70:ez,85:237,119:eH,120:eX,121:eq},e(en,[2,77]),e(en,[2,72]),e(en,[2,73]),e(en,[2,74]),{112:[1,285]},e(en,[2,76]),e(en,[2,78]),{69:[1,286],70:ez,85:237,119:eH,120:eX,121:eq},e(en,[2,80]),e(en,[2,81]),e(en,[2,83]),e(en,[2,82]),e(en,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(eu,[2,91]),{32:[1,287],70:ez,85:237,119:eH,120:eX,121:eq},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,288],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eP,n,{5:289}),{32:[1,290],70:ez,85:237,119:eH,120:eX,121:eq},e(K,[2,47]),e(ea,[2,66]),{46:291,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,136],{109:e5}),e(te,[2,145],{111:293,11:e0,63:e2,87:e8,108:e3,112:e4,113:e9,114:e7,115:e6}),e(tt,[2,147]),e(tt,[2,149]),e(tt,[2,150]),e(tt,[2,151]),e(tt,[2,152]),e(tt,[2,153]),e(tt,[2,154]),e(tt,[2,155]),e(tt,[2,156]),e(eU,[2,137],{109:e5}),{11:[1,294]},e(eU,[2,138],{109:e5}),{11:[1,295]},e(eZ,[2,144]),e(eU,[2,120],{109:e5}),e(eU,[2,121],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),e(eU,[2,125]),e(eU,[2,127],{11:[1,296]}),e(eU,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:G,9:U,10:j,12:z,22:301,34:302,43:Y},e(K,[2,40]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,303],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,12:z,22:304,34:305,43:Y},e(ea,[2,65]),{11:e0,63:e2,87:e8,108:e3,110:306,111:264,112:e4,113:e9,114:e7,115:e6},e(tt,[2,148]),{15:H,47:X,63:q,92:J,104:307,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},{15:H,47:X,63:q,92:J,104:308,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},{101:[1,309]},e(eU,[2,135]),e(en,[2,71]),{31:310,70:ez,83:eW,84:eY,85:185,119:eH,120:eX,121:eq},e(en,[2,79]),e(eP,n,{5:311}),{8:G,9:U,10:j,12:z,22:312,43:eG},e(K,[2,41]),e(K,[2,44]),{8:G,9:U,10:j,12:z,22:313,43:eG},e(te,[2,146],{111:293,11:e0,63:e2,87:e8,108:e3,112:e4,113:e9,114:e7,115:e6}),e(eU,[2,141],{123:181,11:[1,314],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,142],{123:181,11:[1,315],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,129]),{32:[1,316],70:ez,85:237,119:eH,120:eX,121:eq},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,317],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eP,n,{5:318}),e(K,[2,45]),{11:e0,63:e2,87:e8,95:319,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:320,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},e(en,[2,75]),e(K,[2,38]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,321],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eU,[2,139],{109:e5}),e(eU,[2,140],{109:e5}),e(K,[2,39])],defaultActions:{},parseError:(0,g.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,g.K)(function(e){var t=this,s=[0],i=[],r=[null],a=[],n=this.table,o="",l=0,u=0,d=0,h=a.slice.call(arguments,1),c=Object.create(this.lexer),p={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(p[f]=this.yy[f]);c.setInput(e,p),p.lexer=c,p.parser=this,void 0===c.yylloc&&(c.yylloc={});var m=c.yylloc;a.push(m);var y=c.options&&c.options.ranges;function b(){var e;return"number"!=typeof(e=i.pop()||c.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,a.length=a.length-e},"popStack"),(0,g.K)(b,"lex");for(var A,k,E,x,C,S,T,D,_,v={};;){if(E=s[s.length-1],this.defaultActions[E]?x=this.defaultActions[E]:(null==A&&(A=b()),x=n[E]&&n[E][A]),void 0===x||!x.length||!x[0]){var F="";for(S in _=[],n[E])this.terminals_[S]&&S>2&&_.push("'"+this.terminals_[S]+"'");F=c.showPosition?"Parse error on line "+(l+1)+":\n"+c.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==A?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(F,{text:c.match,token:this.terminals_[A]||A,line:c.yylineno,loc:m,expected:_})}if(x[0]instanceof Array&&x.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+A);switch(x[0]){case 1:s.push(A),r.push(c.yytext),a.push(c.yylloc),s.push(x[1]),A=null,k?(A=k,k=null):(u=c.yyleng,o=c.yytext,l=c.yylineno,m=c.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[x[1]][1],v.$=r[r.length-T],v._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},y&&(v._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(v,[o,u,l,p,x[1],r,a].concat(h))))return C;T&&(s=s.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),s.push(this.productions_[x[1]][0]),r.push(v.$),a.push(v._$),D=n[s[s.length-2]][s[s.length-1]],s.push(D);break;case 3:return!0}}return!0},"parse")};function ti(){this.yy={}}return ts.lexer={EOF:1,parseError:(0,g.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,g.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,g.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,g.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var r=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.K)(function(){return this._more=!0,this},"more"),reject:(0,g.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,g.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,g.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,g.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),a=0;a<r.length;a++)if((s=this._input.match(this.rules[r[a]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[a])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,g.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,g.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.K)(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:(0,g.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,g.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,g.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,g.K)(function(e,t,s,i){switch(s){case 0:return this.begin("acc_title"),38;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),40;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),t.yytext="",43;case 8:return this.pushState("shapeDataStr"),43;case 9:return this.popState(),43;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),43;case 11:return 43;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 18:return 99;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 34:return 91;case 35:return e.lex.firstGraph()&&this.begin("dir"),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),14;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:case 99:return 114;case 63:return 49;case 64:return 63;case 65:case 100:return 47;case 66:return 9;case 67:return 109;case 68:case 98:return 118;case 69:return this.popState(),80;case 70:return this.pushState("edgeText"),78;case 71:return 122;case 72:return 80;case 73:case 87:case 113:break;case 74:return this.popState(),56;case 75:case 114:return"TEXT";case 76:return this.pushState("ellipseText"),55;case 77:return this.popState(),58;case 78:return this.pushState("text"),57;case 79:return this.popState(),60;case 80:return this.pushState("text"),59;case 81:return 61;case 82:return this.pushState("text"),70;case 83:return this.popState(),67;case 84:return this.pushState("text"),66;case 85:return this.popState(),52;case 86:return this.pushState("text"),51;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState("trapText"),71;case 92:return this.pushState("trapText"),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState("text"),65;case 107:return this.popState(),54;case 108:return this.pushState("text"),53;case 109:return this.popState(),32;case 110:return this.pushState("text"),30;case 111:return this.popState(),69;case 112:return this.pushState("text"),68;case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}},(0,g.K)(ti,"Parser"),ti.prototype=ts,ts.Parser=ti,new ti}();U.parser=U;var j=Object.assign({},U);j.parse=e=>{let t=e.replace(/}[^\S\n]*\n/g,"}\n");return U.parse(t)};var z=(0,g.K)(e=>{let{theme:t,bkgColorArray:s,borderColorArray:i}=e;if(!(0,d.P1)(t,i))return"";let r=(0,d.rq)(e.look),a=(0,d.Ic)(s),n=(0,d.nw)(e.THEME_COLOR_LIMIT,i),o=(0,g.K)(e=>i[e%i.length],"border"),l=(0,g.K)(e=>a?`fill: ${s[e%s.length]};`:"","fill"),u="";for(let e of $){let t=_.get(e),s=`[data-look="${r}"].node.${F(e)}`;u+=`
|
|
22
|
+
|
|
23
|
+
${s} rect,
|
|
24
|
+
${s} path,
|
|
25
|
+
${s} polygon {
|
|
26
|
+
stroke: ${o(t)};
|
|
27
|
+
${l(t)}
|
|
28
|
+
}
|
|
29
|
+
`}for(let e=0;e<L(n);e++){let t=B(e,n),s=`[data-look="${r}"][data-color-id="color-${t}"].cluster`,i=`[data-look="${r}"][data-color-id="color-${t}"].node`,a=(0,g.K)(e=>`${s} ${e}, ${i} ${e}`,"rule");u+=`
|
|
30
|
+
|
|
31
|
+
${a("rect")},
|
|
32
|
+
${a("path")} {
|
|
33
|
+
stroke: ${o(t)};
|
|
34
|
+
${l(t)}
|
|
35
|
+
}
|
|
36
|
+
`}return u},"genColor"),W=(0,g.K)((e,t)=>{let s=y.A,i=s(e,"r"),r=s(e,"g"),a=s(e,"b");return b.A(i,r,a,t)},"fade"),Y={parser:j,get db(){return new P},renderer:{getClasses:K,draw:G},styles:(0,g.K)(e=>`${z(e)}
|
|
37
|
+
.label {
|
|
38
|
+
font-family: ${e.fontFamily};
|
|
39
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
40
|
+
}
|
|
41
|
+
.cluster-label text {
|
|
42
|
+
fill: ${e.titleColor};
|
|
43
|
+
}
|
|
44
|
+
.cluster-label span {
|
|
45
|
+
color: ${e.titleColor};
|
|
46
|
+
}
|
|
47
|
+
.cluster-label span p {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.label text,span {
|
|
52
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
53
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.node rect,
|
|
57
|
+
.node circle,
|
|
58
|
+
.node ellipse,
|
|
59
|
+
.node polygon,
|
|
60
|
+
.node path {
|
|
61
|
+
fill: ${e.mainBkg};
|
|
62
|
+
stroke: ${e.nodeBorder};
|
|
63
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
64
|
+
}
|
|
65
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
66
|
+
text-anchor: middle;
|
|
67
|
+
}
|
|
68
|
+
.node .katex path {
|
|
69
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
70
|
+
stroke: ${e.nodeTextColor||e.textColor};
|
|
71
|
+
stroke-width: 1px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
75
|
+
text-align: center;
|
|
76
|
+
}
|
|
77
|
+
.node.clickable {
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
.root .anchor path {
|
|
83
|
+
fill: ${e.lineColor} !important;
|
|
84
|
+
stroke-width: 0;
|
|
85
|
+
stroke: ${e.lineColor};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.arrowheadPath {
|
|
89
|
+
fill: ${e.arrowheadColor};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.edgePaths .path {
|
|
93
|
+
stroke: ${e.lineColor};
|
|
94
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.flowchart-link {
|
|
98
|
+
stroke: ${e.lineColor};
|
|
99
|
+
fill: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.edgeLabel {
|
|
103
|
+
background-color: ${e.edgeLabelBackground};
|
|
104
|
+
p {
|
|
105
|
+
background-color: ${e.edgeLabelBackground};
|
|
106
|
+
}
|
|
107
|
+
rect {
|
|
108
|
+
opacity: 0.5;
|
|
109
|
+
background-color: ${e.edgeLabelBackground};
|
|
110
|
+
fill: ${e.edgeLabelBackground};
|
|
111
|
+
}
|
|
112
|
+
text-align: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* For html labels only */
|
|
116
|
+
.labelBkg {
|
|
117
|
+
background-color: ${W(e.edgeLabelBackground,.5)};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cluster rect {
|
|
121
|
+
fill: ${e.clusterBkg};
|
|
122
|
+
stroke: ${e.clusterBorder};
|
|
123
|
+
stroke-width: 1px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.flow-cluster rect {
|
|
127
|
+
fill: none;
|
|
128
|
+
stroke: ${e.clusterBorder};
|
|
129
|
+
stroke-width: 0.75px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.node .collapsed-indicator {
|
|
133
|
+
fill: ${e.nodeBorder};
|
|
134
|
+
stroke: none;
|
|
135
|
+
stroke-width: 0;
|
|
136
|
+
opacity: 0.5;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.node .collapsed-separator {
|
|
140
|
+
stroke-width: 0.75px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.cluster text {
|
|
144
|
+
fill: ${e.titleColor};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.cluster span {
|
|
148
|
+
color: ${e.titleColor};
|
|
149
|
+
}
|
|
150
|
+
/* .cluster div {
|
|
151
|
+
color: ${e.titleColor};
|
|
152
|
+
} */
|
|
153
|
+
|
|
154
|
+
div.mermaidTooltip {
|
|
155
|
+
position: absolute;
|
|
156
|
+
text-align: center;
|
|
157
|
+
max-width: 200px;
|
|
158
|
+
padding: 2px;
|
|
159
|
+
font-family: ${e.fontFamily};
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
background: ${e.tertiaryColor};
|
|
162
|
+
border: 1px solid ${e.border2};
|
|
163
|
+
border-radius: 2px;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
z-index: 100;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.agentflowTitleText {
|
|
169
|
+
text-anchor: middle;
|
|
170
|
+
font-size: 18px;
|
|
171
|
+
fill: ${e.textColor};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
rect.text {
|
|
175
|
+
fill: none;
|
|
176
|
+
stroke-width: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.icon-shape, .image-shape {
|
|
180
|
+
background-color: ${e.edgeLabelBackground};
|
|
181
|
+
p {
|
|
182
|
+
background-color: ${e.edgeLabelBackground};
|
|
183
|
+
padding: 2px;
|
|
184
|
+
}
|
|
185
|
+
.label rect {
|
|
186
|
+
opacity: 0.5;
|
|
187
|
+
background-color: ${e.edgeLabelBackground};
|
|
188
|
+
fill: ${e.edgeLabelBackground};
|
|
189
|
+
}
|
|
190
|
+
text-align: center;
|
|
191
|
+
}
|
|
192
|
+
${(0,i.o)()}
|
|
193
|
+
`,"getStyles"),init:(0,g.K)(e=>{e.agentflow??={},e.layout&&(0,c.XV)({layout:e.layout}),e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,c.XV)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}},98204:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(14528),r=s(60830),a=(0,i.K)((e,t)=>{let s;return"sandbox"===t&&(s=(0,r.Ltv)("#i"+e)),("sandbox"===t?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7915],{37915:(e,n,r)=>{r.r(n),r.d(n,{default:()=>N});var s=r(26514),t=r(75834),a=r(25642),l=r(66010),c=r(51960),u=r(9328),d=r(67492),i=r(86993),m=r(56514),o=r(90644),p=r(83564),x=r(98581),h=r(32270),g=r(71953),A=r(62796),f=r(55248);let j={bash:i.A,css:m.A,diff:o.A,javascript:p.A,json:x.A,markdown:h.A,python:g.A,typescript:A.A,xml:f.A};var y=r(4416);let b=[l.A,c.A],k=[[u.A,{languages:j,aliases:{bash:["sh","zsh","shell"],javascript:["js","jsx","mjs","cjs"],markdown:["md"],typescript:["ts","tsx"],xml:["html"]},plainText:["mermaid"]}]];function w(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(w).join(""):""}let N=(0,t.memo)(function({source:e,compact:n}){let r=(0,t.useMemo)(()=>({a:({children:e,node:n,...r})=>(0,s.jsx)("a",{...r,className:"break-words text-primary underline underline-offset-2",children:e}),code:({children:e,className:n,node:r,...t})=>{let a=/\blanguage-/.test(n??"");return(0,s.jsx)("code",{...t,className:a?n:(0,y.cn)("break-words rounded-xs bg-background/70 px-1 py-0.5",n),children:e})},pre:({children:e,node:r,...t})=>{let a=function(e){let n=e?.children.find(e=>"element"===e.type);if(n?.type!=="element"||"code"!==n.tagName)return null;let r=n.properties.className;return Array.isArray(r)&&r.includes("language-mermaid")?n.children.map(w).join(""):null}(r);return null!==a?(0,s.jsx)(d.A,{code:a,compact:n}):(0,s.jsx)("pre",{...t,className:(0,y.cn)("max-w-full overflow-x-auto rounded-md bg-background/70 p-3",n?"text-xs leading-snug":"text-sm"),children:e})}}),[n]);return(0,s.jsx)(a.oz,{remarkPlugins:b,rehypePlugins:k,components:r,children:e})})}}]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7992],{34765:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(14528).K)(r,"populateCommonDb")},37992:(t,e,a)=>{a.d(e,{diagram:()=>$});var r=a(34765),i=a(62831),l=a(58959),o=a(95631),s=a(5218),c=a(14528),n=a(64012),d=o.UI.packet,k=class{constructor(){this.packet=[],this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getAccDescription=o.m7,this.setAccDescription=o.EI}static{(0,c.K)(this,"PacketDB")}getConfig(){let t=(0,l.$t)({...d,...(0,o.zj)().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){(0,o.IU)(),this.packet=[]}},p=(0,c.K)((t,e)=>{(0,r.S)(t,e);let a=-1,i=[],l=1,{bitsPerRow:o}=e.getConfig();for(let{start:r,end:c,bits:n,label:d}of t.blocks){if(void 0!==r&&void 0!==c&&c<r)throw Error(`Packet block ${r} - ${c} is invalid. End must be greater than start.`);if((r??=a+1)!==a+1)throw Error(`Packet block ${r} - ${c??r} is not contiguous. It should start from ${a+1}.`);if(0===n)throw Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(c??=r+(n??1)-1,n??=c-r+1,a=c,s.R.debug(`Packet block ${r} - ${a} with label ${d}`);i.length<=o+1&&e.getPacket().length<1e4;){let[t,a]=h({start:r,end:c,bits:n,label:d},l,o);if(i.push(t),t.end+1===l*o&&(e.pushWord(i),i=[],l++),!a)break;({start:r,end:c,bits:n,label:d}=a)}}e.pushWord(i)},"populate"),h=(0,c.K)((t,e,a)=>{if(void 0===t.start)throw Error("start should have been set during first phase");if(void 0===t.end)throw Error("end should have been set during first phase");if(t.start>t.end)throw Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let r=e*a-1,i=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),b={parser:{yy:void 0},parse:(0,c.K)(async t=>{let e=await (0,n.qg)("packet",t),a=b.parser?.yy;if(!(a instanceof k))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");s.R.debug(e),p(e,a)},"parse")},f=(0,c.K)((t,e,a,r)=>{let l=r.db,s=l.getConfig(),{rowHeight:c,paddingY:n,bitWidth:d,bitsPerRow:k}=s,p=l.getPacket(),h=l.getDiagramTitle(),b=c+n,f=b*(p.length+1)-(h?0:c),u=d*k+2,$=(0,i.D)(e);for(let[t,e]of($.attr("viewBox",`0 0 ${u} ${f}`),(0,o.a$)($,f,u,s.useMaxWidth),p.entries()))g($,e,t,s);$.append("text").text(h).attr("x",u/2).attr("y",f-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),g=(0,c.K)((t,e,a,{rowHeight:r,paddingX:i,paddingY:l,bitWidth:o,bitsPerRow:s,showBits:c})=>{let n=t.append("g"),d=a*(r+l)+l;for(let t of e){let e=t.start%s*o+1,a=(t.end-t.start+1)*o-i;if(n.append("rect").attr("x",e).attr("y",d).attr("width",a).attr("height",r).attr("class","packetBlock"),n.append("text").attr("x",e+a/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(t.label),!c)continue;let l=t.end===t.start,k=d-2;n.append("text").attr("x",e+(l?a/2:0)).attr("y",k).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",l?"middle":"start").text(t.start),l||n.append("text").attr("x",e+a).attr("y",k).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(t.end)}},"drawWord"),u={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},$={parser:b,get db(){return new k},renderer:{draw:f},styles:(0,c.K)(({packet:t}={})=>{let e=(0,l.$t)(u,t);return`
|
|
2
|
+
.packetByte {
|
|
3
|
+
font-size: ${e.byteFontSize};
|
|
4
|
+
}
|
|
5
|
+
.packetByte.start {
|
|
6
|
+
fill: ${e.startByteColor};
|
|
7
|
+
}
|
|
8
|
+
.packetByte.end {
|
|
9
|
+
fill: ${e.endByteColor};
|
|
10
|
+
}
|
|
11
|
+
.packetLabel {
|
|
12
|
+
fill: ${e.labelColor};
|
|
13
|
+
font-size: ${e.labelFontSize};
|
|
14
|
+
}
|
|
15
|
+
.packetTitle {
|
|
16
|
+
fill: ${e.titleColor};
|
|
17
|
+
font-size: ${e.titleFontSize};
|
|
18
|
+
}
|
|
19
|
+
.packetBlock {
|
|
20
|
+
stroke: ${e.blockStrokeColor};
|
|
21
|
+
stroke-width: ${e.blockStrokeWidth};
|
|
22
|
+
fill: ${e.blockFillColor};
|
|
23
|
+
}
|
|
24
|
+
`},"styles")}}}]);
|