import{g as at}from"./chunk-55IACEB6-FbRsZHgc.chunk.mjs";import{s as ct}from"./chunk-QN33PNHL-D5kh7p4O.chunk.mjs";import{_ as a,l as T,p as ht,r as lt,H as P,c as H,i as $,aH as dt,ad as gt,ae as pt,af as ut}from"./mermaid.core-BHWH4e1q.chunk.mjs";import"./preload-helper-BorfeO-5.chunk.mjs";import"./emoji-picker-hi3Hwbeu.chunk.mjs";import"./NcLoadingIcon-CBTC2zMe.chunk.mjs";import"./vue.runtime.esm-B7-PK3p1.chunk.mjs";import"./index-CdM8BgQf.chunk.mjs";import"./index-DCzdQJ7L.chunk.mjs";const m=[];for(let t=0;t<256;++t)m.push((t+256).toString(16).slice(1));function yt(t,s=0){return(m[t[s+0]]+m[t[s+1]]+m[t[s+2]]+m[t[s+3]]+"-"+m[t[s+4]]+m[t[s+5]]+"-"+m[t[s+6]]+m[t[s+7]]+"-"+m[t[s+8]]+m[t[s+9]]+"-"+m[t[s+10]]+m[t[s+11]]+m[t[s+12]]+m[t[s+13]]+m[t[s+14]]+m[t[s+15]]).toLowerCase()}let G;const mt=new Uint8Array(16);function ft(){if(!G){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");G=crypto.getRandomValues.bind(crypto)}return G(mt)}const Et=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),et={randomUUID:Et};function bt(t,s,n){if(et.randomUUID&&!t)return et.randomUUID();t=t||{};const c=t.random??t.rng?.()??ft();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,yt(c)}var W=(function(){var t=a(function(N,e,r,o){for(r=r||{},o=N.length;o--;r[N[o]]=e);return r},"o"),s=[1,4],n=[1,13],c=[1,12],p=[1,15],g=[1,16],u=[1,20],h=[1,19],x=[6,7,8],X=[1,26],z=[1,24],V=[1,25],b=[6,7,11],Y=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],C=[1,6,7,11,13,15,16,19,22],U={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:a(function(N,e,r,o,l,i,f){var d=i.length-1;switch(l){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",i[d].id),o.addNode(i[d-1].length,i[d].id,i[d].descr,i[d].type);break;case 16:o.getLogger().trace("Icon: ",i[d]),o.decorateNode({icon:i[d]});break;case 17:case 21:o.decorateNode({class:i[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",i[d].id),o.addNode(0,i[d].id,i[d].descr,i[d].type);break;case 20:o.decorateNode({icon:i[d]});break;case 25:o.getLogger().trace("node found ..",i[d-2]),this.$={id:i[d-1],descr:i[d-1],type:o.getType(i[d-2],i[d])};break;case 26:this.$={id:i[d],descr:i[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",i[d-3]),this.$={id:i[d-3],descr:i[d-1],type:o.getType(i[d-2],i[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:n,7:[1,10],9:9,12:11,13:c,14:14,15:p,16:g,17:17,18:18,19:u,22:h},t(x,[2,3]),{1:[2,2]},t(x,[2,4]),t(x,[2,5]),{1:[2,6],6:n,12:21,13:c,14:14,15:p,16:g,17:17,18:18,19:u,22:h},{6:n,9:22,12:11,13:c,14:14,15:p,16:g,17:17,18:18,19:u,22:h},{6:X,7:z,10:23,11:V},t(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:h}),t(b,[2,18]),t(b,[2,19]),t(b,[2,20]),t(b,[2,21]),t(b,[2,23]),t(b,[2,24]),t(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:X,7:z,10:32,11:V},{1:[2,7],6:n,12:21,13:c,14:14,15:p,16:g,17:17,18:18,19:u,22:h},t(Y,[2,14],{7:q,11:J}),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(b,[2,15]),t(b,[2,16]),t(b,[2,17]),{20:[1,35]},{21:[1,36]},t(Y,[2,13],{7:q,11:J}),t(C,[2,11]),t(C,[2,12]),{21:[1,37]},t(b,[2,25]),t(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(N,e){if(e.recoverable)this.trace(N);else{var r=new Error(N);throw r.hash=e,r}},"parseError"),parse:a(function(N){var e=this,r=[0],o=[],l=[null],i=[],f=this.table,d="",R=0,K=0,nt=2,Q=1,st=i.slice.call(arguments,1),y=Object.create(this.lexer),D={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(D.yy[M]=this.yy[M]);y.setInput(N,D.yy),D.yy.lexer=y,D.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var F=y.yylloc;i.push(F);var rt=y.options&&y.options.ranges;typeof D.yy.parseError=="function"?this.parseError=D.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ot(_){r.length=r.length-2*_,l.length=l.length-_,i.length=i.length-_}a(ot,"popStack");function Z(){var _;return _=o.pop()||y.lex()||Q,typeof _!="number"&&(_ instanceof Array&&(o=_,_=o.pop()),_=e.symbols_[_]||_),_}a(Z,"lex");for(var E,O,S,B,I={},w,k,tt,A;;){if(O=r[r.length-1],this.defaultActions[O]?S=this.defaultActions[O]:((E===null||typeof E>"u")&&(E=Z()),S=f[O]&&f[O][E]),typeof S>"u"||!S.length||!S[0]){var j="";A=[];for(w in f[O])this.terminals_[w]&&w>nt&&A.push("'"+this.terminals_[w]+"'");y.showPosition?j="Parse error on line "+(R+1)+`: `+y.showPosition()+` Expecting `+A.join(", ")+", got '"+(this.terminals_[E]||E)+"'":j="Parse error on line "+(R+1)+": Unexpected "+(E==Q?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(j,{text:y.match,token:this.terminals_[E]||E,line:y.yylineno,loc:F,expected:A})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+E);switch(S[0]){case 1:r.push(E),l.push(y.yytext),i.push(y.yylloc),r.push(S[1]),E=null,K=y.yyleng,d=y.yytext,R=y.yylineno,F=y.yylloc;break;case 2:if(k=this.productions_[S[1]][1],I.$=l[l.length-k],I._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},rt&&(I._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),B=this.performAction.apply(I,[d,K,R,D.yy,S[1],l,i].concat(st)),typeof B<"u")return B;k&&(r=r.slice(0,-1*k*2),l=l.slice(0,-1*k),i=i.slice(0,-1*k)),r.push(this.productions_[S[1]][0]),l.push(I.$),i.push(I._$),tt=f[r[r.length-2]][r[r.length-1]],r.push(tt);break;case 3:return!0}}return!0},"parse")},it=(function(){var N={EOF:1,parseError:a(function(e,r){if(this.yy.parser)this.yy.parser.parseError(e,r);else throw new Error(e)},"parseError"),setInput:a(function(e,r){return this.yy=r||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:a(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var r=e.match(/(?:\r\n?|\n).*/g);return r?(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:a(function(e){var r=e.length,o=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a(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:a(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:a(function(){var e=this.pastInput(),r=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+r+"^"},"showPosition"),test_match:a(function(e,r){var o,l,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),l=e[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var f in i)this[f]=i[f];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,r,o,l;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),f=0;fr[0].length)){if(r=o,l=f,this.options.backtrack_lexer){if(e=this.test_match(o,i[f]),e!==!1)return e;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(e=this.test_match(r,i[l]),e!==!1?e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var e=this.next();return e||this.lex()},"lex"),begin:a(function(e){this.conditionStack.push(e)},"begin"),popState:a(function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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:a(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:a(function(e){this.begin(e)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(e,r,o,l){switch(o){case 0:return e.getLogger().trace("Found comment",r.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 30:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 35:return e.getLogger().trace("Long description:",r.yytext),20;case 36:return e.getLogger().trace("Long description:",r.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return N})();U.lexer=it;function v(){this.yy={}}return a(v,"Parser"),v.prototype=U,U.Parser=v,new v})();W.parser=W;var _t=W,L={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},St=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=L,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{a(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let s=this.nodes.length-1;s>=0;s--)if(this.nodes[s].level0?this.nodes[0]:null}addNode(t,s,n,c){T.info("addNode",t,s,n,c);let p=!1;this.nodes.length===0?(this.baseLevel=t,t=0,p=!0):this.baseLevel!==void 0&&(t=t-this.baseLevel,p=!1);const g=H();let u=g.mindmap?.padding??P.mindmap.padding;switch(c){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}const h={id:this.count++,nodeId:$(s,g),level:t,descr:$(n,g),type:c,children:[],width:g.mindmap?.maxNodeWidth??P.mindmap.maxNodeWidth,padding:u,isRoot:p},x=this.getParent(t);if(x)x.children.push(h),this.nodes.push(h);else if(p)this.nodes.push(h);else throw new Error(`There can be only one root. No parent could be found for ("${h.descr}")`)}getType(t,s){switch(T.debug("In get type",t,s),t){case"[":return this.nodeType.RECT;case"(":return s===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,s){this.elements[t]=s}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;const s=H(),n=this.nodes[this.nodes.length-1];t.icon&&(n.icon=$(t.icon,s)),t.class&&(n.class=$(t.class,s))}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,s){if(t.level===0?t.section=void 0:t.section=s,t.children)for(const[n,c]of t.children.entries()){const p=t.level===0?n:s;this.assignSections(c,p)}}flattenNodes(t,s){const n=["mindmap-node"];t.isRoot===!0?n.push("section-root","section--1"):t.section!==void 0&&n.push(`section-${t.section}`),t.class&&n.push(t.class);const c=n.join(" "),p=a(u=>{switch(u){case L.CIRCLE:return"mindmapCircle";case L.RECT:return"rect";case L.ROUNDED_RECT:return"rounded";case L.CLOUD:return"cloud";case L.BANG:return"bang";case L.HEXAGON:return"hexagon";case L.DEFAULT:return"defaultMindmapNode";case L.NO_BORDER:default:return"rect"}},"getShapeFromType"),g={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,isGroup:!1,shape:p(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:c,cssStyles:[],look:"default",icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(s.push(g),t.children)for(const u of t.children)this.flattenNodes(u,s)}generateEdges(t,s){if(t.children)for(const n of t.children){let c="edge";n.section!==void 0&&(c+=` section-edge-${n.section}`);const p=t.level+1;c+=` edge-depth-${p}`;const g={id:`edge_${t.id}_${n.id}`,start:t.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:c,depth:t.level,section:n.section};s.push(g),this.generateEdges(n,s)}}getData(){const t=this.getMindmap(),s=H(),n=dt().layout!==void 0,c=s;if(n||(c.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:c};T.debug("getData: mindmapRoot",t,s),this.assignSections(t);const p=[],g=[];this.flattenNodes(t,p),this.generateEdges(t,g),T.debug(`getData: processed ${p.length} nodes and ${g.length} edges`);const u=new Map;for(const h of p)u.set(h.id,{shape:h.shape,width:h.width,height:h.height,padding:h.padding});return{nodes:p,edges:g,config:c,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:"mindmap",diagramId:"mindmap-"+bt()}}getLogger(){return T}},Nt=a(async(t,s,n,c)=>{T.debug(`Rendering mindmap diagram `+t);const p=c.db,g=p.getData(),u=at(s,g.config.securityLevel);g.type=c.type,g.layoutAlgorithm=ht(g.config.layout,{fallback:"cose-bilkent"}),g.diagramId=s,p.getMindmap()&&(g.nodes.forEach(h=>{h.shape==="rounded"?(h.radius=15,h.taper=15,h.stroke="none",h.width=0,h.padding=15):h.shape==="circle"?h.padding=10:h.shape==="rect"&&(h.width=0,h.padding=10)}),await lt(g,u),ct(u,g.config.mindmap?.padding??P.mindmap.padding,"mindmapDiagram",g.config.mindmap?.useMaxWidth??P.mindmap.useMaxWidth))},"draw"),kt={draw:Nt},Lt=a(t=>{let s="";for(let n=0;n` .edge { stroke-width: 3; } ${Lt(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } .section-root text { fill: ${t.gitBranchLabel0}; } .section-root span { color: ${t.gitBranchLabel0}; } .section-2 span { color: ${t.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .mindmap-node-label { dy: 1em; alignment-baseline: middle; text-anchor: middle; dominant-baseline: middle; text-align: center; } `,"getStyles"),Ot=Dt,Pt={get db(){return new St},renderer:kt,parser:_t,styles:Ot};export{Pt as diagram}; //# sourceMappingURL=mindmap-definition-VGOIOE7T-CXcXFP_h.chunk.mjs.map