"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["vendors-node_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-KOZQBZVT_mjs"],{"./node_modules/mermaid/dist/chunks/mermaid.core/chunk-GLLZNHP4.mjs":function(fe,Y,y){y.d(Y,{o:function(){return F}});var J=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-VIW5F6AA.mjs"),F=(0,J.K2)(()=>`
  /* Font Awesome icon styling - consolidated */
  .label-icon {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
  }
  
  .node .label-icon path {
    fill: currentColor;
    stroke: revert;
    stroke-width: revert;
  }
`,"getIconStyles")},"./node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-KOZQBZVT.mjs":function(fe,Y,y){y.d(Y,{diagram:function(){return Pe}});var J=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-GLLZNHP4.mjs"),F=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-MRT3R2DC.mjs"),Q=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-CV3G5MRU.mjs"),Be=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-JSVUIEYQ.mjs"),We=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-7RNWAQOT.mjs"),Ve=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-62K37W7T.mjs"),Fe=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.mjs"),pe=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-T57MJCP2.mjs"),i=y("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-VIW5F6AA.mjs"),me=y("./node_modules/khroma/dist/methods/is_dark.js"),ae=y("./node_modules/khroma/dist/methods/lighten.js"),oe=y("./node_modules/khroma/dist/methods/darken.js"),z=function(){var e=(0,i.K2)(function(I,s,n,a){for(n=n||{},a=I.length;a--;n[I[a]]=s);return n},"o"),d=[1,4],f=[1,13],r=[1,12],g=[1,15],D=[1,16],_=[1,20],l=[1,19],O=[6,7,8],A=[1,26],u=[1,24],T=[1,25],b=[6,7,11],W=[1,31],L=[6,7,11,24],M=[1,6,13,16,17,20,23],k=[1,35],K=[1,36],x=[1,6,7,11,13,16,17,20,23],V=[1,38],R={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,i.K2)(function(s,n,a,o,h,t,P){var c=t.length-1;switch(h){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: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:f,7:[1,10],9:9,12:11,13:r,14:14,16:g,17:D,18:17,19:18,20:_,23:l},e(O,[2,3]),{1:[2,2]},e(O,[2,4]),e(O,[2,5]),{1:[2,6],6:f,12:21,13:r,14:14,16:g,17:D,18:17,19:18,20:_,23:l},{6:f,9:22,12:11,13:r,14:14,16:g,17:D,18:17,19:18,20:_,23:l},{6:A,7:u,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:_,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:W}),e(b,[2,22]),e(b,[2,23]),e(L,[2,25]),e(L,[2,26]),e(L,[2,28],{20:[1,32]}),{21:[1,33]},{6:A,7:u,10:34,11:T},{1:[2,7],6:f,12:21,13:r,14:14,16:g,17:D,18:17,19:18,20:_,23:l},e(M,[2,14],{7:k,11:K}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(b,[2,16],{15:37,24:W}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:V}),e(L,[2,31]),{21:[1,39]},{22:[1,40]},e(M,[2,13],{7:k,11:K}),e(x,[2,11]),e(x,[2,12]),e(b,[2,15],{24:V}),e(L,[2,30]),{22:[1,41]},e(L,[2,27]),e(L,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,i.K2)(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:(0,i.K2)(function(s){var n=this,a=[0],o=[],h=[null],t=[],P=this.table,c="",G=0,le=0,he=0,je=2,de=1,we=t.slice.call(arguments,1),m=Object.create(this.lexer),j={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(j.yy[te]=this.yy[te]);m.setInput(s,j.yy),j.yy.lexer=m,j.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var ne=m.yylloc;t.push(ne);var Me=m.options&&m.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ue(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}(0,i.K2)(Ue,"popStack");function ue(){var S;return S=o.pop()||m.lex()||de,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}(0,i.K2)(ue,"lex");for(var E,se,w,N,Ge,ie,B={},H,C,ge,Z;;){if(w=a[a.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((E===null||typeof E>"u")&&(E=ue()),N=P[w]&&P[w][E]),typeof N>"u"||!N.length||!N[0]){var re="";Z=[];for(H in P[w])this.terminals_[H]&&H>je&&Z.push("'"+this.terminals_[H]+"'");m.showPosition?re="Parse error on line "+(G+1)+`:
`+m.showPosition()+`
Expecting `+Z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":re="Parse error on line "+(G+1)+": Unexpected "+(E==de?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(re,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:ne,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+E);switch(N[0]){case 1:a.push(E),h.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,se?(E=se,se=null):(le=m.yyleng,c=m.yytext,G=m.yylineno,ne=m.yylloc,he>0&&he--);break;case 2:if(C=this.productions_[N[1]][1],B.$=h[h.length-C],B._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},Me&&(B._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),ie=this.performAction.apply(B,[c,le,G,j.yy,N[1],h,t].concat(we)),typeof ie<"u")return ie;C&&(a=a.slice(0,-1*C*2),h=h.slice(0,-1*C),t=t.slice(0,-1*C)),a.push(this.productions_[N[1]][0]),h.push(B.$),t.push(B._$),ge=P[a[a.length-2]][a[a.length-1]],a.push(ge);break;case 3:return!0}}return!0},"parse")},ee=function(){var I={EOF:1,parseError:(0,i.K2)(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:(0,i.K2)(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,i.K2)(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:(0,i.K2)(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),a.length-1&&(this.yylineno-=a.length-1);var h=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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(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:(0,i.K2)(function(s){this.unput(this.match.slice(s))},"less"),pastInput:(0,i.K2)(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+n+"^"},"showPosition"),test_match:(0,i.K2)(function(s,n){var a,o,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),o=s[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,a,o;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(a=this._input.match(this.rules[h[t]]),a&&(!n||a[0].length>n[0].length)){if(n=a,o=t,this.options.backtrack_lexer){if(s=this.test_match(a,h[t]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,h[o]),s!==!1?s:!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:(0,i.K2)(function(){var n=this.next();return n||this.lex()},"lex"),begin:(0,i.K2)(function(n){this.conditionStack.push(n)},"begin"),popState:(0,i.K2)(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(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,i.K2)(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(n){this.begin(n)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(n,a,o,h){var t=h;switch(o){case 0:return this.pushState("shapeData"),a.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:const P=/\n\s*/g;return a.yytext=a.yytext.replace(P,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",a.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",a.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),n.getLogger().trace("node end ...",a.yytext),"NODE_DEND";break;case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return n.getLogger().trace("Long description:",a.yytext),21;break;case 42:return n.getLogger().trace("Long description:",a.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\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:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return I}();R.lexer=ee;function U(){this.yy={}}return(0,i.K2)(U,"Parser"),U.prototype=R,R.Parser=U,new U}();z.parser=z;var _e=z,v=[],X=[],q=0,$={},ke=(0,i.K2)(()=>{v=[],X=[],q=0,$={}},"clear"),ye=(0,i.K2)(e=>{if(v.length===0)return null;const d=v[0].level;let f=null;for(let r=v.length-1;r>=0;r--)if(v[r].level===d&&!f&&(f=v[r]),v[r].level<d)throw new Error('Items without section detected, found section ("'+v[r].label+'")');return e===f?.level?null:f},"getSection"),ce=(0,i.K2)(function(){return X},"getSections"),be=(0,i.K2)(function(){const e=[],d=[],f=ce(),r=(0,i.D7)();for(const g of f){const D={id:g.id,label:(0,i.jZ)(g.label??"",r),isGroup:!0,ticket:g.ticket,shape:"kanbanSection",level:g.level,look:r.look};d.push(D);const _=v.filter(l=>l.parentId===g.id);for(const l of _){const O={id:l.id,parentId:g.id,label:(0,i.jZ)(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};d.push(O)}}return{nodes:d,edges:e,other:{},config:(0,i.D7)()}},"getData"),Ee=(0,i.K2)((e,d,f,r,g)=>{const D=(0,i.D7)();let _=D.mindmap?.padding??i.UI.mindmap.padding;switch(r){case p.ROUNDED_RECT:case p.RECT:case p.HEXAGON:_*=2}const l={id:(0,i.jZ)(d,D)||"kbn"+q++,level:e,label:(0,i.jZ)(f,D),width:D.mindmap?.maxNodeWidth??i.UI.mindmap.maxNodeWidth,padding:_,isGroup:!1};if(g!==void 0){let A;g.includes(`
`)?A=g+`
`:A=`{
`+g+`
}`;const u=(0,F.H)(A,{schema:F.r});if(u.shape&&(u.shape!==u.shape.toLowerCase()||u.shape.includes("_")))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);u?.shape&&u.shape==="kanbanItem"&&(l.shape=u?.shape),u?.label&&(l.label=u?.label),u?.icon&&(l.icon=u?.icon.toString()),u?.assigned&&(l.assigned=u?.assigned.toString()),u?.ticket&&(l.ticket=u?.ticket.toString()),u?.priority&&(l.priority=u?.priority)}const O=ye(e);O?l.parentId=O.id||"kbn"+q++:X.push(l),v.push(l)},"addNode"),p={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},De=(0,i.K2)((e,d)=>{switch(i.Rm.debug("In get type",e,d),e){case"[":return p.RECT;case"(":return d===")"?p.ROUNDED_RECT:p.CLOUD;case"((":return p.CIRCLE;case")":return p.CLOUD;case"))":return p.BANG;case"{{":return p.HEXAGON;default:return p.DEFAULT}},"getType"),Se=(0,i.K2)((e,d)=>{$[e]=d},"setElementForId"),ve=(0,i.K2)(e=>{if(!e)return;const d=(0,i.D7)(),f=v[v.length-1];e.icon&&(f.icon=(0,i.jZ)(e.icon,d)),e.class&&(f.cssClasses=(0,i.jZ)(e.class,d))},"decorateNode"),Le=(0,i.K2)(e=>{switch(e){case p.DEFAULT:return"no-border";case p.RECT:return"rect";case p.ROUNDED_RECT:return"rounded-rect";case p.CIRCLE:return"circle";case p.CLOUD:return"cloud";case p.BANG:return"bang";case p.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ne=(0,i.K2)(()=>i.Rm,"getLogger"),Oe=(0,i.K2)(e=>$[e],"getElementById"),xe={clear:ke,addNode:Ee,getSections:ce,getData:be,nodeType:p,getType:De,setElementForId:Se,decorateNode:ve,type2Str:Le,getLogger:Ne,getElementById:Oe},Ie=xe,Ae=(0,i.K2)(async(e,d,f,r)=>{i.Rm.debug(`Rendering kanban diagram
`+e);const D=r.db.getData(),_=(0,i.D7)();_.htmlLabels=!1;const l=(0,pe.D)(d),O=l.append("g");O.attr("class","sections");const A=l.append("g");A.attr("class","items");const u=D.nodes.filter(k=>k.isGroup);let T=0;const b=10,W=[];let L=25;for(const k of u){const K=_?.kanban?.sectionWidth||200;T=T+1,k.x=K*T+(T-1)*b/2,k.width=K,k.y=0,k.height=K*3,k.rx=5,k.ry=5,k.cssClasses=k.cssClasses+" section-"+T;const x=await(0,Q.U)(O,k);L=Math.max(L,x?.labelBBox?.height),W.push(x)}let M=0;for(const k of u){const K=W[M];M=M+1;const x=_?.kanban?.sectionWidth||200,V=-x*3/2+L;let R=V;const ee=D.nodes.filter(s=>s.parentId===k.id);for(const s of ee){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=k.x,s.width=x-1.5*b;const a=(await(0,Q.on)(A,s,{config:_})).node().getBBox();s.y=R+a.height/2,await(0,Q.U_)(s),R=s.y+a.height/2+b/2}const U=K.cluster.select("rect"),I=Math.max(R-V+3*b,50)+(L-25);U.attr("height",I)}(0,i.ot)(void 0,l,_.mindmap?.padding??i.UI.kanban.padding,_.mindmap?.useMaxWidth??i.UI.kanban.useMaxWidth)},"draw"),Ce={draw:Ae},Te=(0,i.K2)(e=>{let d="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],(0,me.A)(e["lineColor"+r])?e["lineColor"+r]=(0,ae.A)(e["lineColor"+r],20):e["lineColor"+r]=(0,oe.A)(e["lineColor"+r],20);const f=(0,i.K2)((r,g)=>e.darkMode?(0,oe.A)(r,g):(0,ae.A)(r,g),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const g=""+(17-3*r);d+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path  {
      fill: ${f(e["cScale"+r],10)};
      stroke: ${f(e["cScale"+r],10)};

    }
    .section-${r-1} text {
     fill: ${e["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${e["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${g};
    }
    .section-${r-1} line {
      stroke: ${e["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.background};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .kanban-ticket-link {
    fill: ${e.background};
    stroke: ${e.nodeBorder};
    text-decoration: underline;
  }
    `}return d},"genSections"),Ke=(0,i.K2)(e=>`
  .edge {
    stroke-width: 3;
  }
  ${Te(e)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .cluster-label, .label {
    color: ${e.textColor};
    fill: ${e.textColor};
    }
  .kanban-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
    ${(0,J.o)()}
`,"getStyles"),Re=Ke,Pe={db:Ie,renderer:Ce,parser:_e,styles:Re}}}]);
