You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
|
9 months ago
|
"use strict";exports.id=12,exports.ids=[12],exports.modules={86247:(t,i,e)=>{e.d(i,{a:()=>l,c:()=>o});var s=e(15537),n=e(66136),a=e(55085);function h(t,i,e){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",i*e-.1+"em").attr("dy",e+"em")}function o(t,i,e){var s;let n=t.append("text"),a=h(n,1,i);r(a,[{content:e,type:"normal"}]);let o=null==(s=a.node())?void 0:s.getBoundingClientRect();return o&&n.remove(),o}function r(t,i){t.text(""),i.forEach((i,e)=>{let s=t.append("tspan").attr("font-style","emphasis"===i.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===i.type?"bold":"normal");0===e?s.text(i.content):s.text(" "+i.content)})}let l=(t,i="",{style:e="",isTitle:o=!1,classes:l="",useHtmlLabels:c=!0,isNode:g=!0,width:u=200,addSvgBackground:x=!1}={})=>{if(s.l.info("createText",i,e,o,l,c,g,x),!c)return function(t,i,e,s=!1){let n=i.append("g"),a=n.insert("rect").attr("class","background"),o=n.append("text").attr("y","-10.1"),l=0;for(let i of e){let e=i=>(function(t,i,e){let s=t.append("text"),n=h(s,1,1.1);r(n,e);let a=n.node().getComputedTextLength();return s.remove(),a})(n,0,i)<=t;for(let t of e(i)?[i]:function(t,i){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return function t(i,e,s=[],n=[]){if(0===i.length)return n.length>0&&s.push(n),s.length>0?s:[];let a="";" "===i[0].content&&(a=" ",i.shift());let h=i.shift()??{content:" ",type:"normal"},o=[...n];if(""!==a&&o.push({content:a,type:"normal"}),o.push(h),e(o))return t(i,e,s,o);if(n.length>0)s.push(n),i.unshift(h);else if(h.content){var r;let[t,n]=function t(i,e,s,n){if(0===s.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[a,...h]=s,o=[...e,a];return i([{content:o.join(""),type:n}])?t(i,o,h,n):(0===e.length&&a&&(e.push(a),s.shift()),[{content:e.join(""),type:n},{content:s.join(""),type:n}])}(e,[],(r=h.content,Intl.Segmenter?[...new Intl.Segmenter().segment(r)].map(t=>t.segment):[...r]),h.type);s.push([t]),n.content&&i.unshift(n)}return t(i,e,s)}(t,i)}(i,e))r(h(o,l,1.1),t),l++}if(!s)return o.node();{let t=o.node().getBBox();return a.attr("x",-2).attr("y",-2).attr("width",t.width+4).attr("height",t.height+4),n.node()}}(u,t,function(t){let i=function(t){let i=t.replace(/\n{2,}/g,"\n");return(0,a.Z)(i)}(t),{children:e}=(0,n.V)(i),s=[[]],h=0;return e.forEach(t=>{"paragraph"===t.type&&t.children.forEach(t=>{!function t(i,e="normal"){"text"===i.type?i.value.split("\n").forEach((t,i)=>{0!==i&&(h++,s.push([])),t.split(" ").forEach(t=>{t&&s[h].push({content:t,type:e})})}):("strong"===i.type||"emphasis"===i.type)&&i.children.forEach(e=>{t(e,i.type)})}(t)})}),s}(i),x);{let a=function(t){let{children:i}=(0,n.V)(t);return i.map(function t(i){return"text"===i.type?i.value.replace(/\n/g,"<br/>"):"strong"===i.type?`<strong>${i.children.map(t).join("")}</strong>`:"emphasis"===i.type?`<em>${i.children.map(t).join("")}</em>`:"paragraph"===i.type?`<p>${i.children.map(t).join("")}</p>`:`Unsupported markdown: ${i.type}`}).join("")}(i);return function(t,i,e,s,n=!1){var a;let h=t.append("foreignObject"),o=h.append("xhtml:div"),r=i.label,l=i.isNode?"nodeLabel":"edgeLabel";o.html(`
|
||
|
|
<span class="${l} ${s}" `+(i.labelStyle?'style="'+i.labelStyle+'"':"")+">"+r+"</span>"),(a=i.labelStyle)&&o.attr("style",a),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("max-width",e+"px"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let c=o.node().getBoundingClientRect();return c.width===e&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",e+"px"),c=o.node().getBoundingClientRect()),h.style("width",c.width),h.style("height",c.height),h.node()}(t,{isNode:g,label:(0,s.J)(a).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e.replace("fill:","color:")},u,l,x)}}},32012:(t,i,e)=>{let s;e.d(i,{diagram:()=>B});var n=e(15537),a=e(86247),h=e(3896);e(48869),e(43795),e(57581);var o=function(){var t=function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],a=[1,6],h=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],r=[1,25],l=[1,26],c=[1,28],g=[1,29],u=[1,30],x=[1,31],p=[1,32],d=[1,33],f=[1,34],y=[1,35],m=[1,36],b=[1,37],w=[1,43],A=[1,42],S=[1,47],C=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],_=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],R=[1,64],D={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(t,i,e,s,n,a,h){var o=a.length-1;switch(n){case 5:s.setOrientation(a[o]);break;case 9:s.setDiagramTitle(a[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},a[o]);break;case 13:s.setLineData(a[o-1],a[o]);break;case 14:s.setBarData({text:"",type:"text"},a[o]);break;case 15:s.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=a[o-1];break;case 20:this.$=[Number(a[o-2]),...a[o]];break;case 21:this.$=[Number(a[o])];break;case 22:s.setXAxisTitle(a[o]);break;case 23:s.setXAxisTitle(a[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(a[o]);break;case 26:s.setXAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 28:this.$=[a[o-2],...a[o]];break;case 29:this.$=[a[o]];break;case 30:s.setYAxisTitle(a[o]);break;case 31:s.setYAxisTitle(a[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 37:case 38:this.$={text:a[o],type:"text"};break;case 39:this.$={text:a[o],type:"markdown"};break;case 40:this.$=a[o];break;case 41:this.$=a[o-1]+""+a[o]}},table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:
|