vendor: 4,385 bytes, lines 1-3
1"use strict";(()=>{(self.webpackChunk=self.webpackChunk||[]).push([["vendors-node_modules_pnpm_mermaid_11_12_3_node_modules_mermaid_dist_chunks_mermaid_core_timel-31e3b4"],{"./node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs"(Ut,xt,A){A.d(xt,{diagram:()=>Vt});var z=A("./node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs"),i=A("./node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.mjs"),$=A("./node_modules/.pnpm/[email protected]/node_modules/d3/src/index.js"),kt=A("./node_modules/.pnpm/[email protected]/node_modules/khroma/dist/methods/is_dark.js"),vt=A("./node_modules/.pnpm/[email protected]/node_modules/khroma/dist/methods/lighten.js"),bt=A("./node_modules/.pnpm/[email protected]/node_modules/khroma/dist/methods/darken.js"),J=(function(){var n=(0,i.K2)(function(f,r,a,c){for(a=a||{},c=f.length;c--;a[f[c]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],s=[1,11],d=[1,12],h=[1,13],g=[1,16],m=[1,17],p={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:(0,i.K2)(function(r,a,c,u,y,o,E){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:s,16:d,17:h,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:s,16:d,17:h,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:(0,i.K2)(function(r,a){if(a.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=a,c}},"parseError"),parse:(0,i.K2)(function(r){var a=this,c=[0],u=[],y=[null],o=[],E=this.table,k="",I=0,N=0,O=0,mt=2,R=1,b=o.slice.call(arguments,1),_=Object.create(this.lexer),S={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(S.yy[L]=this.yy[L]);_.setInput(r,S.yy),S.yy.lexer=_,S.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var C=_.yylloc;o.push(C);var Y=_.options&&_.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(K){c.length=c.length-2*K,y.length=y.length-K,o.length=o.length-K}(0,i.K2)(jt,"popStack");function ft(){var K;return K=u.pop()||_.lex()||R,typeof K!="number"&&(K instanceof Array&&(u=K,K=u.pop()),K=a.symbols_[K]||K),K}(0,i.K2)(ft,"lex");for(var w,q,H,T,Gt,D,F={},U,M,_t,G;;){if(H=c[c.length-1],this.defaultActions[H]?T=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=ft()),T=E[H]&&E[H][w]),typeof T>"u"||!T.length||!T[0]){var tt="";G=[];for(U in E[H])this.terminals_[U]&&U>mt&&G.push("'"+this.terminals_[U]+"'");_.showPosition?tt="Parse error on line "+(I+1)+`: 2`+_.showPosition()+` 3Expecting `+G.join(", ")+", got '"+(this.terminals_[w]||w)+"'":tt="Parse error on line "+(I+1)+": Unexpected "+(w==R?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(tt,{text:_.match,token:this.terminals_[w]||w,line:_.yylineno,loc:C,expected:G})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);
vendor: 9,833 bytes, lines 3-6
3switch(T[0]){case 1:c.push(w),y.push(_.yytext),o.push(_.yylloc),c.push(T[1]),w=null,q?(w=q,q=null):(N=_.yyleng,k=_.yytext,I=_.yylineno,C=_.yylloc,O>0&&O--);break;case 2:if(M=this.productions_[T[1]][1],F.$=y[y.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},Y&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),D=this.performAction.apply(F,[k,N,I,S.yy,T[1],y,o].concat(b)),typeof D<"u")return D;M&&(c=c.slice(0,-1*M*2),y=y.slice(0,-1*M),o=o.slice(0,-1*M)),c.push(this.productions_[T[1]][0]),y.push(F.$),o.push(F._$),_t=E[c[c.length-2]][c[c.length-1]],c.push(_t);break;case 3:return!0}}return!0},"parse")},x=(function(){var f={EOF:1,parseError:(0,i.K2)(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:(0,i.K2)(function(r,a){return this.yy=a||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:(0,i.K2)(function(r){var a=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=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),c.length-1&&(this.yylineno-=c.length-1);var y=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),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). 4`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,i.K2)(function(r){this.unput(this.match.slice(r))},"less"),pastInput:(0,i.K2)(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` 5`+a+"^"},"showPosition"),test_match:(0,i.K2)(function(r,a){var c,u,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in y)this[o]=y[o];return!1}return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,c,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),o=0;o<y.length;o++)if(c=this._input.match(this.rules[y[o]]),c&&(!a||c[0].length>a[0].length)){if(a=c,u=o,this.options.backtrack_lexer){if(r=this.test_match(c,y[o]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,y[u]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 6`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){var a=this.conditionStack.length-1;return a>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(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,c,u,y){var o=y;switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return f})();p.lexer=x;function v(){this.yy={}}return(0,i.K2)(v,"Parser"),v.prototype=p,p.Parser=v,new v})();J.parser=J;var wt=J,et={};(0,i.VA)(et,{addEvent:()=>ct,addSection:()=>rt,addTask:()=>ot,addTaskOrg:()=>ht,clear:()=>it,default:()=>Et,getCommonDb:()=>st,getSections:()=>at,getTasks:()=>lt});var W="",nt=0,Z=[],V=[],B=[],st=(0,i.K2)(()=>z.Wt,"getCommonDb"),it=(0,i.K2)(function(){Z.length=0,V.length=0,W="",B.length=0,(0,z.IU)()},"clear"),rt=(0,i.K2)(function(n){W=n,Z.push(n)},"addSection"),at=(0,i.K2)(function(){return Z},"getSections"),lt=(0,i.K2)(function(){let n=dt();const t=100;let e=0;for(;!n&&e<t;)n=dt(),e++;return V.push(...B),V},"getTasks"),ot=(0,i.K2)(function(n,t,e){const l={id:nt++,section:W,type:W,task:n,score:t||0,events:e?[e]:[]};B.push(l)},"addTask"),ct=(0,i.K2)(function(n){B.find(e=>e.id===nt-1).events.push(n)},"addEvent"),ht=(0,i.K2)(function(n){const t={section:W,type:W,description:n,task:n,classes:[]};V.push(t)},"addTaskOrg"),dt=(0,i.K2)(function(){const n=(0,i.K2)(function(e){return B[e].processed},"compileTask");let t=!0;for(const[e,l]of B.entries())n(e),t=t&&l.processed;return t},"compileTasks"),Et={clear:it,getCommonDb:st,addSection:rt,getSections:at,getTasks:lt,addTask:ot,addTaskOrg:ht,addEvent:ct},St=12,j=(0,i.K2)(function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),Kt=(0,i.K2)(function(n,t){const l=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(m){const p=(0,$.JLW)().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(0,i.K2)(d,"smile");function h(m){const p=(0,$.JLW)().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(0,i.K2)(h,"sad");function g(m){m.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-
vendor: 5,439 bytes, line 6
65).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return(0,i.K2)(g,"ambivalent"),t.score>3?d(s):t.score<3?h(s):g(s),l},"drawFace"),Tt=(0,i.K2)(function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),ut=(0,i.K2)(function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),l=n.append("text");l.attr("x",t.x),l.attr("y",t.y),l.attr("class","legend"),l.style("text-anchor",t.anchor),t.class!==void 0&&l.attr("class",t.class);const s=l.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),l},"drawText"),It=(0,i.K2)(function(n,t){function e(s,d,h,g,m){return s+","+d+" "+(s+h)+","+d+" "+(s+h)+","+(d+g-m)+" "+(s+h-m*1.2)+","+(d+g)+" "+s+","+(d+g)}(0,i.K2)(e,"genPoints");const l=n.append("polygon");l.attr("points",e(t.x,t.y,50,20,7)),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},"drawLabel"),Rt=(0,i.K2)(function(n,t,e){const l=n.append("g"),s=Q();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,j(l,s),yt(e)(t.text,l,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),pt=-1,Lt=(0,i.K2)(function(n,t,e){const l=t.x+e.width/2,s=n.append("g");pt++,s.append("line").attr("id","task"+pt).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Kt(s,{cx:l,cy:300+(5-t.score)*30,score:t.score});const h=Q();h.x=t.x,h.y=t.y,h.fill=t.fill,h.width=e.width,h.height=e.height,h.class="task task-type-"+t.num,h.rx=3,h.ry=3,j(s,h),yt(e)(t.task,s,h.x,h.y,h.width,h.height,{class:"task"},e,t.colour)},"drawTask"),Mt=(0,i.K2)(function(n,t){j(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),At=(0,i.K2)(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Q=(0,i.K2)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),yt=(function(){function n(s,d,h,g,m,p,x,v){const f=d.append("text").attr("x",h+m/2).attr("y",g+p/2+5).style("font-color",v).style("text-anchor","middle").text(s);l(f,x)}(0,i.K2)(n,"byText");function t(s,d,h,g,m,p,x,v,f){const{taskFontSize:r,taskFontFamily:a}=v,c=s.split(/<br\s*\/?>/gi);for(let u=0;u<c.length;u++){const y=u*r-r*(c.length-1)/2,o=d.append("text").attr("x",h+m/2).attr("y",g).attr("fill",f).style("text-anchor","middle").style("font-size",r).style("font-family",a);o.append("tspan").attr("x",h+m/2).attr("dy",y).text(c[u]),o.attr("y",g+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(o,x)}}(0,i.K2)(t,"byTspan");function e(s,d,h,g,m,p,x,v){const f=d.append("switch"),a=f.append("foreignObject").attr("x",h).attr("y",g).attr("width",m).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,f,h,g,m,p,x,v),l(a,x)}(0,i.K2)(e,"byFo");function l(s,d){for(const h in d)h in d&&s.attr(h,d[h])}return(0,i.K2)(l,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}})(),Pt=(0,i.K2)(function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function X(n,t){n.each(function(){var e=(0,$.Ltv)(this),l=e.text().split(/(\s+|<br>)/).reverse(),s,d=[],h=1.1,g=e.attr("y"),m=parseFloat(e.attr("dy")),p=e.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",m+"em");for(let x=0;x<l.length;x++)s=l[l.length-1-x],d.push(s),p.text(d.join(" ").trim()),(p.node().getComputedTextLength()>t||s==="<br>")&&(d.pop(),p.text(d.join(" ").trim()),s==="<br>"?d=[""]:d=[s],p=e.append("tspan").attr("x",0).attr("y",g).attr("dy",h+"em").text(s))})}(0,i.K2)(X,"wrap");var Nt=(0,i.K2)(function(n,t,e,l){const s=e%St-1,d=n.append("g");t.section=s,d.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const h=d.append("g"),g=d.append("g"),p=g.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,t.width).node().getBBox(),x=l.fontSize?.replace?l.fontSize.replace("px",""):l.fontSize;return t.height=p.height+x*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,g.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Ht(h,t,s,l),t},"drawNode"),Ct=(0,i.K2)(function(n,t,e){const l=n.append("g"),d=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,t.width).node().getBBox(),h=e.fontSize?.replace?e.fontSize.replace("px",""):e.fontSize;return l.remove(),d.height+h*1.1*.5+t.padding},"getVirtualNodeHeight"),Ht=(0,i.K2)(function(n,t,e){n.append("path").attr("id","no
6de-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),P={drawRect:j,drawCircle:Tt,drawSection:Rt,drawText:ut,drawLabel:It,drawTask:Lt,drawBackgroundRect:Mt,getTextObj:At,getNoteRect:Q,initGraphics:Pt,drawNode:Nt,getVirtualNodeHeight:Ct},$t=(0,i.K2)(function(n,t,e,l){const s=(0,z.D7)(),d=s.timeline?.leftMargin??50;i.Rm.debug("timeline",l.db);const h=s.securityLevel;let g;h==="sandbox"&&(g=(0,$.Ltv)("#i"+t));const p=(h==="sandbox"?(0,$.Ltv)(g.nodes()[0].contentDocument.body):(0,$.Ltv)("body")).select("#"+t);p.append("g");const x=l.db.getTasks(),v=l.db.getCommonDb().getDiagramTitle();i.Rm.debug("task",x),P.initGraphics(p);const f=l.db.getSections();i.Rm.debug("sections",f);let r=0,a=0,c=0,u=0,y=50+d,o=50;u=50;let E=0,k=!0;f.forEach(function(R){const b={number:E,descr:R,section:E,width:150,padding:20,maxHeight:r},_=P.getVirtualNodeHeight(p,b,s);i.Rm.debug("sectionHeight before draw",_),r=Math.max(r,_+20)});let I=0,N=0;i.Rm.debug("tasks.length",x.length);for(const[R,b]of x.entries()){const _={number:R,descr:b,section:b.section,width:150,padding:20,maxHeight:a},S=P.getVirtualNodeHeight(p,_,s);i.Rm.debug("taskHeight before draw",S),a=Math.max(a,S+20),I=Math.max(I,b.events.length);let L=0;for(const C of b.events){const Y={descr:C,section:b.section,number:b.section,width:150,padding:20,maxHeight:50};L+=P.getVirtualNodeHeight(p,Y,s)}b.events.length>0&&(L+=(b.events.length-1)*10),N=Math.max(N,L)}i.Rm.debug("maxSectionHeight before draw",r),i.Rm.debug("maxTaskHeight before draw",a),f&&f.length>0?f.forEach(R=>{const b=x.filter(C=>C.section===R),_={number:E,descr:R,section:E,width:200*Math.max(b.length,1)-50,padding:20,maxHeight:r};i.Rm.debug("sectionNode",_);const S=p.append("g"),L=P.drawNode(S,_,E,s);i.Rm.debug("sectionNode output",L),S.attr("transform",`translate(${y}, ${u})`),o+=r+50,b.length>0&>(p,b,E,y,o,a,s,I,N,r,!1),y+=200*Math.max(b.length,1),o=u,E++}):(k=!1,gt(p,x,E,y,o,a,s,I,N,r,!0));const O=p.node().getBBox();i.Rm.debug("bounds",O),v&&p.append("text").text(v).attr("x",O.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),c=k?r+a+150:a+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",c).attr("x2",O.width+3*d).attr("y2",c).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,z.ot)(void 0,p,s.timeline?.padding??50,s.timeline?.useMaxWidth??!1)},"draw"),gt=(0,i.K2)(function(n,t,e,l,s,d,h,g,m,p,x){for(const v of t){const f={descr:v.task,section:e,number:e,width:150,padding:20,maxHeight:d};i.Rm.debug("taskNode",f);const r=n.append("g").attr("class","taskWrapper"),c=P.drawNode(r,f,e,h).height;if(i.Rm.debug("taskHeight after draw",c),r.attr("transform",`translate(${l}, ${s})`),d=Math.max(d,c),v.events){const u=n.append("g").attr("class","lineWrapper");let y=d;s+=100,y=y+Wt(n,v.events,e,l,s,h),s-=100,u.append("line").attr("x1",l+190/2).attr("y1",s+d).attr("x2",l+190/2).attr("y2",s+d+100+m+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,x&&!h.timeline?.disableMulticolor&&e++}s=s-10},"drawTasks"),Wt=(0,i.K2)(function(n,t,e,l,s,d){let h=0;const g=s;s=s+100;for(const m of t){const p={descr:m,section:e,number:e,width:150,padding:20,maxHeight:50};i.Rm.debug("eventNode",p);const x=n.append("g").attr("class","eventWrapper"),f=P.drawNode(x,p,e,d).height;h=h+f,x.attr("transform",`translate(${l}, ${s})`),s=s+10+f}return s=g,h},"drawEvents"),Bt={setConf:(0,i.K2)(()=>{},"setConf"),draw:$t},Ot=(0,i.K2)(n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],(0,kt.A)(n["lineColor"+e])?n["lineColor"+e]=(0,vt.A)(n["lineColor"+e],20):n["lineColor"+e]=(0,bt.A)(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const l=""+(17-3*e);t+=` 7 .section-${e-1} rect, .section-${e-1} path, .section-${e-1}
7 circle, .section-${e-1} path { 8 fill: ${n["cScale"+e]}; 9 } 10 .section-${e-1} text { 11 fill: ${n["cScaleLabel"+e]}; 12 } 13 .node-icon-${e-1} { 14 font-size: 40px; 15 color: ${n["cScaleLabel"+e]}; 16 } 17 .section-edge-${e-1}{ 18 stroke: ${n["cScale"+e]}; 19 } 20 .edge-depth-${e-1}{ 21 stroke-width: ${l}; 22 } 23 .section-${e-1} line { 24 stroke: ${n["cScaleInv"+e]} ; 25 stroke-width: 3; 26 } 27 28 .lineWrapper line{ 29 stroke: ${n["cScaleLabel"+e]} ; 30 } 31 32 .disabled, .disabled circle, .disabled text { 33 fill: lightgray; 34 } 35 .disabled text { 36 fill: #efefef; 37 } 38 `}return t},"genSections"),Ft=(0,i.K2)(n=>` 39 .edge { 40 stroke-width: 3; 41 } 42 ${Ot(n)} 43 .section-root rect, .section-root path, .section-root circle { 44 fill: ${n.git0}; 45 } 46 .section-root text { 47 fill: ${n.gitBranchLabel0}; 48 } 49 .icon-container { 50 height:100%; 51 display: flex; 52 justify-content: center; 53 align-items: center; 54 } 55 .edge { 56 fill: none; 57 } 58 .eventWrapper { 59 filter: brightness(120%); 60 } 61`,"getStyles"),zt=Ft,Vt={db:et,renderer:Bt,parser:wt,styles:zt}}}]);})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.