70 lines
20 KiB
JavaScript
70 lines
20 KiB
JavaScript
import{g as st}from"./chunk-55IACEB6-DsirH141.chunk.mjs";import{s as rt}from"./chunk-QN33PNHL-DuzxTV6C.chunk.mjs";import{_ as a,l as I,p as ot,r as at,H as w,c as j,i as A,ah as ct,ad as ht,ae as lt,af as dt}from"./mermaid.core-DrJfu-9d.chunk.mjs";import{v as gt}from"./EditorOutline-DrybdBHq.chunk.mjs";import"./index-CRQM6PVi.chunk.mjs";import"./emoji-picker-MDCGxHB0.chunk.mjs";import"./NcLoadingIcon-ZJnsd-es.chunk.mjs";import"./vue.runtime.esm-CLeelJur.chunk.mjs";import"./index-DxwFe63_.chunk.mjs";import"./logger-CoS2pszN.chunk.mjs";import"./index-Dl858C8_.chunk.mjs";import"./NcNoteCard-Dz5-u2BY-S2qe9Sjm.chunk.mjs";import"./NcCheckboxRadioSwitch-DAPHFb0L-BMVa4UgQ.chunk.mjs";import"./_plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs";import"./MediaHandler.provider-CTjO6aKX.chunk.mjs";var H=function(){var t=a(function(N,e,s,r){for(s=s||{},r=N.length;r--;s[N[r]]=e);return s},"o"),o=[1,4],n=[1,13],g=[1,12],p=[1,15],d=[1,16],u=[1,20],c=[1,19],O=[6,7,8],G=[1,26],W=[1,24],X=[1,25],_=[6,7,11],z=[1,6,13,15,16,19,22],Y=[1,33],q=[1,34],x=[1,6,7,11,13,15,16,19,22],P={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,s,r,h,i,m){var l=i.length-1;switch(h){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",i[l].id),r.addNode(i[l-1].length,i[l].id,i[l].descr,i[l].type);break;case 16:r.getLogger().trace("Icon: ",i[l]),r.decorateNode({icon:i[l]});break;case 17:case 21:r.decorateNode({class:i[l]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",i[l].id),r.addNode(0,i[l].id,i[l].descr,i[l].type);break;case 20:r.decorateNode({icon:i[l]});break;case 25:r.getLogger().trace("node found ..",i[l-2]),this.$={id:i[l-1],descr:i[l-1],type:r.getType(i[l-2],i[l])};break;case 26:this.$={id:i[l],descr:i[l],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",i[l-3]),this.$={id:i[l-3],descr:i[l-1],type:r.getType(i[l-2],i[l])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:n,7:[1,10],9:9,12:11,13:g,14:14,15:p,16:d,17:17,18:18,19:u,22:c},t(O,[2,3]),{1:[2,2]},t(O,[2,4]),t(O,[2,5]),{1:[2,6],6:n,12:21,13:g,14:14,15:p,16:d,17:17,18:18,19:u,22:c},{6:n,9:22,12:11,13:g,14:14,15:p,16:d,17:17,18:18,19:u,22:c},{6:G,7:W,10:23,11:X},t(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:c}),t(_,[2,18]),t(_,[2,19]),t(_,[2,20]),t(_,[2,21]),t(_,[2,23]),t(_,[2,24]),t(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:G,7:W,10:32,11:X},{1:[2,7],6:n,12:21,13:g,14:14,15:p,16:d,17:17,18:18,19:u,22:c},t(z,[2,14],{7:Y,11:q}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(_,[2,15]),t(_,[2,16]),t(_,[2,17]),{20:[1,35]},{21:[1,36]},t(z,[2,13],{7:Y,11:q}),t(x,[2,11]),t(x,[2,12]),{21:[1,37]},t(_,[2,25]),t(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(N,e){if(e.recoverable)this.trace(N);else{var s=new Error(N);throw s.hash=e,s}},"parseError"),parse:a(function(N){var e=this,s=[0],r=[],h=[null],i=[],m=this.table,l="",v=0,J=0,tt=2,K=1,et=i.slice.call(arguments,1),y=Object.create(this.lexer),k={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(k.yy[M]=this.yy[M]);y.setInput(N,k.yy),k.yy.lexer=y,k.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var B=y.yylloc;i.push(B);var it=y.options&&y.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(b){s.length=s.length-2*b,h.length=h.length-b,i.length=i.length-b}a(nt,"popStack");function Q(){var b;return b=r.pop()||y.lex()||K,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=e.symbols_[b]||b),b}a(Q,"lex");for(var f,S,E,U,T={},R,D,Z,$;;){if(S=s[s.length-1],this.defaultActions[S]?E=this.defaultActions[S]:((f===null||typeof f>"u")&&(f=Q()),E=m[S]&&m[S][f]),typeof E>"u"||!E.length||!E[0]){var F="";$=[];for(R in m[S])this.terminals_[R]&&R>tt&&$.push("'"+this.terminals_[R]+"'");y.showPosition?F="Parse error on line "+(v+1)+`:
|
|
`+y.showPosition()+`
|
|
Expecting `+$.join(", ")+", got '"+(this.terminals_[f]||f)+"'":F="Parse error on line "+(v+1)+": Unexpected "+(f==K?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(F,{text:y.match,token:this.terminals_[f]||f,line:y.yylineno,loc:B,expected:$})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+f);switch(E[0]){case 1:s.push(f),h.push(y.yytext),i.push(y.yylloc),s.push(E[1]),f=null,J=y.yyleng,l=y.yytext,v=y.yylineno,B=y.yylloc;break;case 2:if(D=this.productions_[E[1]][1],T.$=h[h.length-D],T._$={first_line:i[i.length-(D||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(D||1)].first_column,last_column:i[i.length-1].last_column},it&&(T._$.range=[i[i.length-(D||1)].range[0],i[i.length-1].range[1]]),U=this.performAction.apply(T,[l,J,v,k.yy,E[1],h,i].concat(et)),typeof U<"u")return U;D&&(s=s.slice(0,-1*D*2),h=h.slice(0,-1*D),i=i.slice(0,-1*D)),s.push(this.productions_[E[1]][0]),h.push(T.$),i.push(T._$),Z=m[s[s.length-2]][s[s.length-1]],s.push(Z);break;case 3:return!0}}return!0},"parse")},V=function(){var N={EOF:1,parseError:a(function(e,s){if(this.yy.parser)this.yy.parser.parseError(e,s);else throw new Error(e)},"parseError"),setInput:a(function(e,s){return this.yy=s||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 s=e.match(/(?:\r\n?|\n).*/g);return s?(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 s=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=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),r.length-1&&(this.yylineno-=r.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:r?(r.length===h.length?this.yylloc.first_column:0)+h[h.length-r.length].length-r[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-s]),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(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
|
`+s+"^"},"showPosition"),test_match:a(function(e,s){var r,h,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))),h=e[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.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],r=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var m in i)this[m]=i[m];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,s,r,h;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),m=0;m<i.length;m++)if(r=this._input.match(this.rules[i[m]]),r&&(!s||r[0].length>s[0].length)){if(s=r,h=m,this.options.backtrack_lexer){if(e=this.test_match(r,i[m]),e!==!1)return e;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(e=this.test_match(s,i[h]),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,s,r,h){switch(r){case 0:return e.getLogger().trace("Found comment",s.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:",s.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 ...",s.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:",s.yytext),20;case 36:return e.getLogger().trace("Long description:",s.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}();P.lexer=V;function C(){this.yy={}}return a(C,"Parser"),C.prototype=P,P.Parser=C,new C}();H.parser=H;var pt=H,L={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ut=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 o=this.nodes.length-1;o>=0;o--)if(this.nodes[o].level<t)return this.nodes[o];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,o,n,g){I.info("addNode",t,o,n,g);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 d=j();let u=d.mindmap?.padding??w.mindmap.padding;switch(g){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}const c={id:this.count++,nodeId:A(o,d),level:t,descr:A(n,d),type:g,children:[],width:d.mindmap?.maxNodeWidth??w.mindmap.maxNodeWidth,padding:u,isRoot:p},O=this.getParent(t);if(O)O.children.push(c),this.nodes.push(c);else if(p)this.nodes.push(c);else throw new Error(`There can be only one root. No parent could be found for ("${c.descr}")`)}getType(t,o){switch(I.debug("In get type",t,o),t){case"[":return this.nodeType.RECT;case"(":return o===")"?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,o){this.elements[t]=o}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;const o=j(),n=this.nodes[this.nodes.length-1];t.icon&&(n.icon=A(t.icon,o)),t.class&&(n.class=A(t.class,o))}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,o){if(t.level===0?t.section=void 0:t.section=o,t.children)for(const[n,g]of t.children.entries()){const p=t.level===0?n:o;this.assignSections(g,p)}}flattenNodes(t,o){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 g=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"),d={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:g,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(o.push(d),t.children)for(const u of t.children)this.flattenNodes(u,o)}generateEdges(t,o){if(t.children)for(const n of t.children){let g="edge";n.section!==void 0&&(g+=` section-edge-${n.section}`);const p=t.level+1;g+=` edge-depth-${p}`;const d={id:`edge_${t.id}_${n.id}`,start:t.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:g,depth:t.level,section:n.section};o.push(d),this.generateEdges(n,o)}}getData(){const t=this.getMindmap(),o=j(),n=ct().layout!==void 0,g=o;if(n||(g.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:g};I.debug("getData: mindmapRoot",t,o),this.assignSections(t);const p=[],d=[];this.flattenNodes(t,p),this.generateEdges(t,d),I.debug(`getData: processed ${p.length} nodes and ${d.length} edges`);const u=new Map;for(const c of p)u.set(c.id,{shape:c.shape,width:c.width,height:c.height,padding:c.padding});return{nodes:p,edges:d,config:g,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:"mindmap",diagramId:"mindmap-"+gt()}}getLogger(){return I}},yt=a(async(t,o,n,g)=>{I.debug(`Rendering mindmap diagram
|
|
`+t);const p=g.db,d=p.getData(),u=st(o,d.config.securityLevel);d.type=g.type,d.layoutAlgorithm=ot(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=o,p.getMindmap()&&(d.nodes.forEach(c=>{c.shape==="rounded"?(c.radius=15,c.taper=15,c.stroke="none",c.width=0,c.padding=15):c.shape==="circle"?c.padding=10:c.shape==="rect"&&(c.width=0,c.padding=10)}),await at(d,u),rt(u,d.config.mindmap?.padding??w.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??w.mindmap.useMaxWidth))},"draw"),mt={draw:yt},ft=a(t=>{let o="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],ht(t["lineColor"+n])?t["lineColor"+n]=lt(t["lineColor"+n],20):t["lineColor"+n]=dt(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const g=""+(17-3*n);o+=`
|
|
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
|
|
fill: ${t["cScale"+n]};
|
|
}
|
|
.section-${n-1} text {
|
|
fill: ${t["cScaleLabel"+n]};
|
|
}
|
|
.node-icon-${n-1} {
|
|
font-size: 40px;
|
|
color: ${t["cScaleLabel"+n]};
|
|
}
|
|
.section-edge-${n-1}{
|
|
stroke: ${t["cScale"+n]};
|
|
}
|
|
.edge-depth-${n-1}{
|
|
stroke-width: ${g};
|
|
}
|
|
.section-${n-1} line {
|
|
stroke: ${t["cScaleInv"+n]} ;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.disabled, .disabled circle, .disabled text {
|
|
fill: lightgray;
|
|
}
|
|
.disabled text {
|
|
fill: #efefef;
|
|
}
|
|
`}return o},"genSections"),_t=a(t=>`
|
|
.edge {
|
|
stroke-width: 3;
|
|
}
|
|
${ft(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"),bt=_t,wt={get db(){return new ut},renderer:mt,parser:pt,styles:bt};export{wt as diagram};
|
|
//# sourceMappingURL=mindmap-definition-VGOIOE7T-CeUItXNX.chunk.mjs.map
|