mirror of https://github.com/jpanther/congo.git
1633 lines
2.8 MiB
JavaScript
1633 lines
2.8 MiB
JavaScript
|
(function(yA,xA){typeof exports=="object"&&typeof module<"u"?module.exports=xA():typeof define=="function"&&define.amd?define(xA):(yA=typeof globalThis<"u"?globalThis:yA||self,yA.mermaid=xA())})(this,function(){"use strict";function yA(i){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];var p=Array.from(typeof i=="string"?[i]:i);p[p.length-1]=p[p.length-1].replace(/\r?\n([\t ]*)$/,"");var v=p.reduce(function(E,C){var M=C.match(/\n([\t ]+|(?!\s).)/g);return M?E.concat(M.map(function(P){var B,j;return(j=(B=P.match(/[\t ]/g))===null||B===void 0?void 0:B.length)!==null&&j!==void 0?j:0})):E},[]);if(v.length){var m=new RegExp(`
|
|||
|
[ ]{`+Math.min.apply(Math,v)+"}","g");p=p.map(function(E){return E.replace(m,`
|
|||
|
`)})}p[0]=p[0].replace(/^\r?\n/,"");var b=p[0];return a.forEach(function(E,C){var M=b.match(/(?:^|\n)( *)$/),P=M?M[1]:"",B=E;typeof E=="string"&&E.includes(`
|
|||
|
`)&&(B=String(E).split(`
|
|||
|
`).map(function(j,R){return R===0?j:""+P+j}).join(`
|
|||
|
`)),b+=B+p[C+1]}),b}var xA=60,ILt=xA*60,OLt=ILt*24,A5e=OLt*7,kA=1e3,Wft=xA*kA,NLt=ILt*kA,L5e=OLt*kA,D5e=A5e*kA,Kft="millisecond",EA="second",TA="minute",_A="hour",Gw="day",ON="week",Uw="month",PLt="quarter",v5="year",CA="date",FLt="YYYY-MM-DDTHH:mm:ssZ",BLt="Invalid Date",M5e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I5e=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;const O5e={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var f=["th","st","nd","rd"],p=a%100;return"["+a+(f[(p-20)%10]||f[p]||f[0])+"]"}};var Yft=function(a,f,p){var v=String(a);return!v||v.length>=f?a:""+Array(f+1-v.length).join(p)+a},N5e=function(a){var f=-a.utcOffset(),p=Math.abs(f),v=Math.floor(p/60),m=p%60;return(f<=0?"+":"-")+Yft(v,2,"0")+":"+Yft(m,2,"0")},P5e=function i(a,f){if(a.date()<f.date())return-i(f,a);var p=(f.year()-a.year())*12+(f.month()-a.month()),v=a.clone().add(p,Uw),m=f-v<0,b=a.clone().add(p+(m?-1:1),Uw);return+(-(p+(f-v)/(m?v-b:b-v))||0)},F5e=function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},B5e=function(a){var f={M:Uw,y:v5,w:ON,d:Gw,D:CA,h:_A,m:TA,s:EA,ms:Kft,Q:PLt};return f[a]||String(a||"").toLowerCase().replace(/s$/,"")},R5e=function(a){return a===void 0};const j5e={s:Yft,z:N5e,m:P5e,a:F5e,p:B5e,u:R5e};var NN="en",V9={};V9[NN]=O5e;var Xft=function(a){return a instanceof xU},yU=function i(a,f,p){var v;if(!a)return NN;if(typeof a=="string"){var m=a.toLowerCase();V9[m]&&(v=m),f&&(V9[m]=f,v=m);var b=a.split("-");if(!v&&b.length>1)return i(b[0])}else{var E=a.name;V9[E]=a,v=E}return!p&&v&&(NN=v),v||!p&&NN},ru=function(a,f){if(Xft(a))return a.clone();var p=typeof f=="object"?f:{};return p.date=a,p.args=arguments,new xU(p)},$5e=function(a,f){return ru(a,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})},nl=j5e;nl.l=yU,nl.i=Xft,nl.w=$5e;var z5e=function(a){var f=a.date,p=a.utc;if(f===null)return new Date(NaN);if(nl.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var v=f.match(M5e);if(v){var m=v[2]-1||0,b=(v[7]||"0").substring(0,3);return p?new Date(Date.UTC(v[1],m,v[3]||1,v[4]||0,v[5]||0,v[6]||0,b)):new Date(v[1],m,v[3]||1,v[4]||0,v[5]||0,v[6]||0,b)}}return new Date(f)},xU=function(){function i(f){this.$L=yU(f.locale,null,!0),this.parse(f)}var a=i.prototype;return a.parse=function(p){this.$d=z5e(p),this.$x=p.x||{},this.init()},a.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},a.$utils=function(){return nl},a.isValid=function(){return this.$d.toString()!==BLt},a.isSame=function(p,v){var m=ru(p);return this.startOf(v)<=m&&m<=this.endOf(v)},a.isAfter=function(p,v){return ru(p)<this.startOf(v)},a.isBefore=function(p,v){return this.endOf(v)<ru(p)},a.$g=function(p,v,m){return nl.u(p)?this[v]:this.set(m,p)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(p,v){var m=this,b=nl.u(v)?!0:v,E=nl.p(p),C=function(et,it){var dt=nl.w(m.$u?Date.UTC(m.$y,it,et):new Date(m.$y,it,et),m);return b?dt:dt.endOf(Gw)},M=function(et,it){var dt=[0,0,0,0],Tt=[23,59,59,999];return nl.w(m.toDate()[et].apply(m.toDate("s"),(b?dt:Tt).slice(it)),m)},P=this.$W,B=this.$M,j=this.$D,R="set"+(this.$u?"UTC":"");switch(E){case v5:return b?C(1,0):C(31,11);case Uw:return b?C(1,B):C(0,B+1);case ON:{var H=this.$locale().weekStart||0,Y=(P<H?P+7:P)-H;return C(b?j-Y:j+(6-Y),B)}case Gw:case CA:return M(R+"Hours",0);case _A:return M(R+"Minutes",1);case TA:return M(R+"Seconds",2);case EA:return M(R+"Milliseconds",3);default:return this.clone()}},a.endOf=function(p){return this.startOf(p,!1)},a.$set=function(p,v){var m,b=nl.p(p),E="set"+(this.$u?"UTC":""),C=(m={},m[Gw]=E+"Date",m[CA]=E+"Date",m[Uw]=E+"Month",m[v5]=E+"FullYear",m[_A]=E+"Hours",m[TA]=E+
|
|||
|
`+mo),ke&&(mo=Qw(mo,gt," "),mo=Qw(mo,ht," "),mo=Qw(mo,Mt," ")),dt&&Rt?dt.createHTML(mo):mo},a.setConfig=function(Gi){qn(Gi),Gt=!0},a.clearConfig=function(){xi=null,Gt=!1},a.isValidAttribute=function(Gi,He,Er){xi||qn({});const ci=In(Gi),Xa=In(He);return pp(ci,Xa,Er)},a.addHook=function(Gi,He){typeof He=="function"&&(kt[Gi]=kt[Gi]||[],QN(kt[Gi],He))},a.removeHook=function(Gi){if(kt[Gi])return HMt(kt[Gi])},a.removeHooks=function(Gi){kt[Gi]&&(kt[Gi]=[])},a.removeAllHooks=function(){kt={}},a}var fW=QMt();const dW=/<br\s*\/?>/gi,_Ee=i=>i?tIt(i).replace(/\\n/g,"#br#").split("#br#"):[""],ZMt=i=>fW.sanitize(i),JMt=(i,a)=>{var f;if(((f=a.flowchart)==null?void 0:f.htmlLabels)!==!1){const p=a.securityLevel;p==="antiscript"||p==="strict"?i=ZMt(i):p!=="loose"&&(i=tIt(i),i=i.replace(/</g,"<").replace(/>/g,">"),i=i.replace(/=/g,"="),i=LEe(i))}return i},ag=(i,a)=>i&&(a.dompurifyConfig?i=fW.sanitize(JMt(i,a),a.dompurifyConfig).toString():i=fW.sanitize(JMt(i,a),{FORBID_TAGS:["style"]}).toString(),i),CEe=(i,a)=>typeof i=="string"?ag(i,a):i.flat().map(f=>ag(f,a)),SEe=i=>dW.test(i),AEe=i=>i.split(dW),LEe=i=>i.replace(/#br#/g,"<br/>"),tIt=i=>i.replace(dW,"#br#"),DEe=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},d1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),MEe=function(...i){const a=i.filter(f=>!isNaN(f));return Math.max(...a)},IEe=function(...i){const a=i.filter(f=>!isNaN(f));return Math.min(...a)},JN=function(i){let a=i;if(i.split("~").length-1>=2){let f=a;do a=f,f=a.replace(/~([^\s,:;]+)~/,"<$1>");while(f!=a);return JN(f)}else return a},yi={getRows:_Ee,sanitizeText:ag,sanitizeTextOrArray:CEe,hasBreaks:SEe,splitBreaks:AEe,lineBreakRegex:dW,removeScript:ZMt,getUrl:DEe,evaluate:d1,getMax:MEe,getMin:IEe},gW={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?i+(a-i)*6*f:f<1/2?a:f<2/3?i+(a-i)*(2/3-f)*6:i),hsl2rgb:({h:i,s:a,l:f},p)=>{if(!a)return f*2.55;i/=360,a/=100,f/=100;const v=f<.5?f*(1+a):f+a-f*a,m=2*f-v;switch(p){case"r":return gW.hue2rgb(m,v,i+1/3)*255;case"g":return gW.hue2rgb(m,v,i)*255;case"b":return gW.hue2rgb(m,v,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:f},p)=>{i/=255,a/=255,f/=255;const v=Math.max(i,a,f),m=Math.min(i,a,f),b=(v+m)/2;if(p==="l")return b*100;if(v===m)return 0;const E=v-m,C=b>.5?E/(2-v-m):E/(v+m);if(p==="s")return C*100;switch(v){case i:return((a-f)/E+(a<f?6:0))*60;case a:return((f-i)/E+2)*60;case f:return((i-a)/E+4)*60;default:return-1}}},Sa={channel:gW,lang:{clamp:(i,a,f)=>a>f?Math.min(a,Math.max(f,i)):Math.min(f,Math.max(a,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}}},ik={};for(let i=0;i<=255;i++)ik[i]=Sa.unit.dec2hex(i);const x0={ALL:0,RGB:1,HSL:2};class OEe{constructor(){this.type=x0.ALL}get(){return this.type}set(a){if(this.type&&this.type!==a)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=a}reset(){this.type=x0.ALL}is(a){return this.type===a}}const NEe=OEe;class PEe{constructor(a,f){this.color=f,this.changed=!1,this.data=a,this.type=new NEe}set(a,f){return this.color=f,this.changed=!1,this.data=a,this.type.type=x0.ALL,this}_ensureHSL(){const a=this.data,{h:f,s:p,l:v}=a;f===void 0&&(a.h=Sa.channel.rgb2hsl(a,"h")),p===void 0&&(a.s=Sa.channel.rgb2hsl(a,"s")),v===void 0&&(a.l=Sa.channel.rgb2hsl(a,"l"))}_ensureRGB(){const a=this.data,{r:f,g:p,b:v}=a;f===void 0&&(a.r=Sa.channel.hsl2rgb(a,"r")),p===void 0&&(a.g=Sa.channel.hsl2rgb(a,"g")),v===void 0&&(a.b=Sa.channel.hsl2rgb(a,"b"))}get r(){const a=this.data,f=a.r;return!this.type.is(x0.HSL)&&f!==void 0?f:(this._ensureHSL(),Sa.channel.hsl2rgb(a,"r"))}get g(){const a=this.data,f
|
|||
|
|
|||
|
`+i.mark.snippet),p+" "+f):p}function eP(i,a){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=a,this.message=uIt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}eP.prototype=Object.create(Error.prototype),eP.prototype.constructor=eP,eP.prototype.toString=function(a){return this.name+": "+uIt(this,a)};var T5=eP;function ndt(i,a,f,p,v){var m="",b="",E=Math.floor(v/2)-1;return p-a>E&&(m=" ... ",a=p-E+m.length),f-p>E&&(b=" ...",f=p+E-b.length),{str:m+i.slice(a,f).replace(/\t/g,"→")+b,pos:p-a+m.length}}function rdt(i,a){return cg.repeat(" ",a-i.length)+i}function oTe(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var f=/\r?\n|\r|\0/g,p=[0],v=[],m,b=-1;m=f.exec(i.buffer);)v.push(m.index),p.push(m.index+m[0].length),i.position<=m.index&&b<0&&(b=p.length-2);b<0&&(b=p.length-1);var E="",C,M,P=Math.min(i.line+a.linesAfter,v.length).toString().length,B=a.maxLength-(a.indent+P+3);for(C=1;C<=a.linesBefore&&!(b-C<0);C++)M=ndt(i.buffer,p[b-C],v[b-C],i.position-(p[b]-p[b-C]),B),E=cg.repeat(" ",a.indent)+rdt((i.line-C+1).toString(),P)+" | "+M.str+`
|
|||
|
`+E;for(M=ndt(i.buffer,p[b],v[b],i.position,B),E+=cg.repeat(" ",a.indent)+rdt((i.line+1).toString(),P)+" | "+M.str+`
|
|||
|
`,E+=cg.repeat("-",a.indent+P+3+M.pos)+`^
|
|||
|
`,C=1;C<=a.linesAfter&&!(b+C>=v.length);C++)M=ndt(i.buffer,p[b+C],v[b+C],i.position-(p[b]-p[b+C]),B),E+=cg.repeat(" ",a.indent)+rdt((i.line+C+1).toString(),P)+" | "+M.str+`
|
|||
|
`;return E.replace(/\n$/,"")}var cTe=oTe,uTe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lTe=["scalar","sequence","mapping"];function hTe(i){var a={};return i!==null&&Object.keys(i).forEach(function(f){i[f].forEach(function(p){a[String(p)]=f})}),a}function fTe(i,a){if(a=a||{},Object.keys(a).forEach(function(f){if(uTe.indexOf(f)===-1)throw new T5('Unknown option "'+f+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(f){return f},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=hTe(a.styleAliases||null),lTe.indexOf(this.kind)===-1)throw new T5('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var k0=fTe;function lIt(i,a){var f=[];return i[a].forEach(function(p){var v=f.length;f.forEach(function(m,b){m.tag===p.tag&&m.kind===p.kind&&m.multi===p.multi&&(v=b)}),f[v]=p}),f}function dTe(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,f;function p(v){v.multi?(i.multi[v.kind].push(v),i.multi.fallback.push(v)):i[v.kind][v.tag]=i.fallback[v.tag]=v}for(a=0,f=arguments.length;a<f;a+=1)arguments[a].forEach(p);return i}function idt(i){return this.extend(i)}idt.prototype.extend=function(a){var f=[],p=[];if(a instanceof k0)p.push(a);else if(Array.isArray(a))p=p.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(f=f.concat(a.implicit)),a.explicit&&(p=p.concat(a.explicit));else throw new T5("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(m){if(!(m instanceof k0))throw new T5("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(m.loadKind&&m.loadKind!=="scalar")throw new T5("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(m.multi)throw new T5("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),p.forEach(function(m){if(!(m instanceof k0))throw new T5("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var v=Object.create(idt.prototype);return v.implicit=(this.implicit||[]).concat(f),v.explicit=(this.explicit||[]).concat(p),v.compiledImplicit=lIt(v,"implicit"),v.compiledExplicit=lIt(v,"explicit"),v.compiledTypeMap=dTe(v.compiledImplicit,v.compiledExplicit),v};var gTe=idt,pTe=new k0("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),bTe=new k0("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),vTe=new k0("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),hIt=new gTe({explicit:[pTe,bTe,vTe]});function wTe(i){if(i===null)return!0;var a=i.length;return a===1&&i==="~"||a===4&&(i==="null"||i==="Null"||i==="NULL")}function mTe(){return null}function yTe(i){return i===null}var xTe=new k0("tag:yaml.org,2002:null",{kind:"scalar",resolve:wTe,construct:mTe,predicate:yTe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function kTe(i){if(i===null)return!1;var a=i.length;return a===4&&(i==="true"||i==="True"||i==="TRUE")||a===5&&(i==="false"||i==="False"||i==="FALSE")}function ETe(i){return i==="true"||i==="True"||i==="TRUE"}function TTe(i){return Object.prototype.toString.call(i)==="[object Boolean]"}var _Te=new k0("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kTe,construct:ETe,predicate:TTe,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"F
|
|||
|
\r`;function KTe(i){if(i===null)return!1;var a,f,p=0,v=i.length,m=sdt;for(f=0;f<v;f++)if(a=m.indexOf(i.charAt(f)),!(a>64)){if(a<0)return!1;p+=6}return p%8===0}function YTe(i){var a,f,p=i.replace(/[\r\n=]/g,""),v=p.length,m=sdt,b=0,E=[];for(a=0;a<v;a++)a%4===0&&a&&(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)),b=b<<6|m.indexOf(p.charAt(a));return f=v%4*6,f===0?(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)):f===18?(E.push(b>>10&255),E.push(b>>2&255)):f===12&&E.push(b>>4&255),new Uint8Array(E)}function XTe(i){var a="",f=0,p,v,m=i.length,b=sdt;for(p=0;p<m;p++)p%3===0&&p&&(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]),f=(f<<8)+i[p];return v=m%3,v===0?(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]):v===2?(a+=b[f>>10&63],a+=b[f>>4&63],a+=b[f<<2&63],a+=b[64]):v===1&&(a+=b[f>>2&63],a+=b[f<<4&63],a+=b[64],a+=b[64]),a}function QTe(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var ZTe=new k0("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KTe,construct:YTe,predicate:QTe,represent:XTe}),JTe=Object.prototype.hasOwnProperty,t_e=Object.prototype.toString;function e_e(i){if(i===null)return!0;var a=[],f,p,v,m,b,E=i;for(f=0,p=E.length;f<p;f+=1){if(v=E[f],b=!1,t_e.call(v)!=="[object Object]")return!1;for(m in v)if(JTe.call(v,m))if(!b)b=!0;else return!1;if(!b)return!1;if(a.indexOf(m)===-1)a.push(m);else return!1}return!0}function n_e(i){return i!==null?i:[]}var r_e=new k0("tag:yaml.org,2002:omap",{kind:"sequence",resolve:e_e,construct:n_e}),i_e=Object.prototype.toString;function s_e(i){if(i===null)return!0;var a,f,p,v,m,b=i;for(m=new Array(b.length),a=0,f=b.length;a<f;a+=1){if(p=b[a],i_e.call(p)!=="[object Object]"||(v=Object.keys(p),v.length!==1))return!1;m[a]=[v[0],p[v[0]]]}return!0}function a_e(i){if(i===null)return[];var a,f,p,v,m,b=i;for(m=new Array(b.length),a=0,f=b.length;a<f;a+=1)p=b[a],v=Object.keys(p),m[a]=[v[0],p[v[0]]];return m}var o_e=new k0("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:s_e,construct:a_e}),c_e=Object.prototype.hasOwnProperty;function u_e(i){if(i===null)return!0;var a,f=i;for(a in f)if(c_e.call(f,a)&&f[a]!==null)return!1;return!0}function l_e(i){return i!==null?i:{}}var h_e=new k0("tag:yaml.org,2002:set",{kind:"mapping",resolve:u_e,construct:l_e}),f_e=zTe.extend({implicit:[GTe,WTe],explicit:[ZTe,r_e,o_e,h_e]}),ak=Object.prototype.hasOwnProperty,kW=1,gIt=2,pIt=3,EW=4,adt=1,d_e=2,bIt=3,g_e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p_e=/[\x85\u2028\u2029]/,b_e=/[,\[\]\{\}]/,vIt=/^(?:!|!!|![a-z\-]+!)$/i,wIt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mIt(i){return Object.prototype.toString.call(i)}function h3(i){return i===10||i===13}function sE(i){return i===9||i===32}function sp(i){return i===9||i===32||i===10||i===13}function HA(i){return i===44||i===91||i===93||i===123||i===125}function v_e(i){var a;return 48<=i&&i<=57?i-48:(a=i|32,97<=a&&a<=102?a-97+10:-1)}function w_e(i){return i===120?2:i===117?4:i===85?8:0}function m_e(i){return 48<=i&&i<=57?i-48:-1}function yIt(i){return i===48?"\0":i===97?"\x07":i===98?"\b":i===116||i===9?" ":i===110?`
|
|||
|
`:i===118?"\v":i===102?"\f":i===114?"\r":i===101?"\x1B":i===32?" ":i===34?'"':i===47?"/":i===92?"\\":i===78?"
":i===95?" ":i===76?"\u2028":i===80?"\u2029":""}function y_e(i){return i<=65535?String.fromCharCode(i):String.fromCharCode((i-65536>>10)+55296,(i-65536&1023)+56320)}for(var xIt=new Array(256),kIt=new Array(256),VA=0;VA<256;VA++)xIt[VA]=yIt(VA)?1:0,kIt[VA]=yIt(VA);function x_e(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||f_e,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function EIt(i,a){var f={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return f.snippet=cTe(f),new T5(a,f)}function $s(i,a){throw EIt(i,a)}function TW(i,a){i.onWarning&&i.onWarning.call(null,EIt(i,a))}var TIt={YAML:function(a,f,p){var v,m,b;a.version!==null&&$s(a,"duplication of %YAML directive"),p.length!==1&&$s(a,"YAML directive accepts exactly one argument"),v=/^([0-9]+)\.([0-9]+)$/.exec(p[0]),v===null&&$s(a,"ill-formed argument of the YAML directive"),m=parseInt(v[1],10),b=parseInt(v[2],10),m!==1&&$s(a,"unacceptable YAML version of the document"),a.version=p[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&TW(a,"unsupported YAML version of the document")},TAG:function(a,f,p){var v,m;p.length!==2&&$s(a,"TAG directive accepts exactly two arguments"),v=p[0],m=p[1],vIt.test(v)||$s(a,"ill-formed tag handle (first argument) of the TAG directive"),ak.call(a.tagMap,v)&&$s(a,'there is a previously declared suffix for "'+v+'" tag handle'),wIt.test(m)||$s(a,"ill-formed tag prefix (second argument) of the TAG directive");try{m=decodeURIComponent(m)}catch{$s(a,"tag prefix is malformed: "+m)}a.tagMap[v]=m}};function ok(i,a,f,p){var v,m,b,E;if(a<f){if(E=i.input.slice(a,f),p)for(v=0,m=E.length;v<m;v+=1)b=E.charCodeAt(v),b===9||32<=b&&b<=1114111||$s(i,"expected valid JSON character");else g_e.test(E)&&$s(i,"the stream contains non-printable characters");i.result+=E}}function _It(i,a,f,p){var v,m,b,E;for(cg.isObject(f)||$s(i,"cannot merge mappings; the provided source object is unacceptable"),v=Object.keys(f),b=0,E=v.length;b<E;b+=1)m=v[b],ak.call(a,m)||(a[m]=f[m],p[m]=!0)}function GA(i,a,f,p,v,m,b,E,C){var M,P;if(Array.isArray(v))for(v=Array.prototype.slice.call(v),M=0,P=v.length;M<P;M+=1)Array.isArray(v[M])&&$s(i,"nested arrays are not supported inside keys"),typeof v=="object"&&mIt(v[M])==="[object Object]"&&(v[M]="[object Object]");if(typeof v=="object"&&mIt(v)==="[object Object]"&&(v="[object Object]"),v=String(v),a===null&&(a={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(m))for(M=0,P=m.length;M<P;M+=1)_It(i,a,m[M],f);else _It(i,a,m,f);else!i.json&&!ak.call(f,v)&&ak.call(a,v)&&(i.line=b||i.line,i.lineStart=E||i.lineStart,i.position=C||i.position,$s(i,"duplicated mapping key")),v==="__proto__"?Object.defineProperty(a,v,{configurable:!0,enumerable:!0,writable:!0,value:m}):a[v]=m,delete f[v];return a}function odt(i){var a;a=i.input.charCodeAt(i.position),a===10?i.position++:a===13?(i.position++,i.input.charCodeAt(i.position)===10&&i.position++):$s(i,"a line break is expected"),i.line+=1,i.lineStart=i.position,i.firstTabInLine=-1}function Bf(i,a,f){for(var p=0,v=i.input.charCodeAt(i.position);v!==0;){for(;sE(v);)v===9&&i.firstTabInLine===-1&&(i.firstTabInLine=i.position),v=i.input.charCodeAt(++i.position);if(a&&v===35)do v=i.input.charCodeAt(++i.position);while(v!==10&&v!==13&&v!==0);if(h3(v))for(odt(i),v=i.input.charCodeAt(i.position),p++,i.lineIndent=0;v===32;)i.lineIndent++,v=i.input.charCodeAt(++i.position);else break}return f!==-1&&p!==0&&i.lineIndent<f&&TW(i,"deficient indentation"),p}function _W(i){var a=i.position,f;return f=i.input.charCodeAt(a),!!((f===45||f===46)&&f===i.input.charCodeAt(a+1)&&f===i.input.charCodeAt(a+2)&&(a+=3,f=i.input.charCodeAt(a),f===0||sp(f)))}function cdt(i,a){a===1?i.resu
|
|||
|
`,a-1))}function k_e(i,a,f){var p,v,m,b,E,C,M,P,B=i.kind,j=i.result,R;if(R=i.input.charCodeAt(i.position),sp(R)||HA(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(v=i.input.charCodeAt(i.position+1),sp(v)||f&&HA(v)))return!1;for(i.kind="scalar",i.result="",m=b=i.position,E=!1;R!==0;){if(R===58){if(v=i.input.charCodeAt(i.position+1),sp(v)||f&&HA(v))break}else if(R===35){if(p=i.input.charCodeAt(i.position-1),sp(p))break}else{if(i.position===i.lineStart&&_W(i)||f&&HA(R))break;if(h3(R))if(C=i.line,M=i.lineStart,P=i.lineIndent,Bf(i,!1,-1),i.lineIndent>=a){E=!0,R=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=C,i.lineStart=M,i.lineIndent=P;break}}E&&(ok(i,m,b,!1),cdt(i,i.line-C),m=b=i.position,E=!1),sE(R)||(b=i.position+1),R=i.input.charCodeAt(++i.position)}return ok(i,m,b,!1),i.result?!0:(i.kind=B,i.result=j,!1)}function E_e(i,a){var f,p,v;if(f=i.input.charCodeAt(i.position),f!==39)return!1;for(i.kind="scalar",i.result="",i.position++,p=v=i.position;(f=i.input.charCodeAt(i.position))!==0;)if(f===39)if(ok(i,p,i.position,!0),f=i.input.charCodeAt(++i.position),f===39)p=i.position,i.position++,v=i.position;else return!0;else h3(f)?(ok(i,p,v,!0),cdt(i,Bf(i,!1,a)),p=v=i.position):i.position===i.lineStart&&_W(i)?$s(i,"unexpected end of the document within a single quoted scalar"):(i.position++,v=i.position);$s(i,"unexpected end of the stream within a single quoted scalar")}function T_e(i,a){var f,p,v,m,b,E;if(E=i.input.charCodeAt(i.position),E!==34)return!1;for(i.kind="scalar",i.result="",i.position++,f=p=i.position;(E=i.input.charCodeAt(i.position))!==0;){if(E===34)return ok(i,f,i.position,!0),i.position++,!0;if(E===92){if(ok(i,f,i.position,!0),E=i.input.charCodeAt(++i.position),h3(E))Bf(i,!1,a);else if(E<256&&xIt[E])i.result+=kIt[E],i.position++;else if((b=w_e(E))>0){for(v=b,m=0;v>0;v--)E=i.input.charCodeAt(++i.position),(b=v_e(E))>=0?m=(m<<4)+b:$s(i,"expected hexadecimal character");i.result+=y_e(m),i.position++}else $s(i,"unknown escape sequence");f=p=i.position}else h3(E)?(ok(i,f,p,!0),cdt(i,Bf(i,!1,a)),f=p=i.position):i.position===i.lineStart&&_W(i)?$s(i,"unexpected end of the document within a double quoted scalar"):(i.position++,p=i.position)}$s(i,"unexpected end of the stream within a double quoted scalar")}function __e(i,a){var f=!0,p,v,m,b=i.tag,E,C=i.anchor,M,P,B,j,R,H=Object.create(null),Y,st,et,it;if(it=i.input.charCodeAt(i.position),it===91)P=93,R=!1,E=[];else if(it===123)P=125,R=!0,E={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=E),it=i.input.charCodeAt(++i.position);it!==0;){if(Bf(i,!0,a),it=i.input.charCodeAt(i.position),it===P)return i.position++,i.tag=b,i.anchor=C,i.kind=R?"mapping":"sequence",i.result=E,!0;f?it===44&&$s(i,"expected the node content, but found ','"):$s(i,"missed comma between flow collection entries"),st=Y=et=null,B=j=!1,it===63&&(M=i.input.charCodeAt(i.position+1),sp(M)&&(B=j=!0,i.position++,Bf(i,!0,a))),p=i.line,v=i.lineStart,m=i.position,UA(i,a,kW,!1,!0),st=i.tag,Y=i.result,Bf(i,!0,a),it=i.input.charCodeAt(i.position),(j||i.line===p)&&it===58&&(B=!0,it=i.input.charCodeAt(++i.position),Bf(i,!0,a),UA(i,a,kW,!1,!0),et=i.result),R?GA(i,E,H,st,Y,et,p,v,m):B?E.push(GA(i,null,H,st,Y,et,p,v,m)):E.push(Y),Bf(i,!0,a),it=i.input.charCodeAt(i.position),it===44?(f=!0,it=i.input.charCodeAt(++i.position)):f=!1}$s(i,"unexpected end of the stream within a flow collection")}function C_e(i,a){var f,p,v=adt,m=!1,b=!1,E=a,C=0,M=!1,P,B;if(B=i.input.charCodeAt(i.position),B===124)p=!1;else if(B===62)p=!0;else return!1;for(i.kind="scalar",i.result="";B!==0;)if(B=i.input.charCodeAt(++i.position),B===43||B===45)adt===v?v=B===43?bIt:d_e:$s(i,"repeat of a chomping mode identifier");else if((P=m_e(B))>=0)P===0?$s(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?$s(i,"repeat of an indentation width identifier"):(E=a+P-1,b=!0);else break;if(sE(B)){do B=i.input.charCodeAt(++i.position);while(sE(B));if(B===35)do B=i.input.charCodeAt(++i.position);while(!h3(B)&&B!==0)}for(;B!==0;){for(odt(i),i.li
|
|||
|
`,m?1+C:C):v===adt&&m&&(i.result+=`
|
|||
|
`);break}for(p?sE(B)?(M=!0,i.result+=cg.repeat(`
|
|||
|
`,m?1+C:C)):M?(M=!1,i.result+=cg.repeat(`
|
|||
|
`,C+1)):C===0?m&&(i.result+=" "):i.result+=cg.repeat(`
|
|||
|
`,C):i.result+=cg.repeat(`
|
|||
|
`,m?1+C:C),m=!0,b=!0,C=0,f=i.position;!h3(B)&&B!==0;)B=i.input.charCodeAt(++i.position);ok(i,f,i.position,!1)}return!0}function CIt(i,a){var f,p=i.tag,v=i.anchor,m=[],b,E=!1,C;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=m),C=i.input.charCodeAt(i.position);C!==0&&(i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,$s(i,"tab characters must not be used in indentation")),!(C!==45||(b=i.input.charCodeAt(i.position+1),!sp(b))));){if(E=!0,i.position++,Bf(i,!0,-1)&&i.lineIndent<=a){m.push(null),C=i.input.charCodeAt(i.position);continue}if(f=i.line,UA(i,a,pIt,!1,!0),m.push(i.result),Bf(i,!0,-1),C=i.input.charCodeAt(i.position),(i.line===f||i.lineIndent>a)&&C!==0)$s(i,"bad indentation of a sequence entry");else if(i.lineIndent<a)break}return E?(i.tag=p,i.anchor=v,i.kind="sequence",i.result=m,!0):!1}function S_e(i,a,f){var p,v,m,b,E,C,M=i.tag,P=i.anchor,B={},j=Object.create(null),R=null,H=null,Y=null,st=!1,et=!1,it;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=B),it=i.input.charCodeAt(i.position);it!==0;){if(!st&&i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,$s(i,"tab characters must not be used in indentation")),p=i.input.charCodeAt(i.position+1),m=i.line,(it===63||it===58)&&sp(p))it===63?(st&&(GA(i,B,j,R,H,null,b,E,C),R=H=Y=null),et=!0,st=!0,v=!0):st?(st=!1,v=!0):$s(i,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),i.position+=1,it=p;else{if(b=i.line,E=i.lineStart,C=i.position,!UA(i,f,gIt,!1,!0))break;if(i.line===m){for(it=i.input.charCodeAt(i.position);sE(it);)it=i.input.charCodeAt(++i.position);if(it===58)it=i.input.charCodeAt(++i.position),sp(it)||$s(i,"a whitespace character is expected after the key-value separator within a block mapping"),st&&(GA(i,B,j,R,H,null,b,E,C),R=H=Y=null),et=!0,st=!1,v=!1,R=i.tag,H=i.result;else if(et)$s(i,"can not read an implicit mapping pair; a colon is missed");else return i.tag=M,i.anchor=P,!0}else if(et)$s(i,"can not read a block mapping entry; a multiline key may not be an implicit key");else return i.tag=M,i.anchor=P,!0}if((i.line===m||i.lineIndent>a)&&(st&&(b=i.line,E=i.lineStart,C=i.position),UA(i,a,EW,!0,v)&&(st?H=i.result:Y=i.result),st||(GA(i,B,j,R,H,Y,b,E,C),R=H=Y=null),Bf(i,!0,-1),it=i.input.charCodeAt(i.position)),(i.line===m||i.lineIndent>a)&&it!==0)$s(i,"bad indentation of a mapping entry");else if(i.lineIndent<a)break}return st&&GA(i,B,j,R,H,null,b,E,C),et&&(i.tag=M,i.anchor=P,i.kind="mapping",i.result=B),et}function A_e(i){var a,f=!1,p=!1,v,m,b;if(b=i.input.charCodeAt(i.position),b!==33)return!1;if(i.tag!==null&&$s(i,"duplication of a tag property"),b=i.input.charCodeAt(++i.position),b===60?(f=!0,b=i.input.charCodeAt(++i.position)):b===33?(p=!0,v="!!",b=i.input.charCodeAt(++i.position)):v="!",a=i.position,f){do b=i.input.charCodeAt(++i.position);while(b!==0&&b!==62);i.position<i.length?(m=i.input.slice(a,i.position),b=i.input.charCodeAt(++i.position)):$s(i,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!sp(b);)b===33&&(p?$s(i,"tag suffix cannot contain exclamation marks"):(v=i.input.slice(a-1,i.position+1),vIt.test(v)||$s(i,"named tag handle cannot contain such characters"),p=!0,a=i.position+1)),b=i.input.charCodeAt(++i.position);m=i.input.slice(a,i.position),b_e.test(m)&&$s(i,"tag suffix cannot contain flow indicator characters")}m&&!wIt.test(m)&&$s(i,"tag name cannot contain such characters: "+m);try{m=decodeURIComponent(m)}catch{$s(i,"tag name is malformed: "+m)}return f?i.tag=m:ak.call(i.tagMap,v)?i.tag=i.tagMap[v]+m:v==="!"?i.tag="!"+m:v==="!!"?i.tag="tag:yaml.org,2002:"+m:$s(i,'undeclared tag handle "'+v+'"'),!0}function L_e(i){var a,f;if(f=i.input.charCodeAt(i.position),f!==38)return!1;for(i.anchor!==null&&$s(i,"duplication of an anchor property"),f=i.input.charCodeAt(++i.position),a=i.position;f!==0&&!sp(f)&&!HA(f);)f=i.input.charCodeAt(++i.position);return i.position===a&&$s(i,"name of an anchor node must contain at least one character"),i.anchor=i.input.slice(a,i.position),!0}function D_e(i){var a,f,p;if(p=i.input.charCo
|
|||
|
`),i.charCodeAt(0)===65279&&(i=i.slice(1)));var f=new x_e(i,a),p=i.indexOf("\0");for(p!==-1&&(f.position=p,$s(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)M_e(f);return f.documents}function I_e(i,a,f){a!==null&&typeof a=="object"&&typeof f>"u"&&(f=a,a=null);var p=SIt(i,f);if(typeof a!="function")return p;for(var v=0,m=p.length;v<m;v+=1)a(p[v])}function O_e(i,a){var f=SIt(i,a);if(f.length!==0){if(f.length===1)return f[0];throw new T5("expected a single document in the stream, but found more")}}var N_e=I_e,P_e=O_e,F_e={loadAll:N_e,load:P_e},B_e=hIt,R_e=F_e.load;const AIt=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function j_e(i,a){var p,v;const f=i.match(AIt);if(f){const m=R_e(f[1],{schema:B_e});return m!=null&&m.title&&((p=a.setDiagramTitle)==null||p.call(a,m.title)),m!=null&&m.displayMode&&((v=a.setDisplayMode)==null||v.call(a,m.displayMode)),i.slice(f[0].length)}else return i}const udt=function(i,a,f){const{depth:p,clobber:v}=Object.assign({depth:2,clobber:!1},f);return Array.isArray(a)&&!Array.isArray(i)?(a.forEach(m=>udt(i,m,f)),i):Array.isArray(a)&&Array.isArray(i)?(a.forEach(m=>{i.includes(m)||i.push(m)}),i):i===void 0||p<=0?i!=null&&typeof i=="object"&&typeof a=="object"?Object.assign(i,a):a:(a!==void 0&&typeof i=="object"&&typeof a=="object"&&Object.keys(a).forEach(m=>{typeof a[m]=="object"&&(i[m]===void 0||typeof i[m]=="object")?(i[m]===void 0&&(i[m]=Array.isArray(a[m])?[]:{}),i[m]=udt(i[m],a[m],{depth:p-1,clobber:v})):(v||typeof i[m]!="object"&&typeof a[m]!="object")&&(i[m]=a[m])}),i)},sd=udt,WA=Object.freeze(g1);let ap=sd({},WA),LIt,KA=[],nP=sd({},WA);const CW=(i,a)=>{let f=sd({},i),p={};for(const v of a)IIt(v),p=sd(p,v);if(f=sd(f,p),p.theme&&p.theme in E5){const v=sd({},LIt),m=sd(v.themeVariables||{},p.themeVariables);f.theme&&f.theme in E5&&(f.themeVariables=E5[f.theme].getThemeVariables(m))}return nP=f,FIt(nP),nP},$_e=i=>(ap=sd({},WA),ap=sd(ap,i),i.theme&&E5[i.theme]&&(ap.themeVariables=E5[i.theme].getThemeVariables(i.themeVariables)),CW(ap,KA),ap),z_e=i=>{LIt=sd({},i)},q_e=i=>(ap=sd(ap,i),CW(ap,KA),ap),DIt=()=>sd({},ap),MIt=i=>(FIt(i),sd(nP,i),Ie()),Ie=()=>sd({},nP),IIt=i=>{["secure",...ap.secure??[]].forEach(a=>{i[a]!==void 0&&($t.debug(`Denied attempt to modify a secure key ${a}`,i[a]),delete i[a])}),Object.keys(i).forEach(a=>{a.indexOf("__")===0&&delete i[a]}),Object.keys(i).forEach(a=>{typeof i[a]=="string"&&(i[a].includes("<")||i[a].includes(">")||i[a].includes("url(data:"))&&delete i[a],typeof i[a]=="object"&&IIt(i[a])})},OIt=i=>{i.fontFamily&&(i.themeVariables?i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily}):i.themeVariables={fontFamily:i.fontFamily}),KA.push(i),CW(ap,KA)},SW=(i=ap)=>{KA=[],CW(i,KA)};var NIt=(i=>(i.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",i))(NIt||{});const PIt={},H_e=i=>{PIt[i]||($t.warn(NIt[i]),PIt[i]=!0)},FIt=i=>{i&&(i.lazyLoadedDiagrams||i.loadExternalDiagramsAtStartup)&&H_e("LAZY_LOAD_DEPRECATED")},V_e=function(i,a){for(let f of a)i.attr(f[0],f[1])},G_e=function(i,a,f){let p=new Map;return f?(p.set("width","100%"),p.set("style",`max-width: ${a}px;`)):(p.set("height",i),p.set("width",a)),p},Kb=function(i,a,f,p){const v=G_e(a,f,p);V_e(i,v)},aE=function(i,a,f,p){const v=a.node().getBBox(),m=v.width,b=v.height;$t.info(`SVG bounds: ${m}x${b}`,v);let E=0,C=0;$t.info(`Graph bounds: ${E}x${C}`,i),E=m+f*2,C=b+f*2,$t.info(`Calculated bounds: ${E}x${C}`),Kb(a,C,E,p);const M=`${v.x-f} ${v.y-f} ${v.width+2*f} ${v.height+2*f}`;a.attr("viewBox",M)},AW={},U_e=(i,a,f)=>{let p="";return i in AW&&AW[i]?p=AW[i](f):$t.warn(`No theme found for ${i}`),` & {
|
|||
|
font-family: ${f.fontFamily};
|
|||
|
font-size: ${f.fontSize};
|
|||
|
fill: ${f.textColor}
|
|||
|
}
|
|||
|
|
|||
|
/* Classes common for multiple diagrams */
|
|||
|
|
|||
|
& .error-icon {
|
|||
|
fill: ${f.errorBkgColor};
|
|||
|
}
|
|||
|
& .error-text {
|
|||
|
fill: ${f.errorTextColor};
|
|||
|
stroke: ${f.errorTextColor};
|
|||
|
}
|
|||
|
|
|||
|
& .edge-thickness-normal {
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
& .edge-thickness-thick {
|
|||
|
stroke-width: 3.5px
|
|||
|
}
|
|||
|
& .edge-pattern-solid {
|
|||
|
stroke-dasharray: 0;
|
|||
|
}
|
|||
|
|
|||
|
& .edge-pattern-dashed{
|
|||
|
stroke-dasharray: 3;
|
|||
|
}
|
|||
|
.edge-pattern-dotted {
|
|||
|
stroke-dasharray: 2;
|
|||
|
}
|
|||
|
|
|||
|
& .marker {
|
|||
|
fill: ${f.lineColor};
|
|||
|
stroke: ${f.lineColor};
|
|||
|
}
|
|||
|
& .marker.cross {
|
|||
|
stroke: ${f.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
& svg {
|
|||
|
font-family: ${f.fontFamily};
|
|||
|
font-size: ${f.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
${p}
|
|||
|
|
|||
|
${a}
|
|||
|
`},W_e=(i,a)=>{AW[i]=a},K_e=U_e;let ldt="",LW="",hdt="";const fdt=i=>ag(i,Ie()),ug=function(){ldt="",hdt="",LW=""},lg=function(i){ldt=fdt(i).replace(/^\s+/g,"")},op=function(){return ldt||LW},cp=function(i){hdt=fdt(i).replace(/\n\s+/g,`
|
|||
|
`)},up=function(){return hdt},Yb=function(i){LW=fdt(i)},N2=function(){return LW},BIt=Object.freeze(Object.defineProperty({__proto__:null,clear:ug,default:{getAccTitle:op,setAccTitle:lg,getDiagramTitle:N2,setDiagramTitle:Yb,getAccDescription:up,setAccDescription:cp,clear:ug},getAccDescription:up,getAccTitle:op,getDiagramTitle:N2,setAccDescription:cp,setAccTitle:lg,setDiagramTitle:Yb},Symbol.toStringTag,{value:"Module"}));let oE={};const ddt=function(i,a,f,p){$t.debug("parseDirective is being called",a,f,p);try{if(a!==void 0)switch(a=a.trim(),f){case"open_directive":oE={};break;case"type_directive":if(!oE)throw new Error("currentDirective is undefined");oE.type=a.toLowerCase();break;case"arg_directive":if(!oE)throw new Error("currentDirective is undefined");oE.args=JSON.parse(a);break;case"close_directive":Y_e(i,oE,p),oE=void 0;break}}catch(v){$t.error(`Error while rendering sequenceDiagram directive: ${a} jison context: ${f}`),$t.error(v.message)}},Y_e=function(i,a,f){switch($t.info(`Directive type=${a.type} with args:`,a.args),a.type){case"init":case"initialize":{["config"].forEach(p=>{a.args[p]!==void 0&&(f==="flowchart-v2"&&(f="flowchart"),a.args[f]=a.args[p],delete a.args[p])}),$t.info("sanitize in handleDirective",a.args),JA(a.args),$t.info("sanitize in handleDirective (done)",a.args),OIt(a.args);break}case"wrap":case"nowrap":i&&i.setWrap&&i.setWrap(a.type==="wrap");break;case"themeCss":$t.warn("themeCss encountered");break;default:$t.warn(`Unhandled directive: source: '%%{${a.type}: ${JSON.stringify(a.args?a.args:{})}}%%`,a);break}},X_e=$t,Q_e=Qft,rP=Ie,Z_e=i=>ag(i,rP()),RIt=aE,J_e=()=>BIt,tCe=(i,a,f,p)=>ddt(i,a,f,p),DW={},MW=(i,a,f)=>{if(DW[i])throw new Error(`Diagram ${i} already registered.`);DW[i]=a,f&&zIt(i,f),W_e(i,a.styles),a.injectUtils&&a.injectUtils(X_e,Q_e,rP,Z_e,RIt,J_e(),tCe)},gdt=i=>{if(i in DW)return DW[i];throw new Error(`Diagram ${i} not found.`)};class jIt extends Error{constructor(a){super(a),this.name="UnknownDiagramError"}}const eCe=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,nCe=/\s*%%.*\n/gm,YA={},IW=function(i,a){i=i.replace(AIt,"").replace(eCe,"").replace(nCe,`
|
|||
|
`);for(const[f,{detector:p}]of Object.entries(YA))if(p(i,a))return f;throw new jIt(`No diagram type detected matching given configuration for text: ${i}`)},$It=(...i)=>{for(const{id:a,detector:f,loader:p}of i)zIt(a,f,p)},rCe=async()=>{$t.debug("Loading registered diagrams");const a=(await Promise.allSettled(Object.entries(YA).map(async([f,{detector:p,loader:v}])=>{if(v)try{gdt(f)}catch{try{const{diagram:b,id:E}=await v();MW(E,b,p)}catch(b){throw $t.error(`Failed to load external diagram with key ${f}. Removing from detectors.`),delete YA[f],b}}}))).filter(f=>f.status==="rejected");if(a.length>0){$t.error(`Failed to load ${a.length} external diagrams`);for(const f of a)$t.error(f);throw new Error(`Failed to load ${a.length} external diagrams`)}},zIt=(i,a,f)=>{YA[i]?$t.error(`Detector with key ${i} already exists`):YA[i]={detector:a,loader:f},$t.debug(`Detector with key ${i} added${f?" with loader":""}`)},iCe=i=>YA[i].loader;var sCe=typeof global=="object"&&global&&global.Object===Object&&global;const qIt=sCe;var aCe=typeof self=="object"&&self&&self.Object===Object&&self,oCe=qIt||aCe||Function("return this")();const Jw=oCe;var cCe=Jw.Symbol;const Xb=cCe;var HIt=Object.prototype,uCe=HIt.hasOwnProperty,lCe=HIt.toString,iP=Xb?Xb.toStringTag:void 0;function hCe(i){var a=uCe.call(i,iP),f=i[iP];try{i[iP]=void 0;var p=!0}catch{}var v=lCe.call(i);return p&&(a?i[iP]=f:delete i[iP]),v}var fCe=Object.prototype,dCe=fCe.toString;function gCe(i){return dCe.call(i)}var pCe="[object Null]",bCe="[object Undefined]",VIt=Xb?Xb.toStringTag:void 0;function cE(i){return i==null?i===void 0?bCe:pCe:VIt&&VIt in Object(i)?hCe(i):gCe(i)}function P2(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var vCe="[object AsyncFunction]",wCe="[object Function]",mCe="[object GeneratorFunction]",yCe="[object Proxy]";function XA(i){if(!P2(i))return!1;var a=cE(i);return a==wCe||a==mCe||a==vCe||a==yCe}var xCe=Jw["__core-js_shared__"];const pdt=xCe;var GIt=function(){var i=/[^.]+$/.exec(pdt&&pdt.keys&&pdt.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function kCe(i){return!!GIt&&GIt in i}var ECe=Function.prototype,TCe=ECe.toString;function uE(i){if(i!=null){try{return TCe.call(i)}catch{}try{return i+""}catch{}}return""}var _Ce=/[\\^$.*+?()[\]{}|]/g,CCe=/^\[object .+?Constructor\]$/,SCe=Function.prototype,ACe=Object.prototype,LCe=SCe.toString,DCe=ACe.hasOwnProperty,MCe=RegExp("^"+LCe.call(DCe).replace(_Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ICe(i){if(!P2(i)||kCe(i))return!1;var a=XA(i)?MCe:CCe;return a.test(uE(i))}function OCe(i,a){return i==null?void 0:i[a]}function lE(i,a){var f=OCe(i,a);return ICe(f)?f:void 0}var NCe=lE(Object,"create");const sP=NCe;function PCe(){this.__data__=sP?sP(null):{},this.size=0}function FCe(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}var BCe="__lodash_hash_undefined__",RCe=Object.prototype,jCe=RCe.hasOwnProperty;function $Ce(i){var a=this.__data__;if(sP){var f=a[i];return f===BCe?void 0:f}return jCe.call(a,i)?a[i]:void 0}var zCe=Object.prototype,qCe=zCe.hasOwnProperty;function HCe(i){var a=this.__data__;return sP?a[i]!==void 0:qCe.call(a,i)}var VCe="__lodash_hash_undefined__";function GCe(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=sP&&a===void 0?VCe:a,this}function hE(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var p=i[a];this.set(p[0],p[1])}}hE.prototype.clear=PCe,hE.prototype.delete=FCe,hE.prototype.get=$Ce,hE.prototype.has=HCe,hE.prototype.set=GCe;function UCe(){this.__data__=[],this.size=0}function QA(i,a){return i===a||i!==i&&a!==a}function OW(i,a){for(var f=i.length;f--;)if(QA(i[f][0],a))return f;return-1}var WCe=Array.prototype,KCe=WCe.splice;function YCe(i){var a=this.__data__,f=OW(a,i);if(f<0)return!1;var p=a.length-1;return f==p?a.pop():KCe.call(a,f,1),--this.size,!0}function XCe(i){var a=this.__data__,f=OW(a,i);return f<0?void 0:a[f][1]}function QCe(i){return OW(this.__data__,i)>-1}function ZCe(i,a){var f=this.__data__,p=OW(f,i);return p<0?(++this.size,f.push([i,a])):f[p][1]=a,this
|
|||
|
`,"ig");i=i.trim().replace(f,"").replace(/'/gm,'"'),$t.debug(`Detecting diagram directive${a!==null?" type:"+a:""} based on the text:${i}`);let p;const v=[];for(;(p=bdt.exec(i))!==null;)if(p.index===bdt.lastIndex&&bdt.lastIndex++,p&&!a||a&&p[1]&&p[1].match(a)||a&&p[2]&&p[2].match(a)){const m=p[1]?p[1]:p[2],b=p[3]?p[3].trim():p[4]?JSON.parse(p[4].trim()):null;v.push({type:m,args:b})}return v.length===0&&v.push({type:i,args:null}),v.length===1?v[0]:v}catch(f){return $t.error(`ERROR: ${f.message} - Unable to parse directive
|
|||
|
${a!==null?" type:"+a:""} based on the text:${i}`),{type:null,args:null}}},lSe=function(i,a){for(const[f,p]of a.entries())if(p.match(i))return f;return-1};function Qb(i,a){if(!i)return a;const f=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return oSe[f]||a}function hSe(i,a){const f=i.trim();if(f)return a.securityLevel!=="loose"?nk(f):f}const fSe=(i,...a)=>{const f=i.split("."),p=f.length-1,v=f[p];let m=window;for(let b=0;b<p;b++)if(m=m[f[b]],!m)return;m[v](...a)};function PW(i,a){return i&&a?Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)):0}function dSe(i){let a,f=0;i.forEach(m=>{f+=PW(m,a),a=m});let p=f/2,v;return a=void 0,i.forEach(m=>{if(a&&!v){const b=PW(m,a);if(b<p)p-=b;else{const E=p/b;E<=0&&(v=a),E>=1&&(v={x:m.x,y:m.y}),E>0&&E<1&&(v={x:(1-E)*a.x+E*m.x,y:(1-E)*a.y+E*m.y})}}a=m}),v}function gSe(i){return i.length===1?i[0]:dSe(i)}const pSe=(i,a,f)=>{let p;$t.info(`our points ${JSON.stringify(a)}`),a[0]!==f&&(a=a.reverse());let m=25,b;p=void 0,a.forEach(P=>{if(p&&!b){const B=PW(P,p);if(B<m)m-=B;else{const j=m/B;j<=0&&(b=p),j>=1&&(b={x:P.x,y:P.y}),j>0&&j<1&&(b={x:(1-j)*p.x+j*P.x,y:(1-j)*p.y+j*P.y})}}p=P});const E=i?10:5,C=Math.atan2(a[0].y-b.y,a[0].x-b.x),M={x:0,y:0};return M.x=Math.sin(C)*E+(a[0].x+b.x)/2,M.y=-Math.cos(C)*E+(a[0].y+b.y)/2,M};function bSe(i,a,f){let p=JSON.parse(JSON.stringify(f)),v;$t.info("our points",p),a!=="start_left"&&a!=="start_right"&&(p=p.reverse()),p.forEach(B=>{v=B});let b=25+i,E;v=void 0,p.forEach(B=>{if(v&&!E){const j=PW(B,v);if(j<b)b-=j;else{const R=b/j;R<=0&&(E=v),R>=1&&(E={x:B.x,y:B.y}),R>0&&R<1&&(E={x:(1-R)*v.x+R*B.x,y:(1-R)*v.y+R*B.y})}}v=B});const C=10+i*.5,M=Math.atan2(p[0].y-E.y,p[0].x-E.x),P={x:0,y:0};return P.x=Math.sin(M)*C+(p[0].x+E.x)/2,P.y=-Math.cos(M)*C+(p[0].y+E.y)/2,a==="start_left"&&(P.x=Math.sin(M+Math.PI)*C+(p[0].x+E.x)/2,P.y=-Math.cos(M+Math.PI)*C+(p[0].y+E.y)/2),a==="end_right"&&(P.x=Math.sin(M-Math.PI)*C+(p[0].x+E.x)/2-5,P.y=-Math.cos(M-Math.PI)*C+(p[0].y+E.y)/2-5),a==="end_left"&&(P.x=Math.sin(M)*C+(p[0].x+E.x)/2-5,P.y=-Math.cos(M)*C+(p[0].y+E.y)/2-5),P}function tm(i){let a="",f="";for(const p of i)p!==void 0&&(p.startsWith("color:")||p.startsWith("text-align:")?f=f+p+";":a=a+p+";");return{style:a,labelStyle:f}}let WIt=0;const KIt=()=>(WIt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+WIt);function vSe(i){let a="";const f="0123456789abcdef",p=f.length;for(let v=0;v<i;v++)a+=f.charAt(Math.floor(Math.random()*p));return a}const YIt=i=>vSe(i.length),wSe=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},mSe=function(i,a){const f=a.text.replace(yi.lineBreakRegex," "),[,p]=tL(a.fontSize),v=i.append("text");v.attr("x",a.x),v.attr("y",a.y),v.style("text-anchor",a.anchor),v.style("font-family",a.fontFamily),v.style("font-size",p),v.style("font-weight",a.fontWeight),v.attr("fill",a.fill),a.class!==void 0&&v.attr("class",a.class);const m=v.append("tspan");return m.attr("x",a.x+a.textMargin*2),m.attr("fill",a.fill),m.text(f),v},XIt=ZA((i,a,f)=>{if(!i||(f=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},f),yi.lineBreakRegex.test(i)))return i;const p=i.split(" "),v=[];let m="";return p.forEach((b,E)=>{const C=f3(`${b} `,f),M=f3(m,f);if(C>a){const{hyphenatedStrings:j,remainingWord:R}=ySe(b,a,"-",f);v.push(m,...j),m=R}else M+C>=a?(v.push(m),m=b):m=[m,b].filter(Boolean).join(" ");E+1===p.length&&v.push(m)}),v.filter(b=>b!=="").join(f.joinWith)},(i,a,f)=>`${i}${a}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),ySe=ZA((i,a,f="-",p)=>{p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);const v=[...i],m=[];let b="";return v.forEach((E,C)=>{const M=`${b}${E}`;if(f3(M,p)>=a){const B=C+1,j=v.length===B,R=`${M}${f}`;m.push(j?M:R),b=""}else b=M}),{hyphenatedStrings:m,remainingWord:b}},(i,a,f="-",p)=>`${i}${a}${f}${p.fontSize}${p.fontWeight}${p.fontFamily}`);function vdt(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},a),wdt(i,a).height}function f3(i,a){return a=Object.assign({fontSize:12,fontWeight
|
|||
|
`);const p=Dr("#"+a),v=p.append("g");v.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),v.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),v.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),v.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),v.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),v.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),v.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),v.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+f),p.attr("height",100),p.attr("width",500),p.attr("viewBox","768 0 912 512")}catch(p){$t.error("Error while rendering info diagram"),$t.error(ESe(p))}}},rAe={db:{clear:()=>{}},styles:nAe,renderer:EOt,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},TOt="flowchart-elk",iAe={id:TOt,detector:(i,a)=>{var f;return!!(i.match(/^\s*flowchart-elk/)||i.match(/^\s*flowchart|graph/)&&((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>EUe);return{id:TOt,diagram:i}}},_Ot="timeline",sAe={id:_Ot,detector:i=>i.match(/^\s*timeline/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>qUe);return{id:_Ot,diagram:i}}},COt="mindmap",aAe={id:COt,detector:i=>i.match(/^\s*mindmap/)!==null,loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>yWe);return{id:COt,diagram:i}}};let SOt=!1;const Cdt=()=>{SOt||(SOt=!0,MW("error",rAe,i=>i.toLowerCase().trim()==="error"),MW("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),$It($Se,ZSe,QSe,HSe,GSe,USe,WSe,YSe,XSe,iAe,qSe,zSe,aAe,sAe,VSe,tAe,JSe,eAe,KSe))},oAe=i=>i.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class AOt{constructor(a){var m,b;this.text=a,this.type="graph",this.text+=`
|
|||
|
`;const f=Ie();try{this.type=IW(a,f)}catch(E){this.type="error",this.detectError=E}const p=gdt(this.type);$t.debug("Type "+this.type),this.db=p.db,(b=(m=this.db).clear)==null||b.call(m),this.renderer=p.renderer,this.parser=p.parser;const v=this.parser.parse.bind(this.parser);this.parser.parse=E=>v(oAe(j_e(E,this.db))),this.parser.parser.yy=this.db,p.init&&(p.init(f),$t.info("Initialized diagram "+this.type,f)),this.parse()}parse(){var a,f;if(this.detectError)throw this.detectError;(f=(a=this.db).clear)==null||f.call(a),this.parser.parse(this.text)}async render(a,f){await this.renderer.draw(this.text,a,f,this)}getParser(){return this.parser}getType(){return this.type}}const Sdt=async i=>{const a=IW(i,Ie());try{gdt(a)}catch{const p=iCe(a);if(!p)throw new jIt(`Diagram ${a} not found.`);const{id:v,diagram:m}=await p();MW(v,m)}return new AOt(i)};let Adt=[];const cAe=i=>{Adt.push(i)},uAe=()=>{Adt.forEach(i=>{i()}),Adt=[]};var lAe=Object.prototype;function HW(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||lAe;return i===f}function LOt(i,a){return function(f){return i(a(f))}}var hAe=LOt(Object.keys,Object);const fAe=hAe;var dAe=Object.prototype,gAe=dAe.hasOwnProperty;function DOt(i){if(!HW(i))return fAe(i);var a=[];for(var f in Object(i))gAe.call(i,f)&&f!="constructor"&&a.push(f);return a}var pAe=lE(Jw,"DataView");const Ldt=pAe;var bAe=lE(Jw,"Promise");const Ddt=bAe;var vAe=lE(Jw,"Set");const rL=vAe;var wAe=lE(Jw,"WeakMap");const Mdt=wAe;var MOt="[object Map]",mAe="[object Object]",IOt="[object Promise]",OOt="[object Set]",NOt="[object WeakMap]",POt="[object DataView]",yAe=uE(Ldt),xAe=uE(aP),kAe=uE(Ddt),EAe=uE(rL),TAe=uE(Mdt),dE=cE;(Ldt&&dE(new Ldt(new ArrayBuffer(1)))!=POt||aP&&dE(new aP)!=MOt||Ddt&&dE(Ddt.resolve())!=IOt||rL&&dE(new rL)!=OOt||Mdt&&dE(new Mdt)!=NOt)&&(dE=function(i){var a=cE(i),f=a==mAe?i.constructor:void 0,p=f?uE(f):"";if(p)switch(p){case yAe:return POt;case xAe:return MOt;case kAe:return IOt;case EAe:return OOt;case TAe:return NOt}return a});const iL=dE;function d3(i){return i!=null&&typeof i=="object"}var _Ae="[object Arguments]";function FOt(i){return d3(i)&&cE(i)==_Ae}var BOt=Object.prototype,CAe=BOt.hasOwnProperty,SAe=BOt.propertyIsEnumerable,AAe=FOt(function(){return arguments}())?FOt:function(i){return d3(i)&&CAe.call(i,"callee")&&!SAe.call(i,"callee")};const sL=AAe;var LAe=Array.isArray;const jf=LAe;var DAe=9007199254740991;function Idt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=DAe}function uk(i){return i!=null&&Idt(i.length)&&!XA(i)}function MAe(){return!1}var ROt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jOt=ROt&&typeof module=="object"&&module&&!module.nodeType&&module,IAe=jOt&&jOt.exports===ROt,$Ot=IAe?Jw.Buffer:void 0,OAe=$Ot?$Ot.isBuffer:void 0,NAe=OAe||MAe;const aL=NAe;var PAe="[object Arguments]",FAe="[object Array]",BAe="[object Boolean]",RAe="[object Date]",jAe="[object Error]",$Ae="[object Function]",zAe="[object Map]",qAe="[object Number]",HAe="[object Object]",VAe="[object RegExp]",GAe="[object Set]",UAe="[object String]",WAe="[object WeakMap]",KAe="[object ArrayBuffer]",YAe="[object DataView]",XAe="[object Float32Array]",QAe="[object Float64Array]",ZAe="[object Int8Array]",JAe="[object Int16Array]",tLe="[object Int32Array]",eLe="[object Uint8Array]",nLe="[object Uint8ClampedArray]",rLe="[object Uint16Array]",iLe="[object Uint32Array]",Sl={};Sl[XAe]=Sl[QAe]=Sl[ZAe]=Sl[JAe]=Sl[tLe]=Sl[eLe]=Sl[nLe]=Sl[rLe]=Sl[iLe]=!0,Sl[PAe]=Sl[FAe]=Sl[KAe]=Sl[BAe]=Sl[YAe]=Sl[RAe]=Sl[jAe]=Sl[$Ae]=Sl[zAe]=Sl[qAe]=Sl[HAe]=Sl[VAe]=Sl[GAe]=Sl[UAe]=Sl[WAe]=!1;function sLe(i){return d3(i)&&Idt(i.length)&&!!Sl[cE(i)]}function VW(i){return function(a){return i(a)}}var zOt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uP=zOt&&typeof module=="object"&&module&&!module.nodeType&&module,aLe=uP&&uP.exports===zOt,Odt=aLe&&qIt.process,oLe=function(){try{var i=uP&&uP.require&&uP.require("util").types;return i||Odt&&Odt.binding&&Odt.binding("util")}catch{}}();const oL=oLe;var qOt=oL&&oL.isTypedArray,cLe=qOt?VW(qOt):sLe;const GW=cLe;var uLe="[object Map]",lLe="[object S
|
|||
|
.${i} ${a} { ${f.join(" !important; ")} !important; }`,OLe=(i,a,f={})=>{var v;let p="";if(i.themeCSS!==void 0&&(p+=`
|
|||
|
${i.themeCSS}`),i.fontFamily!==void 0&&(p+=`
|
|||
|
:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(p+=`
|
|||
|
:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!cL(f)&&HOt.includes(a)){const C=i.htmlLabels||((v=i.flowchart)==null?void 0:v.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const M in f){const P=f[M];cL(P.styles)||C.forEach(B=>{p+=VOt(P.id,B,P.styles)}),cL(P.textStyles)||(p+=VOt(P.id,"tspan",P.textStyles))}}return p},NLe=(i,a,f,p)=>{const v=OLe(i,a,f),m=K_e(a,v,i.themeVariables);return _dt(BSe(`${p}{${m}}`),jSe)},PLe=(i="",a,f)=>{let p=i;return!f&&!a&&(p=p.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),p=lP(p),p=p.replace(/<br>/g,"<br/>"),p},FLe=(i="",a)=>{const f=a?a.viewBox.baseVal.height+"px":TLe,p=btoa('<body style="'+CLe+'">'+i+"</body>");return`<iframe style="width:${ELe};height:${f};${_Le}" src="data:text/html;base64,${p}" sandbox="${SLe}">
|
|||
|
${ALe}
|
|||
|
</iframe>`},GOt=(i,a,f,p,v)=>{const m=i.append("div");m.attr("id",f),p&&m.attr("style",p);const b=m.append("svg").attr("id",a).attr("width","100%").attr("xmlns",yLe);return v&&b.attr("xmlns:xlink",v),b.append("g"),i};function UOt(i,a){return i.append("iframe").attr("id",a).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const BLe=(i,a,f,p)=>{var v,m,b;(v=i.getElementById(a))==null||v.remove(),(m=i.getElementById(f))==null||m.remove(),(b=i.getElementById(p))==null||b.remove()},RLe=async function(i,a,f){var Mt,Z,Zt,vt;Cdt(),SW();const p=lo.detectInit(a);p&&(JA(p),OIt(p));const v=Ie();$t.debug(v),a.length>((v==null?void 0:v.maxTextSize)??bLe)&&(a=vLe),a=a.replace(/\r\n?/g,`
|
|||
|
`),a=a.replace(/<(\w+)([^>]*)>/g,(ze,rt,Ae)=>"<"+rt+Ae.replace(/="([^"]*)"/g,"='$1'")+">");const m="#"+i,b="i"+i,E="#"+b,C="d"+i,M="#"+C;let P=Dr("body");const B=v.securityLevel===wLe,j=v.securityLevel===mLe,R=v.fontFamily;if(f!==void 0){if(f&&(f.innerHTML=""),B){const ze=UOt(Dr(f),b);P=Dr(ze.nodes()[0].contentDocument.body),P.node().style.margin=0}else P=Dr(f);GOt(P,i,C,`font-family: ${R}`,xLe)}else{if(BLe(document,i,C,b),B){const ze=UOt(Dr("body"),b);P=Dr(ze.nodes()[0].contentDocument.body),P.node().style.margin=0}else P=Dr("body");GOt(P,i,C)}a=ILe(a);let H,Y;try{H=await Sdt(a)}catch(ze){H=new AOt("error"),Y=ze}const st=P.select(M).node(),et=H.type,it=st.firstChild,dt=it.firstChild,Tt=HOt.includes(et)?H.renderer.getClasses(a,H):{},yt=NLe(v,et,Tt,m),xt=document.createElement("style");xt.innerHTML=yt,it.insertBefore(xt,dt);try{await H.renderer.draw(a,i,aOt,H)}catch(ze){throw EOt.draw(a,i,aOt),ze}const ft=P.select(`${M} svg`),wt=(Z=(Mt=H.db).getAccTitle)==null?void 0:Z.call(Mt),nt=(vt=(Zt=H.db).getAccDescription)==null?void 0:vt.call(Zt);$Le(et,ft,wt,nt),P.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",kLe);let kt=P.select(M).node().innerHTML;if($t.debug("config.arrowMarkerAbsolute",v.arrowMarkerAbsolute),kt=PLe(kt,B,d1(v.arrowMarkerAbsolute)),B){const ze=P.select(M+" svg").node();kt=FLe(kt,ze)}else j||(kt=fW.sanitize(kt,{ADD_TAGS:LLe,ADD_ATTR:DLe}));if(uAe(),Y)throw Y;const ht=Dr(B?E:M).node();return ht&&"remove"in ht&&ht.remove(),{svg:kt,bindFunctions:H.db.bindFunctions}};function jLe(i={}){var f;i!=null&&i.fontFamily&&!((f=i.themeVariables)!=null&&f.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),z_e(i),i!=null&&i.theme&&i.theme in E5?i.themeVariables=E5[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=E5.default.getThemeVariables(i.themeVariables));const a=typeof i=="object"?$_e(i):DIt();Qft(a.logLevel),Cdt()}function $Le(i,a,f,p){gLe(a,i),pLe(a,f,p,a.attr("id"))}const p1=Object.freeze({render:RLe,parse:MLe,parseDirective:ddt,getDiagramFromText:Sdt,initialize:jLe,getConfig:Ie,setConfig:MIt,getSiteConfig:DIt,updateSiteConfig:q_e,reset:()=>{SW()},globalReset:()=>{SW(WA)},defaultConfig:WA});Qft(Ie().logLevel),SW(Ie());const zLe=(i,a,f)=>{$t.warn(i),QIt(i)?(f&&f(i.str,i.hash),a.push({...i,message:i.str,error:i})):(f&&f(i),i instanceof Error&&a.push({str:i.message,message:i.message,hash:i.name,error:i}))},WOt=async function(i={querySelector:".mermaid"}){try{await qLe(i)}catch(a){if(QIt(a)&&$t.error(a.str),F2.parseError&&F2.parseError(a),!i.suppressErrors)throw $t.error("Use the suppressErrors option to suppress these errors"),a}},qLe=async function({postRenderCallback:i,querySelector:a,nodes:f}={querySelector:".mermaid"}){const p=p1.getConfig();$t.debug(`${i?"":"No "}Callback function found`);let v;if(f)v=f;else if(a)v=document.querySelectorAll(a);else throw new Error("Nodes and querySelector are both undefined");$t.debug(`Found ${v.length} diagrams`),(p==null?void 0:p.startOnLoad)!==void 0&&($t.debug("Start On Load: "+(p==null?void 0:p.startOnLoad)),p1.updateSiteConfig({startOnLoad:p==null?void 0:p.startOnLoad}));const m=new lo.initIdGenerator(p.deterministicIds,p.deterministicIDSeed);let b;const E=[];for(const C of Array.from(v)){$t.info("Rendering diagram: "+C.id);/*! Check if previously processed */if(C.getAttribute("data-processed"))continue;C.setAttribute("data-processed","true");const M=`mermaid-${m.next()}`;b=C.innerHTML,b=yA(lo.entityDecode(b)).trim().replace(/<br\s*\/?>/gi,"<br/>");const P=lo.detectInit(b);P&&$t.debug("Detected early reinit: ",P);try{const{svg:B,bindFunctions:j}=await QOt(M,b,C);C.innerHTML=B,i&&await i(M),j&&j(C)}catch(B){zLe(B,E,F2.parseError)}}if(E.length>0)throw E[0]},KOt=function(i){p1.initialize(i)},HLe=async function(i,a,f){$t.warn("mermaid.init is deprecated. Please use run instead."),i&&KOt(i);const p={postRenderCallback:f,querySelector:".mermaid"};typeof a=="string"?p.querySelector=a:a&&(a instanceof HTMLElement?p.nodes=[a]:p.nodes=a),await WOt(p)},VLe=async(i,{lazyLoad:a=!0}={})=>{$It(...i),a===!1&&awa
|
|||
|
* Wait for document loaded before starting the execution
|
|||
|
*/window.addEventListener("load",YOt,!1)}const GLe=function(i){F2.parseError=i},UW=[];let Ndt=!1;const XOt=async()=>{if(!Ndt){for(Ndt=!0;UW.length>0;){const i=UW.shift();if(i)try{await i()}catch(a){$t.error("Error executing queue",a)}}Ndt=!1}},ULe=async(i,a)=>new Promise((f,p)=>{const v=()=>new Promise((m,b)=>{p1.parse(i,a).then(E=>{m(E),f(E)},E=>{var C;$t.error("Error parsing",E),(C=F2.parseError)==null||C.call(F2,E),b(E),p(E)})});UW.push(v),XOt().catch(p)}),QOt=(i,a,f)=>new Promise((p,v)=>{const m=()=>new Promise((b,E)=>{p1.render(i,a,f).then(C=>{b(C),p(C)},C=>{var M;$t.error("Error parsing",C),(M=F2.parseError)==null||M.call(F2,C),E(C),v(C)})});UW.push(m),XOt().catch(v)}),F2={startOnLoad:!0,mermaidAPI:p1,parse:ULe,render:QOt,init:HLe,run:WOt,registerExternalDiagrams:VLe,initialize:KOt,parseError:void 0,contentLoaded:YOt,setParseErrorHandler:GLe,detectType:IW};var WW=function(){var i=function(qi,zn,Zn,Pr){for(Zn=Zn||{},Pr=qi.length;Pr--;Zn[qi[Pr]]=zn);return Zn},a=[1,6],f=[1,7],p=[1,8],v=[1,9],m=[1,16],b=[1,11],E=[1,12],C=[1,13],M=[1,14],P=[1,15],B=[1,27],j=[1,33],R=[1,34],H=[1,35],Y=[1,36],st=[1,37],et=[1,72],it=[1,73],dt=[1,74],Tt=[1,75],yt=[1,76],xt=[1,77],ft=[1,78],wt=[1,38],nt=[1,39],kt=[1,40],gt=[1,41],ht=[1,42],Mt=[1,43],Z=[1,44],Zt=[1,45],vt=[1,46],ze=[1,47],rt=[1,48],Ae=[1,49],ne=[1,50],Ot=[1,51],Nt=[1,52],xe=[1,53],cn=[1,54],Fn=[1,55],Te=[1,56],vr=[1,57],Ee=[1,59],le=[1,60],ke=[1,61],me=[1,62],Gt=[1,63],Le=[1,64],Ht=[1,65],ln=[1,66],Rt=[1,67],We=[1,68],se=[1,69],Or=[24,52],Ce=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Nr=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],he=[1,94],ir=[1,95],Yn=[1,96],tr=[1,97],cr=[15,24,52],gn=[7,8,9,10,18,22,25,26,27,28],En=[15,24,43,52],Mr=[15,24,43,52,86,87,89,90],lr=[15,43],Ki=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Is={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYS
|
|||
|
`+Es.showPosition()+`
|
|||
|
Expecting `+He.join(", ")+", got '"+(this.terminals_[sl]||sl)+"'":Er="Parse error on line "+(ss+1)+": Unexpected "+(sl==Ea?"end of input":"'"+(this.terminals_[sl]||sl)+"'"),this.parseError(Er,{text:Es.match,token:this.terminals_[sl]||sl,line:Es.yylineno,loc:La,expected:He})}if(As[0]instanceof Array&&As.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yu+", token: "+sl);switch(As[0]){case 1:Pr.push(sl),xi.push(Es.yytext),Mn.push(Es.yylloc),Pr.push(As[1]),sl=null,Aa=Es.yyleng,qn=Es.yytext,ss=Es.yylineno,La=Es.yylloc;break;case 2:if(zu=this.productions_[As[1]][1],od.$=xi[xi.length-zu],od._$={first_line:Mn[Mn.length-(zu||1)].first_line,last_line:Mn[Mn.length-1].last_line,first_column:Mn[Mn.length-(zu||1)].first_column,last_column:Mn[Mn.length-1].last_column},Va&&(od._$.range=[Mn[Mn.length-(zu||1)].range[0],Mn[Mn.length-1].range[1]]),pp=this.performAction.apply(od,[qn,Aa,ss,Bs.yy,As[1],xi,Mn].concat(ga)),typeof pp<"u")return pp;zu&&(Pr=Pr.slice(0,-1*zu*2),xi=xi.slice(0,-1*zu),Mn=Mn.slice(0,-1*zu)),Pr.push(this.productions_[As[1]][0]),xi.push(od.$),Mn.push(od._$),Gi=rc[Pr[Pr.length-2]][Pr[Pr.length-1]],Pr.push(Gi);break;case 3:return!0}}return!0}},Ha=function(){var qi={EOF:1,parseError:function(Zn,Pr){if(this.yy.parser)this.yy.parser.parseError(Zn,Pr);else throw new Error(Zn)},setInput:function(zn,Zn){return this.yy=Zn||this.yy||{},this._input=zn,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},input:function(){var zn=this._input[0];this.yytext+=zn,this.yyleng++,this.offset++,this.match+=zn,this.matched+=zn;var Zn=zn.match(/(?:\r\n?|\n).*/g);return Zn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),zn},unput:function(zn){var Zn=zn.length,Pr=zn.split(/(?:\r\n?|\n)/g);this._input=zn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var In=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),Pr.length-1&&(this.yylineno-=Pr.length-1);var xi=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:Pr?(Pr.length===In.length?this.yylloc.first_column:0)+In[In.length-Pr.length].length-Pr[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[xi[0],xi[0]+this.yyleng-Zn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(zn){this.unput(this.match.slice(zn))},pastInput:function(){var zn=this.matched.substr(0,this.matched.length-this.match.length);return(zn.length>20?"...":"")+zn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var zn=this.match;return zn.length<20&&(zn+=this._input.substr(0,20-zn.length)),(zn.substr(0,20)+(zn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var zn=this.pastInput(),Zn=new Array(zn.length+1).join("-");return zn+this.upcomingInput()+`
|
|||
|
`+Zn+"^"},test_match:function(zn,Zn){var Pr,In,xi;if(this.options.backtrack_lexer&&(xi={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&&(xi.yylloc.range=this.yylloc.range.slice(0))),In=zn[0].match(/(?:\r\n?|\n).*/g),In&&(this.yylineno+=In.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:In?In[In.length-1].length-In[In.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+zn[0].length},this.yytext+=zn[0],this.match+=zn[0],this.matches=zn,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(zn[0].length),this.matched+=zn[0],Pr=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pr)return Pr;if(this._backtrack){for(var Mn in xi)this[Mn]=xi[Mn];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var zn,Zn,Pr,In;this._more||(this.yytext="",this.match="");for(var xi=this._currentRules(),Mn=0;Mn<xi.length;Mn++)if(Pr=this._input.match(this.rules[xi[Mn]]),Pr&&(!Zn||Pr[0].length>Zn[0].length)){if(Zn=Pr,In=Mn,this.options.backtrack_lexer){if(zn=this.test_match(Pr,xi[Mn]),zn!==!1)return zn;if(this._backtrack){Zn=!1;continue}else return!1}else if(!this.options.flex)break}return Zn?(zn=this.test_match(Zn,xi[In]),zn!==!1?zn:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Zn=this.next();return Zn||this.lex()},begin:function(Zn){this.conditionStack.push(Zn)},popState:function(){var Zn=this.conditionStack.length-1;return Zn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Zn){return Zn=this.conditionStack.length-1-Math.abs(Zn||0),Zn>=0?this.conditionStack[Zn]:"INITIAL"},pushState:function(Zn){this.begin(Zn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Zn,Pr,In,xi){switch(In){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.
|
|||
|
stroke: ${i.personBorder};
|
|||
|
fill: ${i.personBkg};
|
|||
|
}
|
|||
|
`,init:i=>{uNt.setConf(i.c4)}}},Symbol.toStringTag,{value:"Module"}));var zdt=function(){var i=function(gg,cs,zs,Da){for(zs=zs||{},Da=gg.length;Da--;zs[gg[Da]]=cs);return zs},a=[1,9],f=[1,7],p=[1,6],v=[1,8],m=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],b=[2,10],E=[1,20],C=[1,21],M=[1,22],P=[1,23],B=[1,30],j=[1,32],R=[1,33],H=[1,34],Y=[1,62],st=[1,48],et=[1,52],it=[1,36],dt=[1,37],Tt=[1,38],yt=[1,39],xt=[1,40],ft=[1,56],wt=[1,63],nt=[1,51],kt=[1,53],gt=[1,55],ht=[1,59],Mt=[1,60],Z=[1,41],Zt=[1,42],vt=[1,43],ze=[1,44],rt=[1,61],Ae=[1,50],ne=[1,54],Ot=[1,57],Nt=[1,58],xe=[1,49],cn=[1,66],Fn=[1,71],Te=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],vr=[1,75],Ee=[1,74],le=[1,76],ke=[20,21,23,81,82],me=[1,99],Gt=[1,104],Le=[1,107],Ht=[1,108],ln=[1,101],Rt=[1,106],We=[1,109],se=[1,102],Or=[1,114],Ce=[1,113],Nr=[1,103],he=[1,105],ir=[1,110],Yn=[1,111],tr=[1,112],cr=[1,115],gn=[20,21,22,23,81,82],En=[20,21,22,23,53,81,82],Mr=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],lr=[20,21,23],Ki=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],Is=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Ha=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],hi=[1,150],qi=[1,158],zn=[1,159],Zn=[1,160],Pr=[1,161],In=[1,145],xi=[1,146],Mn=[1,141],rc=[1,142],qn=[1,153],ss=[1,154],Aa=[1,155],Ya=[1,156],Ea=[1,157],ga=[1,162],Es=[1,163],Bs=[1,148],Ta=[1,151],La=[1,147],Va=[1,144],av=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],sl=[1,166],yu=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],As=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],pp=[12,21,22,24],od=[22,107],$l=[1,251],zu=[1,246],Gi=[1,247],He=[1,255],Er=[1,252],ci=[1,249],Xa=[1,248],kc=[1,250],xu=[1,253],mo=[1,254],ku=[1,256],lf=[1,274],_3=[20,21,23,107],m1=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],C3={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:13
|
|||
|
`+ch.showPosition()+`
|
|||
|
Expecting `+Wo.join(", ")+", got '"+(this.terminals_[y1]||y1)+"'":kk="Parse error on line "+(hf+1)+": Unexpected "+(y1==vp?"end of input":"'"+(this.terminals_[y1]||y1)+"'"),this.parseError(kk,{text:ch.match,token:this.terminals_[y1]||y1,line:ch.yylineno,loc:V5,expected:Wo})}if(ud[0]instanceof Array&&ud.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wp+", token: "+y1);switch(ud[0]){case 1:Da.push(y1),Rc.push(ch.yytext),Oe.push(ch.yylloc),Da.push(ud[1]),y1=null,dm=ch.yyleng,Ue=ch.yytext,hf=ch.yylineno,V5=ch.yylloc;break;case 2:if(Ec=this.productions_[ud[1]][1],ov.$=Rc[Rc.length-Ec],ov._$={first_line:Oe[Oe.length-(Ec||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(Ec||1)].first_column,last_column:Oe[Oe.length-1].last_column},IE&&(ov._$.range=[Oe[Oe.length-(Ec||1)].range[0],Oe[Oe.length-1].range[1]]),gm=this.performAction.apply(ov,[Ue,dm,hf,cd.yy,ud[1],Rc,Oe].concat(q5)),typeof gm<"u")return gm;Ec&&(Da=Da.slice(0,-1*Ec*2),Rc=Rc.slice(0,-1*Ec),Oe=Oe.slice(0,-1*Ec)),Da.push(this.productions_[ud[1]][0]),Rc.push(ov.$),Oe.push(ov._$),xk=bp[Da[Da.length-2]][Da[Da.length-1]],Da.push(xk);break;case 3:return!0}}return!0}},DL=function(){var gg={EOF:1,parseError:function(zs,Da){if(this.yy.parser)this.yy.parser.parseError(zs,Da);else throw new Error(zs)},setInput:function(cs,zs){return this.yy=zs||this.yy||{},this._input=cs,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},input:function(){var cs=this._input[0];this.yytext+=cs,this.yyleng++,this.offset++,this.match+=cs,this.matched+=cs;var zs=cs.match(/(?:\r\n?|\n).*/g);return zs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),cs},unput:function(cs){var zs=cs.length,Da=cs.split(/(?:\r\n?|\n)/g);this._input=cs+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-zs),this.offset-=zs;var Ei=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),Da.length-1&&(this.yylineno-=Da.length-1);var Rc=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:Da?(Da.length===Ei.length?this.yylloc.first_column:0)+Ei[Ei.length-Da.length].length-Da[0].length:this.yylloc.first_column-zs},this.options.ranges&&(this.yylloc.range=[Rc[0],Rc[0]+this.yyleng-zs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(cs){this.unput(this.match.slice(cs))},pastInput:function(){var cs=this.matched.substr(0,this.matched.length-this.match.length);return(cs.length>20?"...":"")+cs.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var cs=this.match;return cs.length<20&&(cs+=this._input.substr(0,20-cs.length)),(cs.substr(0,20)+(cs.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var cs=this.pastInput(),zs=new Array(cs.length+1).join("-");return cs+this.upcomingInput()+`
|
|||
|
`+zs+"^"},test_match:function(cs,zs){var Da,Ei,Rc;if(this.options.backtrack_lexer&&(Rc={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&&(Rc.yylloc.range=this.yylloc.range.slice(0))),Ei=cs[0].match(/(?:\r\n?|\n).*/g),Ei&&(this.yylineno+=Ei.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ei?Ei[Ei.length-1].length-Ei[Ei.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+cs[0].length},this.yytext+=cs[0],this.match+=cs[0],this.matches=cs,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(cs[0].length),this.matched+=cs[0],Da=this.performAction.call(this,this.yy,this,zs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Da)return Da;if(this._backtrack){for(var Oe in Rc)this[Oe]=Rc[Oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var cs,zs,Da,Ei;this._more||(this.yytext="",this.match="");for(var Rc=this._currentRules(),Oe=0;Oe<Rc.length;Oe++)if(Da=this._input.match(this.rules[Rc[Oe]]),Da&&(!zs||Da[0].length>zs[0].length)){if(zs=Da,Ei=Oe,this.options.backtrack_lexer){if(cs=this.test_match(Da,Rc[Oe]),cs!==!1)return cs;if(this._backtrack){zs=!1;continue}else return!1}else if(!this.options.flex)break}return zs?(cs=this.test_match(zs,Rc[Ei]),cs!==!1?cs:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var zs=this.next();return zs||this.lex()},begin:function(zs){this.conditionStack.push(zs)},popState:function(){var zs=this.conditionStack.length-1;return zs>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(zs){return zs=this.conditionStack.length-1-Math.abs(zs||0),zs>=0?this.conditionStack[zs]:"INITIAL"},pushState:function(zs){this.begin(zs)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(zs,Da,Ei,Rc){switch(Ei){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 101;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 31:this.popState();break;case 32:return 100;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 91;case 36:return zs.lex.firstGraph()&&this.begin("dir"),24;case 37:return zs.lex.firstGraph()&&this.begin("dir"),24;case 38:return zs.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 102;case 42:return 102;case 43:return 102;case 44:return 102;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 82;case 72:return 81;case 73:return 81;case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:return 126;case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate
|
|||
|
`),v=0;v<p.length;v++)f.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(p[v]);return b3(f,a.labelStyle),f}function rBe(i){for(var a="",f=!1,p,v=0;v<i.length;++v)if(p=i[v],f){switch(p){case"n":a+=`
|
|||
|
`;break;default:a+=p}f=!1}else p==="\\"?f=!0:a+=p;return a}function E0t(i,a,f){var p=a.label,v=i.append("g");a.labelType==="svg"?eBe(v,a):typeof p!="string"||a.labelType==="html"?k0t(v,a):nBe(v,a);var m=v.node().getBBox(),b;switch(f){case"top":b=-a.height/2;break;case"bottom":b=a.height/2-m.height;break;default:b=-m.height/2}return v.attr("transform","translate("+-m.width/2+","+b+")"),v}var T0t=function(i,a){var f=a.nodes().filter(function(m){return dFt(a,m)}),p=i.selectAll("g.cluster").data(f,function(m){return m});am(p.exit(),a).style("opacity",0).remove();var v=p.enter().append("g").attr("class","cluster").attr("id",function(m){var b=a.node(m);return b.id}).style("opacity",0).each(function(m){var b=a.node(m),E=Dr(this);Dr(this).append("rect");var C=E.append("g").attr("class","label");E0t(C,b,b.clusterLabelPos)});return p=p.merge(v),p=am(p,a).style("opacity",1),p.selectAll("rect").each(function(m){var b=a.node(m),E=Dr(this);b3(E,b.style)}),p};function iBe(i){T0t=i}let _0t=function(i,a){var f=i.selectAll("g.edgeLabel").data(a.edges(),function(v){return gFt(v)}).classed("update",!0);f.exit().remove(),f.enter().append("g").classed("edgeLabel",!0).style("opacity",0),f=i.selectAll("g.edgeLabel"),f.each(function(v){var m=Dr(this);m.select(".label").remove();var b=a.edge(v),E=E0t(m,a.edge(v),0).classed("label",!0),C=E.node().getBBox();b.labelId&&E.attr("id",b.labelId),eo(b,"width")||(b.width=C.width),eo(b,"height")||(b.height=C.height)});var p;return f.exit?p=f.exit():p=f.selectAll(null),am(p,a).style("opacity",0).remove(),f};function sBe(i){_0t=i}function bFt(i,a){return i.intersect(a)}var C0t=function(i,a,f){var p=i.selectAll("g.edgePath").data(a.edges(),function(b){return gFt(b)}).classed("update",!0),v=lBe(p,a);hBe(p,a);var m=p.merge!==void 0?p.merge(v):p;return am(m,a).style("opacity",1),m.each(function(b){var E=Dr(this),C=a.edge(b);C.elem=this,C.id&&E.attr("id",C.id),pFt(E,C.class,(E.classed("update")?"update ":"")+"edgePath")}),m.selectAll("path.path").each(function(b){var E=a.edge(b);E.arrowheadId=yK("arrowhead");var C=Dr(this).attr("marker-end",function(){return"url("+oBe(location.href,E.arrowheadId)+")"}).style("fill","none");am(C,a).attr("d",function(M){return cBe(a,M)}),b3(C,E.style)}),m.selectAll("defs *").remove(),m.selectAll("defs").each(function(b){var E=a.edge(b),C=f[E.arrowhead];C(Dr(this),E.arrowheadId,E,"arrowhead")}),m};function aBe(i){C0t=i}function oBe(i,a){var f=i.split("#")[0];return f+"#"+a}function cBe(i,a){var f=i.edge(a),p=i.node(a.v),v=i.node(a.w),m=f.points.slice(1,f.points.length-1);return m.unshift(bFt(p,m[0])),m.push(bFt(v,m[m.length-1])),vFt(f,m)}function vFt(i,a){var f=(rE||G8e.line)().x(function(p){return p.x}).y(function(p){return p.y});return(f.curve||f.interpolate)(i.curve),f(a)}function uBe(i){var a=i.getBBox(),f=i.ownerSVGElement.getScreenCTM().inverse().multiply(i.getScreenCTM()).translate(a.width/2,a.height/2);return{x:f.e,y:f.f}}function lBe(i,a){var f=i.enter().append("g").attr("class","edgePath").style("opacity",0);return f.append("path").attr("class","path").attr("d",function(p){var v=a.edge(p),m=a.node(p.v).elem,b=yE(v.points.length).map(function(){return uBe(m)});return vFt(v,b)}),f.append("defs"),f}function hBe(i,a){var f=i.exit();am(f,a).style("opacity",0).remove()}var S0t=function(i,a,f){var p=a.nodes().filter(function(b){return!dFt(a,b)}),v=i.selectAll("g.node").data(p,function(b){return b}).classed("update",!0);v.exit().remove(),v.enter().append("g").attr("class","node").style("opacity",0),v=i.selectAll("g.node"),v.each(function(b){var E=a.node(b),C=Dr(this);pFt(C,E.class,(C.classed("update")?"update ":"")+"node"),C.select("g.label").remove();var M=C.append("g").attr("class","label"),P=E0t(M,E),B=f[E.shape],j=xP(P.node().getBBox(),"width","height");E.elem=this,E.id&&C.attr("id",E.id),E.labelId&&M.attr("id",E.labelId),eo(E,"width")&&(j.width=E.width),eo(E,"height")&&(j.height=E.height),j.width+=E.paddingLeft+E.paddingRight,j.height+=E.paddingTop+E.paddingBottom,M.attr("transform","translate("+(E.paddingLeft-E.paddingRight)/2+","+(E.paddingTop-E.paddingBottom)/2+")");var R
|
|||
|
`),b.style===void 0&&(P.style=P.style||"stroke: #333; stroke-width: 1.5px;fill:none"),P.labelStyle=P.labelStyle.replace("color:","fill:"))),P.id=E,P.class=C+" "+M,P.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),P,p)})},IBe={setConf:MBe,addVertices:IFt,addEdges:OFt,getClasses:function(i,a){$t.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch(f){return $t.error(f),{}}},draw:function(i,a,f,p){$t.info("Drawing flowchart"),p.db.clear();const{securityLevel:v,flowchart:m}=Ie();let b;v==="sandbox"&&(b=Dr("#i"+a));const E=Dr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=v==="sandbox"?b.nodes()[0].contentDocument:document;try{p.parser.parse(i)}catch{$t.debug("Parsing failed")}let M=p.db.getDirection();M===void 0&&(M="TD");const P=m.nodeSpacing||50,B=m.rankSpacing||50,j=new zf({multigraph:!0,compound:!0}).setGraph({rankdir:M,nodesep:P,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();for(let xt=H.length-1;xt>=0;xt--)R=H[xt],p.db.addVertex(R.id,R.title,"group",void 0,R.classes);const Y=p.db.getVertices();$t.warn("Get vertices",Y);const st=p.db.getEdges();let et=0;for(et=H.length-1;et>=0;et--){R=H[et],l1t("cluster").append("text");for(let xt=0;xt<R.nodes.length;xt++)$t.warn("Setting subgraph",R.nodes[xt],p.db.lookUpDomId(R.nodes[xt]),p.db.lookUpDomId(R.id)),j.setParent(p.db.lookUpDomId(R.nodes[xt]),p.db.lookUpDomId(R.id))}IFt(Y,j,a,E,C,p),OFt(st,j,p);const it=new EBe;DBe.addToRender(it),it.arrows().none=function(ft,wt,nt,kt){const ht=ft.append("marker").attr("id",wt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");b3(ht,nt[kt+"Style"])},it.arrows().normal=function(ft,wt){ft.append("marker").attr("id",wt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const dt=E.select(`[id="${a}"]`),Tt=E.select("#"+a+" g");for(it(Tt,j),Tt.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+et),et=0;et<H.length;et++)if(R=H[et],R.title!=="undefined"){const xt=C.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"] rect'),ft=C.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"]'),wt=xt[0].x.baseVal.value,nt=xt[0].y.baseVal.value,kt=xt[0].width.baseVal.value,ht=Dr(ft[0]).select(".label");ht.attr("transform",`translate(${wt+kt/2}, ${nt+14})`),ht.attr("id",a+"Text");for(let Mt=0;Mt<R.classes.length;Mt++)ft[0].classList.add(R.classes[Mt])}if(!m.htmlLabels){const xt=C.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ft of xt){const wt=ft.getBBox(),nt=C.createElementNS("http://www.w3.org/2000/svg","rect");nt.setAttribute("rx",0),nt.setAttribute("ry",0),nt.setAttribute("width",wt.width),nt.setAttribute("height",wt.height),ft.insertBefore(nt,ft.firstChild)}}aE(j,dt,m.diagramPadding,m.useMaxWidth),Object.keys(Y).forEach(function(xt){const ft=Y[xt];if(ft.link){const wt=E.select("#"+a+' [id="'+p.db.lookUpDomId(xt)+'"]');if(wt){const nt=C.createElementNS("http://www.w3.org/2000/svg","a");nt.setAttributeNS("http://www.w3.org/2000/svg","class",ft.classes.join(" ")),nt.setAttributeNS("http://www.w3.org/2000/svg","href",ft.link),nt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),v==="sandbox"?nt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ft.linkTarget&&nt.setAttributeNS("http://www.w3.org/2000/svg","target",ft.linkTarget);const kt=wt.insert(function(){return nt},":first-child"),gt=wt.select(".label-container");gt&&kt.append(function(){return gt.node()});const ht=wt.select(".label");ht&&kt.append(function(){return ht.node()})}}})}};function I5(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isC
|
|||
|
`;break}case-3:{b=`\r
|
|||
|
`;break}case-2:{b=a?" ":" ";break}case-1:{if(!a&&v)continue;b=" ";break}default:b=String.fromCharCode(m)}v=m===-2,p.push(b)}return p.join("")}const mje={[42]:hp,[43]:hp,[45]:hp,[48]:hp,[49]:hp,[50]:hp,[51]:hp,[52]:hp,[53]:hp,[54]:hp,[55]:hp,[56]:hp,[57]:hp,[62]:qFt},yje={[91]:ERe},xje={[-2]:P0t,[-1]:P0t,[32]:P0t},kje=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:yje,disable:{null:[]},document:mje,flow:{[35]:LRe,[42]:EK,[45]:[ZFt,EK],[60]:ORe,[61]:ZFt,[95]:EK,[96]:UFt,[126]:UFt},flowInitial:xje,insideSpan:{null:[O0t,fje]},string:{[38]:GFt,[92]:HFt},text:{[-5]:B0t,[-4]:B0t,[-3]:B0t,[33]:YRe,[38]:GFt,[42]:O0t,[60]:[eRe,RRe],[91]:QRe,[92]:[SRe,HFt],[93]:F0t,[95]:O0t,[96]:dRe}},Symbol.toStringTag,{value:"Module"}));function Eje(i={}){const a=$Be([kje].concat(i.extensions||[])),f={defined:[],lazy:{},constructs:a,content:p(KBe),document:p(XBe),flow:p(lje),string:p(dje),text:p(gje)};return f;function p(v){return m;function m(b){return bje(f,v,b)}}}const eBt=/[\0\t\n\r]/g;function Tje(){let i=1,a="",f=!0,p;return v;function v(m,b,E){const C=[];let M,P,B,j,R;for(m=a+m.toString(b),B=0,a="",f&&(m.charCodeAt(0)===65279&&B++,f=void 0);B<m.length;){if(eBt.lastIndex=B,M=eBt.exec(m),j=M&&M.index!==void 0?M.index:m.length,R=m.charCodeAt(j),!M){a=m.slice(B);break}if(R===10&&B===j&&p)C.push(-3),p=void 0;else switch(p&&(C.push(-5),p=void 0),B<j&&(C.push(m.slice(B,j)),i+=j-B),R){case 0:{C.push(65533),i++;break}case 9:{for(P=Math.ceil(i/4)*4,C.push(-2);i++<P;)C.push(-1);break}case 10:{C.push(-4),i=1;break}default:p=!0,i=1}B=j+1}return E&&(p&&C.push(-5),a&&C.push(a),C.push(null)),C}}function _je(i){for(;!WFt(i););return i}function nBt(i,a){const f=Number.parseInt(i,a);return f<9||f===11||f>13&&f<32||f>126&&f<160||f>55295&&f<57344||f>64975&&f<65008||(f&65535)===65535||(f&65535)===65534||f>1114111?"<22>":String.fromCharCode(f)}const Cje=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sje(i){return i.replace(Cje,Aje)}function Aje(i,a,f){if(a)return a;if(f.charCodeAt(0)===35){const v=f.charCodeAt(1),m=v===120||v===88;return nBt(f.slice(m?2:1),m?16:10)}return N0t(f)||i}function TK(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?rBt(i.position):"start"in i||"end"in i?rBt(i):"line"in i||"column"in i?R0t(i):""}function R0t(i){return iBt(i&&i.line)+":"+iBt(i&&i.column)}function rBt(i){return R0t(i&&i.start)+"-"+R0t(i&&i.end)}function iBt(i){return i&&typeof i=="number"?i:1}const sBt={}.hasOwnProperty,aBt=function(i,a,f){return typeof a!="string"&&(f=a,a=void 0),Lje(f)(_je(Eje(f).document().write(Tje()(i,a,!0))))};function Lje(i){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E(Ce),autolinkProtocol:gt,autolinkEmail:gt,atxHeading:E(Rt),blockQuote:E(me),characterEscape:gt,characterReference:gt,codeFenced:E(Gt),codeFencedFenceInfo:C,codeFencedFenceMeta:C,codeIndented:E(Gt,C),codeText:E(Le,C),codeTextData:gt,data:gt,codeFlowValue:gt,definition:E(Ht),definitionDestinationString:C,definitionLabelString:C,definitionTitleString:C,emphasis:E(ln),hardBreakEscape:E(We),hardBreakTrailing:E(We),htmlFlow:E(se,C),htmlFlowData:gt,htmlText:E(se,C),htmlTextData:gt,image:E(Or),label:C,link:E(Ce),listItem:E(he),listItemValue:H,listOrdered:E(Nr,R),listUnordered:E(Nr),paragraph:E(ir),reference:Fn,referenceString:C,resourceDestinationString:C,resourceTitleString:C,setextHeading:E(Rt),strong:E(Yn),thematicBreak:E(cr)},exit:{atxHeading:P(),atxHeadingSequence:ft,autolink:P(),autolinkEmail:ke,autolinkProtocol:le,blockQuote:P(),characterEscapeValue:ht,characterReferenceMarkerHexadecimal:vr,characterReferenceMarkerNumeric:vr,characterReferenceValue:Ee,codeFenced:P(it),codeFencedFence:et,codeFencedFenceInfo:Y,codeFencedFenceMeta:st,codeFlowValue:ht,codeIndented:P(dt),codeText:P(ze),codeTextData:ht,data:ht,definition:P(),definitionDestinationString:xt,definitionLabelString:Tt,definitionTitleString:yt,emphasis:P(),hardBreakEscape:P(Z),hardBreakTrailing:P(Z),htmlFlow:P(Zt),htmlFlowData:ht,htmlText:P(vt),htmlTextData:ht,image:P(Ae),
|
|||
|
`);return yA(a)}function Ije(i){const a=Mje(i),{children:f}=aBt(a),p=[[]];let v=0;function m(b,E="normal"){b.type==="text"?b.value.split(`
|
|||
|
`).forEach((M,P)=>{P!==0&&(v++,p.push([])),M.split(" ").forEach(B=>{B&&p[v].push({content:B,type:E})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(C=>{m(C,b.type)})}return f.forEach(b=>{b.type==="paragraph"&&b.children.forEach(E=>{m(E)})}),p}function Oje(i){const{children:a}=aBt(i);function f(p){return p.type==="text"?p.value.replace(/\n/g,"<br/>"):p.type==="strong"?`<strong>${p.children.map(f).join("")}</strong>`:p.type==="emphasis"?`<em>${p.children.map(f).join("")}</em>`:p.type==="paragraph"?`<p>${p.children.map(f).join("")}</p>`:`Unsupported markdown: ${p.type}`}return a.map(f).join("")}function Nje(i,a){a&&i.attr("style",a)}function Pje(i,a,f,p,v=!1){const m=i.append("foreignObject"),b=m.append("xhtml:div"),E=a.label,C=a.isNode?"nodeLabel":"edgeLabel";b.html(`
|
|||
|
<span class="${C} ${p}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+E+"</span>"),Nje(b,a.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",f+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),v&&b.attr("class","labelBkg");let M=b.node().getBoundingClientRect();return M.width===f&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",f+"px"),M=b.node().getBoundingClientRect()),m.style("width",M.width),m.style("height",M.height),m.node()}function uBt(i,a,f){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*f-.1+"em").attr("dy",f+"em")}function Fje(i,a,f,p=!1){const m=a.append("g");let b=m.insert("rect").attr("class","background");const E=m.append("text").attr("y","-10.1");let C=-1;if(f.forEach(M=>{C++;let P=uBt(E,C,1.1),B=[...M].reverse(),j,R=[];for(;B.length;)j=B.pop(),R.push(j),lBt(P,R),P.node().getComputedTextLength()>i&&(R.pop(),B.push(j),lBt(P,R),R=[],C++,P=uBt(E,C,1.1))}),p){const M=E.node().getBBox(),P=2;return b.attr("x",-P).attr("y",-P).attr("width",M.width+2*P).attr("height",M.height+2*P),m.node()}else return E.node()}function lBt(i,a){i.text(""),a.forEach((f,p)=>{const v=i.append("tspan").attr("font-style",f.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",f.type==="strong"?"bold":"normal");p===0?v.text(f.content):v.text(" "+f.content)})}const _K=(i,a="",{style:f="",isTitle:p=!1,classes:v="",useHtmlLabels:m=!0,isNode:b=!0,width:E,addSvgBackground:C=!1}={})=>{if($t.info("createText",a,f,p,v,m,b,C),m){const M=Oje(a),P={isNode:b,label:lP(M).replace(/fa[blrs]?:fa-[\w-]+/g,j=>`<i class='${j.replace(":"," ")}'></i>`),labelStyle:f.replace("fill:","color:")};return Pje(i,P,E,v,C)}else{const M=Ije(a);return Fje(E,i,M,C)}},$d=async(i,a,f,p)=>{let v;const m=a.useHtmlLabels||d1(Ie().flowchart.htmlLabels);f?v=f:v="node default";const b=i.insert("g").attr("class",v).attr("id",a.domId||a.id),E=b.insert("g").attr("class","label").attr("style",a.labelStyle);let C;a.labelText===void 0?C="":C=typeof a.labelText=="string"?a.labelText:a.labelText[0];const M=E.node();let P;a.labelType==="markdown"?P=_K(E,ag(lP(C),Ie()),{useHtmlLabels:m,width:a.width||Ie().flowchart.wrappingWidth,classes:"markdown-node-label"}):P=M.appendChild(lp(ag(lP(C),Ie()),a.labelStyle,!1,p));let B=P.getBBox();const j=a.padding/2;if(d1(Ie().flowchart.htmlLabels)){const R=P.children[0],H=Dr(P),Y=R.getElementsByTagName("img");if(Y){const st=C.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...Y].map(et=>new Promise(it=>et.addEventListener("load",function(){if(et.style.display="flex",et.style.flexDirection="column",st){const dt=Ie().fontSize?Ie().fontSize:window.getComputedStyle(document.body).fontSize,Tt=5;et.style.width=parseInt(dt,10)*Tt+"px"}else et.style.width="100%";it(et)}))))}B=R.getBoundingClientRect(),H.attr("width",B.width),H.attr("height",B.height)}return m?E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"):E.attr("transform","translate(0, "+-B.height/2+")"),a.centerLabel&&E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),E.insert("rect",":first-child"),{shapeSvg:b,bbox:B,halfPadding:j,label:E}},cf=(i,a)=>{const f=a.node().getBBox();i.width=f.width,i.height=f.height};function O5(i,a,f,p){return i.insert("polygon",":first-child").attr("points",p.map(function(v){return v.x+","+v.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+f/2+")")}let nc={},cm={},hBt={};const Bje=()=>{cm={},hBt={},nc={}},CK=(i,a)=>($t.trace("In isDecendant",a," ",i," = ",cm[a].includes(i)),!!cm[a].includes(i)),Rje=(i,a)=>($t.info("Decendants of ",a," is ",cm[a]),$t.info("Edge is ",i),i.v===a||i.w===a?!1:cm[a]?cm[a].includes(i.v)||CK(i.v,a)||CK(i.w,a)||cm[a].includes(i.w):($t.debug("Tilt, ",a,",not in decendants"),!1)),fBt=(i,a,f,p)=>{$t.warn("Copying children of ",i,"root",p,"data",a.node(i),p);const v=a.children(i)||[];i!==p&&v.push(i),$t.warn("Copying (nodes) clusterId",i,"nodes",v),v.forEach(m=>{if(a.children(m).length>0)fBt(m,a,f,p);else{const b=a.node(m);$
|
|||
|
`);C.forEach(function(j){$t.debug(`Adding line: ${j}`),E.append("tspan").text(j).attr("class","title").attr("dy",f.textHeight)});const M=b.node().getBBox(),B=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",M.width+2*f.padding).attr("height",M.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin).node().getBBox().width;return E.node().childNodes.forEach(function(j){j.setAttribute("x",(B-j.getBBox().width)/2)}),m.width=B,m.height=M.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin,m},AK=function(i){let a="",f="",p="",v="",m=i.substring(0,1),b=i.substring(i.length-1,i.length);m.match(/[#+~-]/)&&(v=m);let E=/[\s\w)~]/;b.match(E)||(f=xBt(b));const C=v===""?0:1;let M=f===""?i.length:i.length-1;i=i.substring(C,M);const P=i.indexOf("("),B=i.indexOf(")");if(P>1&&B>P&&B<=i.length){let R=i.substring(0,P).trim();const H=i.substring(P+1,B);if(a=v+R+"("+JN(H.trim())+")",B<i.length){let Y=i.substring(B+1,B+2);f===""&&!Y.match(E)?(f=xBt(Y),p=i.substring(B+2).trim()):p=i.substring(B+1).trim(),p!==""&&(p.charAt(0)===":"&&(p=p.substring(1).trim()),p=" : "+JN(p),a+=p)}}else a=v+JN(i);return{displayText:a,cssStyle:f}},yBt=function(i,a,f,p){let v=AK(a);const m=i.append("tspan").attr("x",p.padding).text(v.displayText);v.cssStyle!==""&&m.attr("style",v.cssStyle),f||m.attr("dy",p.textHeight)},xBt=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},j0t={getClassTitleString:mBt,drawClass:Wje,drawEdge:Uje,drawNote:Kje,parseMember:AK},kBt=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=v+m,E=[{x:b/2,y:0},{x:b,y:-b/2},{x:b/2,y:-b},{x:0,y:-b/2}];$t.info("Question main (Circle)");const C=O5(f,b,b,E);return C.attr("style",a.style),cf(a,C),a.intersect=function(M){return $t.warn("Intersect called"),Dh.polygon(a,E,M)},f},Yje=(i,a)=>{const f=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),p=28,v=[{x:0,y:p/2},{x:p/2,y:0},{x:0,y:-p/2},{x:-p/2,y:0}];return f.insert("polygon",":first-child").attr("points",v.map(function(b){return b.x+","+b.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),a.width=28,a.height=28,a.intersect=function(b){return Dh.circle(a,14,b)},f},Xje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=4,m=p.height+a.padding,b=m/v,E=p.width+2*b+a.padding,C=[{x:b,y:0},{x:E-b,y:0},{x:E,y:-m/2},{x:E-b,y:-m},{x:b,y:-m},{x:0,y:-m/2}],M=O5(f,E,m,C);return M.attr("style",a.style),cf(a,M),a.intersect=function(P){return Dh.polygon(a,C,P)},f},Qje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-m/2,y:0},{x:v,y:0},{x:v,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}];return O5(f,v,m,b).attr("style",a.style),a.width=v+m,a.height=m,a.intersect=function(C){return Dh.polygon(a,b,C)},f},Zje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:m/6,y:-m}],E=O5(f,v,m,b);return E.attr("style",a.style),cf(a,E),a.intersect=function(C){return Dh.polygon(a,b,C)},f},Jje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:2*m/6,y:0},{x:v+m/6,y:0},{x:v-2*m/6,y:-m},{x:-m/6,y:-m}],E=O5(f,v,m,b);return E.attr("style",a.style),cf(a,E),a.intersect=function(C){return Dh.polygon(a,b,C)},f},t$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v+2*m/6,y:0},{x:v-m/6,y:-m},{x:m/6,y:-m}],E=O5(f,v,m,b);return E.attr("style",a.style),cf(a,E),a.intersect=function(C){return Dh.polygon(a,b,C)},f},e$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:-2*m/6,y:-m}],E=O5(f,v,m,b);return E.attr("style",a.style),cf(a,E),a.intersect=function(C){return Dh.polygon(a,b,C)},f},n$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await $d(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:0,y:0},{x
|
|||
|
outsidePoint: ${JSON.stringify(a)}
|
|||
|
insidePoint : ${JSON.stringify(f)}
|
|||
|
node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const p=i.x,v=i.y,m=Math.abs(p-f.x),b=i.width/2;let E=f.x<a.x?b-m:b+m;const C=i.height/2,M=Math.abs(a.y-f.y),P=Math.abs(a.x-f.x);if(Math.abs(v-a.y)*b>Math.abs(p-a.x)*C){let B=f.y<a.y?a.y-C-v:v-C-a.y;E=P*B/M;const j={x:f.x<a.x?f.x+E:f.x-P+E,y:f.y<a.y?f.y+M-B:f.y-M+B};return E===0&&(j.x=a.x,j.y=a.y),P===0&&(j.x=a.x),M===0&&(j.y=a.y),$t.warn(`abc89 topp/bott calc, Q ${M}, q ${B}, R ${P}, r ${E}`,j),j}else{f.x<a.x?E=a.x-b-p:E=p-b-a.x;let B=M*E/P,j=f.x<a.x?f.x+P-E:f.x-P+E,R=f.y<a.y?f.y+B:f.y-B;return $t.warn(`sides calc abc89, Q ${M}, q ${B}, R ${P}, r ${E}`,{_x:j,_y:R}),E===0&&(j=a.x,R=a.y),P===0&&(j=a.x),M===0&&(R=a.y),{x:j,y:R}}},DBt=(i,a)=>{$t.warn("abc88 cutPathAtIntersect",i,a);let f=[],p=i[0],v=!1;return i.forEach(m=>{if($t.info("abc88 checking point",m,a),!m$e(a,m)&&!v){const b=y$e(a,p,m);$t.warn("abc88 inside",m,p,b),$t.warn("abc88 intersection",b);let E=!1;f.forEach(C=>{E=E||C.x===b.x&&C.y===b.y}),f.some(C=>C.x===b.x&&C.y===b.y)?$t.warn("abc88 no intersect",b,f):f.push(b),v=!0}else $t.warn("abc88 outside",m,p),p=m,v||f.push(m)}),$t.warn("abc88 returning points",f),f},x$e=function(i,a,f,p,v,m){let b=f.points,E=!1;const C=m.node(a.v);var M=m.node(a.w);$t.info("abc88 InsertEdge: ",f),M.intersect&&C.intersect&&(b=b.slice(1,f.points.length-1),b.unshift(C.intersect(b[0])),$t.info("Last point",b[b.length-1],M,M.intersect(b[b.length-1])),b.push(M.intersect(b[b.length-1]))),f.toCluster&&($t.info("to cluster abc88",p[f.toCluster]),b=DBt(f.points,p[f.toCluster].node),E=!0),f.fromCluster&&($t.info("from cluster abc88",p[f.fromCluster]),b=DBt(b.reverse(),p[f.fromCluster].node).reverse(),E=!0);const P=b.filter(et=>!Number.isNaN(et.y));let B;v==="graph"||v==="flowchart"?B=f.curve||$A:B=$A;const j=rE().x(function(et){return et.x}).y(function(et){return et.y}).curve(B);let R;switch(f.thickness){case"normal":R="edge-thickness-normal";break;case"thick":R="edge-thickness-thick";break;case"invisible":R="edge-thickness-thick";break;default:R=""}switch(f.pattern){case"solid":R+=" edge-pattern-solid";break;case"dotted":R+=" edge-pattern-dotted";break;case"dashed":R+=" edge-pattern-dashed";break}const H=i.append("path").attr("d",j(P)).attr("id",f.id).attr("class"," "+R+(f.classes?" "+f.classes:"")).attr("style",f.style);let Y="";switch((Ie().flowchart.arrowMarkerAbsolute||Ie().state.arrowMarkerAbsolute)&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\("),Y=Y.replace(/\)/g,"\\)")),$t.info("arrowTypeStart",f.arrowTypeStart),$t.info("arrowTypeEnd",f.arrowTypeEnd),f.arrowTypeStart){case"arrow_cross":H.attr("marker-start","url("+Y+"#"+v+"-crossStart)");break;case"arrow_point":H.attr("marker-start","url("+Y+"#"+v+"-pointStart)");break;case"arrow_barb":H.attr("marker-start","url("+Y+"#"+v+"-barbStart)");break;case"arrow_circle":H.attr("marker-start","url("+Y+"#"+v+"-circleStart)");break;case"aggregation":H.attr("marker-start","url("+Y+"#"+v+"-aggregationStart)");break;case"extension":H.attr("marker-start","url("+Y+"#"+v+"-extensionStart)");break;case"composition":H.attr("marker-start","url("+Y+"#"+v+"-compositionStart)");break;case"dependency":H.attr("marker-start","url("+Y+"#"+v+"-dependencyStart)");break;case"lollipop":H.attr("marker-start","url("+Y+"#"+v+"-lollipopStart)");break}switch(f.arrowTypeEnd){case"arrow_cross":H.attr("marker-end","url("+Y+"#"+v+"-crossEnd)");break;case"arrow_point":H.attr("marker-end","url("+Y+"#"+v+"-pointEnd)");break;case"arrow_barb":H.attr("marker-end","url("+Y+"#"+v+"-barbEnd)");break;case"arrow_circle":H.attr("marker-end","url("+Y+"#"+v+"-circleEnd)");break;case"aggregation":H.attr("marker-end","url("+Y+"#"+v+"-aggregationEnd)");break;case"extension":H.attr("marker-end","url("+Y+"#"+v+"-extensionEnd)");break;case"composition":H.attr("marker-end","url("+Y+"#"+v+"-compositionEnd)");break;case"dependency":H.attr("marker-end","url("+Y+"#"+v+"-dependencyEnd)");break;case"lollipop":H.attr("marker-end","url("+Y+"#"+v+"-lollipopEnd)");break}let st={};return E&&(st.updatedPath=b),st.or
|
|||
|
`),E.style===void 0&&(j.style=j.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),j.labelStyle=j.labelStyle.replace("color:","fill:"),j.id=M,j.classes="flowchart-link "+P+" "+B,a.setEdge(E.start,E.end,j,p)})},z0t={setConf:k$e,addVertices:OBt,addEdges:NBt,getClasses:function(i,a){$t.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch{return}},draw:async function(i,a,f,p){$t.info("Drawing flowchart"),p.db.clear(),fk.setGen("gen-2"),p.parser.parse(i);let v=p.db.getDirection();v===void 0&&(v="TD");const{securityLevel:m,flowchart:b}=Ie(),E=b.nodeSpacing||50,C=b.rankSpacing||50;let M;m==="sandbox"&&(M=Dr("#i"+a));const P=Dr(m==="sandbox"?M.nodes()[0].contentDocument.body:"body"),B=m==="sandbox"?M.nodes()[0].contentDocument:document,j=new zf({multigraph:!0,compound:!0}).setGraph({rankdir:v,nodesep:E,ranksep:C,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();$t.info("Subgraphs - ",H);for(let yt=H.length-1;yt>=0;yt--)R=H[yt],$t.info("Subgraph - ",R),p.db.addVertex(R.id,{text:R.title,type:R.labelType},"group",void 0,R.classes,R.dir);const Y=p.db.getVertices(),st=p.db.getEdges();$t.info("Edges",st);let et=0;for(et=H.length-1;et>=0;et--){R=H[et],l1t("cluster").append("text");for(let yt=0;yt<R.nodes.length;yt++)$t.info("Setting up subgraphs",R.nodes[yt],R.id),j.setParent(R.nodes[yt],R.id)}OBt(Y,j,a,P,B,p),NBt(st,j);const it=P.select(`[id="${a}"]`),dt=P.select("#"+a+" g");if(await $0t(dt,j,["point","circle","cross"],"flowchart",a),lo.insertTitle(it,"flowchartTitleText",b.titleTopMargin,p.db.getDiagramTitle()),aE(j,it,b.diagramPadding,b.useMaxWidth),p.db.indexNodes("subGraph"+et),!b.htmlLabels){const yt=B.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const xt of yt){const ft=xt.getBBox(),wt=B.createElementNS("http://www.w3.org/2000/svg","rect");wt.setAttribute("rx",0),wt.setAttribute("ry",0),wt.setAttribute("width",ft.width),wt.setAttribute("height",ft.height),xt.insertBefore(wt,xt.firstChild)}}Object.keys(Y).forEach(function(yt){const xt=Y[yt];if(xt.link){const ft=Dr("#"+a+' [id="'+yt+'"]');if(ft){const wt=B.createElementNS("http://www.w3.org/2000/svg","a");wt.setAttributeNS("http://www.w3.org/2000/svg","class",xt.classes.join(" ")),wt.setAttributeNS("http://www.w3.org/2000/svg","href",xt.link),wt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),m==="sandbox"?wt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):xt.linkTarget&&wt.setAttributeNS("http://www.w3.org/2000/svg","target",xt.linkTarget);const nt=ft.insert(function(){return wt},":first-child"),kt=ft.select(".label-container");kt&&nt.append(function(){return kt.node()});const gt=ft.select(".label");gt&&nt.append(function(){return gt.node()})}}})}},E$e=(i,a)=>{const f=BEe,p=f(i,"r"),v=f(i,"g"),m=f(i,"b");return qA(p,v,m,a)},PBt=i=>`.label {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
.cluster-label text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
.cluster-label span,p {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text,span,p {
|
|||
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
.flowchart-label text {
|
|||
|
text-anchor: middle;
|
|||
|
}
|
|||
|
// .flowchart-label .text-outer-tspan {
|
|||
|
// text-anchor: middle;
|
|||
|
// }
|
|||
|
// .flowchart-label .text-inner-tspan {
|
|||
|
// text-anchor: start;
|
|||
|
// }
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 2.0px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
fill: ${i.edgeLabelBackground};
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
/* For html labels only */
|
|||
|
.labelBkg {
|
|||
|
background-color: ${E$e(i.edgeLabelBackground,.5)};
|
|||
|
// background-color:
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
fill: ${i.clusterBkg};
|
|||
|
stroke: ${i.clusterBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.cluster span,p {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
/* .cluster div {
|
|||
|
color: ${i.titleColor};
|
|||
|
} */
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.flowchartTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`,T$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:qdt,db:fk,renderer:z0t,styles:PBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,IBe.setConf(i.flowchart),fk.clear(),fk.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),_$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:qdt,db:fk,renderer:z0t,styles:PBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,MIt({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),z0t.setConf(i.flowchart),fk.clear(),fk.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var q0t=function(){var i=function(ht,Mt,Z,Zt){for(Z=Z||{},Zt=ht.length;Zt--;Z[ht[Zt]]=Mt);return Z},a=[1,2],f=[1,5],p=[6,9,11,23,25,27,29,30,31,52],v=[1,17],m=[1,18],b=[1,19],E=[1,20],C=[1,21],M=[1,22],P=[1,25],B=[1,30],j=[1,31],R=[1,32],H=[1,33],Y=[1,34],st=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],et=[1,46],it=[30,31,49,50],dt=[4,6,9,11,23,25,27,29,30,31,52],Tt=[44,45,46,47,48],yt=[22,37],xt=[1,66],ft=[1,65],wt=[22,37,39,41],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(Mt,Z,Zt,vt,ze,rt,Ae){var ne=rt.length-1;switch(ze){case 1:break;case 3:this.$=[];break;case 4:rt[ne-1].push(rt[ne]),this.$=rt[ne-1];break;case 5:case 6:this.$=rt[ne];break;case 7:case 8:this.$=[];break;case 12:vt.addEntity(rt[ne-4]),vt.addEntity(rt[ne-2]),vt.addRelationship(rt[ne-4],rt[ne],rt[ne-2],rt[ne-3]);break;case 13:vt.addEntity(rt[ne-3]),vt.addAttributes(rt[ne-3],rt[ne-1]);break;case 14:vt.addEntity(rt[ne-2]);break;case 15:vt.addEntity(rt[ne]);break;case 16:case 17:this.$=rt[ne].trim(),vt.setAccTitle(this.$);break;case 18:case 19:this.$=rt[ne].trim(),vt.setAccDescription(this.$);break;case 20:case 44:this.$=rt[ne];break;case 21:case 42:case 43:this.$=rt[ne].replace(/"/g,"");break;case 22:case 30:this.$=[rt[ne]];break;case 23:rt[ne].push(rt[ne-1]),this.$=rt[ne];break;case 24:this.$={attributeType:rt[ne-1],attributeName:rt[ne]};break;case 25:this.$={attributeType:rt[ne-2],attributeName:rt[ne-1],attributeKeyTypeList:rt[ne]};break;case 26:this.$={attributeType:rt[ne-2],attributeName:rt[ne-1],attributeComment:rt[ne]};break;case 27:this.$={attributeType:rt[ne-3],attributeName:rt[ne-2],attributeKeyTypeList:rt[ne-1],attributeComment:rt[ne]};break;case 28:case 29:case 32:this.$=rt[ne];break;case 31:rt[ne-2].push(rt[ne]),this.$=rt[ne-2];break;case 33
|
|||
|
`+Te.showPosition()+`
|
|||
|
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[Gt]||Gt)+"'":Nr="Parse error on line "+(Ot+1)+": Unexpected "+(Gt==cn?"end of input":"'"+(this.terminals_[Gt]||Gt)+"'"),this.parseError(Nr,{text:Te.match,token:this.terminals_[Gt]||Gt,line:Te.yylineno,loc:le,expected:Ce})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+Gt);switch(Ht[0]){case 1:Zt.push(Gt),ze.push(Te.yytext),rt.push(Te.yylloc),Zt.push(Ht[1]),Gt=null,Nt=Te.yyleng,ne=Te.yytext,Ot=Te.yylineno,le=Te.yylloc;break;case 2:if(se=this.productions_[Ht[1]][1],Rt.$=ze[ze.length-se],Rt._$={first_line:rt[rt.length-(se||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(se||1)].first_column,last_column:rt[rt.length-1].last_column},ke&&(Rt._$.range=[rt[rt.length-(se||1)].range[0],rt[rt.length-1].range[1]]),ln=this.performAction.apply(Rt,[ne,Nt,Ot,vr.yy,Ht[1],ze,rt].concat(Fn)),typeof ln<"u")return ln;se&&(Zt=Zt.slice(0,-1*se*2),ze=ze.slice(0,-1*se),rt=rt.slice(0,-1*se)),Zt.push(this.productions_[Ht[1]][0]),ze.push(Rt.$),rt.push(Rt._$),Or=Ae[Zt[Zt.length-2]][Zt[Zt.length-1]],Zt.push(Or);break;case 3:return!0}}return!0}},kt=function(){var ht={EOF:1,parseError:function(Z,Zt){if(this.yy.parser)this.yy.parser.parseError(Z,Zt);else throw new Error(Z)},setInput:function(Mt,Z){return this.yy=Z||this.yy||{},this._input=Mt,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},input:function(){var Mt=this._input[0];this.yytext+=Mt,this.yyleng++,this.offset++,this.match+=Mt,this.matched+=Mt;var Z=Mt.match(/(?:\r\n?|\n).*/g);return Z?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mt},unput:function(Mt){var Z=Mt.length,Zt=Mt.split(/(?:\r\n?|\n)/g);this._input=Mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Z),this.offset-=Z;var vt=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),Zt.length-1&&(this.yylineno-=Zt.length-1);var ze=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:Zt?(Zt.length===vt.length?this.yylloc.first_column:0)+vt[vt.length-Zt.length].length-Zt[0].length:this.yylloc.first_column-Z},this.options.ranges&&(this.yylloc.range=[ze[0],ze[0]+this.yyleng-Z]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Mt){this.unput(this.match.slice(Mt))},pastInput:function(){var Mt=this.matched.substr(0,this.matched.length-this.match.length);return(Mt.length>20?"...":"")+Mt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Mt=this.match;return Mt.length<20&&(Mt+=this._input.substr(0,20-Mt.length)),(Mt.substr(0,20)+(Mt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Mt=this.pastInput(),Z=new Array(Mt.length+1).join("-");return Mt+this.upcomingInput()+`
|
|||
|
`+Z+"^"},test_match:function(Mt,Z){var Zt,vt,ze;if(this.options.backtrack_lexer&&(ze={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&&(ze.yylloc.range=this.yylloc.range.slice(0))),vt=Mt[0].match(/(?:\r\n?|\n).*/g),vt&&(this.yylineno+=vt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:vt?vt[vt.length-1].length-vt[vt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mt[0].length},this.yytext+=Mt[0],this.match+=Mt[0],this.matches=Mt,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(Mt[0].length),this.matched+=Mt[0],Zt=this.performAction.call(this,this.yy,this,Z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Zt)return Zt;if(this._backtrack){for(var rt in ze)this[rt]=ze[rt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mt,Z,Zt,vt;this._more||(this.yytext="",this.match="");for(var ze=this._currentRules(),rt=0;rt<ze.length;rt++)if(Zt=this._input.match(this.rules[ze[rt]]),Zt&&(!Z||Zt[0].length>Z[0].length)){if(Z=Zt,vt=rt,this.options.backtrack_lexer){if(Mt=this.test_match(Zt,ze[rt]),Mt!==!1)return Mt;if(this._backtrack){Z=!1;continue}else return!1}else if(!this.options.flex)break}return Z?(Mt=this.test_match(Z,ze[vt]),Mt!==!1?Mt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Z=this.next();return Z||this.lex()},begin:function(Z){this.conditionStack.push(Z)},popState:function(){var Z=this.conditionStack.length-1;return Z>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Z){return Z=this.conditionStack.length-1-Math.abs(Z||0),Z>=0?this.conditionStack[Z]:"INITIAL"},pushState:function(Z){this.begin(Z)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Z,Zt,vt,ze){switch(vt){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return Zt.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 50;case 52:return 50;case 53:return 49;case 54:return 49;case 55:return 49;case 56:return 30;case 57:return Zt.yytext[0];case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],inclusive:!0}}};return ht}();nt.lexer=kt;function gt(){this.yy={}}return gt.prototype=nt,nt.Parser=gt,new gt}();q0t.parser=q0t;const C$e=q0t;let DP={},H0t=[];const S$e={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},A$e={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},L$e=function(i,a,f){p1.parseDirective(this,i,a,f)},FBt=functi
|
|||
|
.entityBox {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.attributeBoxOdd {
|
|||
|
fill: ${i.attributeBackgroundColorOdd};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.attributeBoxEven {
|
|||
|
fill: ${i.attributeBackgroundColorEven};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.relationshipLabelBox {
|
|||
|
fill: ${i.tertiaryColor};
|
|||
|
opacity: 0.7;
|
|||
|
background-color: ${i.tertiaryColor};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.relationshipLine {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
.entityTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
#MD_PARENT_START {
|
|||
|
fill: #f5f5f5 !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
#MD_PARENT_END {
|
|||
|
fill: #f5f5f5 !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var G0t=function(){var i=function(wt,nt,kt,gt){for(kt=kt||{},gt=wt.length;gt--;kt[wt[gt]]=nt);return kt},a=[1,4],f=[1,7],p=[1,5],v=[1,9],m=[1,6],b=[2,6],E=[1,16],C=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],M=[8,14,20,22,24,25,27,29,32,37,40],P=[8,13,14,20,22,24,25,27,29,32,37,40],B=[1,26],j=[6,8,14,50,55],R=[8,14,55],H=[1,53],Y=[1,52],st=[8,14,30,33,35,38,55],et=[1,67],it=[1,68],dt=[1,69],Tt=[8,14,33,35,42,55],yt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(nt,kt,gt,ht,Mt,Z,Zt){var vt=Z.length-1;switch(Mt){case 3:return Z[vt];case 4:return Z[vt-1];case 5:return ht.setDirection(Z[vt-3]),Z[vt-1];case 7:ht.setOptions(Z[vt-1]),this.$=Z[vt];break;case 8:Z[vt-1]+=Z[vt],this.$=Z[vt-1];break;case 10:this.$=[];break;case 11:Z[vt-1].push(Z[vt]),this.$=Z[vt-1];break;case 12:this.$=Z[vt-1];break;case 17:this.$=Z[vt].trim(),ht.setAccTitle(this.$);break;case 18:case 19:this.$=Z[vt].trim(),ht.setAccDescription(this.$);break;case 20:ht.addSection(Z[vt].substr(8)),this.$=Z[vt].substr(8);break;case 22:ht.checkout(Z[vt]);break;case 23:ht.branch(Z[vt]);break;case 24:ht.branch(Z[vt-2],Z[vt]);break;case 25:ht.cherryPick(Z[vt],"",void 0);break;case 26:ht.cherryPick(Z[vt-2],"",Z[vt]);break;case 27:case 29:ht.cherryPick(Z[vt-2],"","");break;case 28:ht.cherryPick(Z[vt],"",Z[vt-2]);break;case 30:ht.merge(Z[vt],"","","");break;case 31:ht.merge(Z[vt-2],Z[vt],"","");break;case 32:ht.merge(Z[vt-2],"",Z[vt],"");break;case 33:ht.merge(Z[vt-2],"","",Z[vt]);break;case 34:ht.merge(Z[vt-4],Z[vt],"",Z[vt-2]);break;case 35:ht.merge(Z[vt-4],"",Z[vt],Z[vt-2]);break;case 36:ht.merge(Z[vt-4],"",Z[vt-2],Z[vt]);break;case 37:ht.merge(Z[vt-4],Z[vt-2],Z[vt],"");break;case 38:ht.merge(Z[vt-4],Z[vt-2],"",Z[vt]);break;case 39:ht.merge(Z[vt-4],Z[vt],Z[vt-2],"");break;case 40:ht.merge(Z[vt-6],Z[vt-4],Z[vt-2],Z[vt]);break;case 41:ht.merge(Z[vt-6],Z[vt],Z[vt-4],Z[vt-2]);break;case 42:ht.merge(Z[vt-6],Z[vt-4],Z[vt],Z[vt-2]);break;case 43:ht.merge(Z[vt-6],Z[vt-2],Z[vt-4],Z[vt]);break;cas
|
|||
|
`+Nt.showPosition()+`
|
|||
|
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[Ee]||Ee)+"'":We="Parse error on line "+(ze+1)+": Unexpected "+(Ee==ne?"end of input":"'"+(this.terminals_[Ee]||Ee)+"'"),this.parseError(We,{text:Nt.match,token:this.terminals_[Ee]||Ee,line:Nt.yylineno,loc:Fn,expected:Rt})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+Ee);switch(ke[0]){case 1:gt.push(Ee),Mt.push(Nt.yytext),Z.push(Nt.yylloc),gt.push(ke[1]),Ee=null,rt=Nt.yyleng,vt=Nt.yytext,ze=Nt.yylineno,Fn=Nt.yylloc;break;case 2:if(Ht=this.productions_[ke[1]][1],Gt.$=Mt[Mt.length-Ht],Gt._$={first_line:Z[Z.length-(Ht||1)].first_line,last_line:Z[Z.length-1].last_line,first_column:Z[Z.length-(Ht||1)].first_column,last_column:Z[Z.length-1].last_column},Te&&(Gt._$.range=[Z[Z.length-(Ht||1)].range[0],Z[Z.length-1].range[1]]),me=this.performAction.apply(Gt,[vt,rt,ze,xe.yy,ke[1],Mt,Z].concat(Ot)),typeof me<"u")return me;Ht&&(gt=gt.slice(0,-1*Ht*2),Mt=Mt.slice(0,-1*Ht),Z=Z.slice(0,-1*Ht)),gt.push(this.productions_[ke[1]][0]),Mt.push(Gt.$),Z.push(Gt._$),ln=Zt[gt[gt.length-2]][gt[gt.length-1]],gt.push(ln);break;case 3:return!0}}return!0}},xt=function(){var wt={EOF:1,parseError:function(kt,gt){if(this.yy.parser)this.yy.parser.parseError(kt,gt);else throw new Error(kt)},setInput:function(nt,kt){return this.yy=kt||this.yy||{},this._input=nt,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},input:function(){var nt=this._input[0];this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt;var kt=nt.match(/(?:\r\n?|\n).*/g);return kt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),nt},unput:function(nt){var kt=nt.length,gt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-kt),this.offset-=kt;var ht=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),gt.length-1&&(this.yylineno-=gt.length-1);var Mt=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:gt?(gt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-gt.length].length-gt[0].length:this.yylloc.first_column-kt},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-kt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),kt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|||
|
`+kt+"^"},test_match:function(nt,kt){var gt,ht,Mt;if(this.options.backtrack_lexer&&(Mt={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&&(Mt.yylloc.range=this.yylloc.range.slice(0))),ht=nt[0].match(/(?:\r\n?|\n).*/g),ht&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,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(nt[0].length),this.matched+=nt[0],gt=this.performAction.call(this,this.yy,this,kt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Z in Mt)this[Z]=Mt[Z];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var nt,kt,gt,ht;this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),Z=0;Z<Mt.length;Z++)if(gt=this._input.match(this.rules[Mt[Z]]),gt&&(!kt||gt[0].length>kt[0].length)){if(kt=gt,ht=Z,this.options.backtrack_lexer){if(nt=this.test_match(gt,Mt[Z]),nt!==!1)return nt;if(this._backtrack){kt=!1;continue}else return!1}else if(!this.options.flex)break}return kt?(nt=this.test_match(kt,Mt[ht]),nt!==!1?nt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var kt=this.next();return kt||this.lex()},begin:function(kt){this.conditionStack.push(kt)},popState:function(){var kt=this.conditionStack.length-1;return kt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(kt){return kt=this.conditionStack.length-1-Math.abs(kt||0),kt>=0?this.conditionStack[kt]:"INITIAL"},pushState:function(kt){this.begin(kt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(kt,gt,ht,Mt){switch(ht){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return wt}();yt.lexer=xt;function ft(){this.yy={}}return ft.prototype=yt,yt.Parser=ft,new ft}();G0t.parser=G0t;const J$e=G0t;let MK=Ie().gitGraph.mainBranchName,tze=Ie().gitGraph.mainBranchOrder,v1={},fg=null,IP={};IP[MK]={name:MK,order:tze};let Hf={};Hf[MK]=fg;let ad=MK,$Bt="LR",EE=0;function U0t(){return YIt({length:7})}const eze=function(i,a,f){p1.parseDirective(this,i,a,f)};function nze(i,a){const f=Object.create(null);return i.reduce((p,v)=>{const m=a(v);return f[m]||(f[m]=!0,p.push(v)),p},[])}const rze=function(i){$Bt=i};let zBt={};const ize=function(i){$t.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{zBt=JSON.parse(i)}catch(a){$t.error("error while parsing gitGraph options",a.message)}},sze=function(){return zBt},aze=function(i,a,f,p){$t.debug("Entering commit:",i,a,f,p),a=yi.sanitizeText(a,Ie()),i=yi.sanitizeText(i,Ie()),p=yi.sanitizeText(p
|
|||
|
${b-it.width/2-4/2},${Tt+2}
|
|||
|
${b-it.width/2-4/2},${Tt-2}
|
|||
|
${b+10-it.width/2-4},${Tt-dt-2}
|
|||
|
${b+10+it.width/2+4},${Tt-dt-2}
|
|||
|
${b+10+it.width/2+4},${Tt+dt+2}
|
|||
|
${b+10-it.width/2-4},${Tt+dt+2}`),st.attr("cx",b-it.width/2+4/2).attr("cy",Tt).attr("r",1.5).attr("class","tag-hole")}}b+=50,b>NK&&(NK=b)})},xze=(i,a,f)=>Object.keys(f).filter(m=>f[m].branch===a.branch&&f[m].seq>i.seq&&f[m].seq<a.seq).length>0,W0t=(i,a,f=0)=>{const p=i+Math.abs(i-a)/2;if(f>5)return p;if(OK.every(b=>Math.abs(b-p)>=10))return OK.push(p),p;const m=Math.abs(i-a);return W0t(i,a-m/5,f+1)},kze=(i,a,f,p)=>{const v=IK[a.id],m=IK[f.id],b=xze(a,f,p);let E="",C="",M=0,P=0,B=fp[f.branch].index,j;if(b){E="A 10 10, 0, 0, 0,",C="A 10 10, 0, 0, 1,",M=10,P=10,B=fp[f.branch].index;const R=v.y<m.y?W0t(v.y,m.y):W0t(m.y,v.y);v.y<m.y?j=`M ${v.x} ${v.y} L ${v.x} ${R-M} ${E} ${v.x+P} ${R} L ${m.x-M} ${R} ${C} ${m.x} ${R+P} L ${m.x} ${m.y}`:j=`M ${v.x} ${v.y} L ${v.x} ${R+M} ${C} ${v.x+P} ${R} L ${m.x-M} ${R} ${E} ${m.x} ${R-P} L ${m.x} ${m.y}`}else v.y<m.y&&(E="A 20 20, 0, 0, 0,",M=20,P=20,B=fp[f.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-M} ${E} ${v.x+P} ${m.y} L ${m.x} ${m.y}`),v.y>m.y&&(E="A 20 20, 0, 0, 0,",M=20,P=20,B=fp[a.branch].index,j=`M ${v.x} ${v.y} L ${m.x-M} ${v.y} ${E} ${m.x} ${v.y-P} L ${m.x} ${m.y}`),v.y===m.y&&(B=fp[a.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-M} ${E} ${v.x+P} ${m.y} L ${m.x} ${m.y}`);i.append("path").attr("d",j).attr("class","arrow arrow"+B%TE)},Eze=(i,a)=>{const f=i.append("g").attr("class","commit-arrows");Object.keys(a).forEach(p=>{const v=a[p];v.parents&&v.parents.length>0&&v.parents.forEach(m=>{kze(f,a[m],v,a)})})},Tze=(i,a)=>{const f=rP().gitGraph,p=i.append("g");a.forEach((v,m)=>{const b=m%TE,E=fp[v.name].pos,C=p.append("line");C.attr("x1",0),C.attr("y1",E),C.attr("x2",NK),C.attr("y2",E),C.attr("class","branch branch"+b),OK.push(E);let M=v.name;const P=yze(M),B=p.insert("rect"),R=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);R.node().appendChild(P);let H=P.getBBox();B.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-H.width-4-(f.rotateCommitLabel===!0?30:0)).attr("y",-H.height/2+8).attr("width",H.width+18).attr("height",H.height+4),R.attr("transform","translate("+(-H.width-14-(f.rotateCommitLabel===!0?30:0))+", "+(E-H.height/2-1)+")"),B.attr("transform","translate(-19, "+(E-H.height/2)+")")})},_ze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:J$e,db:wze,renderer:{draw:function(i,a,f,p){mze();const v=rP(),m=v.gitGraph;$t.debug("in gitgraph renderer",i+`
|
|||
|
`,"id:",a,f),NP=p.db.getCommits();const b=p.db.getBranchesAsObjArray();let E=0;b.forEach((M,P)=>{fp[M.name]={pos:E,index:P},E+=50+(m.rotateCommitLabel?40:0)});const C=Dr(`[id="${a}"]`);UBt(C,NP,!1),m.showBranches&&Tze(C,b),Eze(C,NP),UBt(C,NP,!0),lo.insertTitle(C,"gitTitleText",m.titleTopMargin,p.db.getDiagramTitle()),RIt(void 0,C,m.diagramPadding,m.useMaxWidth??v.useMaxWidth)}},styles:i=>`
|
|||
|
.commit-id,
|
|||
|
.commit-msg,
|
|||
|
.branch-label {
|
|||
|
fill: lightgrey;
|
|||
|
color: lightgrey;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
}
|
|||
|
${[0,1,2,3,4,5,6,7].map(a=>`
|
|||
|
.branch-label${a} { fill: ${i["gitBranchLabel"+a]}; }
|
|||
|
.commit${a} { stroke: ${i["git"+a]}; fill: ${i["git"+a]}; }
|
|||
|
.commit-highlight${a} { stroke: ${i["gitInv"+a]}; fill: ${i["gitInv"+a]}; }
|
|||
|
.label${a} { fill: ${i["git"+a]}; }
|
|||
|
.arrow${a} { stroke: ${i["git"+a]}; }
|
|||
|
`).join(`
|
|||
|
`)}
|
|||
|
|
|||
|
.branch {
|
|||
|
stroke-width: 1;
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-dasharray: 2;
|
|||
|
}
|
|||
|
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
|
|||
|
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
|
|||
|
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
|
|||
|
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
|
|||
|
.tag-hole { fill: ${i.textColor}; }
|
|||
|
|
|||
|
.commit-merge {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
}
|
|||
|
.commit-reverse {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
.commit-highlight-outer {
|
|||
|
}
|
|||
|
.commit-highlight-inner {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
}
|
|||
|
|
|||
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|||
|
.gitTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var K0t=function(){var i=function(wt,nt,kt,gt){for(kt=kt||{},gt=wt.length;gt--;kt[wt[gt]]=nt);return kt},a=[1,3],f=[1,5],p=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],v=[1,15],m=[1,16],b=[1,17],E=[1,18],C=[1,19],M=[1,20],P=[1,21],B=[1,22],j=[1,23],R=[1,24],H=[1,25],Y=[1,26],st=[1,27],et=[1,29],it=[1,31],dt=[1,34],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],yt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(nt,kt,gt,ht,Mt,Z,Zt){var vt=Z.length-1;switch(Mt){case 2:return Z[vt-1];case 3:this.$=[];break;case 4:Z[vt-1].push(Z[vt]),this.$=Z[vt-1];break;case 5:case 6:this.$=Z[vt];break;case 7:case 8:this.$=[];break;case 9:ht.setDateFormat(Z[vt].substr(11)),this.$=Z[vt].substr(11);break;case 10:ht.enableInclusiveEndDates(),this.$=Z[vt].substr(18);break;case 11:ht.TopAxis(),this.$=Z[vt].substr(8);break;case 12:ht.setAxisFormat(Z[vt].substr(11)),this.$=Z[vt].substr(11);break;case 13:ht.setTickInterval(Z[vt].substr(13)),this.$=Z[vt].substr(13);break;case 14:ht.setExcludes(Z[vt].substr(9)),this.$=Z[vt].substr(9);break;case 15:ht.setIncludes(Z[vt].substr(9)),this.$=Z[vt].substr(9);break;case 16:ht.setTodayMarker(Z[vt].substr(12)),this.$=Z[vt].substr(12);break;case 17:ht.setDiagramTitle(Z[vt].substr(6)),this.$=Z[vt].substr(6);break;case 18:this.$=Z[vt].trim(),ht.setAccTitle(this.$);break;case 19:case 20:this.$=Z[vt].trim(),ht.setAccDescription(this.$);break;case 21:ht.addSection(Z[vt].substr(8)),this.$=Z[vt].substr(8);break;case 23:ht.addTask(Z[vt-1],Z[vt]),this.$="task";break;case 27:this.$=Z[vt-1],ht.setClickEvent(Z[vt-1],Z[vt],null);break;case 28:this.$=Z[vt-2],ht.setClickEvent(Z[vt-2],Z[vt-1],Z[vt]);break;case 29:this.$=Z[vt-2],ht.setClickEvent(Z[vt-2],Z[vt-1],null),ht.setLink(Z[vt-2],Z[vt]);break;case 30:this.$=Z[vt-3],ht.setClickEvent(Z[vt-3],Z[vt-2],Z[vt-1]),ht.setLink(Z[vt-3],Z[vt]);break;case 31:this.$=Z[vt-2],ht.setClickEvent(Z[vt-2],Z[vt],null),ht.setLink(Z[vt-2],Z[vt-1]);break;case 32:this.$=Z[vt-3],ht.setClickEvent(Z[vt-3],Z[vt-1],Z[vt]),ht.setLink(Z[vt-3],Z[vt-2]);break;case 33:this.$=Z[vt-1],ht.setLink(Z[vt-1],Z[vt]);break;case 34:case 40:this.$=Z[vt-1]+" "+Z[vt];break;case 35:case 36:case 38:this.$=Z[vt-2]+" "+Z[vt-1]+" "+Z[vt];break;case 37:case 39:this.$=Z[vt-3]+" "+Z[vt-2]+" "+Z[vt-1]+" "+Z[vt];break;case 41:ht.parseDirective("%%{","open_directive");break;case 42:ht.parseDirective(Z[vt],"type_directive");break;case 43:Z[vt]=Z[vt].trim().replace(/'/g,'"'),ht.parseDirective(Z[vt],"arg_directive");break;case 44:ht.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:a,30:4,40:f},{1:[3]},{3:6,4:2,5:a,30:4,40:f},i(p,[2,3],{6:7}),{31:8,41:[1,9]},{41
|
|||
|
`+Nt.showPosition()+`
|
|||
|
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[Ee]||Ee)+"'":We="Parse error on line "+(ze+1)+": Unexpected "+(Ee==ne?"end of input":"'"+(this.terminals_[Ee]||Ee)+"'"),this.parseError(We,{text:Nt.match,token:this.terminals_[Ee]||Ee,line:Nt.yylineno,loc:Fn,expected:Rt})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+Ee);switch(ke[0]){case 1:gt.push(Ee),Mt.push(Nt.yytext),Z.push(Nt.yylloc),gt.push(ke[1]),Ee=null,rt=Nt.yyleng,vt=Nt.yytext,ze=Nt.yylineno,Fn=Nt.yylloc;break;case 2:if(Ht=this.productions_[ke[1]][1],Gt.$=Mt[Mt.length-Ht],Gt._$={first_line:Z[Z.length-(Ht||1)].first_line,last_line:Z[Z.length-1].last_line,first_column:Z[Z.length-(Ht||1)].first_column,last_column:Z[Z.length-1].last_column},Te&&(Gt._$.range=[Z[Z.length-(Ht||1)].range[0],Z[Z.length-1].range[1]]),me=this.performAction.apply(Gt,[vt,rt,ze,xe.yy,ke[1],Mt,Z].concat(Ot)),typeof me<"u")return me;Ht&&(gt=gt.slice(0,-1*Ht*2),Mt=Mt.slice(0,-1*Ht),Z=Z.slice(0,-1*Ht)),gt.push(this.productions_[ke[1]][0]),Mt.push(Gt.$),Z.push(Gt._$),ln=Zt[gt[gt.length-2]][gt[gt.length-1]],gt.push(ln);break;case 3:return!0}}return!0}},xt=function(){var wt={EOF:1,parseError:function(kt,gt){if(this.yy.parser)this.yy.parser.parseError(kt,gt);else throw new Error(kt)},setInput:function(nt,kt){return this.yy=kt||this.yy||{},this._input=nt,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},input:function(){var nt=this._input[0];this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt;var kt=nt.match(/(?:\r\n?|\n).*/g);return kt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),nt},unput:function(nt){var kt=nt.length,gt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-kt),this.offset-=kt;var ht=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),gt.length-1&&(this.yylineno-=gt.length-1);var Mt=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:gt?(gt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-gt.length].length-gt[0].length:this.yylloc.first_column-kt},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-kt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),kt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|||
|
`+kt+"^"},test_match:function(nt,kt){var gt,ht,Mt;if(this.options.backtrack_lexer&&(Mt={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&&(Mt.yylloc.range=this.yylloc.range.slice(0))),ht=nt[0].match(/(?:\r\n?|\n).*/g),ht&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,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(nt[0].length),this.matched+=nt[0],gt=this.performAction.call(this,this.yy,this,kt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Z in Mt)this[Z]=Mt[Z];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var nt,kt,gt,ht;this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),Z=0;Z<Mt.length;Z++)if(gt=this._input.match(this.rules[Mt[Z]]),gt&&(!kt||gt[0].length>kt[0].length)){if(kt=gt,ht=Z,this.options.backtrack_lexer){if(nt=this.test_match(gt,Mt[Z]),nt!==!1)return nt;if(this._backtrack){kt=!1;continue}else return!1}else if(!this.options.flex)break}return kt?(nt=this.test_match(kt,Mt[ht]),nt!==!1?nt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var kt=this.next();return kt||this.lex()},begin:function(kt){this.conditionStack.push(kt)},popState:function(){var kt=this.conditionStack.length-1;return kt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(kt){return kt=this.conditionStack.length-1-Math.abs(kt||0),kt>=0?this.conditionStack[kt]:"INITIAL"},pushState:function(kt){this.begin(kt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(kt,gt,ht,Mt){switch(ht){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return wt}();yt.lexer=xt;function ft(){this.yy={}}return ft.prototype=yt,yt.Parser=ft,new ft}();K0t.parser=K0t;const Cze=K0t;var Sze="isoweek";const Aze=function(i,a,f){var p=function(C,M){var P=(M?f.utc:f)().year(C).startOf(v5),B=4-P.isoWeekday();return P.isoWeekday()>4&&(B+=7),P.add(B,Gw)},v=function(C){return C.add(4-C.isoWeekday(),Gw)},m=a.prototype;m.isoWeekYear=function(){var E=v(this);return E.year()},m.isoWeek=fun
|
|||
|
.mermaid-main-font {
|
|||
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
}
|
|||
|
.exclude-range {
|
|||
|
fill: ${i.excludeBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.section {
|
|||
|
stroke: none;
|
|||
|
opacity: 0.2;
|
|||
|
}
|
|||
|
|
|||
|
.section0 {
|
|||
|
fill: ${i.sectionBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.section2 {
|
|||
|
fill: ${i.sectionBkgColor2};
|
|||
|
}
|
|||
|
|
|||
|
.section1,
|
|||
|
.section3 {
|
|||
|
fill: ${i.altSectionBkgColor};
|
|||
|
opacity: 0.2;
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle0 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle1 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle2 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle3 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle {
|
|||
|
text-anchor: start;
|
|||
|
// font-size: ${i.ganttFontSize};
|
|||
|
// text-height: 14px;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Grid and axis */
|
|||
|
|
|||
|
.grid .tick {
|
|||
|
stroke: ${i.gridColor};
|
|||
|
opacity: 0.8;
|
|||
|
shape-rendering: crispEdges;
|
|||
|
text {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.grid path {
|
|||
|
stroke-width: 0;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Today line */
|
|||
|
|
|||
|
.today {
|
|||
|
fill: none;
|
|||
|
stroke: ${i.todayLineColor};
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Task styling */
|
|||
|
|
|||
|
/* Default task */
|
|||
|
|
|||
|
.task {
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.taskText {
|
|||
|
text-anchor: middle;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
}
|
|||
|
|
|||
|
// .taskText:not([font-size]) {
|
|||
|
// font-size: ${i.ganttFontSize};
|
|||
|
// }
|
|||
|
|
|||
|
.taskTextOutsideRight {
|
|||
|
fill: ${i.taskTextDarkColor};
|
|||
|
text-anchor: start;
|
|||
|
// font-size: ${i.ganttFontSize};
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideLeft {
|
|||
|
fill: ${i.taskTextDarkColor};
|
|||
|
text-anchor: end;
|
|||
|
// font-size: ${i.ganttFontSize};
|
|||
|
}
|
|||
|
|
|||
|
/* Special case clickable */
|
|||
|
.task.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
.taskText.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideLeft.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideRight.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
/* Specific task settings for the sections*/
|
|||
|
|
|||
|
.taskText0,
|
|||
|
.taskText1,
|
|||
|
.taskText2,
|
|||
|
.taskText3 {
|
|||
|
fill: ${i.taskTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.task0,
|
|||
|
.task1,
|
|||
|
.task2,
|
|||
|
.task3 {
|
|||
|
fill: ${i.taskBkgColor};
|
|||
|
stroke: ${i.taskBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutside0,
|
|||
|
.taskTextOutside2
|
|||
|
{
|
|||
|
fill: ${i.taskTextOutsideColor};
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutside1,
|
|||
|
.taskTextOutside3 {
|
|||
|
fill: ${i.taskTextOutsideColor};
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Active task */
|
|||
|
|
|||
|
.active0,
|
|||
|
.active1,
|
|||
|
.active2,
|
|||
|
.active3 {
|
|||
|
fill: ${i.activeTaskBkgColor};
|
|||
|
stroke: ${i.activeTaskBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activeText0,
|
|||
|
.activeText1,
|
|||
|
.activeText2,
|
|||
|
.activeText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Completed task */
|
|||
|
|
|||
|
.done0,
|
|||
|
.done1,
|
|||
|
.done2,
|
|||
|
.done3 {
|
|||
|
stroke: ${i.doneTaskBorderColor};
|
|||
|
fill: ${i.doneTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.doneText0,
|
|||
|
.doneText1,
|
|||
|
.doneText2,
|
|||
|
.doneText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Tasks on the critical line */
|
|||
|
|
|||
|
.crit0,
|
|||
|
.crit1,
|
|||
|
.crit2,
|
|||
|
.crit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.critBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.activeCrit0,
|
|||
|
.activeCrit1,
|
|||
|
.activeCrit2,
|
|||
|
.activeCrit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.activeTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.doneCrit0,
|
|||
|
.doneCrit1,
|
|||
|
.doneCrit2,
|
|||
|
.doneCrit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.doneTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
cursor: pointer;
|
|||
|
shape-rendering: crispEdges;
|
|||
|
}
|
|||
|
|
|||
|
.milestone {
|
|||
|
transform: rotate(45deg) scale(0.8,0.8);
|
|||
|
}
|
|||
|
|
|||
|
.milestoneText {
|
|||
|
font-style: italic;
|
|||
|
}
|
|||
|
.doneCritText0,
|
|||
|
.doneCritText1,
|
|||
|
.doneCritText2,
|
|||
|
.doneCritText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
.activeCritText0,
|
|||
|
.activeCritText1,
|
|||
|
.activeCritText2,
|
|||
|
.activeCritText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
.titleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor} ;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var ogt=function(){var i=function(m,b,E,C){for(E=E||{},C=m.length;C--;E[m[C]]=b);return E},a=[6,9,10],f={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,E,C,M,P,B,j){switch(B.length-1,P){case 1:return M;case 4:break;case 6:M.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(a,[2,3]),i(a,[2,4]),i(a,[2,5]),i(a,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,E){if(E.recoverable)this.trace(b);else{var C=new Error(b);throw C.hash=E,C}},parse:function(b){var E=this,C=[0],M=[],P=[null],B=[],j=this.table,R="",H=0,Y=0,st=2,et=1,it=B.slice.call(arguments,1),dt=Object.create(this.lexer),Tt={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(Tt.yy[yt]=this.yy[yt]);dt.setInput(b,Tt.yy),Tt.yy.lexer=dt,Tt.yy.parser=this,typeof dt.yylloc>"u"&&(dt.yylloc={});var xt=dt.yylloc;B.push(xt);var ft=dt.options&&dt.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(){var Ae;return Ae=M.pop()||dt.lex()||et,typeof Ae!="number"&&(Ae instanceof Array&&(M=Ae,Ae=M.pop()),Ae=E.symbols_[Ae]||Ae),Ae}for(var nt,kt,gt,ht,Mt={},Z,Zt,vt,ze;;){if(kt=C[C.length-1],this.defaultActions[kt]?gt=this.defaultActions[kt]:((nt===null||typeof nt>"u")&&(nt=wt()),gt=j[kt]&&j[kt][nt]),typeof gt>"u"||!gt.length||!gt[0]){var rt="";ze=[];for(Z in j[kt])this.terminals_[Z]&&Z>st&&ze.push("'"+this.terminals_[Z]+"'");dt.showPosition?rt="Parse error on line "+(H+1)+`:
|
|||
|
`+dt.showPosition()+`
|
|||
|
Expecting `+ze.join(", ")+", got '"+(this.terminals_[nt]||nt)+"'":rt="Parse error on line "+(H+1)+": Unexpected "+(nt==et?"end of input":"'"+(this.terminals_[nt]||nt)+"'"),this.parseError(rt,{text:dt.match,token:this.terminals_[nt]||nt,line:dt.yylineno,loc:xt,expected:ze})}if(gt[0]instanceof Array&>.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+nt);switch(gt[0]){case 1:C.push(nt),P.push(dt.yytext),B.push(dt.yylloc),C.push(gt[1]),nt=null,Y=dt.yyleng,R=dt.yytext,H=dt.yylineno,xt=dt.yylloc;break;case 2:if(Zt=this.productions_[gt[1]][1],Mt.$=P[P.length-Zt],Mt._$={first_line:B[B.length-(Zt||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(Zt||1)].first_column,last_column:B[B.length-1].last_column},ft&&(Mt._$.range=[B[B.length-(Zt||1)].range[0],B[B.length-1].range[1]]),ht=this.performAction.apply(Mt,[R,Y,H,Tt.yy,gt[1],P,B].concat(it)),typeof ht<"u")return ht;Zt&&(C=C.slice(0,-1*Zt*2),P=P.slice(0,-1*Zt),B=B.slice(0,-1*Zt)),C.push(this.productions_[gt[1]][0]),P.push(Mt.$),B.push(Mt._$),vt=j[C[C.length-2]][C[C.length-1]],C.push(vt);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(E,C){if(this.yy.parser)this.yy.parser.parseError(E,C);else throw new Error(E)},setInput:function(b,E){return this.yy=E||this.yy||{},this._input=b,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},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var E=b.length,C=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var M=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 P=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===M.length?this.yylloc.first_column:0)+M[M.length-C.length].length-C[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|||
|
`+E+"^"},test_match:function(b,E){var C,M,P;if(this.options.backtrack_lexer&&(P={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&&(P.yylloc.range=this.yylloc.range.slice(0))),M=b[0].match(/(?:\r\n?|\n).*/g),M&&(this.yylineno+=M.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:M?M[M.length-1].length-M[M.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],C=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var B in P)this[B]=P[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,C,M;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),B=0;B<P.length;B++)if(C=this._input.match(this.rules[P[B]]),C&&(!E||C[0].length>E[0].length)){if(E=C,M=B,this.options.backtrack_lexer){if(b=this.test_match(C,P[B]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,P[M]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,C,M,P){switch(M){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return m}();f.lexer=p;function v(){this.yy={}}return v.prototype=f,f.Parser=v,new v}();ogt.parser=ogt;const Cqe=ogt;var aRt="",oRt=!1;const Sqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Cqe,db:{setMessage:i=>{$t.debug("Setting message to: "+i),aRt=i},getMessage:()=>aRt,setInfo:i=>{oRt=i},getInfo:()=>oRt,clear:ug},renderer:{draw:(i,a,f)=>{try{$t.debug(`Rendering info diagram
|
|||
|
`+i);const p=Ie().securityLevel;let v;p==="sandbox"&&(v=Dr("#i"+a));const b=Dr(p==="sandbox"?v.nodes()[0].contentDocument.body:"body").select("#"+a);b.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+f),b.attr("height",100),b.attr("width",400)}catch(p){$t.error("Error while rendering info diagram"),$t.error(p.message)}}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var cgt=function(){var i=function(xt,ft,wt,nt){for(wt=wt||{},nt=xt.length;nt--;wt[xt[nt]]=ft);return wt},a=[1,4],f=[1,5],p=[1,6],v=[1,7],m=[1,9],b=[1,11,13,15,17,19,20,26,27,28,29],E=[2,5],C=[1,6,11,13,15,17,19,20,26,27,28,29],M=[26,27,28],P=[2,8],B=[1,18],j=[1,19],R=[1,20],H=[1,21],Y=[1,22],st=[1,23],et=[1,28],it=[6,26,27,28,29],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(ft,wt,nt,kt,gt,ht,Mt){var Z=ht.length-1;switch(gt){case 4:kt.setShowData(!0);break;case 7:this.$=ht[Z-1];break;case 9:kt.addSection(ht[Z-1],kt.cleanupValue(ht[Z]));break;case 10:this.$=ht[Z].trim(),kt.setDiagramTitle(this.$);break;case 11:this.$=ht[Z].trim(),kt.setAccTitle(this.$);break;case 12:case 13:this.$=ht[Z].trim(),kt.setAccDescription(this.$);break;case 14:kt.addSection(ht[Z].substr(8)),this.$=ht[Z].substr(8);break;case 21:kt.parseDirective("%%{","open_directive");break;case 22:kt.parseDirective(ht[Z],"type_directive");break;case 23:ht[Z]=ht[Z].trim().replace(/'/g,'"'),kt.parseDirective(ht[Z],"arg_directive");break;case 24:kt.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{1:[3]},{3:10,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{3:11,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},i(b,E,{7:12,8:[1,13]}),i(C,[2,18]),i(C,[2,19]),i(C,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},i(M,P,{21:8,9:16,10:17,5:24,1:[2,3],11:B,13:j,15:R,17:H,19:Y,20:st,29:m}),i(b,E,{7:25}),{23:26,24:[1,27],32:et},i([24,32],[2,22]),i(b,[2,6]),{4:29,26:f,27:p,28:v},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},i(M,[2,13]),i(M,[2,14]),i(M,[2,15]),i(M,P,{21:8,9:16,10:17,5:24,1:[2,4],11:B,13:j,15:R,17:H,19:Y,20:st,29:m}),i(it,[2,16]),{25:34,31:[1,35]},i(it,[2,24]),i(b,[2,7]),i(M,[2,9]),i(M,[2,10]),i(M,[2,11]),i(M,[2,12]),{23:36,32:et},{32:[2,23]},i(it,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(ft,wt){if(wt.recoverable)this.trace(ft);else{var nt=new Error(ft);throw nt.hash=wt,nt}},parse:function(ft){var wt=this,nt=[0],kt=[],gt=[null],ht=[],Mt=this.table,Z="",Zt=0,vt=0,ze=2,rt=1,Ae=ht.slice.call(arguments,1),ne=Object.create(this.lexer),Ot={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(Ot.yy[Nt]=this.yy[Nt]);ne.setInput(ft,Ot.yy),Ot.yy.lexer=ne,Ot.yy.parser=this,typeof ne.yylloc>"u"&&(ne.yylloc={});var xe=ne.yylloc;ht.push(xe);var cn=ne.options&&ne.options.ranges;typeof Ot.yy.parseError=="function"?this.parseError=Ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fn(){var Rt;return Rt=kt.pop()||ne.lex()||rt,typeof Rt!="number"&&(Rt instanceof Array&&(kt=Rt,Rt=kt.pop()),Rt=wt.symbols_[Rt]||Rt),Rt}for(var Te,vr,Ee,le,ke={},me,Gt,Le,Ht;;){if(vr=nt[
|
|||
|
`+ne.showPosition()+`
|
|||
|
Expecting `+Ht.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":ln="Parse error on line "+(Zt+1)+": Unexpected "+(Te==rt?"end of input":"'"+(this.terminals_[Te]||Te)+"'"),this.parseError(ln,{text:ne.match,token:this.terminals_[Te]||Te,line:ne.yylineno,loc:xe,expected:Ht})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vr+", token: "+Te);switch(Ee[0]){case 1:nt.push(Te),gt.push(ne.yytext),ht.push(ne.yylloc),nt.push(Ee[1]),Te=null,vt=ne.yyleng,Z=ne.yytext,Zt=ne.yylineno,xe=ne.yylloc;break;case 2:if(Gt=this.productions_[Ee[1]][1],ke.$=gt[gt.length-Gt],ke._$={first_line:ht[ht.length-(Gt||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(Gt||1)].first_column,last_column:ht[ht.length-1].last_column},cn&&(ke._$.range=[ht[ht.length-(Gt||1)].range[0],ht[ht.length-1].range[1]]),le=this.performAction.apply(ke,[Z,vt,Zt,Ot.yy,Ee[1],gt,ht].concat(Ae)),typeof le<"u")return le;Gt&&(nt=nt.slice(0,-1*Gt*2),gt=gt.slice(0,-1*Gt),ht=ht.slice(0,-1*Gt)),nt.push(this.productions_[Ee[1]][0]),gt.push(ke.$),ht.push(ke._$),Le=Mt[nt[nt.length-2]][nt[nt.length-1]],nt.push(Le);break;case 3:return!0}}return!0}},Tt=function(){var xt={EOF:1,parseError:function(wt,nt){if(this.yy.parser)this.yy.parser.parseError(wt,nt);else throw new Error(wt)},setInput:function(ft,wt){return this.yy=wt||this.yy||{},this._input=ft,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},input:function(){var ft=this._input[0];this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft;var wt=ft.match(/(?:\r\n?|\n).*/g);return wt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ft},unput:function(ft){var wt=ft.length,nt=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;var kt=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),nt.length-1&&(this.yylineno-=nt.length-1);var gt=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:nt?(nt.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-nt.length].length-nt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[gt[0],gt[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),wt=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+`
|
|||
|
`+wt+"^"},test_match:function(ft,wt){var nt,kt,gt;if(this.options.backtrack_lexer&&(gt={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&&(gt.yylloc.range=this.yylloc.range.slice(0))),kt=ft[0].match(/(?:\r\n?|\n).*/g),kt&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,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(ft[0].length),this.matched+=ft[0],nt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nt)return nt;if(this._backtrack){for(var ht in gt)this[ht]=gt[ht];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ft,wt,nt,kt;this._more||(this.yytext="",this.match="");for(var gt=this._currentRules(),ht=0;ht<gt.length;ht++)if(nt=this._input.match(this.rules[gt[ht]]),nt&&(!wt||nt[0].length>wt[0].length)){if(wt=nt,kt=ht,this.options.backtrack_lexer){if(ft=this.test_match(nt,gt[ht]),ft!==!1)return ft;if(this._backtrack){wt=!1;continue}else return!1}else if(!this.options.flex)break}return wt?(ft=this.test_match(wt,gt[kt]),ft!==!1?ft:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var wt=this.next();return wt||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){var wt=this.conditionStack.length-1;return wt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return wt=this.conditionStack.length-1-Math.abs(wt||0),wt>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,nt,kt,gt){switch(kt){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return xt}();dt.lexer=Tt;function yt(){this.yy={}}return yt.prototype=dt,dt.Parser=yt,new yt}();cgt.parser=cgt;const Aqe=cgt;let jK={},ugt=!1;const Lqe={parseDirective:function(i,a,f){p1.parseDirective(this,i,a,f)},getConfig:()=>Ie().pie,addSection:function(i,a){i=yi.sanitizeText(i,Ie()),jK[i]===void 0&&(jK[i]=a,$t.debug("Added new section :",i))},getSections:()=>jK,cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){jK={},ugt=!1,ug()},setAccTitle:lg,getAccTitle:op,setDiagramTitle:Yb,getDiagramTitle:N2,setShowData:function(i){ugt=i},getShowData:function(){return ugt},getAccDescription:up,setAccDescription:cp},Dqe=i=>`
|
|||
|
.pieCircle{
|
|||
|
stroke: ${i.pieStrokeColor};
|
|||
|
stroke-width : ${i.pieStrokeWidth};
|
|||
|
opacity : ${i.pieOpacity};
|
|||
|
}
|
|||
|
.pieOuterCircle{
|
|||
|
stroke: ${i.pieOuterStrokeColor};
|
|||
|
stroke-width: ${i.pieOuterStrokeWidth};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
.pieTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: ${i.pieTitleTextSize};
|
|||
|
fill: ${i.pieTitleTextColor};
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
}
|
|||
|
.slice {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
fill: ${i.pieSectionTextColor};
|
|||
|
font-size:${i.pieSectionTextSize};
|
|||
|
// fill: white;
|
|||
|
}
|
|||
|
.legend text {
|
|||
|
fill: ${i.pieLegendTextColor};
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: ${i.pieLegendTextSize};
|
|||
|
}
|
|||
|
`;let k3=Ie(),P5;const jP=450,Mqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Aqe,db:Lqe,renderer:{draw:(i,a,f,p)=>{var dt;try{k3=Ie(),$t.debug(`Rendering info diagram
|
|||
|
`+i);const Tt=Ie().securityLevel;let yt;Tt==="sandbox"&&(yt=Dr("#i"+a));const xt=Dr(Tt==="sandbox"?yt.nodes()[0].contentDocument.body:"body"),ft=Tt==="sandbox"?yt.nodes()[0].contentDocument:document;p.db.clear(),p.parser.parse(i),$t.debug("Parsed info diagram");const wt=ft.getElementById(a);P5=wt.parentElement.offsetWidth,P5===void 0&&(P5=1200),k3.useWidth!==void 0&&(P5=k3.useWidth),k3.pie.useWidth!==void 0&&(P5=k3.pie.useWidth);const nt=xt.select("#"+a);Kb(nt,jP,P5,k3.pie.useMaxWidth),wt.setAttribute("viewBox","0 0 "+P5+" "+jP);var v=40,m=18,b=4,E=Math.min(P5,jP)/2-v,C=nt.append("g").attr("transform","translate("+P5/2+","+jP/2+")"),M=p.db.getSections(),P=0;Object.keys(M).forEach(function(Mt){P+=M[Mt]});const kt=k3.themeVariables;var B=[kt.pie1,kt.pie2,kt.pie3,kt.pie4,kt.pie5,kt.pie6,kt.pie7,kt.pie8,kt.pie9,kt.pie10,kt.pie11,kt.pie12];const gt=((dt=k3.pie)==null?void 0:dt.textPosition)??.75;let[ht]=tL(kt.pieOuterStrokeWidth);ht??(ht=2);var j=KDt().range(B),R=Object.entries(M).map(function(Mt,Z){return{order:Z,name:Mt[0],value:Mt[1]}}),H=$9e().value(function(Mt){return Mt.value}).sort(function(Mt,Z){return Mt.order-Z.order}),Y=H(R),st=jA().innerRadius(0).outerRadius(E),et=jA().innerRadius(E*gt).outerRadius(E*gt);C.append("circle").attr("cx",0).attr("cy",0).attr("r",E+ht/2).attr("class","pieOuterCircle"),C.selectAll("mySlices").data(Y).enter().append("path").attr("d",st).attr("fill",function(Mt){return j(Mt.data.name)}).attr("class","pieCircle"),C.selectAll("mySlices").data(Y).enter().append("text").text(function(Mt){return(Mt.data.value/P*100).toFixed(0)+"%"}).attr("transform",function(Mt){return"translate("+et.centroid(Mt)+")"}).style("text-anchor","middle").attr("class","slice"),C.append("text").text(p.db.getDiagramTitle()).attr("x",0).attr("y",-(jP-50)/2).attr("class","pieTitleText");var it=C.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(Mt,Z){const Zt=m+b,vt=Zt*j.domain().length/2,ze=12*m,rt=Z*Zt-vt;return"translate("+ze+","+rt+")"});it.append("rect").attr("width",m).attr("height",m).style("fill",j).style("stroke",j),it.data(Y).append("text").attr("x",m+b).attr("y",m-b).text(function(Mt){return p.db.getShowData()||k3.showData||k3.pie.showData?Mt.data.name+" ["+Mt.data.value+"]":Mt.data.name})}catch(Tt){$t.error("Error while rendering info diagram"),$t.error(Tt)}}},styles:Dqe}},Symbol.toStringTag,{value:"Module"}));var lgt=function(){var i=function(Ee,le,ke,me){for(ke=ke||{},me=Ee.length;me--;ke[Ee[me]]=le);return ke},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[1,10],E=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],C=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],M=[38,39,40],P=[2,8],B=[1,19],j=[1,23],R=[1,24],H=[1,25],Y=[1,26],st=[1,27],et=[1,29],it=[1,30],dt=[1,31],Tt=[1,32],yt=[1,33],xt=[1,34],ft=[1,37],wt=[1,38],nt=[1,39],kt=[1,40],gt=[1,41],ht=[1,42],Mt=[1,43],Z=[1,44],Zt=[1,45],vt=[1,46],ze=[1,47],rt=[1,48],Ae=[1,49],ne=[1,52],Ot=[1,67],Nt=[1,68],xe=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],cn=[5,7,38,39,40,41],Fn={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"
|
|||
|
`+he.showPosition()+`
|
|||
|
Expecting `+zn.join(", ")+", got '"+(this.terminals_[En]||En)+"'":Zn="Parse error on line "+(We+1)+": Unexpected "+(En==Ce?"end of input":"'"+(this.terminals_[En]||En)+"'"),this.parseError(Zn,{text:he.match,token:this.terminals_[En]||En,line:he.yylineno,loc:tr,expected:zn})}if(lr[0]instanceof Array&&lr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Mr+", token: "+En);switch(lr[0]){case 1:me.push(En),Le.push(he.yytext),Ht.push(he.yylloc),me.push(lr[1]),En=null,se=he.yyleng,Rt=he.yytext,We=he.yylineno,tr=he.yylloc;break;case 2:if(hi=this.productions_[lr[1]][1],Is.$=Le[Le.length-hi],Is._$={first_line:Ht[Ht.length-(hi||1)].first_line,last_line:Ht[Ht.length-1].last_line,first_column:Ht[Ht.length-(hi||1)].first_column,last_column:Ht[Ht.length-1].last_column},cr&&(Is._$.range=[Ht[Ht.length-(hi||1)].range[0],Ht[Ht.length-1].range[1]]),Ki=this.performAction.apply(Is,[Rt,se,We,ir.yy,lr[1],Le,Ht].concat(Nr)),typeof Ki<"u")return Ki;hi&&(me=me.slice(0,-1*hi*2),Le=Le.slice(0,-1*hi),Ht=Ht.slice(0,-1*hi)),me.push(this.productions_[lr[1]][0]),Le.push(Is.$),Ht.push(Is._$),qi=ln[me[me.length-2]][me[me.length-1]],me.push(qi);break;case 3:return!0}}return!0}},Te=function(){var Ee={EOF:1,parseError:function(ke,me){if(this.yy.parser)this.yy.parser.parseError(ke,me);else throw new Error(ke)},setInput:function(le,ke){return this.yy=ke||this.yy||{},this._input=le,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},input:function(){var le=this._input[0];this.yytext+=le,this.yyleng++,this.offset++,this.match+=le,this.matched+=le;var ke=le.match(/(?:\r\n?|\n).*/g);return ke?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),le},unput:function(le){var ke=le.length,me=le.split(/(?:\r\n?|\n)/g);this._input=le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ke),this.offset-=ke;var Gt=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),me.length-1&&(this.yylineno-=me.length-1);var Le=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:me?(me.length===Gt.length?this.yylloc.first_column:0)+Gt[Gt.length-me.length].length-me[0].length:this.yylloc.first_column-ke},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-ke]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(le){this.unput(this.match.slice(le))},pastInput:function(){var le=this.matched.substr(0,this.matched.length-this.match.length);return(le.length>20?"...":"")+le.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var le=this.match;return le.length<20&&(le+=this._input.substr(0,20-le.length)),(le.substr(0,20)+(le.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var le=this.pastInput(),ke=new Array(le.length+1).join("-");return le+this.upcomingInput()+`
|
|||
|
`+ke+"^"},test_match:function(le,ke){var me,Gt,Le;if(this.options.backtrack_lexer&&(Le={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&&(Le.yylloc.range=this.yylloc.range.slice(0))),Gt=le[0].match(/(?:\r\n?|\n).*/g),Gt&&(this.yylineno+=Gt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Gt?Gt[Gt.length-1].length-Gt[Gt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+le[0].length},this.yytext+=le[0],this.match+=le[0],this.matches=le,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(le[0].length),this.matched+=le[0],me=this.performAction.call(this,this.yy,this,ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),me)return me;if(this._backtrack){for(var Ht in Le)this[Ht]=Le[Ht];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var le,ke,me,Gt;this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),Ht=0;Ht<Le.length;Ht++)if(me=this._input.match(this.rules[Le[Ht]]),me&&(!ke||me[0].length>ke[0].length)){if(ke=me,Gt=Ht,this.options.backtrack_lexer){if(le=this.test_match(me,Le[Ht]),le!==!1)return le;if(this._backtrack){ke=!1;continue}else return!1}else if(!this.options.flex)break}return ke?(le=this.test_match(ke,Le[Gt]),le!==!1?le:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ke=this.next();return ke||this.lex()},begin:function(ke){this.conditionStack.push(ke)},popState:function(){var ke=this.conditionStack.length-1;return ke>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ke){return ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0?this.conditionStack[ke]:"INITIAL"},pushState:function(ke){this.begin(ke)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ke,me,Gt,Le){switch(Gt){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),36;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:break;case 6:break;case 7:return 38;case 8:break;case 9:return this.begin("title"),14;case 10:return this.popState(),"title_value";case 11:return this.begin("acc_title"),16;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),18;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 26;case 19:return 28;case 20:return 27;case 21:return 29;case 22:return 30;case 23:return 31;case 24:return 32;case 25:this.begin("md_string");break;case 26:return"MD_STR";case 27:this.popState();break;case 28:this.begin("string");break;case 29:this.popState();break;case 30:return"STR";case 31:return this.begin("point_start"),23;case 32:return this.begin("point_x"),24;case 33:this.popState();break;case 34:this.popState(),this.begin("point_y");break;case 35:return this.popState(),25;case 36:return 7;case 37:return 53;case 38:return"COLON";case 39:return 55;case 40:return 54;case 41:return 56;case 42:return 56;case 43:return 57;case 44:return 59;case 45:return 60;case 46:return 58;case 47:return 51;case 48:return 61;case 49:return 52;case 50:return 5;case 51:return 39;case 52:return 50;case 53:return 40}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[35],inclusive:!1},point_x:{rules:[34],inclusive:!1},point_start:{rules:[32,33],inclusive:!1},acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[10],inclusive:!1},md_string:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,11,13,15,18,19,20,21,22,23,24,25,28,31,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};return Ee}();Fn.lexer=Te;function vr(){this.yy={}}return vr.prototype=Fn,Fn.Parser=vr,new vr}();lgt.parser=lgt;const Iqe=lgt,dg=aIt();class Oqe{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaul
|
|||
|
`+i);const C=E.securityLevel;let M;C==="sandbox"&&(M=Dr("#i"+a));const B=Dr(C==="sandbox"?M.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`),j=B.append("g").attr("class","main"),R=((wt=E.quadrantChart)==null?void 0:wt.chartWidth)||500,H=((nt=E.quadrantChart)==null?void 0:nt.chartHeight)||500;Kb(B,H,R,((kt=E.quadrantChart)==null?void 0:kt.useMaxWidth)||!0),B.attr("viewBox","0 0 "+R+" "+H),p.db.setHeight(H),p.db.setWidth(R);const Y=p.db.getQuadrantData(),st=j.append("g").attr("class","quadrants"),et=j.append("g").attr("class","border"),it=j.append("g").attr("class","data-points"),dt=j.append("g").attr("class","labels"),Tt=j.append("g").attr("class","title");Y.title&&Tt.append("text").attr("x",0).attr("y",0).attr("fill",Y.title.fill).attr("font-size",Y.title.fontSize).attr("dominant-baseline",v(Y.title.horizontalPos)).attr("text-anchor",m(Y.title.verticalPos)).attr("transform",b(Y.title)).text(Y.title.text),Y.borderLines&&et.selectAll("line").data(Y.borderLines).enter().append("line").attr("x1",gt=>gt.x1).attr("y1",gt=>gt.y1).attr("x2",gt=>gt.x2).attr("y2",gt=>gt.y2).style("stroke",gt=>gt.strokeFill).style("stroke-width",gt=>gt.strokeWidth);const yt=st.selectAll("g.quadrant").data(Y.quadrants).enter().append("g").attr("class","quadrant");yt.append("rect").attr("x",gt=>gt.x).attr("y",gt=>gt.y).attr("width",gt=>gt.width).attr("height",gt=>gt.height).attr("fill",gt=>gt.fill),yt.append("text").attr("x",0).attr("y",0).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text)).text(gt=>gt.text.text),dt.selectAll("g.label").data(Y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(gt=>gt.text).attr("fill",gt=>gt.fill).attr("font-size",gt=>gt.fontSize).attr("dominant-baseline",gt=>v(gt.horizontalPos)).attr("text-anchor",gt=>m(gt.verticalPos)).attr("transform",gt=>b(gt));const ft=it.selectAll("g.data-point").data(Y.points).enter().append("g").attr("class","data-point");ft.append("circle").attr("cx",gt=>gt.x).attr("cy",gt=>gt.y).attr("r",gt=>gt.radius).attr("fill",gt=>gt.fill),ft.append("text").attr("x",0).attr("y",0).text(gt=>gt.text.text).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var hgt=function(){var i=function(vr,Ee,le,ke){for(le=le||{},ke=vr.length;ke--;le[vr[ke]]=Ee);return le},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],E=[1,22],C=[2,13],M=[1,26],P=[1,27],B=[1,28],j=[1,29],R=[1,30],H=[1,31],Y=[1,24],st=[1,32],et=[1,33],it=[1,36],dt=[71,72],Tt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],yt=[1,56],xt=[1,57],ft=[1,58],wt=[1,59],nt=[1,60],kt=[1,61],gt=[1,62],ht=[62,63],Mt=[1,74],Z=[1,70],Zt=[1,71],vt=[1,72],ze=[1,73],rt=[1,75],Ae=[1,79],ne=[1,80],Ot=[1,77],Nt=[1,78],xe=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],cn={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65
|
|||
|
`+Nr.showPosition()+`
|
|||
|
Expecting `+qi.join(", ")+", got '"+(this.terminals_[gn]||gn)+"'":zn="Parse error on line "+(Rt+1)+": Unexpected "+(gn==Or?"end of input":"'"+(this.terminals_[gn]||gn)+"'"),this.parseError(zn,{text:Nr.match,token:this.terminals_[gn]||gn,line:Nr.yylineno,loc:Yn,expected:qi})}if(Mr[0]instanceof Array&&Mr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+En+", token: "+gn);switch(Mr[0]){case 1:ke.push(gn),Gt.push(Nr.yytext),Le.push(Nr.yylloc),ke.push(Mr[1]),gn=null,We=Nr.yyleng,ln=Nr.yytext,Rt=Nr.yylineno,Yn=Nr.yylloc;break;case 2:if(Ha=this.productions_[Mr[1]][1],Ki.$=Gt[Gt.length-Ha],Ki._$={first_line:Le[Le.length-(Ha||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(Ha||1)].first_column,last_column:Le[Le.length-1].last_column},tr&&(Ki._$.range=[Le[Le.length-(Ha||1)].range[0],Le[Le.length-1].range[1]]),lr=this.performAction.apply(Ki,[ln,We,Rt,he.yy,Mr[1],Gt,Le].concat(Ce)),typeof lr<"u")return lr;Ha&&(ke=ke.slice(0,-1*Ha*2),Gt=Gt.slice(0,-1*Ha),Le=Le.slice(0,-1*Ha)),ke.push(this.productions_[Mr[1]][0]),Gt.push(Ki.$),Le.push(Ki._$),hi=Ht[ke[ke.length-2]][ke[ke.length-1]],ke.push(hi);break;case 3:return!0}}return!0}},Fn=function(){var vr={EOF:1,parseError:function(le,ke){if(this.yy.parser)this.yy.parser.parseError(le,ke);else throw new Error(le)},setInput:function(Ee,le){return this.yy=le||this.yy||{},this._input=Ee,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},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var le=Ee.match(/(?:\r\n?|\n).*/g);return le?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var le=Ee.length,ke=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-le),this.offset-=le;var me=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),ke.length-1&&(this.yylineno-=ke.length-1);var Gt=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:ke?(ke.length===me.length?this.yylloc.first_column:0)+me[me.length-ke.length].length-ke[0].length:this.yylloc.first_column-le},this.options.ranges&&(this.yylloc.range=[Gt[0],Gt[0]+this.yyleng-le]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),le=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
|||
|
`+le+"^"},test_match:function(Ee,le){var ke,me,Gt;if(this.options.backtrack_lexer&&(Gt={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&&(Gt.yylloc.range=this.yylloc.range.slice(0))),me=Ee[0].match(/(?:\r\n?|\n).*/g),me&&(this.yylineno+=me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:me?me[me.length-1].length-me[me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,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(Ee[0].length),this.matched+=Ee[0],ke=this.performAction.call(this,this.yy,this,le,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var Le in Gt)this[Le]=Gt[Le];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,le,ke,me;this._more||(this.yytext="",this.match="");for(var Gt=this._currentRules(),Le=0;Le<Gt.length;Le++)if(ke=this._input.match(this.rules[Gt[Le]]),ke&&(!le||ke[0].length>le[0].length)){if(le=ke,me=Le,this.options.backtrack_lexer){if(Ee=this.test_match(ke,Gt[Le]),Ee!==!1)return Ee;if(this._backtrack){le=!1;continue}else return!1}else if(!this.options.flex)break}return le?(Ee=this.test_match(le,Gt[me]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var le=this.next();return le||this.lex()},begin:function(le){this.conditionStack.push(le)},popState:function(){var le=this.conditionStack.length-1;return le>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(le){return le=this.conditionStack.length-1-Math.abs(le||0),le>=0?this.conditionStack[le]:"INITIAL"},pushState:function(le){this.begin(le)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(le,ke,me,Gt){switch(me){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return ke.yytext=ke.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return vr}();cn.lexer=Fn;function Te(){this.yy={}}return Te.prototype=cn,cn.Parser=Te,new Te}();hgt.parser=hgt;const Kqe=hgt;let fgt=[],gp={},$P={},vk={},zP={};const Yqe={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQ
|
|||
|
|
|||
|
marker {
|
|||
|
fill: ${i.relationColor};
|
|||
|
stroke: ${i.relationColor};
|
|||
|
}
|
|||
|
|
|||
|
marker.cross {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
svg {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: ${i.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
.reqBox {
|
|||
|
fill: ${i.requirementBackground};
|
|||
|
fill-opacity: 1.0;
|
|||
|
stroke: ${i.requirementBorderColor};
|
|||
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
}
|
|||
|
|
|||
|
.reqTitle, .reqLabel{
|
|||
|
fill: ${i.requirementTextColor};
|
|||
|
}
|
|||
|
.reqLabelBox {
|
|||
|
fill: ${i.relationLabelBackground};
|
|||
|
fill-opacity: 1.0;
|
|||
|
}
|
|||
|
|
|||
|
.req-title-line {
|
|||
|
stroke: ${i.requirementBorderColor};
|
|||
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
}
|
|||
|
.relationshipLine {
|
|||
|
stroke: ${i.relationColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
.relationshipLabel {
|
|||
|
fill: ${i.relationLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
`,dgt={CONTAINS:"contains",ARROW:"arrow"},cRt={ReqMarkers:dgt,insertLineEndings:(i,a)=>{let f=i.append("defs").append("marker").attr("id",dgt.CONTAINS+"_line_ending").attr("refX",0).attr("refY",a.line_height/2).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("g");f.append("circle").attr("cx",a.line_height/2).attr("cy",a.line_height/2).attr("r",a.line_height/2).attr("fill","none"),f.append("line").attr("x1",0).attr("x2",a.line_height).attr("y1",a.line_height/2).attr("y2",a.line_height/2).attr("stroke-width",1),f.append("line").attr("y1",0).attr("y2",a.line_height).attr("x1",a.line_height/2).attr("x2",a.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",dgt.ARROW+"_line_ending").attr("refX",a.line_height).attr("refY",.5*a.line_height).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|||
|
L${a.line_height},${a.line_height/2}
|
|||
|
M${a.line_height},${a.line_height/2}
|
|||
|
L0,${a.line_height}`).attr("stroke-width",1)}};let Mh={},uRt=0;const lRt=(i,a)=>i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Mh.rect_min_width+"px").attr("height",Mh.rect_min_height+"px"),hRt=(i,a,f)=>{let p=Mh.rect_min_width/2,v=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",p).attr("y",Mh.rect_padding).attr("dominant-baseline","hanging"),m=0;f.forEach(M=>{m==0?v.append("tspan").attr("text-anchor","middle").attr("x",Mh.rect_min_width/2).attr("dy",0).text(M):v.append("tspan").attr("text-anchor","middle").attr("x",Mh.rect_min_width/2).attr("dy",Mh.line_height*.75).text(M),m++});let b=1.5*Mh.rect_padding,E=m*Mh.line_height*.75,C=b+E;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Mh.rect_min_width).attr("y1",C).attr("y2",C),{titleNode:v,y:C}},fRt=(i,a,f,p)=>{let v=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Mh.rect_padding).attr("y",p).attr("dominant-baseline","hanging"),m=0;const b=30;let E=[];return f.forEach(C=>{let M=C.length;for(;M>b&&m<3;){let P=C.substring(0,b);C=C.substring(b,C.length),M=C.length,E[E.length]=P,m++}if(m==3){let P=E[E.length-1];E[E.length-1]=P.substring(0,P.length-4)+"..."}else E[E.length]=C;m=0}),E.forEach(C=>{v.append("tspan").attr("x",Mh.rect_padding).attr("dy",Mh.line_height).text(C)}),v},Qqe=(i,a,f,p)=>{const v=a.node().getTotalLength(),m=a.node().getPointAtLength(v*.5),b="rel"+uRt;uRt++;const C=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",m.x).attr("y",m.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(p).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",m.x-C.width/2).attr("y",m.y-C.height/2).attr("width",C.width).attr("height",C.height).attr("fill","white").attr("fill-opacity","85%")},Zqe=function(i,a,f,p,v){const m=f.edge(xL(a.src),xL(a.dst)),b=rE().x(function(C){return C.x}).y(function(C){return C.y}),E=i.insert("path","#"+p).attr("class","er relationshipLine").attr("d",b(m.points)).attr("fill","none");a.type==v.db.Relationships.CONTAINS?E.attr("marker-start","url("+yi.getUrl(Mh.arrowMarkerAbsolute)+"#"+a.type+"_line_ending)"):(E.attr("stroke-dasharray","10,7"),E.attr("marker-end","url("+yi.getUrl(Mh.arrowMarkerAbsolute)+"#"+cRt.ReqMarkers.ARROW+"_line_ending)")),Qqe(i,E,Mh,`<<${a.type}>>`)},Jqe=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];p=xL(p),$t.info("Added new requirement: ",p);const m=f.append("g").attr("id",p),b="req-"+p,E=lRt(m,b);let C=hRt(m,p+"_title",[`<<${v.type}>>`,`${v.name}`]);fRt(m,p+"_body",[`Id: ${v.id}`,`Text: ${v.text}`,`Risk: ${v.risk}`,`Verification: ${v.verifyMethod}`],C.y);const M=E.node().getBBox();a.setNode(p,{width:M.width,height:M.height,shape:"rect",id:p})})},tHe=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];const m=xL(p),b=f.append("g").attr("id",m),E="element-"+m,C=lRt(b,E);let M=hRt(b,E+"_title",["<<Element>>",`${p}`]);fRt(b,E+"_body",[`Type: ${v.type||"Not Specified"}`,`Doc Ref: ${v.docRef||"None"}`],M.y);const P=C.node().getBBox();a.setNode(m,{width:P.width,height:P.height,shape:"rect",id:m})})},eHe=(i,a)=>(i.forEach(function(f){let p=xL(f.src),v=xL(f.dst);a.setEdge(p,v,{relationship:f})}),i),nHe=function(i,a){a.nodes().forEach(function(f){f!==void 0&&a.node(f)!==void 0&&(i.select("#"+f),i.select("#"+f).attr("transform","translate("+(a.node(f).x-a.node(f).width/2)+","+(a.node(f).y-a.node(f).height/2)+" )"))})},xL=i=>i.replace(/\s/g,"").replace(/\./g,"_"),rHe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Kqe,db:Yqe,renderer:{draw:(i,a,f,p)=>{Mh=Ie().requirement,p.db.clear(),p.parser.parse(i);const v=Mh.securityLevel;let m;v==="sandbox"&&(m=Dr("#i"+a));const E=Dr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);cRt.insertLineEndings(E,Mh);const C=new zf({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Mh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let M=p.db.getRequirements(),P=p.db.getElements(),B=p.db.
|
|||
|
`+Yn.showPosition()+`
|
|||
|
Expecting `+Pr.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'":In="Parse error on line "+(Or+1)+": Unexpected "+(lr==he?"end of input":"'"+(this.terminals_[lr]||lr)+"'"),this.parseError(In,{text:Yn.match,token:this.terminals_[lr]||lr,line:Yn.yylineno,loc:gn,expected:Pr})}if(Is[0]instanceof Array&&Is.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ki+", token: "+lr);switch(Is[0]){case 1:Le.push(lr),ln.push(Yn.yytext),Rt.push(Yn.yylloc),Le.push(Is[1]),lr=null,Ce=Yn.yyleng,se=Yn.yytext,Or=Yn.yylineno,gn=Yn.yylloc;break;case 2:if(zn=this.productions_[Is[1]][1],hi.$=ln[ln.length-zn],hi._$={first_line:Rt[Rt.length-(zn||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(zn||1)].first_column,last_column:Rt[Rt.length-1].last_column},En&&(hi._$.range=[Rt[Rt.length-(zn||1)].range[0],Rt[Rt.length-1].range[1]]),Ha=this.performAction.apply(hi,[se,Ce,Or,tr.yy,Is[1],ln,Rt].concat(ir)),typeof Ha<"u")return Ha;zn&&(Le=Le.slice(0,-1*zn*2),ln=ln.slice(0,-1*zn),Rt=Rt.slice(0,-1*zn)),Le.push(this.productions_[Is[1]][0]),ln.push(hi.$),Rt.push(hi._$),Zn=We[Le[Le.length-2]][Le[Le.length-1]],Le.push(Zn);break;case 3:return!0}}return!0}},Ee=function(){var ke={EOF:1,parseError:function(Gt,Le){if(this.yy.parser)this.yy.parser.parseError(Gt,Le);else throw new Error(Gt)},setInput:function(me,Gt){return this.yy=Gt||this.yy||{},this._input=me,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},input:function(){var me=this._input[0];this.yytext+=me,this.yyleng++,this.offset++,this.match+=me,this.matched+=me;var Gt=me.match(/(?:\r\n?|\n).*/g);return Gt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),me},unput:function(me){var Gt=me.length,Le=me.split(/(?:\r\n?|\n)/g);this._input=me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var Ht=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),Le.length-1&&(this.yylineno-=Le.length-1);var ln=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:Le?(Le.length===Ht.length?this.yylloc.first_column:0)+Ht[Ht.length-Le.length].length-Le[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[ln[0],ln[0]+this.yyleng-Gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(me){this.unput(this.match.slice(me))},pastInput:function(){var me=this.matched.substr(0,this.matched.length-this.match.length);return(me.length>20?"...":"")+me.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var me=this.match;return me.length<20&&(me+=this._input.substr(0,20-me.length)),(me.substr(0,20)+(me.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var me=this.pastInput(),Gt=new Array(me.length+1).join("-");return me+this.upcomingInput()+`
|
|||
|
`+Gt+"^"},test_match:function(me,Gt){var Le,Ht,ln;if(this.options.backtrack_lexer&&(ln={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&&(ln.yylloc.range=this.yylloc.range.slice(0))),Ht=me[0].match(/(?:\r\n?|\n).*/g),Ht&&(this.yylineno+=Ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ht?Ht[Ht.length-1].length-Ht[Ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+me[0].length},this.yytext+=me[0],this.match+=me[0],this.matches=me,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(me[0].length),this.matched+=me[0],Le=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Le)return Le;if(this._backtrack){for(var Rt in ln)this[Rt]=ln[Rt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var me,Gt,Le,Ht;this._more||(this.yytext="",this.match="");for(var ln=this._currentRules(),Rt=0;Rt<ln.length;Rt++)if(Le=this._input.match(this.rules[ln[Rt]]),Le&&(!Gt||Le[0].length>Gt[0].length)){if(Gt=Le,Ht=Rt,this.options.backtrack_lexer){if(me=this.test_match(Le,ln[Rt]),me!==!1)return me;if(this._backtrack){Gt=!1;continue}else return!1}else if(!this.options.flex)break}return Gt?(me=this.test_match(Gt,ln[Ht]),me!==!1?me:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Gt=this.next();return Gt||this.lex()},begin:function(Gt){this.conditionStack.push(Gt)},popState:function(){var Gt=this.conditionStack.length-1;return Gt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Gt){return Gt=this.conditionStack.length-1-Math.abs(Gt||0),Gt>=0?this.conditionStack[Gt]:"INITIAL"},pushState:function(Gt){this.begin(Gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Gt,Le,Ht,ln){switch(Ht){case 0:return this.begin("open_directive"),84;case 1:return this.begin("type_directive"),85;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),87;case 4:return 86;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),55;case 14:return this.begin("ID"),57;case 15:return Le.yytext=Le.yytext.trim(),this.begin("ALIAS"),74;case 16:return this.popState(),this.popState(),this.begin("LINE"),56;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),54;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),48;case 25:return this.begin("LINE"),53;case 26:return this.begin("LINE"),49;case 27:return this.begin("LINE"),52;case 28:return this.begin("LINE"),51;case 29:return this.popState(),20;case 30:return 21;case 31:return 69;case 32:return 70;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 66;case 37:return 61;case 38:return 58;case 39:return this.begin("ID"),26;case 40:return this.begin("ID"),28;case 41:return 34;case 42:return 35;case 43:return this.begin("acc_title"),36;case 44:return this.popState(),"acc_title_value";case 45:return this.begin("acc_descr"),38;case 46:return this.popState(),"acc_descr_value";case 47:this.begin("acc_descr_multiline");break;case 48:this.popState();break;case 49:return"acc_descr_multiline_value";case 50:return 7;case 51:return 23;case 52:return 25;case 53:return 68;case 54:return 5;case 55:return Le.yytext=Le.yytext.trim(),74;case 56:return 77;case 57:return 78;case 58:return 75;case 59:return 76;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 83;case 65:return 72;case 66:return 73;case 67:return 5;case 68:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/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,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
}
|
|||
|
|
|||
|
text.actor > tspan {
|
|||
|
fill: ${i.actorTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.actor-line {
|
|||
|
stroke: ${i.actorLineColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageLine0 {
|
|||
|
stroke-width: 1.5;
|
|||
|
stroke-dasharray: none;
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageLine1 {
|
|||
|
stroke-width: 1.5;
|
|||
|
stroke-dasharray: 2, 2;
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
#arrowhead path {
|
|||
|
fill: ${i.signalColor};
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.sequenceNumber {
|
|||
|
fill: ${i.sequenceNumberColor};
|
|||
|
}
|
|||
|
|
|||
|
#sequencenumber {
|
|||
|
fill: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
#crosshead path {
|
|||
|
fill: ${i.signalColor};
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageText {
|
|||
|
fill: ${i.signalTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.labelBox {
|
|||
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
fill: ${i.labelBoxBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.labelText, .labelText > tspan {
|
|||
|
fill: ${i.labelTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.loopText, .loopText > tspan {
|
|||
|
fill: ${i.loopTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.loopLine {
|
|||
|
stroke-width: 2px;
|
|||
|
stroke-dasharray: 2, 2;
|
|||
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
fill: ${i.labelBoxBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.note {
|
|||
|
//stroke: #decc93;
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.noteText, .noteText > tspan {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.activation0 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activation1 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activation2 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.actorPopupMenu {
|
|||
|
position: absolute;
|
|||
|
}
|
|||
|
|
|||
|
.actorPopupMenuPanel {
|
|||
|
position: absolute;
|
|||
|
fill: ${i.actorBkg};
|
|||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|||
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|||
|
}
|
|||
|
.actor-man line {
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
}
|
|||
|
.actor-man circle, line {
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
`,wgt=function(i,a){return XW(i,a)},mRt=(i,a)=>{cAe(()=>{const f=document.querySelectorAll(i);f.length!==0&&(f[0].addEventListener("mouseover",function(){IHe("actor"+a+"_popup")}),f[0].addEventListener("mouseout",function(){OHe("actor"+a+"_popup")}))})},LHe=function(i,a,f,p,v){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};const m=a.links,b=a.actorCnt,E=a.rectData;var C="none";v&&(C="block !important");const M=i.append("g");M.attr("id","actor"+b+"_popup"),M.attr("class","actorPopupMenu"),M.attr("display",C),mRt("#actor"+b+"_popup",b);var P="";E.class!==void 0&&(P=" "+E.class);let B=E.width>f?E.width:f;const j=M.append("rect");if(j.attr("class","actorPopupMenuPanel"+P),j.attr("x",E.x),j.attr("y",E.height),j.attr("fill",E.fill),j.attr("stroke",E.stroke),j.attr("width",B),j.attr("height",E.height),j.attr("rx",E.rx),j.attr("ry",E.ry),m!=null){var R=20;for(let st in m){var H=M.append("a"),Y=nk(m[st]);H.attr("xlink:href",Y),H.attr("target","_blank"),YHe(p)(st,H,E.x+10,E.height+R,B,20,{class:"actor"},p),R+=30}}return j.attr("height",R),{height:E.height+R,width:B}},DHe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'block'; }"},MHe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'none'; }"},IHe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="block")},OHe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="none")},EL=function(i,a){let f=0,p=0;const v=a.text.split(yi.lineBreakRegex),[m,b]=tL(a.fontSize);let E=[],C=0,M=()=>a.y;if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":M=()=>Math.round(a.y+a.textMargin);break;case"middle":case"center":M=()=>Math.round(a.y+(f+p+a.textMargin)/2);break;case"bottom":case"end":M=()=>Math.round(a.y+(f+p+2*a.textMargin)-a.textMargin);break}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="middle",a.alignmentBaseline="middle";break}for(let[P,B]of v.entries()){a.textMargin!==void 0&&a.textMargin===0&&m!==void 0&&(C=P*m);const j=i.append("text");if(j.attr("x",a.x),j.attr("y",M()),a.anchor!==void 0&&j.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&j.style("font-family",a.fontFamily),b!==void 0&&j.style("font-size",b),a.fontWeight!==void 0&&j.style("font-weight",a.fontWeight),a.fill!==void 0&&j.attr("fill",a.fill),a.class!==void 0&&j.attr("class",a.class),a.dy!==void 0?j.attr("dy",a.dy):C!==0&&j.attr("dy",C),a.tspan){const R=j.append("tspan");R.attr("x",a.x),a.fill!==void 0&&R.attr("fill",a.fill),R.text(B)}else j.text(B);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(p+=(j._groups||j)[0][0].getBBox().height,f=p),E.push(j)}return E},yRt=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");return p.attr("points",f(a.x,a.y,a.width,a.height,7)),p.attr("class","labelBox"),a.y=a.y+a.height/2,EL(i,a),p};let E3=-1;const xRt=(i,a)=>{i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",a-55)},NHe=function(i,a,f,p){const v=a.x+a.width/2,m=a.y+5,b=i.append("g");var E=b;p||(E3++,E.append("line").attr("id","actor"+E3).attr("x1",v).attr("y1",m).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),E=b.append("g"),a.actorCnt=E3,a.links!=null&&(E.attr("id","root-"+E3),mRt("#root-"+E3,E3)));const C=gE();var M="actor";a.properties!=null&&a.properties.class?M=a.properties.class:C.fill="#eaeaea",C.x=a.x,C.y=a.y,C.
|
|||
|
`+En.showPosition()+`
|
|||
|
Expecting `+rc.join(", ")+", got '"+(this.terminals_[hi]||hi)+"'":qn="Parse error on line "+(ir+1)+": Unexpected "+(hi==cr?"end of input":"'"+(this.terminals_[hi]||hi)+"'"),this.parseError(qn,{text:En.match,token:this.terminals_[hi]||hi,line:En.yylineno,loc:Ki,expected:rc})}if(zn[0]instanceof Array&&zn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qi+", token: "+hi);switch(zn[0]){case 1:We.push(hi),Or.push(En.yytext),Ce.push(En.yylloc),We.push(zn[1]),hi=null,Yn=En.yyleng,he=En.yytext,ir=En.yylineno,Ki=En.yylloc;break;case 2:if(xi=this.productions_[zn[1]][1],Pr.$=Or[Or.length-xi],Pr._$={first_line:Ce[Ce.length-(xi||1)].first_line,last_line:Ce[Ce.length-1].last_line,first_column:Ce[Ce.length-(xi||1)].first_column,last_column:Ce[Ce.length-1].last_column},Is&&(Pr._$.range=[Ce[Ce.length-(xi||1)].range[0],Ce[Ce.length-1].range[1]]),Zn=this.performAction.apply(Pr,[he,Yn,ir,Mr.yy,zn[1],Or,Ce].concat(gn)),typeof Zn<"u")return Zn;xi&&(We=We.slice(0,-1*xi*2),Or=Or.slice(0,-1*xi),Ce=Ce.slice(0,-1*xi)),We.push(this.productions_[zn[1]][0]),Or.push(Pr.$),Ce.push(Pr._$),Mn=Nr[We[We.length-2]][We[We.length-1]],We.push(Mn);break;case 3:return!0}}return!0}},Gt=function(){var Ht={EOF:1,parseError:function(Rt,We){if(this.yy.parser)this.yy.parser.parseError(Rt,We);else throw new Error(Rt)},setInput:function(ln,Rt){return this.yy=Rt||this.yy||{},this._input=ln,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},input:function(){var ln=this._input[0];this.yytext+=ln,this.yyleng++,this.offset++,this.match+=ln,this.matched+=ln;var Rt=ln.match(/(?:\r\n?|\n).*/g);return Rt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ln},unput:function(ln){var Rt=ln.length,We=ln.split(/(?:\r\n?|\n)/g);this._input=ln+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Rt),this.offset-=Rt;var se=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),We.length-1&&(this.yylineno-=We.length-1);var Or=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:We?(We.length===se.length?this.yylloc.first_column:0)+se[se.length-We.length].length-We[0].length:this.yylloc.first_column-Rt},this.options.ranges&&(this.yylloc.range=[Or[0],Or[0]+this.yyleng-Rt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(ln){this.unput(this.match.slice(ln))},pastInput:function(){var ln=this.matched.substr(0,this.matched.length-this.match.length);return(ln.length>20?"...":"")+ln.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ln=this.match;return ln.length<20&&(ln+=this._input.substr(0,20-ln.length)),(ln.substr(0,20)+(ln.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ln=this.pastInput(),Rt=new Array(ln.length+1).join("-");return ln+this.upcomingInput()+`
|
|||
|
`+Rt+"^"},test_match:function(ln,Rt){var We,se,Or;if(this.options.backtrack_lexer&&(Or={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&&(Or.yylloc.range=this.yylloc.range.slice(0))),se=ln[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ln[0].length},this.yytext+=ln[0],this.match+=ln[0],this.matches=ln,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(ln[0].length),this.matched+=ln[0],We=this.performAction.call(this,this.yy,this,Rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),We)return We;if(this._backtrack){for(var Ce in Or)this[Ce]=Or[Ce];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ln,Rt,We,se;this._more||(this.yytext="",this.match="");for(var Or=this._currentRules(),Ce=0;Ce<Or.length;Ce++)if(We=this._input.match(this.rules[Or[Ce]]),We&&(!Rt||We[0].length>Rt[0].length)){if(Rt=We,se=Ce,this.options.backtrack_lexer){if(ln=this.test_match(We,Or[Ce]),ln!==!1)return ln;if(this._backtrack){Rt=!1;continue}else return!1}else if(!this.options.flex)break}return Rt?(ln=this.test_match(Rt,Or[se]),ln!==!1?ln:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Rt=this.next();return Rt||this.lex()},begin:function(Rt){this.conditionStack.push(Rt)},popState:function(){var Rt=this.conditionStack.length-1;return Rt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Rt){return Rt=this.conditionStack.length-1-Math.abs(Rt||0),Rt>=0?this.conditionStack[Rt]:"INITIAL"},pushState:function(Rt){this.begin(Rt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Rt,We,se,Or){switch(se){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),44;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),46;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return"EDGE_STATE";case 23:return this.begin("namespace"),53;case 24:return this.popState(),16;case 25:break;case 26:return this.begin("namespace-body"),50;case 27:return this.popState(),52;case 28:return"EOF_IN_STRUCT";case 29:return 16;case 30:break;case 31:return"EDGE_STATE";case 32:return this.begin("class"),57;case 33:return this.popState(),16;case 34:break;case 35:return this.popState(),this.popState(),52;case 36:return this.begin("class-body"),50;case 37:return this.popState(),52;case 38:return"EOF_IN_STRUCT";case 39:return"EDGE_STATE";case 40:return"OPEN_IN_STRUCT";case 41:break;case 42:return"MEMBER";case 43:return 82;case 44:return 75;case 45:return 76;case 46:return 78;case 47:return 63;case 48:return 65;case 49:return 58;case 50:return 59;case 51:this.begin("href");break;case 52:this.popState();break;case 53:return 81;case 54:this.begin("callback_name");break;case 55:this.popState();break;case 56:this.popState(),this.begin("callback_args");break;case 57:return 79;case 58:this.popState();break;case 59:return 80;case 60:this.popState();break;case 61:return"GENERICTYPE";case 62:this.begin("generic");break;case 63:this.popState();break;case 64:return"STR";case 65:this.begin("string");break;case 66:this.popState();break;case 67:return"BQUOTE_STR";case 68:this.begin("bqstring");break;case 69:return 77;case 70:return 77;case 71:return 77;case 72:return 77;case 73:return 69;case 74:return 69;case 75:return 71;case 76:return 71;case 77:return 70;case 78:return 68;case 79:return 72;case 80:return 73;case 81:return 74;case 82:return 36;case 83:return 55;case 84:return 94;case 85:return"DOT";case 86:return"PLUS";case 87:return 91;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 98;case 91:return 27;case 92:return 29;case 93:return"PUNCTUATION";case 94:return 97;case 95:return 96;case 96:return 93;case 97:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/
|
|||
|
fill: ${i.nodeBorder};
|
|||
|
fill: ${i.classText};
|
|||
|
stroke: none;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 10px;
|
|||
|
|
|||
|
.title {
|
|||
|
font-weight: bolder;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
.nodeLabel, .edgeLabel {
|
|||
|
color: ${i.classText};
|
|||
|
}
|
|||
|
.edgeLabel .label rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
}
|
|||
|
.label text {
|
|||
|
fill: ${i.classText};
|
|||
|
}
|
|||
|
.edgeLabel .label span {
|
|||
|
background: ${i.mainBkg};
|
|||
|
}
|
|||
|
|
|||
|
.classTitle {
|
|||
|
font-weight: bolder;
|
|||
|
}
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
.divider {
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
g.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
g.classGroup rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
g.classGroup line {
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.classLabel .box {
|
|||
|
stroke: none;
|
|||
|
stroke-width: 0;
|
|||
|
fill: ${i.mainBkg};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
|
|||
|
.classLabel .label {
|
|||
|
fill: ${i.nodeBorder};
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
|
|||
|
.relation {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.dashed-line{
|
|||
|
stroke-dasharray: 3;
|
|||
|
}
|
|||
|
|
|||
|
.dotted-line{
|
|||
|
stroke-dasharray: 1 2;
|
|||
|
}
|
|||
|
|
|||
|
#compositionStart, .composition {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#compositionEnd, .composition {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, .dependency {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, .dependency {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#extensionStart, .extension {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#extensionEnd, .extension {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#aggregationStart, .aggregation {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#aggregationEnd, .aggregation {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#lollipopStart, .lollipop {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#lollipopEnd, .lollipop {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.edgeTerminals {
|
|||
|
font-size: 11px;
|
|||
|
}
|
|||
|
|
|||
|
.classTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`;let GK={};const UK=20,UP=function(i){const a=Object.entries(GK).find(f=>f[1].label===i);if(a)return a[0]},SVe=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},AVe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:SRt,db:VK,renderer:{draw:function(i,a,f,p){const v=Ie().class;GK={},$t.info("Rendering diagram "+i);const m=Ie().securityLevel;let b;m==="sandbox"&&(b=Dr("#i"+a));const E=Dr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=E.select(`[id='${a}']`);SVe(C);const M=new zf({multigraph:!0});M.setGraph({isMultiGraph:!0}),M.setDefaultEdgeLabel(function(){return{}});const P=p.db.getClasses(),B=Object.keys(P);for(const it of B){const dt=P[it],Tt=j0t.drawClass(C,dt,v,p);GK[Tt.id]=Tt,M.setNode(Tt.id,Tt),$t.info("Org height: "+Tt.height)}p.db.getRelations().forEach(function(it){$t.info("tjoho"+UP(it.id1)+UP(it.id2)+JSON.stringify(it)),M.setEdge(UP(it.id1),UP(it.id2),{relation:it},it.title||"DEFAULT")}),p.db.getNotes().forEach(function(it){$t.debug(`Adding note: ${JSON.stringify(it)}`);const dt=j0t.drawNote(C,it,v,p);GK[dt.id]=dt,M.setNode(dt.id,dt),it.class&&it.class in P&&M.setEdge(it.id,UP(it.class),{relation:{id1:it.id,id2:it.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),pL(M),M.nodes().forEach(function(it){it!==void 0&&M.node(it)!==void 0&&($t.debug("Node "+it+": "+JSON.stringify(M.node(it))),E.select("#"+(p.db.lookUpDomId(it)||it)).attr("transform","translate("+(M.node(it).x-M.node(it).width/2)+","+(M.node(it).y-M.node(it).height/2)+" )"))}),M.edges().forEach(function(it){it!==void 0&&M.edge(it)!==void 0&&($t.debug("Edge "+it.v+" -> "+it.w+": "+JSON.stringify(M.edge(it))),j0t.drawEdge(C,M.edge(it),M.edge(it).relation,v,p))});const H=C.node().getBBox(),Y=H.width+UK*2,st=H.height+UK*2;Kb(C,st,Y,v.useMaxWidth);const et=`${H.x-UK} ${H.y-UK} ${Y} ${st}`;$t.debug(`viewBox ${et}`),C.attr("viewBox",et)}},styles:IRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,VK.clear()}}},Symbol.toStringTag,{value:"Module"})),Agt=i=>yi.sanitizeText(i,Ie());let Lgt={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const LVe=function(i,a,f,p){const v=Object.keys(i);$t.info("keys:",v),$t.info(i),v.forEach(function(m){var M,P;const b=i[m],C={shape:"rect",id:b.id,domId:b.domId,labelText:Agt(b.id),labelStyle:"",styl
|
|||
|
`),v.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none"),m.labelStyle=m.labelStyle.replace("color:","fill:"))),a.setEdge(v.id1,v.id2,m,p)})},IVe=function(i){Lgt={...Lgt,...i}},OVe=async function(i,a,f,p){$t.info("Drawing class - ",a);const v=Ie().flowchart??Ie().class,m=Ie().securityLevel;$t.info("config:",v);const b=(v==null?void 0:v.nodeSpacing)??50,E=(v==null?void 0:v.rankSpacing)??50,C=new zf({multigraph:!0,compound:!0}).setGraph({rankdir:p.db.getDirection(),nodesep:b,ranksep:E,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),M=p.db.getNamespaces(),P=p.db.getClasses(),B=p.db.getRelations(),j=p.db.getNotes();$t.info(B),LVe(M,C,a,p),ORt(P,C,a,p),MVe(B,C),DVe(j,C,B.length+1,P);let R;m==="sandbox"&&(R=Dr("#i"+a));const H=Dr(m==="sandbox"?R.nodes()[0].contentDocument.body:"body"),Y=H.select(`[id="${a}"]`),st=H.select("#"+a+" g");if(await $0t(st,C,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),lo.insertTitle(Y,"classTitleText",(v==null?void 0:v.titleTopMargin)??5,p.db.getDiagramTitle()),aE(C,Y,v==null?void 0:v.diagramPadding,v==null?void 0:v.useMaxWidth),!(v!=null&&v.htmlLabels)){const et=m==="sandbox"?R.nodes()[0].contentDocument:document,it=et.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const dt of it){const Tt=dt.getBBox(),yt=et.createElementNS("http://www.w3.org/2000/svg","rect");yt.setAttribute("rx",0),yt.setAttribute("ry",0),yt.setAttribute("width",Tt.width),yt.setAttribute("height",Tt.height),dt.insertBefore(yt,dt.firstChild)}}};function NRt(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const NVe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:SRt,db:VK,renderer:{setConf:IVe,draw:OVe},styles:IRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,VK.clear()}}},Symbol.toStringTag,{value:"Module"}));var Dgt=function(){var i=function(ne,Ot,Nt,xe){for(Nt=Nt||{},xe=ne.length;xe--;Nt[ne[xe]]=Ot);return Nt},a=[1,2],f=[1,3],p=[1,5],v=[1,7],m=[2,5],b=[1,15],E=[1,17],C=[1,21],M=[1,22],P=[1,23],B=[1,24],j=[1,37],R=[1,25],H=[1,26],Y=[1,27],st=[1,28],et=[1,29],it=[1,32],dt=[1,33],Tt=[1,34],yt=[1,35],xt=[1,36],ft=[1,39],wt=[1,40],nt=[1,41],kt=[1,42],gt=[1,38],ht=[1,45],Mt=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Z=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Zt=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ze={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_
|
|||
|
`+Ht.showPosition()+`
|
|||
|
Expecting `+En.join(", ")+", got '"+(this.terminals_[Ce]||Ce)+"'":Mr="Parse error on line "+(le+1)+": Unexpected "+(Ce==Gt?"end of input":"'"+(this.terminals_[Ce]||Ce)+"'"),this.parseError(Mr,{text:Ht.match,token:this.terminals_[Ce]||Ce,line:Ht.yylineno,loc:We,expected:En})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Nr+", token: "+Ce);switch(he[0]){case 1:xe.push(Ce),Fn.push(Ht.yytext),Te.push(Ht.yylloc),xe.push(he[1]),Ce=null,ke=Ht.yyleng,Ee=Ht.yytext,le=Ht.yylineno,We=Ht.yylloc;break;case 2:if(cr=this.productions_[he[1]][1],Yn.$=Fn[Fn.length-cr],Yn._$={first_line:Te[Te.length-(cr||1)].first_line,last_line:Te[Te.length-1].last_line,first_column:Te[Te.length-(cr||1)].first_column,last_column:Te[Te.length-1].last_column},se&&(Yn._$.range=[Te[Te.length-(cr||1)].range[0],Te[Te.length-1].range[1]]),ir=this.performAction.apply(Yn,[Ee,ke,le,ln.yy,he[1],Fn,Te].concat(Le)),typeof ir<"u")return ir;cr&&(xe=xe.slice(0,-1*cr*2),Fn=Fn.slice(0,-1*cr),Te=Te.slice(0,-1*cr)),xe.push(this.productions_[he[1]][0]),Fn.push(Yn.$),Te.push(Yn._$),gn=vr[xe[xe.length-2]][xe[xe.length-1]],xe.push(gn);break;case 3:return!0}}return!0}},rt=function(){var ne={EOF:1,parseError:function(Nt,xe){if(this.yy.parser)this.yy.parser.parseError(Nt,xe);else throw new Error(Nt)},setInput:function(Ot,Nt){return this.yy=Nt||this.yy||{},this._input=Ot,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},input:function(){var Ot=this._input[0];this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot;var Nt=Ot.match(/(?:\r\n?|\n).*/g);return Nt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ot},unput:function(Ot){var Nt=Ot.length,xe=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Nt),this.offset-=Nt;var cn=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),xe.length-1&&(this.yylineno-=xe.length-1);var Fn=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:xe?(xe.length===cn.length?this.yylloc.first_column:0)+cn[cn.length-xe.length].length-xe[0].length:this.yylloc.first_column-Nt},this.options.ranges&&(this.yylloc.range=[Fn[0],Fn[0]+this.yyleng-Nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),Nt=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
|
|||
|
`+Nt+"^"},test_match:function(Ot,Nt){var xe,cn,Fn;if(this.options.backtrack_lexer&&(Fn={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&&(Fn.yylloc.range=this.yylloc.range.slice(0))),cn=Ot[0].match(/(?:\r\n?|\n).*/g),cn&&(this.yylineno+=cn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:cn?cn[cn.length-1].length-cn[cn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,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(Ot[0].length),this.matched+=Ot[0],xe=this.performAction.call(this,this.yy,this,Nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var Te in Fn)this[Te]=Fn[Te];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ot,Nt,xe,cn;this._more||(this.yytext="",this.match="");for(var Fn=this._currentRules(),Te=0;Te<Fn.length;Te++)if(xe=this._input.match(this.rules[Fn[Te]]),xe&&(!Nt||xe[0].length>Nt[0].length)){if(Nt=xe,cn=Te,this.options.backtrack_lexer){if(Ot=this.test_match(xe,Fn[Te]),Ot!==!1)return Ot;if(this._backtrack){Nt=!1;continue}else return!1}else if(!this.options.flex)break}return Nt?(Ot=this.test_match(Nt,Fn[cn]),Ot!==!1?Ot:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Nt=this.next();return Nt||this.lex()},begin:function(Nt){this.conditionStack.push(Nt)},popState:function(){var Nt=this.conditionStack.length-1;return Nt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Nt){return Nt=this.conditionStack.length-1-Math.abs(Nt||0),Nt>=0?this.conditionStack[Nt]:"INITIAL"},pushState:function(Nt){this.begin(Nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Nt,xe,cn,Fn){switch(cn){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),xe.yytext=xe.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),xe.yytext=xe.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),xe.yytext=xe.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),xe.yytext=xe.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),xe.yytext=xe.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),xe.yytext=xe.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),xe.yytext=xe.yytext.substr(2).trim(),31;case 69:return this.popState(),xe.yytext=xe.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return xe.yytext=xe.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(
|
|||
|
defs #statediagram-barbEnd {
|
|||
|
fill: ${i.transitionColor};
|
|||
|
stroke: ${i.transitionColor};
|
|||
|
}
|
|||
|
g.stateGroup text {
|
|||
|
fill: ${i.nodeBorder};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
g.stateGroup text {
|
|||
|
fill: ${i.textColor};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
|
|||
|
}
|
|||
|
g.stateGroup .state-title {
|
|||
|
font-weight: bolder;
|
|||
|
fill: ${i.stateLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
g.stateGroup rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
g.stateGroup line {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.transition {
|
|||
|
stroke: ${i.transitionColor};
|
|||
|
stroke-width: 1;
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.stateGroup .composit {
|
|||
|
fill: ${i.background};
|
|||
|
border-bottom: 1px
|
|||
|
}
|
|||
|
|
|||
|
.stateGroup .alt-composit {
|
|||
|
fill: #e0e0e0;
|
|||
|
border-bottom: 1px
|
|||
|
}
|
|||
|
|
|||
|
.state-note {
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
|
|||
|
text {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.stateLabel .box {
|
|||
|
stroke: none;
|
|||
|
stroke-width: 0;
|
|||
|
fill: ${i.mainBkg};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel .label rect {
|
|||
|
fill: ${i.labelBackgroundColor};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
.edgeLabel .label text {
|
|||
|
fill: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
}
|
|||
|
.label div .edgeLabel {
|
|||
|
color: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.stateLabel text {
|
|||
|
fill: ${i.stateLabelColor};
|
|||
|
font-size: 10px;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.node circle.state-start {
|
|||
|
fill: ${i.specialStateColor};
|
|||
|
stroke: ${i.specialStateColor};
|
|||
|
}
|
|||
|
|
|||
|
.node .fork-join {
|
|||
|
fill: ${i.specialStateColor};
|
|||
|
stroke: ${i.specialStateColor};
|
|||
|
}
|
|||
|
|
|||
|
.node circle.state-end {
|
|||
|
fill: ${i.innerEndBackground};
|
|||
|
stroke: ${i.background};
|
|||
|
stroke-width: 1.5
|
|||
|
}
|
|||
|
.end-state-inner {
|
|||
|
fill: ${i.compositeBackground||i.background};
|
|||
|
// stroke: ${i.background};
|
|||
|
stroke-width: 1.5
|
|||
|
}
|
|||
|
|
|||
|
.node rect {
|
|||
|
fill: ${i.stateBkg||i.mainBkg};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
.node polygon {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};;
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
#statediagram-barbEnd {
|
|||
|
fill: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster rect {
|
|||
|
fill: ${i.compositeTitleBackground};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster-label, .nodeLabel {
|
|||
|
color: ${i.stateLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster rect.outer {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-state .divider {
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-state .title-state {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-cluster.statediagram-cluster .inner {
|
|||
|
fill: ${i.compositeBackground||i.background};
|
|||
|
}
|
|||
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|||
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster .inner {
|
|||
|
rx:0;
|
|||
|
ry:0;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-state rect.basic {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-state rect.divider {
|
|||
|
stroke-dasharray: 10,10;
|
|||
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
}
|
|||
|
|
|||
|
.note-edge {
|
|||
|
stroke-dasharray: 5;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note rect {
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
stroke-width: 1px;
|
|||
|
rx: 0;
|
|||
|
ry: 0;
|
|||
|
}
|
|||
|
.statediagram-note rect {
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
stroke-width: 1px;
|
|||
|
rx: 0;
|
|||
|
ry: 0;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note text {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note .nodeLabel {
|
|||
|
color: ${i.noteTextColor};
|
|||
|
}
|
|||
|
.statediagram .edgeLabel {
|
|||
|
color: red; // ${i.noteTextColor};
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, #dependencyEnd {
|
|||
|
fill: ${i.lineColor};
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.statediagramTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`,Bgt={},sGe=(i,a)=>{Bgt[i]=a},aGe=i=>Bgt[i],XRt=()=>Object.keys(Bgt),oGe={get:aGe,set:sGe,keys:XRt,size:()=>XRt().length},cGe=i=>i.append("circle").attr("class","start-state").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit).attr("cy",Ie().state.padding+Ie().state.sizeUnit),uGe=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ie().state.textHeight).attr("class","divider").attr("x2",Ie().state.textHeight*2).attr("y1",0).attr("y2",0),lGe=(i,a)=>{const f=i.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+2*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(a.id),p=f.node().getBBox();return i.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",p.width+2*Ie().state.padding).attr("height",p.height+2*Ie().state.padding).attr("rx",Ie().state.radius),f},hGe=(i,a)=>{const f=function(j,R,H){const Y=j.append("tspan").attr("x",2*Ie().state.padding).text(R);H||Y.attr("dy",Ie().state.textHeight)},v=i.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+1.3*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),m=v.height,b=i.append("text").attr("x",Ie().state.padding).attr("y",m+Ie().state.padding*.4+Ie().state.dividerMargin+Ie().state.textHeight).attr("class","state-description");let E=!0,C=!0;a.descriptions.forEach(function(j){E||(f(b,j,C),C=!1),E=!1});const M=i.append("line").attr("x1",Ie().state.padding).attr("y1",Ie().state.padding+m+Ie().state.dividerMargin/2).attr("y2",Ie().state.padding+m+Ie().state.dividerMargin/2).attr("class","descr-divider"),P=b.node().getBBox(),B=Math.max(P.width,v.width);return M.attr("x2",B+3*Ie().state.padding),i.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",B+2*Ie().state.padding).attr("height",P.height+m+2*Ie().state.padding).attr("rx",Ie().state.radius),i},fGe=(i,a,f)=>{const p=Ie().state.padding,v=2*Ie().state.padding,m=i.node().getBBox(),b=m.width,E=m.x,C=i.append("text").attr("x",0).attr("y",Ie().state.titleShift).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(a.id),P=C.node().getBBox().width+v;let B=Math.max(P,b);B===b&&(B=B+v);let j;const R=i.node().getBBox();a.doc,j=E-p,P>b&&(j=(b-B)/2+p),Math.abs(E-R.x)<p&&P>b&&(j=E-(P-b)/2);const H=1-Ie().state.textHeight;return i.insert("rect",":first-child").attr("x",j).attr("y",H).attr("class",f?"alt-composit":"composit").attr("width",B).attr("height",R.height+Ie().state.textHeight+Ie().state.titleShift+1).attr("rx","0"),C.attr("x",j+p),P<=b&&C.attr("x",E+(B-v)/2-P/2+p),i.insert("rect",":first-child").attr("x",j).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",B).attr("height",Ie().state.textHeight*3).attr("rx",Ie().state.radius),i.insert("rect",":first-child").attr("x",j).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",B).attr("height",R.height+3+2*Ie().state.textHeight).attr("rx",Ie().state.radius),i},dGe=i=>(i.append("circle").attr("class","end-state-outer").attr("r",Ie().state.sizeUnit+Ie().state.miniPadding).attr("cx",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding).attr("cy",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit+2).attr("cy",Ie().state.padding+Ie().state.sizeUnit+2)),gGe=(i,a)=>{let f=Ie().state.forkWidth,p=Ie().state.forkHeight;if(a.parentId){let v=f;f=p,p=v}return i.append("rect").style("stroke","black").style("fill","black").attr("width",f).attr("height",p).attr("x",Ie().state.padding).attr("y",Ie().state.padding)},pGe=(i,a,f,p)=>{let v=0;const m=p.append("text");m.style("text-anchor","start"),m.attr("class","noteText");let b=i.replace(/\r\n/g,"<br/>");b=b.replace(/\n/g,"<br/>");const E=b.split(yi.lineBreakRegex);let C=1.25*Ie().state.noteMargin;for(const
|
|||
|
`+Mt.showPosition()+`
|
|||
|
Expecting `+vr.join(", ")+", got '"+(this.terminals_[Ae]||Ae)+"'":Ee="Parse error on line "+(wt+1)+": Unexpected "+(Ae==gt?"end of input":"'"+(this.terminals_[Ae]||Ae)+"'"),this.parseError(Ee,{text:Mt.match,token:this.terminals_[Ae]||Ae,line:Mt.yylineno,loc:vt,expected:vr})}if(Ot[0]instanceof Array&&Ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+Ae);switch(Ot[0]){case 1:it.push(Ae),Tt.push(Mt.yytext),yt.push(Mt.yylloc),it.push(Ot[1]),Ae=null,nt=Mt.yyleng,ft=Mt.yytext,wt=Mt.yylineno,vt=Mt.yylloc;break;case 2:if(Fn=this.productions_[Ot[1]][1],xe.$=Tt[Tt.length-Fn],xe._$={first_line:yt[yt.length-(Fn||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(Fn||1)].first_column,last_column:yt[yt.length-1].last_column},ze&&(xe._$.range=[yt[yt.length-(Fn||1)].range[0],yt[yt.length-1].range[1]]),Nt=this.performAction.apply(xe,[ft,nt,wt,Z.yy,Ot[1],Tt,yt].concat(ht)),typeof Nt<"u")return Nt;Fn&&(it=it.slice(0,-1*Fn*2),Tt=Tt.slice(0,-1*Fn),yt=yt.slice(0,-1*Fn)),it.push(this.productions_[Ot[1]][0]),Tt.push(xe.$),yt.push(xe._$),Te=xt[it[it.length-2]][it[it.length-1]],it.push(Te);break;case 3:return!0}}return!0}},R=function(){var Y={EOF:1,parseError:function(et,it){if(this.yy.parser)this.yy.parser.parseError(et,it);else throw new Error(et)},setInput:function(st,et){return this.yy=et||this.yy||{},this._input=st,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},input:function(){var st=this._input[0];this.yytext+=st,this.yyleng++,this.offset++,this.match+=st,this.matched+=st;var et=st.match(/(?:\r\n?|\n).*/g);return et?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),st},unput:function(st){var et=st.length,it=st.split(/(?:\r\n?|\n)/g);this._input=st+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var dt=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),it.length-1&&(this.yylineno-=it.length-1);var Tt=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:it?(it.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-it.length].length-it[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(st){this.unput(this.match.slice(st))},pastInput:function(){var st=this.matched.substr(0,this.matched.length-this.match.length);return(st.length>20?"...":"")+st.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var st=this.match;return st.length<20&&(st+=this._input.substr(0,20-st.length)),(st.substr(0,20)+(st.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var st=this.pastInput(),et=new Array(st.length+1).join("-");return st+this.upcomingInput()+`
|
|||
|
`+et+"^"},test_match:function(st,et){var it,dt,Tt;if(this.options.backtrack_lexer&&(Tt={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&&(Tt.yylloc.range=this.yylloc.range.slice(0))),dt=st[0].match(/(?:\r\n?|\n).*/g),dt&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+st[0].length},this.yytext+=st[0],this.match+=st[0],this.matches=st,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(st[0].length),this.matched+=st[0],it=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var yt in Tt)this[yt]=Tt[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var st,et,it,dt;this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),yt=0;yt<Tt.length;yt++)if(it=this._input.match(this.rules[Tt[yt]]),it&&(!et||it[0].length>et[0].length)){if(et=it,dt=yt,this.options.backtrack_lexer){if(st=this.test_match(it,Tt[yt]),st!==!1)return st;if(this._backtrack){et=!1;continue}else return!1}else if(!this.options.flex)break}return et?(st=this.test_match(et,Tt[dt]),st!==!1?st:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var et=this.next();return et||this.lex()},begin:function(et){this.conditionStack.push(et)},popState:function(){var et=this.conditionStack.length-1;return et>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(et){return et=this.conditionStack.length-1-Math.abs(et||0),et>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,it,dt,Tt){switch(dt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\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,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return Y}();j.lexer=R;function H(){this.yy={}}return H.prototype=j,j.Parser=H,new H}();Hgt.parser=Hgt;const qGe=Hgt;let SL="";const Vgt=[],ZP=[],JP=[],HGe=function(i,a,f){p1.parseDirective(this,i,a,f)},VGe=function(){Vgt.length=0,ZP.length=0,SL="",JP.length=0,ug()},GGe=function(i){SL=i,Vgt.push(i)},UGe=function(){return Vgt},WGe=function(){let i=ujt();const a=100;let f=0;for(;!i&&f<a;)i=ujt(),f++;return ZP.push(...JP),ZP},KGe=function(){const i=[];return ZP.forEach(f=>{f.people&&i.push(...f.people)}),[...new Set(i)].sort()},YGe=function(i,a){const f=a.substr(1).split(":");let p=0,v=[];f.length===1?(p=Number(f[0]),v=[]):(p=Number(f[0]),v=f[1].split(","));const m=v.map(E=>E.trim()),b={section:SL,type:SL,people:m,task:i,score:p};JP.push(b)},XGe=function(i){const a={section:SL,type:SL,description:i,task:i,classes:[]};ZP.push(a)},ujt=function(){const i=function(f){return JP[f].processed};let a=!0;for(const[f,p]of JP.entries())i(f),a=a&&p.processed;return a},ljt={parseDirective:HGe,getConfig:()=>Ie().journey,clear:VGe,setDiagramTitle:Yb,getDiagramTitle:N2,setAccTitle:lg,getAccTitle:op,setAccDescription:cp,getAccDescription:up,addSection:GGe,getSections:UGe,getTasks:WGe,addTask:YGe,addTaskOrg:XGe,getActors:function(){return KGe()}},QGe=i=>`.label {
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
color: ${i.textColor};
|
|||
|
}
|
|||
|
.mouth {
|
|||
|
stroke: #666;
|
|||
|
}
|
|||
|
|
|||
|
line {
|
|||
|
stroke: ${i.textColor}
|
|||
|
}
|
|||
|
|
|||
|
.legend {
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text {
|
|||
|
fill: #333;
|
|||
|
}
|
|||
|
.label {
|
|||
|
color: ${i.textColor}
|
|||
|
}
|
|||
|
|
|||
|
.face {
|
|||
|
${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"};
|
|||
|
stroke: #999;
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1.5px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.task-type-0, .section-type-0 {
|
|||
|
${i.fillType0?`fill: ${i.fillType0}`:""};
|
|||
|
}
|
|||
|
.task-type-1, .section-type-1 {
|
|||
|
${i.fillType0?`fill: ${i.fillType1}`:""};
|
|||
|
}
|
|||
|
.task-type-2, .section-type-2 {
|
|||
|
${i.fillType0?`fill: ${i.fillType2}`:""};
|
|||
|
}
|
|||
|
.task-type-3, .section-type-3 {
|
|||
|
${i.fillType0?`fill: ${i.fillType3}`:""};
|
|||
|
}
|
|||
|
.task-type-4, .section-type-4 {
|
|||
|
${i.fillType0?`fill: ${i.fillType4}`:""};
|
|||
|
}
|
|||
|
.task-type-5, .section-type-5 {
|
|||
|
${i.fillType0?`fill: ${i.fillType5}`:""};
|
|||
|
}
|
|||
|
.task-type-6, .section-type-6 {
|
|||
|
${i.fillType0?`fill: ${i.fillType6}`:""};
|
|||
|
}
|
|||
|
.task-type-7, .section-type-7 {
|
|||
|
${i.fillType0?`fill: ${i.fillType7}`:""};
|
|||
|
}
|
|||
|
|
|||
|
.actor-0 {
|
|||
|
${i.actor0?`fill: ${i.actor0}`:""};
|
|||
|
}
|
|||
|
.actor-1 {
|
|||
|
${i.actor1?`fill: ${i.actor1}`:""};
|
|||
|
}
|
|||
|
.actor-2 {
|
|||
|
${i.actor2?`fill: ${i.actor2}`:""};
|
|||
|
}
|
|||
|
.actor-3 {
|
|||
|
${i.actor3?`fill: ${i.actor3}`:""};
|
|||
|
}
|
|||
|
.actor-4 {
|
|||
|
${i.actor4?`fill: ${i.actor4}`:""};
|
|||
|
}
|
|||
|
.actor-5 {
|
|||
|
${i.actor5?`fill: ${i.actor5}`:""};
|
|||
|
}
|
|||
|
`,Ggt=function(i,a){return XW(i,a)},ZGe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function m(C){const M=jA().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",M).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(C){const M=jA().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",M).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function E(C){C.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?m(v):a.score<3?b(v):E(v),p},hjt=function(i,a){const f=i.append("circle");return f.attr("cx",a.cx),f.attr("cy",a.cy),f.attr("class","actor-"+a.pos),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("r",a.r),f.class!==void 0&&f.attr("class",f.class),a.title!==void 0&&f.append("title").text(a.title),f},fjt=function(i,a){return wDe(i,a)},JGe=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");p.attr("points",f(a.x,a.y,50,20,7)),p.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,fjt(i,a)},tUe=function(i,a,f){const p=i.append("g"),v=gE();v.x=a.x,v.y=a.y,v.fill=a.fill,v.width=f.width*a.taskCount+f.diagramMarginX*(a.taskCount-1),v.height=f.height,v.class="journey-section section-type-"+a.num,v.rx=3,v.ry=3,Ggt(p,v),gjt(f)(a.text,p,v.x,v.y,v.width,v.height,{class:"journey-section section-type-"+a.num},f,a.colour)};let djt=-1;const eUe=function(i,a,f){const p=a.x+f.width/2,v=i.append("g");djt++;const m=300+5*30;v.append("line").attr("id","task"+djt).attr("x1",p).attr("y1",a.y).attr("x2",p).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),ZGe(v,{cx:p,cy:300+(5-a.score)*30,score:a.score});const b=gE();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=f.width,b.height=f.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,Ggt(v,b);let E=a.x+14;a.people.forEach(C=>{const M=a.actors[C].color,P={cx:E,cy:a.y,r:7,fill:M,stroke:"#000",title:C,pos:a.actors[C].position};hjt(v,P),E+=10}),gjt(f)(a.task,v,b.x,b.y,b.width,b.height,{class:"task"},f,a.colour)},nUe=function(i,a){eNt(i,a)},gjt=function(){function i(v,m,b,E,C,M,P,B){const j=m.append("text").attr("x",b+C/2).attr("y",E+M/2+5).style("font-color",B).style("text-anchor","middle").text(v);p(j,P)}function a(v,m,b,E,C,M,P,B,j){const{taskFontSize:R,taskFontFamily:H}=B,Y=v.split(/<br\s*\/?>/gi);for(let st=0;st<Y.length;st++){const et=st*R-R*(Y.length-1)/2,it=m.append("text").attr("x",b+C/2).attr("y",E).attr("fill",j).style("text-anchor","middle").style("font-size",R).style("font-family",H);it.append("tspan").attr("x",b+C/2).attr("dy",et).text(Y[st]),it.attr("y",E+M/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(it,P)}}function f(v,m,b,E,C,M,P,B){const j=m.append("switch"),H=j.append("foreignObject").attr("x",b).attr("y",E).attr("width",C).attr("height",M).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");H.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(v),a(v,j,b,E,C,M,P,B),p(H,P)}function p(v,m){for(const b in m)b in m&&v.attr(b,m[b])}return function(v){return v.textPlacement==="fo"?f:v.textPlacement==="old"?i:a}}(),tF={drawRect:Ggt,drawCircle:hjt,drawSection:tUe,drawTex
|
|||
|
`);const m=Ie().securityLevel;let b;m==="sandbox"&&(b=Dr("#i"+a));const E=Dr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body");rv.init();const C=E.select("#"+a);tF.initGraphics(C);const M=p.db.getTasks(),P=p.db.getDiagramTitle(),B=p.db.getActors();for(const et in $5)delete $5[et];let j=0;B.forEach(et=>{$5[et]={color:v.actorColours[j%v.actorColours.length],position:j},j++}),iUe(C),rv.insert(0,0,AE,Object.keys($5).length*50),aUe(C,M,0);const R=rv.getBounds();P&&C.append("text").text(P).attr("x",AE).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const H=R.stopy-R.starty+2*v.diagramMarginY,Y=AE+R.stopx+2*v.diagramMarginX;Kb(C,H,Y,v.useMaxWidth),C.append("line").attr("x1",AE).attr("y1",v.height*4).attr("x2",Y-AE-4).attr("y2",v.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const st=P?70:0;C.attr("viewBox",`${R.startx} -25 ${Y} ${H+st}`),C.attr("preserveAspectRatio","xMinYMin meet"),C.attr("height",H+st+25)},rv={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(i,a,f,p){i[a]===void 0?i[a]=f:i[a]=p(f,i[a])},updateBounds:function(i,a,f,p){const v=Ie().journey,m=this;let b=0;function E(C){return function(P){b++;const B=m.sequenceItems.length-b+1;m.updateVal(P,"starty",a-B*v.boxMargin,Math.min),m.updateVal(P,"stopy",p+B*v.boxMargin,Math.max),m.updateVal(rv.data,"startx",i-B*v.boxMargin,Math.min),m.updateVal(rv.data,"stopx",f+B*v.boxMargin,Math.max),C!=="activation"&&(m.updateVal(P,"startx",i-B*v.boxMargin,Math.min),m.updateVal(P,"stopx",f+B*v.boxMargin,Math.max),m.updateVal(rv.data,"starty",a-B*v.boxMargin,Math.min),m.updateVal(rv.data,"stopy",p+B*v.boxMargin,Math.max))}}this.sequenceItems.forEach(E())},insert:function(i,a,f,p){const v=Math.min(i,f),m=Math.max(i,f),b=Math.min(a,p),E=Math.max(a,p);this.updateVal(rv.data,"startx",v,Math.min),this.updateVal(rv.data,"starty",b,Math.min),this.updateVal(rv.data,"stopx",m,Math.max),this.updateVal(rv.data,"stopy",E,Math.max),this.updateBounds(v,b,m,E)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Ugt=tY.sectionFills,pjt=tY.sectionColours,aUe=function(i,a,f){const p=Ie().journey;let v="";const m=p.height*2+p.diagramMarginY,b=f+m;let E=0,C="#CCC",M="black",P=0;for(const[B,j]of a.entries()){if(v!==j.section){C=Ugt[E%Ugt.length],P=E%Ugt.length,M=pjt[E%pjt.length];let H=0;const Y=j.section;for(let et=B;et<a.length&&a[et].section==Y;et++)H=H+1;const st={x:B*p.taskMargin+B*p.width+AE,y:50,text:j.section,fill:C,num:P,colour:M,taskCount:H};tF.drawSection(i,st,p),v=j.section,E++}const R=j.people.reduce((H,Y)=>($5[Y]&&(H[Y]=$5[Y]),H),{});j.x=B*p.taskMargin+B*p.width+AE,j.y=b,j.width=p.diagramMarginX,j.height=p.diagramMarginY,j.colour=M,j.fill=C,j.num=P,j.actors=R,tF.drawTask(i,j,p),rv.insert(j.x,j.y,j.x+j.width+p.taskMargin,300+5*30)}},bjt={setConf:rUe,draw:sUe},oUe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:qGe,db:ljt,renderer:bjt,styles:QGe,init:i=>{bjt.setConf(i.journey),ljt.clear()}}},Symbol.toStringTag,{value:"Module"})),cUe=(i,a,f)=>{const{parentById:p}=f,v=new Set;let m=i;for(;m;){if(v.add(m),m===a)return m;m=p[m]}for(m=a;m;){if(v.has(m))return m;m=p[m]}return"root"};function eY(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wgt={},uUe={get exports(){return Wgt},set exports(i){Wgt=i}};(function(i,a){(function(f){i.exports=f()})(function(){return function(){function f(p,v,m){function b(M,P){if(!v[M]){if(!p[M]){var B=typeof eY=="function"&&eY;if(!P&&B)return B(M,!0);if(E)return E(M,!0);var j=new Error("Cannot find module '"+M+"'");throw j.code="MODULE_NOT_FOUND",j}var R=v[M]={exports:{}};p[M][0].call(R.exports,fu
|
|||
|
`,Pu(Ia(t,e[0])))>=0;)++e[0]}function PM(t,e){this.e=e,this.a=yne(t),this.a<54?this.f=Hv(t):this.c=oI(t)}function Ate(t,e,n,r){Ai(),pv.call(this,26),this.c=t,this.a=e,this.d=n,this.b=r}function e0(t,e,n){var r,s;for(r=10,s=0;s<n-1;s++)e<r&&(t.a+="0"),r*=10;t.a+=e}function ian(t,e){var n;for(n=0;t.e!=t.i.gc();)ZJe(e,kr(t),de(n)),n!=Mi&&++n}function Bmt(t,e){var n;for(++t.d,++t.c[e],n=e+1;n<t.a.length;)++t.a[n],n+=n&-n}function san(t,e){var n,r,s;s=e.c.i,n=u(ar(t.f,s),57),r=n.d.c-n.e.c,oyt(e.a,r,0)}function FM(t){var e,n;return e=t+128,n=(OKt(),r7t)[e],!n&&(n=r7t[e]=new jtt(t)),n}function ri(t,e){var n;return Nn(e),n=t[":"+e],lan(!!n,ct(ot(nr,1),De,1,5,[e])),n}function aan(t){var e,n;if(t.b){n=null;do e=t.b,t.b=null,n=_ae(e,n);while(t.b);t.b=n}}function oan(t){var e,n;if(t.a){n=null;do e=t.a,t.a=null,n=_ae(e,n);while(t.a);t.a=n}}function Lte(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function can(t,e){var n,r;for(r=e.c,n=r+1;n<=e.f;n++)t.a[n]>t.a[r]&&(r=n);return r}function uan(t,e){var n;return n=ew(t.e.c,e.e.c),n==0?Vs(t.e.d,e.e.d):n}function r4(t,e){return e.e==0||t.e==0?i9:(E7(),aat(t,e))}function lan(t,e){if(!t)throw tt(new Bn(dbn("Enum constant undefined: %s",e)))}function q_(){q_=rt,f2e=new ov,d2e=new ud,l2e=new kk,h2e=new uh,g2e=new aY}function K$(){K$=rt,F7t=new S2t("BY_SIZE",0),$ut=new S2t("BY_SIZE_AND_SHAPE",1)}function Y$(){Y$=rt,Qut=new A2t("EADES",0),hV=new A2t("FRUCHTERMAN_REINGOLD",1)}function BM(){BM=rt,qV=new I2t("READING_DIRECTION",0),DEt=new I2t("ROTATION",1)}function Dte(){Dte=rt,X2e=ii((bb(),ct(ot(LEt,1),ie,335,0,[Slt,AEt,Alt,vS,bS])))}function Mte(){Mte=rt,Swe=ii((cC(),ct(ot(D_t,1),ie,315,0,[L_t,wht,mht,DS,MS])))}function Ite(){Ite=rt,j2e=ii((w4(),ct(ot(R2e,1),ie,363,0,[BV,jV,$V,RV,FV])))}function Ote(){Ote=rt,ube=ii((xh(),ct(ot(aTt,1),ie,163,0,[RO,kS,p2,ES,By])))}function Nte(){Nte=rt,Kye=ii((vI(),ct(ot(tSt,1),ie,316,0,[QCt,Jht,JCt,tft,ZCt])))}function Pte(){Pte=rt,v3e=ii((i1(),ct(ot(Qg,1),ie,175,0,[Un,fa,jd,jb,Xg])))}function Fte(){Fte=rt,qye=ii((S7(),ct(ot(zye,1),ie,355,0,[a5,qx,VS,HS,GS])))}function Bte(){Bte=rt,i2e=ii((so(),ct(ot(C9t,1),ie,356,0,[Fd,d2,bu,Zc,Go])))}function Rte(){Rte=rt,z3e=ii((xo(),ct(ot(YS,1),ie,103,0,[d0,Df,Yh,Q0,Z0])))}function jte(){jte=rt,X3e=ii((f4(),ct(ot(JS,1),ie,249,0,[k2,fN,CAt,ZS,SAt])))}function $te(){$te=rt,J3e=ii((be(),ct(ot(co,1),Nc,61,0,[fc,Pn,Wn,Lr,jn])))}function ait(t,e){var n;return n=u(ar(t.a,e),134),n||(n=new C3,Pi(t.a,e,n)),n}function zte(t){var e;return e=u(K(t,(re(),Sw)),305),e?e.a==t:!1}function qte(t){var e;return e=u(K(t,(re(),Sw)),305),e?e.i==t:!1}function Hte(t,e){return Nn(e),rwt(t),t.d.Ob()?(e.td(t.d.Pb()),!0):!1}function X$(t){return Oc(t,Mi)>0?Mi:Oc(t,$a)<0?$a:$r(t)}function Zm(t){return t<3?(Wl(t,Bhe),t+1):t<DC?Ds(t/.75+1):Mi}function wn(t,e){var n;return n=(t.i==null&&Ed(t),t.i),e>=0&&e<n.length?n[e]:null}function e1(t,e,n){var r;if(e==null)throw tt(new MT);return r=I0(t,e),Iin(t,e,n),r}function Vte(t){return t.a>=-.01&&t.a<=G1&&(t.a=0),t.b>=-.01&&t.b<=G1&&(t.b=0),t}function Gte(t,e){return e==(_nt(),_nt(),pge)?t.toLocaleLowerCase():t.toLowerCase()}function Rmt(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(L0(t),t.o)}function Ro(t){var e,n;n=(e=new eet,e),Hr((!t.q&&(t.q=new ue(ef,t,11,10)),t.q),n)}function han(t,e){var n;return n=e>0?e-1:e,zqt(_Ke(bee(Fvt(new n8,n),t.n),t.j),t.k)}function fan(t,e,n,r){var s;t.j=-1,o5t(t,z4t(t,e,n),(go(),s=u(e,66).Mj(),s.Ok(r)))}function Ute(t){this.g=t,this.f=new ce,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function Wte(t){this.b=new ce,this.a=new ce,this.c=new ce,this.d=new ce,this.e=t}function Kte(t,e){this.a=new Rr,this.e=new Rr,this.b=(Q_(),vG),this.c=t,this.b=e}function Yte(t,e,n){Lj.call(this),jmt(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function Xte(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(xR(),Sut)}function Uv(t){if(t<0)throw tt(new Bn("Illegal Capacity: "+t));this.g=this.ri(t)}function dan(t,e){if(0>t||t>e)throw tt(new Zpt("fromIndex: 0, toIndex: "+t+$6t+e))}function gan(t){var e;if(t.a==t.b.a)throw tt(new _c);return e=t.a,t.c=e,t.a=t.a.e,e}func
|
|||
|
`)}return e&&(e.stack||n(t[Wat]))}function v3t(t){Gm();var e;switch(e=t.Pc(),e.length){case 0:return _ut;case 1:return new Pnt(zr(e[0]));default:return new prt(Nun(e))}}function nw(t,e){switch(e.g){case 1:return B6(t.j,(Yu(),O9t));case 2:return B6(t.j,(Yu(),P9t));default:return pn(),pn(),wo}}function w3t(t,e){switch(e){case 3:Kv(t,0);return;case 4:Yv(t,0);return;case 5:Iu(t,0);return;case 6:Ou(t,0);return}Uyt(t,e)}function Jit(){Jit=rt,$R(),pG=(ye(),Pw),Ewe=F1(ct(ot(sft,1),Pkt,146,0,[zO,Lf,zx,Nw,Gy,cht,C9,S9,uht,AS,e5,Bb,n5]))}function Ure(t){var e,n;e=t.d==(cx(),d9),n=v4t(t),e&&!n||!e&&n?Qt(t.a,(ye(),Bd),(n0(),tN)):Qt(t.a,(ye(),Bd),(n0(),JO))}function dln(t,e){var n;return n=u(Gl(t,rb(new ke,new le,new tr,ct(ot(El,1),ie,132,0,[(z1(),th)]))),15),n.Qc(bKt(n.gc()))}function Fz(){Fz=rt,Cft=new sj("SIMPLE",0),MAt=new sj("GROUP_DEC",1),OAt=new sj("GROUP_MIXED",2),IAt=new sj("GROUP_INC",3)}function tst(){tst=rt,Fft=new uB,nLt=new lB,rLt=new hB,iLt=new Pk,sLt=new fB,aLt=new dB,oLt=new nJ,cLt=new Fk,uLt=new Bk}function Wre(t,e,n){eee(),Wzt.call(this),this.a=Y2(Nge,[Jt,Y6t],[595,212],0,[sV,qut],2),this.c=new I6,this.g=t,this.f=e,this.d=n}function m3t(t,e){this.n=Y2(I2,[Jt,got],[364,25],14,[e,Ds(b.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function gln(t,e){Ar(e,"End label post-processing",1),Ts(Qi(oc(new kn(null,new _n(t.b,16)),new mY),new yY),new xY),pr(e)}function pln(t,e,n){var r,s;return r=Kt(t.p[e.i.p])+Kt(t.d[e.i.p])+e.n.b+e.a.b,s=Kt(t.p[n.i.p])+Kt(t.d[n.i.p])+n.n.b+n.a.b,s-r}function bln(t,e,n){var r,s;for(r=Xs(n,Eo),s=0;Oc(r,0)!=0&&s<e;s++)r=Wa(r,Xs(t[s],Eo)),t[s]=$r(r),r=jp(r,32);return $r(r)}function Bz(t){var e,n,r,s;for(s=0,n=0,r=t.length;n<r;n++)e=(Yr(n,t.length),t.charCodeAt(n)),e<64&&(s=P1(s,D0(1,e)));return s}function vln(t){var e;return t==null?null:new Bp((e=Xc(t,!0),e.length>0&&(Yr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function wln(t){var e;return t==null?null:new Bp((e=Xc(t,!0),e.length>0&&(Yr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function y3t(t,e){var n;return t.i>0&&(e.length<t.i&&(n=RM(wl(e).c,t.i),e=n),qc(t.g,0,e,0,t.i)),e.length>t.i&&ds(e,t.i,null),e}function ou(t,e,n){var r,s,o;return t.ej()?(r=t.i,o=t.fj(),tI(t,r,e),s=t.Zi(3,null,e,r,o),n?n.Ei(s):n=s):tI(t,t.i,e),n}function mln(t,e,n){var r,s;return r=new F0(t.e,4,10,(s=e.c,Et(s,88)?u(s,26):(hn(),rf)),null,Fg(t,e),!1),n?n.Ei(r):n=r,n}function yln(t,e,n){var r,s;return r=new F0(t.e,3,10,null,(s=e.c,Et(s,88)?u(s,26):(hn(),rf)),Fg(t,e),!1),n?n.Ei(r):n=r,n}function Kre(t){Rm();var e;return e=new No(u(t.e.We((Ti(),l5)),8)),t.B.Hc((xl(),B9))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function Yre(t){ay();var e;return(t.q?t.q:(pn(),pn(),h0))._b((ye(),Iw))?e=u(K(t,Iw),197):e=u(K(Qa(t),SS),197),e}function sy(t,e){var n,r;return r=null,ia(t,(ye(),dG))&&(n=u(K(t,dG),94),n.Xe(e)&&(r=n.We(e))),r==null&&(r=K(Qa(t),e)),r}function Xre(t,e){var n,r,s;return Et(e,42)?(n=u(e,42),r=n.cd(),s=ry(t.Rc(),r),yd(s,n.dd())&&(s!=null||t.Rc()._b(r))):!1}function est(t,e){var n,r,s;return t.f>0?(t.qj(),r=e==null?0:ns(e),s=(r&Mi)%t.d.length,n=Xoe(t,s,r,e),n!=-1):!1}function r1(t,e){var n,r,s;return t.f>0&&(t.qj(),r=e==null?0:ns(e),s=(r&Mi)%t.d.length,n=i5t(t,s,r,e),n)?n.dd():null}function iI(t,e){var n,r,s,o;for(o=pu(t.e.Tg(),e),n=u(t.g,119),s=0;s<t.i;++s)if(r=n[s],o.rl(r.ak()))return!1;return!0}function Qre(t){if(t.b==null){for(;t.a.Ob();)if(t.b=t.a.Pb(),!u(t.b,49).Zg())return!0;return t.b=null,!1}else return!0}function Zre(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(n){throw n=os(n),Et(n,73)?tt(new hh):tt(n)}}function Rz(t,e){cbt();var n,r;return n=tM((TR(),TR(),oS)),r=null,e==n&&(r=u(Uc(Z8t,t),615)),r||(r=new FYt(t),e==n&&Po(Z8t,t,r)),r}function Jre(t,e){var n,r;t.a=Wa(t.a,1),t.c=b.Math.min(t.c,e),t.b=b.Math.max(t.b,e),t.d+=e,n=e-t.f,r=t.e+n,t.f=r-t.e-n,t.e=r}function xln(t,e){var n;t.c=e,t.a=iln(e),t.a<54&&(t.f=(n=e.d>1?P1(D0(e.a[1],32),Xs(e.a[0],Eo)):Xs(e.a[0],Eo),Hv(ja(e.e,n))))}function sI(t,e){var n;return Xo(t)&&Xo(e)&&(n=t%e,GI<n&&n<yb)?n:Kp((g6t(Xo(t)?Bh(t):t,Xo(e)?Bh(e):e,!0),l2))}function iC(t,e){var n;z3n(e),n=u(K(t
|
|||
|
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
|
|||
|
`)}return[]}function ufn(t){var e;return e=(Cee(),age),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function fse(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=_yt(b.Math.max(8,r))<<1,t.b!=0?(e=vf(t.a,n),Nee(t,e,r),t.a=e,t.b=0):Ozt(t.a,n),t.c=r)}function lfn(t,e){var n;return n=t.b,n.Xe((Ti(),Tl))?n.Hf()==(be(),jn)?-n.rf().a-Kt(ve(n.We(Tl))):e+Kt(ve(n.We(Tl))):n.Hf()==(be(),jn)?-n.rf().a:e}function hI(t){var e;return t.b.c.length!=0&&u(Pe(t.b,0),70).a?u(Pe(t.b,0),70).a:(e=hrt(t),e??""+(t.c?Qo(t.c.a,t,0):-1))}function eq(t){var e;return t.f.c.length!=0&&u(Pe(t.f,0),70).a?u(Pe(t.f,0),70).a:(e=hrt(t),e??""+(t.i?Qo(t.i.j,t,0):-1))}function hfn(t,e){var n,r;if(e<0||e>=t.gc())return null;for(n=e;n<t.gc();++n)if(r=u(t.Xb(n),128),n==t.gc()-1||!r.o)return new _a(de(n),r);return null}function ffn(t,e,n){var r,s,o,h,d;for(o=t.c,d=n?e:t,r=n?t:e,s=d.p+1;s<r.p;++s)if(h=u(Pe(o.a,s),10),!(h.k==(Kn(),Y1)||$fn(h)))return!1;return!0}function G3t(t){var e,n,r,s,o;for(o=0,s=Rs,r=0,n=new S(t.a);n.a<n.c.c.length;)e=u(X(n),187),o+=e.r+(r>0?t.c:0),s=b.Math.max(s,e.d),++r;t.e=o,t.b=s}function dfn(t){var e,n;if(!t.b)for(t.b=A$(u(t.f,118).Ag().i),n=new ur(u(t.f,118).Ag());n.e!=n.i.gc();)e=u(kr(n),137),oe(t.b,new het(e));return t.b}function gfn(t,e){var n,r,s;if(e.dc())return m8(),m8(),EN;for(n=new pWt(t,e.gc()),s=new ur(t);s.e!=s.i.gc();)r=kr(s),e.Hc(r)&&Hr(n,r);return n}function U3t(t,e,n,r){return e==0?r?(!t.o&&(t.o=new Fl((cu(),C2),Rw,t,0)),t.o):(!t.o&&(t.o=new Fl((cu(),C2),Rw,t,0)),_M(t.o)):Wz(t,e,n,r)}function Sst(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e<n;++e)YD(Ct(t.rb,e));if(t.vb)for(e=0,n=t.vb.i;e<n;++e)YD(Ct(t.vb,e));T_((Xu(),Pa),t),t.Bb|=1}function Xi(t,e,n,r,s,o,h,d,w,k,_,L,F,q){return qae(t,e,r,null,s,o,h,d,w,k,F,!0,q),n3t(t,_),Et(t.Cb,88)&&fy(bl(u(t.Cb,88)),2),n&&nyt(t,n),r3t(t,L),t}function pfn(t){var e,n;if(t==null)return null;n=0;try{n=Xl(t,$a,Mi)&Ns}catch(r){if(r=os(r),Et(r,127))e=U$(t),n=e[0];else throw tt(r)}return GM(n)}function bfn(t){var e,n;if(t==null)return null;n=0;try{n=Xl(t,$a,Mi)&Ns}catch(r){if(r=os(r),Et(r,127))e=U$(t),n=e[0];else throw tt(r)}return GM(n)}function vfn(t,e){var n,r,s;return s=t.h-e.h,s<0||(n=t.l-e.l,r=t.m-e.m+(n>>22),s+=r>>22,s<0)?!1:(t.l=n&kl,t.m=r&kl,t.h=s&W0,!0)}function wfn(t,e,n,r,s,o,h){var d,w;return!(e.Ae()&&(w=t.a.ue(n,r),w<0||!s&&w==0)||e.Be()&&(d=t.a.ue(n,o),d>0||!h&&d==0))}function mfn(t,e){a7();var n;if(n=t.j.g-e.j.g,n!=0)return 0;switch(t.j.g){case 2:return Xit(e,yEt)-Xit(t,yEt);case 4:return Xit(t,mEt)-Xit(e,mEt)}return 0}function yfn(t){switch(t.g){case 0:return Dlt;case 1:return Mlt;case 2:return Ilt;case 3:return Olt;case 4:return HV;case 5:return Nlt;default:return null}}function jo(t,e,n){var r,s;return r=(s=new net,hb(s,e),au(s,n),Hr((!t.c&&(t.c=new ue(jw,t,12,10)),t.c),s),s),Mg(r,0),ey(r,1),Pg(r,!0),Ng(r,!0),r}function ox(t,e){var n,r;if(e>=t.i)throw tt(new Jet(e,t.i));return++t.j,n=t.g[e],r=t.i-e-1,r>0&&qc(t.g,e+1,t.g,e,r),ds(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function dse(t,e){var n,r;return t.Db>>16==17?t.Cb.ih(t,21,tf,e):(r=bo(u(wn((n=u(Dn(t,16),26),n||t.zh()),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function xfn(t){var e,n,r,s;for(pn(),ua(t.c,t.a),s=new S(t.c);s.a<s.c.c.length;)for(r=X(s),n=new S(t.b);n.a<n.c.c.length;)e=u(X(n),679),e.Ke(r)}function kfn(t){var e,n,r,s;for(pn(),ua(t.c,t.a),s=new S(t.c);s.a<s.c.c.length;)for(r=X(s),n=new S(t.b);n.a<n.c.c.length;)e=u(X(n),369),e.Ke(r)}function Efn(t){var e,n,r,s,o;for(s=Mi,o=null,r=new S(t.d);r.a<r.c.c.length;)n=u(X(r),213),n.d.j^n.e.j&&(e=n.e.e-n.d.e-n.a,e<s&&(s=e,o=n));return o}function W3t(){W3t=rt,Wpe=new vn(fxt,(Rn(),!1)),Vpe=new vn(dxt,100),w9t=(z_(),elt),Gpe=new vn(gxt,w9t),Upe=new vn(pxt,Ad),Kpe=new vn(bxt,de(Mi))}function gse(t,e,n){var r,s,o,h,d,w,k,_;for(k=0,s=t.a[e],o=0,h=s.length;o<h;++o)for(r=s[o],_=J_(r,n),w=_.Kc();w.Ob();)d=u(w.Pb(),11),Pi(t.f,d,de(k++))}function Tfn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=new X2(s),h=(r.b-r.a)*r.c<0?(Np(),M2):new Rp(r);h.Ob();)o=u(h.Pb(),19),on(t,e,ux(Qm(n,o.a)))}function _fn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=new
|
|||
|
\r\f]+`);try{sA=ct(ot(Y5n,1),De,2015,0,[new yD((cbt(),Rz("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",tM((TR(),TR(),oS))))),new yD(Rz("yyyy-MM-dd'T'HH:mm:ss'.'SSS",tM(oS))),new yD(Rz("yyyy-MM-dd'T'HH:mm:ss",tM(oS))),new yD(Rz("yyyy-MM-dd'T'HH:mm",tM(oS))),new yD(Rz("yyyy-MM-dd",tM(oS)))])}catch(t){if(t=os(t),!Et(t,78))throw tt(t)}}function Mmn(t){var e,n,r,s;if(r=$at((!t.c&&(t.c=ZM(t.f)),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return r;if(e=Wmt(t)<0?1:0,n=t.e,s=(r.length+1+b.Math.abs(Ds(t.e)),new Dm),e==1&&(s.a+="-"),t.e>0)if(n-=r.length-e,n>=0){for(s.a+="0.";n>Mb.length;n-=Mb.length)RKt(s,Mb);yWt(s,Mb,Ds(n)),ni(s,r.substr(e))}else n=e-n,ni(s,ql(r,e,Ds(n))),s.a+=".",ni(s,UD(r,Ds(n)));else{for(ni(s,r.substr(e));n<-Mb.length;n+=Mb.length)RKt(s,Mb);yWt(s,Mb,Ds(-n))}return s.a}function u6t(t,e,n,r){var s,o,h,d,w,k,_,L,F;return w=ba(new Re(n.a,n.b),t),k=w.a*e.b-w.b*e.a,_=e.a*r.b-e.b*r.a,L=(w.a*r.b-w.b*r.a)/_,F=k/_,_==0?k==0?(s=$i(new Re(n.a,n.b),vd(new Re(r.a,r.b),.5)),o=Up(t,s),h=Up($i(new Re(t.a,t.b),e),s),d=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o<h&&o<=d?new Re(t.a,t.b):h<=d?$i(new Re(t.a,t.b),e):null):null:L>=0&&L<=1&&F>=0&&F<=1?$i(new Re(t.a,t.b),vd(new Re(e.a,e.b),L)):null}function Imn(t,e,n){var r,s,o,h,d;if(r=u(K(t,(ye(),Qlt)),21),n.a>e.a&&(r.Hc((uy(),eN))?t.c.a+=(n.a-e.a)/2:r.Hc(nN)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((uy(),iN))?t.c.b+=(n.b-e.b)/2:r.Hc(rN)&&(t.c.b+=n.b-e.b)),u(K(t,(re(),tu)),21).Hc((ko(),Ch))&&(n.a>e.a||n.b>e.b))for(d=new S(t.a);d.a<d.c.c.length;)h=u(X(d),10),h.k==(Kn(),Fs)&&(s=u(K(h,yc),61),s==(be(),Wn)?h.n.a+=n.a-e.a:s==Lr&&(h.n.b+=n.b-e.b));o=t.d,t.f.a=n.a-o.b-o.c,t.f.b=n.b-o.d-o.a}function Omn(t,e,n){var r,s,o,h,d;if(r=u(K(t,(ye(),Qlt)),21),n.a>e.a&&(r.Hc((uy(),eN))?t.c.a+=(n.a-e.a)/2:r.Hc(nN)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((uy(),iN))?t.c.b+=(n.b-e.b)/2:r.Hc(rN)&&(t.c.b+=n.b-e.b)),u(K(t,(re(),tu)),21).Hc((ko(),Ch))&&(n.a>e.a||n.b>e.b))for(h=new S(t.a);h.a<h.c.c.length;)o=u(X(h),10),o.k==(Kn(),Fs)&&(s=u(K(o,yc),61),s==(be(),Wn)?o.n.a+=n.a-e.a:s==Lr&&(o.n.b+=n.b-e.b));d=t.d,t.f.a=n.a-d.b-d.c,t.f.b=n.b-d.d-d.a}function Nmn(t){var e,n,r,s,o,h,d,w,k,_,L,F;for(e=_oe(t),_=(d=new _m(e).a.vc().Kc(),new bD(d));_.a.Ob();){for(k=(s=u(_.a.Pb(),42),u(s.cd(),10)),L=0,F=0,L=k.d.d,F=k.o.b+k.d.a,t.d[k.p]=0,n=k;(o=t.a[n.p])!=k;)r=Uln(n,o),w=0,t.c==(xd(),Kg)?w=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:w=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,h=Kt(t.d[n.p])+w,t.d[o.p]=h,L=b.Math.max(L,o.d.d-h),F=b.Math.max(F,h+o.o.b+o.d.a),n=o;n=k;do t.d[n.p]=Kt(t.d[n.p])+L,n=t.a[n.p];while(n!=k);t.b[k.p]=L+F}}function Tat(t){var e,n,r,s,o,h,d,w,k,_,L,F;for(t.b=!1,L=ms,w=Rs,F=ms,k=Rs,r=t.e.a.ec().Kc();r.Ob();)for(n=u(r.Pb(),266),s=n.a,L=b.Math.min(L,s.c),w=b.Math.max(w,s.c+s.b),F=b.Math.min(F,s.d),k=b.Math.max(k,s.d+s.a),h=new S(n.c);h.a<h.c.c.length;)o=u(X(h),395),e=o.a,e.a?(_=s.d+o.b.b,d=_+o.c,F=b.Math.min(F,_),k=b.Math.max(k,d)):(_=s.c+o.b.a,d=_+o.c,L=b.Math.min(L,_),w=b.Math.max(w,d));t.a=new Re(w-L,k-F),t.c=new Re(L+t.d.a,F+t.d.b)}function Pmn(t,e,n){var r,s,o,h,d,w,k,_,L;for(L=new ce,_=new Uwt(0,n),o=0,rz(_,new Lit(0,0,_,n)),s=0,k=new ur(t);k.e!=k.i.gc();)w=u(kr(k),33),r=u(Pe(_.a,_.a.c.length-1),187),d=s+w.g+(u(Pe(_.a,0),187).b.c.length==0?0:n),d>e&&(s=0,o+=_.b+n,L.c[L.c.length]=_,_=new Uwt(o,n),r=new Lit(0,_.f,_,n),rz(_,r),s=0),r.b.c.length==0||w.f>=r.o&&w.f<=r.f||r.a*.5<=w.f&&r.a*1.5>=w.f?s3t(r,w):(h=new Lit(r.s+r.r+n,_.f,_,n),rz(_,h),s3t(h,w)),s=w.i+w.g;return L.c[L.c.length]=_,L}function C4(t){var e,n,r,s,o,h,d,w;if(!t.a){if(t.o=null,w=new gzt(t),e=new kp,n=cA,d=n.a.zc(t,n),d==null){for(h=new ur(zo(t));h.e!=h.i.gc();)o=u(kr(h),26),vs(w,C4(o));n.a.Bc(t)!=null,n.a.gc()==0}for(s=(!t.s&&(t.s=new ue($u,t,21,17)),new ur(t.s));s.e!=s.i.gc();)r=u(kr(s),170),Et(r,322)&&Hr(e,u(r,34));ny(e),t.k=new wKt(t,(u(Ct(Vt((qp(),An).o),7),18),e.i),e.g),vs(w,t.k),ny(w),t.a=new U3((u(Ct(Vt(An.o),4),18),w.i),w.g),bl(t).b&=-2}return t.a}function Fmn(t,e,n,r,s,o,h){var d,w,k,_,L,F;return L=!1,w=gce(n.q,e.f+e.b-n.q.f),F=s-(n.q.e+w-h),F<r.g||(k=o==t.c.length-1&&F>=(Sn(o,t.c.length),u(t.c[o],200)).e,_=(d=_C(r,F,!1),d.a),_>e.b&&!k)?!1:((k||_<=e.b)&&(k&&_>e.b?(n.d=_,CM(n,wae(n,_))):(Bse(n.
|
|||
|
\r\r `),Po(p5,but,r),Po(j9,but,vy(r)),r=new Vl(4),aI(r,j0e),Po(p5,aS,r),Po(j9,aS,vy(r)),r=new Vl(4),aI(r,j0e),Po(p5,aS,r),Po(j9,aS,vy(r)),r=new Vl(4),aI(r,$0e),wy(r,u(Uc(p5,aS),117)),Po(p5,put,r),Po(j9,put,vy(r)),r=new Vl(4),aI(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Po(p5,vut,r),Po(j9,vut,vy(r)),r=new Vl(4),aI(r,$0e),Yc(r,95,95),Yc(r,58,58),Po(p5,wut,r),Po(j9,wut,vy(r))),n=u(Uc(e?p5:j9,t),136),n}function v5n(t){Vr(t.a,si,ct(ot(Se,1),Jt,2,6,[ki,"anySimpleType"])),Vr(t.b,si,ct(ot(Se,1),Jt,2,6,[ki,"anyType",Vh,hO])),Vr(u(Ct(Vt(t.b),0),34),si,ct(ot(Se,1),Jt,2,6,[Vh,lut,ki,":mixed"])),Vr(u(Ct(Vt(t.b),1),34),si,ct(ot(Se,1),Jt,2,6,[Vh,lut,R8t,fut,ki,":1",_0e,"lax"])),Vr(u(Ct(Vt(t.b),2),34),si,ct(ot(Se,1),Jt,2,6,[Vh,x0e,R8t,fut,ki,":2",_0e,"lax"])),Vr(t.c,si,ct(ot(Se,1),Jt,2,6,[ki,"anyURI",Uh,c1])),Vr(t.d,si,ct(ot(Se,1),Jt,2,6,[ki,"base64Binary",Uh,c1])),Vr(t.e,si,ct(ot(Se,1),Jt,2,6,[ki,dx,Uh,c1])),Vr(t.f,si,ct(ot(Se,1),Jt,2,6,[ki,"boolean:Object",za,dx])),Vr(t.g,si,ct(ot(Se,1),Jt,2,6,[ki,JC])),Vr(t.i,si,ct(ot(Se,1),Jt,2,6,[ki,"byte:Object",za,JC])),Vr(t.j,si,ct(ot(Se,1),Jt,2,6,[ki,"date",Uh,c1])),Vr(t.k,si,ct(ot(Se,1),Jt,2,6,[ki,"dateTime",Uh,c1])),Vr(t.n,si,ct(ot(Se,1),Jt,2,6,[ki,"decimal",Uh,c1])),Vr(t.o,si,ct(ot(Se,1),Jt,2,6,[ki,tS,Uh,c1])),Vr(t.p,si,ct(ot(Se,1),Jt,2,6,[ki,"double:Object",za,tS])),Vr(t.q,si,ct(ot(Se,1),Jt,2,6,[ki,"duration",Uh,c1])),Vr(t.s,si,ct(ot(Se,1),Jt,2,6,[ki,"ENTITIES",za,C0e,j8t,"1"])),Vr(t.r,si,ct(ot(Se,1),Jt,2,6,[ki,C0e,hut,$8t])),Vr(t.t,si,ct(ot(Se,1),Jt,2,6,[ki,$8t,za,HH])),Vr(t.u,si,ct(ot(Se,1),Jt,2,6,[ki,eS,Uh,c1])),Vr(t.v,si,ct(ot(Se,1),Jt,2,6,[ki,"float:Object",za,eS])),Vr(t.w,si,ct(ot(Se,1),Jt,2,6,[ki,"gDay",Uh,c1])),Vr(t.B,si,ct(ot(Se,1),Jt,2,6,[ki,"gMonth",Uh,c1])),Vr(t.A,si,ct(ot(Se,1),Jt,2,6,[ki,"gMonthDay",Uh,c1])),Vr(t.C,si,ct(ot(Se,1),Jt,2,6,[ki,"gYear",Uh,c1])),Vr(t.D,si,ct(ot(Se,1),Jt,2,6,[ki,"gYearMonth",Uh,c1])),Vr(t.F,si,ct(ot(Se,1),Jt,2,6,[ki,"hexBinary",Uh,c1])),Vr(t.G,si,ct(ot(Se,1),Jt,2,6,[ki,"ID",za,HH])),Vr(t.H,si,ct(ot(Se,1),Jt,2,6,[ki,"IDREF",za,HH])),Vr(t.J,si,ct(ot(Se,1),Jt,2,6,[ki,"IDREFS",za,S0e,j8t,"1"])),Vr(t.I,si,ct(ot(Se,1),Jt,2,6,[ki,S0e,hut,"IDREF"])),Vr(t.K,si,ct(ot(Se,1),Jt,2,6,[ki,nS])),Vr(t.M,si,ct(ot(Se,1),Jt,2,6,[ki,z8t])),Vr(t.L,si,ct(ot(Se,1),Jt,2,6,[ki,"int:Object",za,nS])),Vr(t.P,si,ct(ot(Se,1),Jt,2,6,[ki,"language",za,dut,gut,A0e])),Vr(t.Q,si,ct(ot(Se,1),Jt,2,6,[ki,rS])),Vr(t.R,si,ct(ot(Se,1),Jt,2,6,[ki,"long:Object",za,rS])),Vr(t.S,si,ct(ot(Se,1),Jt,2,6,[ki,"Name",za,dut,gut,q8t])),Vr(t.T,si,ct(ot(Se,1),Jt,2,6,[ki,HH,za,"Name
|
|||
|
`,Nfe=`)]}"' \r
|
|||
|
`,Pfe="The given string contains parts that cannot be parsed as numbers.",eO="org.eclipse.elk.core.math",Ffe={3:1,4:1,142:1,207:1,414:1},Bfe={3:1,4:1,116:1,207:1,414:1},Xn="org.eclipse.elk.layered",qg="org.eclipse.elk.alg.layered.graph.transform",Rfe="ElkGraphImporter",jfe="ElkGraphImporter/lambda$0$Type",$fe="ElkGraphImporter/lambda$1$Type",zfe="ElkGraphImporter/lambda$2$Type",qfe="ElkGraphImporter/lambda$4$Type",Hfe="Node margin calculation",Vn="org.eclipse.elk.alg.layered.intermediate",Vfe="ONE_SIDED_GREEDY_SWITCH",Gfe="TWO_SIDED_GREEDY_SWITCH",Got="No implementation is available for the layout processor ",wxt="IntermediateProcessorStrategy",Uot="Node '",Ufe="FIRST_SEPARATE",Wfe="LAST_SEPARATE",Kfe="Odd port side processing",js="org.eclipse.elk.alg.layered.intermediate.compaction",$C="org.eclipse.elk.alg.layered.intermediate.greedyswitch",l0="org.eclipse.elk.alg.layered.p3order.counting",nO={225:1},Tx="org.eclipse.elk.alg.layered.intermediate.loops",Jl="org.eclipse.elk.alg.layered.intermediate.loops.ordering",o2="org.eclipse.elk.alg.layered.intermediate.loops.routing",zC="org.eclipse.elk.alg.layered.intermediate.preserveorder",Dd="org.eclipse.elk.alg.layered.intermediate.wrapping",Pc="org.eclipse.elk.alg.layered.options",Wot="INTERACTIVE",Yfe="DEPTH_FIRST",Xfe="EDGE_LENGTH",Qfe="SELF_LOOPS",Zfe="firstTryWithInitialOrder",mxt="org.eclipse.elk.layered.directionCongruency",yxt="org.eclipse.elk.layered.feedbackEdges",nH="org.eclipse.elk.layered.interactiveReferencePoint",xxt="org.eclipse.elk.layered.mergeEdges",kxt="org.eclipse.elk.layered.mergeHierarchyEdges",Ext="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Txt="org.eclipse.elk.layered.portSortingStrategy",_xt="org.eclipse.elk.layered.thoroughness",Cxt="org.eclipse.elk.layered.unnecessaryBendpoints",Sxt="org.eclipse.elk.layered.generatePositionAndLayerIds",Kot="org.eclipse.elk.layered.cycleBreaking.strategy",rO="org.eclipse.elk.layered.layering.strategy",Axt="org.eclipse.elk.layered.layering.layerConstraint",Lxt="org.eclipse.elk.layered.layering.layerChoiceConstraint",Dxt="org.eclipse.elk.layered.layering.layerId",Yot="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Xot="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Qot="org.eclipse.elk.layered.layering.nodePromotion.strategy",Zot="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Jot="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",qC="org.eclipse.elk.layered.crossingMinimization.strategy",Mxt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",tct="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",ect="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Ixt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Oxt="org.eclipse.elk.layered.crossingMinimization.positionId",Nxt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",nct="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",rH="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",N4="org.eclipse.elk.layered.nodePlacement.strategy",iH="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",rct="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",ict="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",sct="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",act="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",oct="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Pxt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Fxt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",sH="org.eclipse.elk.layered.edgeRouting.splines.mode",aH="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",cct="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Bxt="org.eclipse.elk.layered.spacing.baseValue",Rxt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",jxt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",$xt="org.eclipse.elk.layered.sp
|
|||
|
`,e=de(0),h=0;h<this.p;h++){for(r+=""+e.a,e=de(mWt(e.a)),s=0;s<this.o;s++)n=git(this,s,h),Oc(n,0)==0?r+="_":Oc(n,1)==0?r+="X":r+="0";r+=`
|
|||
|
`}return ql(r,0,r.length-1)},l.o=0,l.p=0,N(Wq,"TwoBitGrid",1298),D(321,1298,{321:1},m3t),l.j=0,l.k=0,N(Wq,"PlanarGrid",321),D(167,321,{321:1,167:1}),l.g=0,l.i=0,N(Wq,"Polyomino",167);var N5n=ls(XI,wfe);D(134,1,J6t,C3),l.Ye=function(e,n){return YM(this,e,n)},l.Ve=function(){return zKt(this)},l.We=function(e){return K(this,e)},l.Xe=function(e){return ia(this,e)},N(XI,"MapPropertyHolder",134),D(1299,134,J6t,yce),N(Wq,"Polyominoes",1299);var dpe=!1,lS,n9t;D(1766,1,Qn,DL),l.td=function(e){wle(u(e,221))},N(mx,"DepthFirstCompaction/0methodref$compactTree$Type",1766),D(810,1,Qn,fi),l.td=function(e){ven(this.a,u(e,221))},N(mx,"DepthFirstCompaction/lambda$1$Type",810),D(1767,1,Qn,tKt),l.td=function(e){zln(this.a,this.b,this.c,u(e,221))},N(mx,"DepthFirstCompaction/lambda$2$Type",1767);var hS,r9t;D(65,1,{65:1},oQt),N(mx,"Node",65),D(1250,1,{},cUt),N(mx,"ScanlineOverlapCheck",1250),D(1251,1,{679:1},SXt),l.Ke=function(e){tQe(this,u(e,440))},N(mx,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),D(1252,1,Ui,fm),l.ue=function(e,n){return Eun(u(e,65),u(n,65))},l.Fb=function(e){return this===e},l.ve=function(){return new lt(this)},N(mx,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),D(440,1,{440:1},_2t),l.a=!1,N(mx,"ScanlineOverlapCheck/Timestamp",440),D(1253,1,Ui,gg),l.ue=function(e,n){return Jfn(u(e,440),u(n,440))},l.Fb=function(e){return this===e},l.ve=function(){return new lt(this)},N(mx,"ScanlineOverlapCheck/lambda$0$Type",1253),D(550,1,{},cs),N(mfe,"SVGImage",550),D(324,1,{324:1},wvt),l.Ib=function(){return"("+this.a+ao+this.b+ao+this.c+")"},N(mfe,"UniqueTriple",324),D(209,1,kb),N(M4,"AbstractLayoutProvider",209),D(1132,209,kb,zs),l.Ze=function(e,n){var r,s,o,h;switch(Ar(n,yfe,1),this.a=Kt(ve($e(e,(aC(),u9t)))),nb(e,Wut)&&(o=Kr($e(e,Wut)),r=dat(K8(),o),r&&(s=u(wrt(r.f),209),s.Ze(e,Kc(n,1)))),h=new EZt(this.a),this.b=q3n(h,e),u($e(e,(Pit(),s9t)),481).g){case 0:ipn(new Da,this.b),Do(e,uV,K(this.b,uV));break;default:Wd()}X3n(h),Do(e,o9t,this.b),pr(n)},l.a=0,N(xfe,"DisCoLayoutProvider",1132),D(1244,1,{},Da),l.c=!1,l.e=0,l.f=0,N(xfe,"DisCoPolyominoCompactor",1244),D(561,1,{561:1},UKt),l.b=!0,N(Yq,"DCComponent",561),D(394,22,{3:1,35:1,22:1,394:1},WR),l.a=!1;var oV,TO,cV,_O,gpe=Xr(Yq,"DCDirection",394,ti,nin,HQe),ppe;D(266,134,{3:1,266:1,94:1,134:1},Jst),N(Yq,"DCElement",266),D(395,1,{395:1},H3t),l.c=0,N(Yq,"DCExtension",395),D(755,134,J6t,Hqt),N(Yq,"DCGraph",755),D(481,22,{3:1,35:1,22:1,481:1},WUt);var Uut,i9t=Xr(Pot,txt,481,ti,Ien,VQe),bpe;D(854,1,zh,jJ),l.Qe=function(e){sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,ext),kfe),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),a9t),(jg(),ks)),i9t),an((i1(),Un))))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,nxt),kfe),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),M9),Se),an(Un)))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,rxt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Z1),nr),an(Un)))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,ixt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Z1),nr),an(Un)))),ale((new BB,e))};var vpe,s9t,a9t,wpe,mpe;N(Pot,"DisCoMetaDataProvider",854),D(998,1,zh,BB),l.Qe=function(e){ale(e)};var ype,Wut,xpe,o9t,uV,Kut,c9t,kpe,Epe,Tpe,_pe,u9t;N(Pot,"DisCoOptions",998),D(999,1,{},Ei),l.$e=function(){var e;return e=new zs,e},l._e=function(e){},N(Pot,"DisCoOptions/DiscoFactory",999),D(562,167,{321:1,167:1,562:1},rce),l.a=0,l.b=0,l.c=0,l.d=0,N("org.eclipse.elk.alg.disco.structures","DCPolyomino",562);var Yut,Xut,lV;D(1268,1,_i,Rc),l.Mb=function(e){return tbt(e)},N(I4,"ElkGraphComponentsProcessor/lambda$0$Type",1268),D(1269,1,{},Oe),l.Kb=function(e){return H6(),r0(u(e,79))},N(I4,"ElkGraphComponentsProcessor/lambda$1$Type",1269),D(1270,1,_i,bp),l.Mb=function(e){return HJe(u(e,79))},N(I4,"ElkGraphCom
|
|||
|
start=`,Cc(e,this.i),e.a+=`
|
|||
|
end=`,Cc(e,this.a),e.a+=`
|
|||
|
nodeStartEdge=`,Cc(e,this.e),e.a+=`
|
|||
|
startEndEdge=`,Cc(e,this.j),e.a+=`
|
|||
|
originalEdge=`,Cc(e,this.f),e.a+=`
|
|||
|
startInLayerDummy=`,Cc(e,this.k),e.a+=`
|
|||
|
startInLayerEdge=`,Cc(e,this.n),e.a+=`
|
|||
|
endInLayerDummy=`,Cc(e,this.b),e.a+=`
|
|||
|
endInLayerEdge=`,Cc(e,this.c),e.a},N(Dd,"BreakingPointInserter/BPInfo",305),D(652,1,{652:1},Sp),l.a=!1,l.b=0,l.c=0,N(Dd,"BreakingPointInserter/Cut",652),D(1480,1,ys,eQ),l.pf=function(e,n){v2n(u(e,37),n)},N(Dd,"BreakingPointProcessor",1480),D(1481,1,_i,nQ),l.Mb=function(e){return zte(u(e,10))},N(Dd,"BreakingPointProcessor/0methodref$isEnd$Type",1481),D(1482,1,_i,rQ),l.Mb=function(e){return qte(u(e,10))},N(Dd,"BreakingPointProcessor/1methodref$isStart$Type",1482),D(1483,1,ys,iQ),l.pf=function(e,n){$2n(this,u(e,37),n)},N(Dd,"BreakingPointRemover",1483),D(1484,1,Qn,sQ),l.td=function(e){u(e,128).k=!0},N(Dd,"BreakingPointRemover/lambda$0$Type",1484),D(797,1,{},d5t),l.b=0,l.e=0,l.f=0,l.j=0,N(Dd,"GraphStats",797),D(798,1,{},zF),l.Ce=function(e,n){return b.Math.max(Kt(ve(e)),Kt(ve(n)))},N(Dd,"GraphStats/0methodref$max$Type",798),D(799,1,{},qF),l.Ce=function(e,n){return b.Math.max(Kt(ve(e)),Kt(ve(n)))},N(Dd,"GraphStats/2methodref$max$Type",799),D(1660,1,{},aQ),l.Ce=function(e,n){return _Je(ve(e),ve(n))},N(Dd,"GraphStats/lambda$1$Type",1660),D(1661,1,{},AT),l.Kb=function(e){return Die(this.a,u(e,29))},N(Dd,"GraphStats/lambda$2$Type",1661),D(1662,1,{},hR),l.Kb=function(e){return hce(this.a,u(e,29))},N(Dd,"GraphStats/lambda$6$Type",1662),D(800,1,{},HF),l.Vf=function(e,n){var r;return r=u(K(e,(ye(),v_t)),15),r||(pn(),pn(),wo)},l.Wf=function(){return!1},N(Dd,"ICutIndexCalculator/ManualCutIndexCalculator",800),D(802,1,{},VF),l.Vf=function(e,n){var r,s,o,h,d,w,k,_,L,F,q,G,W,Q,pt,At,_t,Pt,Wt;for(Wt=(n.n==null&&tse(n),n.n),k=(n.d==null&&tse(n),n.d),Pt=It(wa,Mo,25,Wt.length,15,1),Pt[0]=Wt[0],At=Wt[0],_=1;_<Wt.length;_++)Pt[_]=Pt[_-1]+Wt[_],At+=Wt[_];for(o=bae(n)-1,d=u(K(e,(ye(),w_t)),19).a,s=Rs,r=new ce,q=b.Math.max(0,o-d);q<=b.Math.min(n.f-1,o+d);q++){if(Q=At/(q+1),pt=0,L=1,h=new ce,_t=Rs,F=0,w=0,W=k[0],q==0)_t=At,w=(n.g==null&&(n.g=Wee(n,new qF)),Kt(n.g));else{for(;L<n.f;)Pt[L-1]-pt>=Q&&(oe(h,de(L)),_t=b.Math.max(_t,Pt[L-1]-F),w+=W,pt+=Pt[L-1]-pt,F=Pt[L-1],W=k[L]),W=b.Math.max(W,k[L]),++L;w+=W}G=b.Math.min(1/_t,1/n.b/w),G>s&&(s=G,r=h)}return r},l.Wf=function(){return!1},N(Dd,"MSDCutIndexHeuristic",802),D(1617,1,ys,oQ),l.pf=function(e,n){fmn(u(e,37),n)},N(Dd,"SingleEdgeGraphWrapper",1617),D(227,22,{3:1,35:1,22:1,227:1},QT);var U4,d9,g9,Ny,pS,W4,p9=Xr(Pc,"CenterEdgeLabelPlacementStrategy",227,ti,Esn,eZe),U2e;D(422,22,{3:1,35:1,22:1,422:1},M2t);var kEt,_lt,EEt=Xr(Pc,"ConstraintCalculationStrategy",422,ti,dnn,nZe),W2e;D(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},Met),l.Kf=function(){return roe(this)},l.Xf=function(){return roe(this)};var MO,Mx,TEt,_Et=Xr(Pc,"CrossingMinimizationStrategy",314,ti,srn,rZe),K2e;D(337,22,{3:1,35:1,22:1,337:1},Iet);var CEt,Clt,zV,SEt=Xr(Pc,"CuttingStrategy",337,ti,arn,aZe),Y2e;D(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},FD),l.Kf=function(){return Hoe(this)},l.Xf=function(){return Hoe(this)};var AEt,Slt,bS,Alt,vS,LEt=Xr(Pc,"CycleBreakingStrategy",335,ti,Yin,oZe),X2e;D(419,22,{3:1,35:1,22:1,419:1},I2t);var qV,DEt,MEt=Xr(Pc,"DirectionCongruency",419,ti,fnn,cZe),Q2e;D(450,22,{3:1,35:1,22:1,450:1},Oet);var b9,Llt,K4,Z2e=Xr(Pc,"EdgeConstraint",450,ti,orn,uZe),J2e;D(276,22,{3:1,35:1,22:1,276:1},ZT);var Dlt,Mlt,Ilt,Olt,HV,Nlt,IEt=Xr(Pc,"EdgeLabelSideSelection",276,ti,Ssn,lZe),tbe;D(479,22,{3:1,35:1,22:1,479:1},O2t);var VV,OEt,NEt=Xr(Pc,"EdgeStraighteningStrategy",479,ti,hnn,hZe),ebe;D(274,22,{3:1,35:1,22:1,274:1},JT);var Plt,PEt,FEt,GV,BEt,REt,jEt=Xr(Pc,"FixedAlignment",274,ti,_sn,fZe),nbe;D(275,22,{3:1,35:1,22:1,275:1},t_);var $Et,zEt,qEt,HEt,wS,VEt,GEt=Xr(Pc,"GraphCompactionStrategy",275,ti,Tsn,dZe),rbe;D(256,22,{3:1,35:1,22:1,256:1},Om);var v9,UV,w9,Ch,mS,WV,m9,Y4,KV,yS,Flt=Xr(Pc,"GraphProperties",256,ti,fon,gZe),ibe;D(292,22,{3:1,35:1,22:1,292:1},Net);var IO,Blt,Rlt,jlt=Xr(Pc,"GreedySwitchType",292,ti,lrn,pZe),sbe;D(303,22,{3:1,35:1,22:1,303:1},Pet);var Ix,OO,X4,abe=Xr(Pc,"InLayerConstraint",303,ti,urn,bZe),obe;D(420,22,{3:1,35:1,22:1,420:1},N2t);var $lt,UEt,WEt=Xr(Pc,"InteractiveReferencePoint",420,ti,gnn,vZe),cbe,KEt,Ox,Sw,YV,YEt,XEt,XV,QEt,NO,QV,xS,Nx,Py,zlt,ZV,yc,ZEt,Aw,tu,qlt,Hlt,PO,Ib,Lw,Px,JEt,Fx,FO,Fy,l1,Kh,Vlt,
|
|||
|
`;for(n=gi(this.a,0);n.b!=n.d.c;)e=u(di(n),188),o+=(e.b&&e.c?T$(e.b)+"->"+T$(e.c):"e_"+ns(e))+`
|
|||
|
`;return o};var q5n=N(GC,"TGraph",135);D(633,502,{3:1,502:1,633:1,94:1,134:1}),N(GC,"TShape",633),D(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},Ait),l.Ib=function(){return T$(this)};var H5n=N(GC,"TNode",86);D(255,1,s0,Ap),l.Jc=function(e){Oa(this,e)},l.Kc=function(){var e;return e=gi(this.a.d,0),new y6(e)},N(GC,"TNode/2",255),D(358,1,va,y6),l.Nb=function(e){Ma(this,e)},l.Pb=function(){return u(di(this.a),188).c},l.Ob=function(){return DR(this.a)},l.Qb=function(){Q$(this.a)},N(GC,"TNode/2/1",358),D(1840,1,ys,AWt),l.pf=function(e,n){tmn(this,u(e,135),n)},N(_x,"FanProcessor",1840),D(327,22,{3:1,35:1,22:1,327:1,234:1},n_),l.Kf=function(){switch(this.g){case 0:return new gqt;case 1:return new AWt;case 2:return new e6;case 3:return new tZ;case 4:return new nZ;case 5:return new UL;default:throw tt(new Bn(Got+(this.f!=null?this.f:""+this.g)))}};var Lht,Dht,Mht,Iht,Oht,CG,Nme=Xr(_x,wxt,327,ti,Asn,jZe),Pme;D(1843,1,ys,tZ),l.pf=function(e,n){Fpn(this,u(e,135),n)},l.a=0,N(_x,"LevelHeightProcessor",1843),D(1844,1,s0,eZ),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return pn(),l8(),s9},N(_x,"LevelHeightProcessor/1",1844),D(1841,1,ys,e6),l.pf=function(e,n){H0n(this,u(e,135),n)},l.a=0,N(_x,"NeighborsProcessor",1841),D(1842,1,s0,KF),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return pn(),l8(),s9},N(_x,"NeighborsProcessor/1",1842),D(1845,1,ys,nZ),l.pf=function(e,n){Ppn(this,u(e,135),n)},l.a=0,N(_x,"NodePositionProcessor",1845),D(1839,1,ys,gqt),l.pf=function(e,n){oyn(this,u(e,135))},N(_x,"RootProcessor",1839),D(1846,1,ys,UL),l.pf=function(e,n){bun(u(e,135))},N(_x,"Untreeifyer",1846);var YO,jS,Fme,Nht,SG,$S,Pht,AG,LG,L9,zS,DG,Yg,tCt,Bme,Fht,Ky,Bht,eCt;D(851,1,zh,O3),l.Qe=function(e){sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,Bkt),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),rCt),(jg(),ks)),lCt),an((i1(),Un))))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,Rkt),""),"Search Order"),"Which search order to use when computing a spanning tree."),nCt),ks),fCt),an(Un)))),Fle((new oD,e))};var Rme,nCt,jme,rCt;N(yH,"MrTreeMetaDataProvider",851),D(994,1,zh,oD),l.Qe=function(e){Fle(e)};var $me,iCt,zme,qme,Hme,Vme,sCt,Gme,aCt,Ume,MG,oCt,Wme,cCt,Kme;N(yH,"MrTreeOptions",994),D(995,1,{},rZ),l.$e=function(){var e;return e=new LWt,e},l._e=function(e){},N(yH,"MrTreeOptions/MrtreeFactory",995),D(480,22,{3:1,35:1,22:1,480:1},q2t);var Rht,uCt,lCt=Xr(yH,"OrderWeighting",480,ti,knn,$Ze),Yme;D(425,22,{3:1,35:1,22:1,425:1},H2t);var hCt,jht,fCt=Xr(yH,"TreeifyingOrder",425,ti,xnn,qZe),Xme;D(1459,1,Qc,aD),l.Yf=function(e){return u(e,135),Qme},l.pf=function(e,n){pon(this,u(e,135),n)};var Qme;N("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),D(1460,1,Qc,stt),l.Yf=function(e){return u(e,135),Zme},l.pf=function(e,n){J0n(this,u(e,135),n)};var Zme;N("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),D(1461,1,Qc,itt),l.Yf=function(e){return u(e,135),Jme},l.pf=function(e,n){bvn(this,u(e,135),n)},l.a=0;var Jme;N("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),D(1462,1,Qc,qB),l.Yf=function(e){return u(e,135),tye},l.pf=function(e,n){qfn(u(e,135),n)};var tye;N("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var qS;D(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},V2t),l.Kf=function(){return qre(this)},l.Xf=function(){return qre(this)};var IG,D9,dCt=Xr(jkt,"RadialLayoutPhases",495,ti,Enn,zZe),eye;D(1131,209,kb,cHt),l.Ze=function(e,n){var r,s,o,h,d,w;if(r=Gae(this,e),Ar(n,"Radial layout",r.c.length),Be(Fe($e(e,(oy(),ECt))))||v$((s=new hr((Im(),new Am(e))),s)),w=sdn(e),Do(e,(w_(),qS),w),!w)throw tt(new Bn("The given graph is not a tree!"));for(o=Kt(ve($e(e,PG))),o==0&&(o=soe(e)),Do(e,PG,o),d=new S(Gae(this,e));d.a<d.c.c.length;)h=u(X(d),51),h.pf(e,Kc(n,1));pr(n)},N(jkt,"RadialLayoutProvider",1131),D(549,1,Ui,MR),l.ue=function(e,n){return Mvn(this.a,this.b,u(e,33),u(n,33))},l.Fb=function(e){return this===e},l.ve=function(){return new lt(this)},l.a=0,l.b=0,N(jkt,"RadialUtil/lambda$0$Type",549),D(1375,1,ys,sZ),l.pf=function(e,n){Xyn(u(e,33),n)},N(v1e,"CalculateGraphSize",1375),D(442,22,{3:1,35:1,22:1,442:1,234:1},Vet),l.Kf=func
|
|||
|
`),o.length!=2)throw tt(new Bn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=hy(ly(o[0])),this.b=hy(ly(o[1]))}catch(h){throw h=os(h),Et(h,127)?(r=h,tt(new Bn(Pfe+r))):tt(h)}},l.Ib=function(){return"("+this.a+","+this.b+")"},l.a=0,l.b=0;var sa=N(eO,"KVector",8);D(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Vu,AR,QUt),l.Pc=function(){return Acn(this)},l.Jf=function(e){var n,r,s,o,h,d;s=by(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|||
|
`),Fh(this);try{for(r=0,h=0,o=0,d=0;r<s.length;)s[r]!=null&&ly(s[r]).length>0&&(h%2==0?o=hy(s[r]):d=hy(s[r]),h>0&&h%2!=0&&pi(this,new Re(o,d)),++h),++r}catch(w){throw w=os(w),Et(w,127)?(n=w,tt(new Bn("The given string does not match the expected format for vectors."+n))):tt(w)}},l.Ib=function(){var e,n,r;for(e=new zl("("),n=gi(this,0);n.b!=n.d.c;)r=u(di(n),8),ni(e,r.a+","+r.b),n.b!=n.d.c&&(e.a+="; ");return(e.a+=")",e).a};var kSt=N(eO,"KVectorChain",74);D(248,22,{3:1,35:1,22:1,248:1},r_);var aft,qG,HG,JO,tN,VG,ESt=Xr(Hh,"Alignment",248,ti,ksn,sJe),y3e;D(979,1,zh,ctt),l.Qe=function(e){Mue(e)};var TSt,oft,x3e,_St,CSt,k3e,SSt,E3e,T3e,ASt,LSt,_3e;N(Hh,"BoxLayouterOptions",979),D(980,1,{},jZ),l.$e=function(){var e;return e=new GZ,e},l._e=function(e){},N(Hh,"BoxLayouterOptions/BoxFactory",980),D(291,22,{3:1,35:1,22:1,291:1},i_);var eN,cft,nN,rN,iN,uft,lft=Xr(Hh,"ContentAlignment",291,ti,xsn,aJe),C3e;D(684,1,zh,Ep),l.Qe=function(e){sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,D1e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(jg(),M9)),Se),an((i1(),Un))))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,M1e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Z1),U5n),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,pkt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),DSt),ks),ESt),an(fa)))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,yx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Uo),ka),an(Un)))),sn(e,new Ye(nn(en(rn(Qe(tn(Ze(Je(new Ve,u8t),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Z1),kSt),an(jd)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,bH),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),ISt),Hx),lft),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,oO),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Rn(),!1)),qa),Zs),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,wkt),""),Z6t),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),OSt),ks),YS),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,sO),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),FSt),ks),Eft),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,kH),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),qa),Zs),an(Un)))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,pH),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),$St),ks),_At),Zi(Un,ct(ot(Qg,1),ie,175,0,[fa]))))),sn(e,new Ye(nn(en(rn(yn(Qe(tn(Ze(Je(new Ve,bw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output o
|
|||
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|||
|
... Falling back to non-web worker version.`);if(!R.workerFactory){var st=f("./elk-worker.min.js"),et=st.Worker;R.workerFactory=function(it){return new et(it)}}return b(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,R))}return B}(C);Object.defineProperty(p.exports,"__esModule",{value:!0}),p.exports=M,M.default=M},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(f,p,v){p.exports=Worker},{}]},{},[3])(3)})})(uUe);const lUe=jLt(Wgt),vjt=new lUe;let iv={};const hUe={};let z5={};const fUe=async function(i,a,f,p,v,m,b){const C=f.select(`[id="${a}"]`).insert("g").attr("class","nodes"),M=Object.keys(i);return await Promise.all(M.map(async function(P){const B=i[P];let j="default";B.classes.length>0&&(j=B.classes.join(" ")),j=j+" flowchart-label";const R=tm(B.styles);let H=B.text!==void 0?B.text:B.id;const Y={width:0,height:0},st=[{id:B.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:B.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:B.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:B.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let et=0,it="",dt={};switch(B.type){case"round":et=5,it="rect";break;case"square":it="rect";break;case"diamond":it="question",dt={portConstraints:"FIXED_SIDE"};break;case"hexagon":it="hexagon";break;case"odd":it="rect_left_inv_arrow";break;case"lean_right":it="lean_right";break;case"lean_left":it="lean_left";break;case"trapezoid":it="trapezoid";break;case"inv_trapezoid":it="inv_trapezoid";break;case"odd_right":it="rect_left_inv_arrow";break;case"circle":it="circle";break;case"ellipse":it="ellipse";break;case"stadium":it="stadium";break;case"subroutine":it="subroutine";break;case"cylinder":it="cylinder";break;case"group":it="rect";break;case"doublecircle":it="doublecircle";break;default:it="rect"}const Tt={labelStyle:R.labelStyle,shape:it,labelText:H,labelType:B.labelType,rx:et,ry:et,class:j,style:R.style,id:B.id,link:B.link,linkTarget:B.linkTarget,tooltip:v.db.getTooltip(B.id)||"",domId:v.db.lookUpDomId(B.id),haveCallback:B.haveCallback,width:B.type==="group"?500:void 0,dir:B.dir,type:B.type,props:B.props,padding:Ie().flowchart.padding};let yt,xt;if(Tt.type!=="group")xt=await CBt(C,Tt,B.dir),yt=xt.node().getBBox();else{p.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:wt,bbox:nt}=await $d(C,Tt,void 0,!0);Y.width=nt.width,Y.wrappingWidth=Ie().flowchart.wrappingWidth,Y.height=nt.height,Y.labelNode=wt.node(),Tt.labelData=Y}const ft={id:B.id,ports:B.type==="diamond"?st:[],layoutOptions:dt,labelText:H,labelData:Y,domId:v.db.lookUpDomId(B.id),width:yt==null?void 0:yt.width,height:yt==null?void 0:yt.height,type:B.type,el:xt,parent:m.parentById[B.id]};z5[Tt.id]=ft})),b},wjt=(i,a,f)=>{const p={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return p.TD=p.TB,$t.info("abc88",f,a,i),p[f][a][i]},mjt=(i,a,f)=>{if($t.info("getNextPort abc88",{node:i,edgeDirection:a,graphDirection:f}),!iv[i])switch(f){case"TB":case"TD":iv[i]={inPosition:"north",outPosition:"south"};break;case"BT":iv[i]={inPosition:"south",outPosition:"north"};break;case"RL":iv[i]={inPosition:"east",outPosition:"west"};break;case"LR":iv[i]={inPosition:"west",outPosition:"east"};break}const p=a==="in"?iv[i].inPosition:iv[i].outPosition;return a==="in"?iv[i].inPosition=wjt(iv[i].inPosition,a,f):iv[i].outPosition=wjt(iv[i].outPosition,a,f),p},dUe=(i,a)=>{let f=i.start,p=i.end;const v=f,m=p,b=z5[f],E=z5[p];return!b||!E?{source:f,target:p}:(b.type==="diamond"&&(f=`${f}-${mjt(f,"out",a)}`),E.type==="diamond"&&(p=`${p}-${mjt(p,"in",a)}`),{source:f,target:p,sourceId:v,targetId:m})},gUe=function(i,a,f,p){$t.info("abc78 edges = ",i);const v=p.insert("g").attr("class","edgeLabels");let m={},b=a.db.getDirection(),E,C;if(i.defaultStyle!==void 0){const M=tm(i.defaultStyle);E=M.style,C=M.labelStyle}return i.forEach(function(M){const P="L-"+M.start+"-"+M.end;m[P]===void 0?(m[P]=0,$t.info
|
|||
|
`),M.style===void 0&&(H.style=H.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),H.labelStyle=H.labelStyle.replace("color:","fill:"),H.id=B,H.classes="flowchart-link "+j+" "+R;const et=LBt(v,H),{source:it,target:dt,sourceId:Tt,targetId:yt}=dUe(M,b);$t.debug("abc78 source and target",it,dt),f.edges.push({id:"e"+M.start+M.end,sources:[it],targets:[dt],sourceId:Tt,targetId:yt,labelEl:et,labels:[{width:H.width,height:H.height,orgWidth:H.width,orgHeight:H.height,text:H.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:H})}),f},pUe=function(i,a,f,p){let v="";switch(p&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),a.arrowTypeStart){case"arrow_cross":i.attr("marker-start","url("+v+"#"+f+"-crossStart)");break;case"arrow_point":i.attr("marker-start","url("+v+"#"+f+"-pointStart)");break;case"arrow_barb":i.attr("marker-start","url("+v+"#"+f+"-barbStart)");break;case"arrow_circle":i.attr("marker-start","url("+v+"#"+f+"-circleStart)");break;case"aggregation":i.attr("marker-start","url("+v+"#"+f+"-aggregationStart)");break;case"extension":i.attr("marker-start","url("+v+"#"+f+"-extensionStart)");break;case"composition":i.attr("marker-start","url("+v+"#"+f+"-compositionStart)");break;case"dependency":i.attr("marker-start","url("+v+"#"+f+"-dependencyStart)");break;case"lollipop":i.attr("marker-start","url("+v+"#"+f+"-lollipopStart)");break}switch(a.arrowTypeEnd){case"arrow_cross":i.attr("marker-end","url("+v+"#"+f+"-crossEnd)");break;case"arrow_point":i.attr("marker-end","url("+v+"#"+f+"-pointEnd)");break;case"arrow_barb":i.attr("marker-end","url("+v+"#"+f+"-barbEnd)");break;case"arrow_circle":i.attr("marker-end","url("+v+"#"+f+"-circleEnd)");break;case"aggregation":i.attr("marker-end","url("+v+"#"+f+"-aggregationEnd)");break;case"extension":i.attr("marker-end","url("+v+"#"+f+"-extensionEnd)");break;case"composition":i.attr("marker-end","url("+v+"#"+f+"-compositionEnd)");break;case"dependency":i.attr("marker-end","url("+v+"#"+f+"-dependencyEnd)");break;case"lollipop":i.attr("marker-end","url("+v+"#"+f+"-lollipopEnd)");break}},bUe=function(i,a){$t.info("Extracting classes"),a.db.clear("ver-2");try{return a.parse(i),a.db.getClasses()}catch{return{}}},vUe=function(i){const a={parentById:{},childrenById:{}},f=i.getSubGraphs();return $t.info("Subgraphs - ",f),f.forEach(function(p){p.nodes.forEach(function(v){a.parentById[v]=p.id,a.childrenById[p.id]===void 0&&(a.childrenById[p.id]=[]),a.childrenById[p.id].push(v)})}),f.forEach(function(p){p.id,a.parentById[p.id]!==void 0&&a.parentById[p.id]}),a},wUe=function(i,a,f){const p=cUe(i,a,f);if(p===void 0||p==="root")return{x:0,y:0};const v=z5[p].offset;return{x:v.posX,y:v.posY}},mUe=function(i,a,f,p,v){const m=wUe(a.sourceId,a.targetId,v),b=a.sections[0].startPoint,E=a.sections[0].endPoint,M=(a.sections[0].bendPoints?a.sections[0].bendPoints:[]).map(st=>[st.x+m.x,st.y+m.y]),P=[[b.x+m.x,b.y+m.y],...M,[E.x+m.x,E.y+m.y]],B=rE().curve(ig),j=i.insert("path").attr("d",B(P)).attr("class","path").attr("fill","none"),R=i.insert("g").attr("class","edgeLabel"),H=Dr(R.node().appendChild(a.labelEl)),Y=H.node().firstChild.getBoundingClientRect();H.attr("width",Y.width),H.attr("height",Y.height),R.attr("transform",`translate(${a.labels[0].x+m.x}, ${a.labels[0].y+m.y})`),pUe(j,f,p.type,p.arrowMarkerAbsolute)},yjt=(i,a)=>{i.forEach(f=>{f.children||(f.children=[]);const p=a.childrenById[f.id];p&&p.forEach(v=>{f.children.push(z5[v])}),yjt(f.children,a)})},yUe=async function(i,a,f,p){var ft;p.db.clear(),z5={},iv={},p.db.setGen("gen-2"),p.parser.parse(i);const v=Dr("body").append("div").attr("style","height:400px").attr("id","cy");let m={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch($t.info("Drawing flowchart using v3 renderer",vjt),p.db.getDirection()){case"BT":m.layoutOption
|
|||
|
.subgraph-lvl-${f} {
|
|||
|
fill: ${i[`surface${f}`]};
|
|||
|
stroke: ${i[`surfacePeer${f}`]};
|
|||
|
}
|
|||
|
`;return a},EUe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:VDe,renderer:xUe,parser:qdt,styles:i=>`.label {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
.cluster-label text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
.cluster-label span {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text,span {
|
|||
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 2.0px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.85;
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
fill: ${i.edgeLabelBackground};
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
fill: ${i.clusterBkg};
|
|||
|
stroke: ${i.clusterBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.cluster span {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
/* .cluster div {
|
|||
|
color: ${i.titleColor};
|
|||
|
} */
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.flowchartTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
.subgraph {
|
|||
|
stroke-width:2;
|
|||
|
rx:3;
|
|||
|
}
|
|||
|
// .subgraph-lvl-1 {
|
|||
|
// fill:#ccc;
|
|||
|
// // stroke:black;
|
|||
|
// }
|
|||
|
|
|||
|
.flowchart-label text {
|
|||
|
text-anchor: middle;
|
|||
|
}
|
|||
|
|
|||
|
${kUe(i)}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var Kgt=function(){var i=function(st,et,it,dt){for(it=it||{},dt=st.length;dt--;it[st[dt]]=et);return it},a=[1,2],f=[1,5],p=[6,9,11,17,18,20,22,23,26,27,28],v=[1,15],m=[1,16],b=[1,17],E=[1,18],C=[1,19],M=[1,23],P=[1,24],B=[1,27],j=[4,6,9,11,17,18,20,22,23,26,27,28],R={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(et,it,dt,Tt,yt,xt,ft){var wt=xt.length-1;switch(yt){case 1:return xt[wt-1];case 3:this.$=[];break;case 4:xt[wt-1].push(xt[wt]),this.$=xt[wt-1];break;case 5:case 6:this.$=xt[wt];break;case 7:case 8:this.$=[];break;case 11:Tt.getCommonDb().setDiagramTitle(xt[wt].substr(6)),this.$=xt[wt].substr(6);break;case 12:this.$=xt[wt].trim(),Tt.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=xt[wt].trim(),Tt.getCommonDb().setAccDescription(this.$);break;case 15:Tt.addSection(xt[wt].substr(8)),this.$=xt[wt].substr(8);break;case 19:Tt.addTask(xt[wt],0,""),this.$=xt[wt];break;case 20:Tt.addEvent(xt[wt].substr(2)),this.$=xt[wt];break;case 21:Tt.parseDirective("%%{","open_directive");break;case 22:Tt.parseDirective(xt[wt],"type_directive");break;case 23:xt[wt]=xt[wt].trim().replace(/'/g,'"'),Tt.parseDirective(xt[wt],"arg_directive");break;case 24:Tt.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:a,7:3,12:4,28:f},{1:[3]},i(p,[2,3],{5:6}),{3:7,4:a,7:3,12:4,28:f},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:v,18:m,20:b,22:E,23:C,24:20,25:21,26:M,27:P,28:f},{1:[2,2]},{14:25,15:[1,26],31:B},i([15,31],[2,22]),i(p,[2,8],{1:[2,1]}),i(p,[2,4]),{7:22,10:28,12:4,17:v,18:m,20:b,22:E,23:C,24:20,25:21,26:M,27:P,28:f},i(p,[2,6]),i(p,[2,7]),i(p,[2,11]),{19:[1,29]},{21:[1,30]},i(p,[2,14]),i(p,[2,15]),i(p,[2,16]),i(p,[2,17]),i(p,[2,18]),i(p,[2,19]),i(p,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},i(p,[2,5]),i(p,[2,12]),i(p,[2,13]),i(j,[2,9]),{14:34,31:B},{31:[2,23]},{11:[1,35]},i(j,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(et,it){if(it.recoverable)this.trace(et);else{var dt=new Error(et);throw dt.hash=it,dt}},parse:function(et){var it=this,dt=[0],Tt=[],yt=[null],xt=[],ft=this.table,wt="",nt=0,kt=0,gt=2,ht=1,Mt=xt.slice.call(arguments,1),Z=Object.create(this.lexer),Zt={yy:{}};for(var vt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vt)&&(Zt.yy[vt]=this.yy[vt]);Z.setInput(et,Zt.yy),Zt.yy.lexer=Z,Zt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var ze=Z.yylloc;xt.push(ze);var rt=Z.options&&Z.options.ranges;typeof Zt.yy.parseError=="function"?this.parseError=Zt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(){var ke;return ke=Tt.pop()||Z.lex()||ht,typeof ke!="number"&&(ke instanceof Array&&(Tt=ke,ke=Tt.pop()),ke=it.symbols_[ke]||ke),ke}for(var ne,Ot,Nt,xe,cn={},Fn,Te,vr,Ee;;){if(Ot=dt[dt.length-1],this.defaultActions[Ot]?Nt=this.defaultActions[Ot]:((ne===null||typeof ne>"u")&&(ne=Ae()),Nt=ft[Ot]&&ft[Ot][ne]),typeof Nt>"u"||!Nt.length||!Nt[0]){var le="";Ee=[];for(Fn in ft[Ot])this.terminals_[Fn]&&Fn>gt&&Ee.push("'"+this.terminals_[Fn]+"'");Z.showPosition?le="Parse error on line "+(nt+1)+`:
|
|||
|
`+Z.showPosition()+`
|
|||
|
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[ne]||ne)+"'":le="Parse error on line "+(nt+1)+": Unexpected "+(ne==ht?"end of input":"'"+(this.terminals_[ne]||ne)+"'"),this.parseError(le,{text:Z.match,token:this.terminals_[ne]||ne,line:Z.yylineno,loc:ze,expected:Ee})}if(Nt[0]instanceof Array&&Nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ot+", token: "+ne);switch(Nt[0]){case 1:dt.push(ne),yt.push(Z.yytext),xt.push(Z.yylloc),dt.push(Nt[1]),ne=null,kt=Z.yyleng,wt=Z.yytext,nt=Z.yylineno,ze=Z.yylloc;break;case 2:if(Te=this.productions_[Nt[1]][1],cn.$=yt[yt.length-Te],cn._$={first_line:xt[xt.length-(Te||1)].first_line,last_line:xt[xt.length-1].last_line,first_column:xt[xt.length-(Te||1)].first_column,last_column:xt[xt.length-1].last_column},rt&&(cn._$.range=[xt[xt.length-(Te||1)].range[0],xt[xt.length-1].range[1]]),xe=this.performAction.apply(cn,[wt,kt,nt,Zt.yy,Nt[1],yt,xt].concat(Mt)),typeof xe<"u")return xe;Te&&(dt=dt.slice(0,-1*Te*2),yt=yt.slice(0,-1*Te),xt=xt.slice(0,-1*Te)),dt.push(this.productions_[Nt[1]][0]),yt.push(cn.$),xt.push(cn._$),vr=ft[dt[dt.length-2]][dt[dt.length-1]],dt.push(vr);break;case 3:return!0}}return!0}},H=function(){var st={EOF:1,parseError:function(it,dt){if(this.yy.parser)this.yy.parser.parseError(it,dt);else throw new Error(it)},setInput:function(et,it){return this.yy=it||this.yy||{},this._input=et,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},input:function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var it=et.match(/(?:\r\n?|\n).*/g);return it?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var it=et.length,dt=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-it),this.offset-=it;var Tt=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),dt.length-1&&(this.yylineno-=dt.length-1);var yt=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:dt?(dt.length===Tt.length?this.yylloc.first_column:0)+Tt[Tt.length-dt.length].length-dt[0].length:this.yylloc.first_column-it},this.options.ranges&&(this.yylloc.range=[yt[0],yt[0]+this.yyleng-it]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),it=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
|
|||
|
`+it+"^"},test_match:function(et,it){var dt,Tt,yt;if(this.options.backtrack_lexer&&(yt={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&&(yt.yylloc.range=this.yylloc.range.slice(0))),Tt=et[0].match(/(?:\r\n?|\n).*/g),Tt&&(this.yylineno+=Tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Tt?Tt[Tt.length-1].length-Tt[Tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,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(et[0].length),this.matched+=et[0],dt=this.performAction.call(this,this.yy,this,it,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),dt)return dt;if(this._backtrack){for(var xt in yt)this[xt]=yt[xt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,it,dt,Tt;this._more||(this.yytext="",this.match="");for(var yt=this._currentRules(),xt=0;xt<yt.length;xt++)if(dt=this._input.match(this.rules[yt[xt]]),dt&&(!it||dt[0].length>it[0].length)){if(it=dt,Tt=xt,this.options.backtrack_lexer){if(et=this.test_match(dt,yt[xt]),et!==!1)return et;if(this._backtrack){it=!1;continue}else return!1}else if(!this.options.flex)break}return it?(et=this.test_match(it,yt[Tt]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var it=this.next();return it||this.lex()},begin:function(it){this.conditionStack.push(it)},popState:function(){var it=this.conditionStack.length-1;return it>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(it){return it=this.conditionStack.length-1-Math.abs(it||0),it>=0?this.conditionStack[it]:"INITIAL"},pushState:function(it){this.begin(it)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(it,dt,Tt,yt){switch(Tt){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return st}();R.lexer=H;function Y(){this.yy={}}return Y.prototype=R,R.Parser=Y,new Y}();Kgt.parser=Kgt;const TUe=Kgt;let AL="",kjt=0;const Ygt=[],nY=[],LL=[],Ejt=()=>BIt,Tjt=(i,a,f)=>{ddt(globalThis,i,a,f)},_jt=function(){Ygt.length=0,nY.length=0,AL="",LL.length=0,ug()},Cjt=function(i){AL=i,Ygt.push(i)},Sjt=function(){return Ygt},Ajt=function(){let i=Ijt();const a=100;let f=0;for(;!i&&f<a;)i=Ijt(),f++;return nY.push(...LL),nY},Ljt=function(i,a,f){const p={id:kjt++,section:AL,type:AL,task:i,score:a||0,events:f?[f]:[]};LL.push(p)},Djt=function(i){LL.find(f=>f.id===kjt-1).events.push(i)},Mjt=function(i){const a={section:AL,type:AL,description:i,task:i,classes:[]};nY.push(a)},Ijt=function(){const i=function(f){return LL[f].processed};let a=!0;for(const[f,p]of LL.entries())i(f),a=a&&p.processed;return a},_Ue=Object.freeze(Object.defineProperty({__proto__:null,addEvent:Djt,addSection:Cjt,addTask:Ljt,addTaskOrg:Mjt,clear:_jt,default:{clear:_jt,getCommonDb:Ejt,addSection:Cjt,getSections:Sjt,getTasks:Ajt,addTask:Ljt,addTaskOrg:Mjt,addEvent:Djt,parseDirective:Tjt},getCommonDb:Ejt,getSections:Sjt,getTasks:Ajt,parseDirective:Tjt},Symbol.toStringTag,{value:"Module"})),CUe=12,rY=function(i,a){const f=i.append("rect");return f.attr("x",a.x),f.attr("y",a.y),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("width",a.width),f.attr("height",a.height),f.attr("rx",a.rx),f.attr("ry",a.ry),a.class!==void 0&&f.attr("class",a.class),f},SUe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").a
|
|||
|
`),$t.debug("timeline",p.db);const b=v.securityLevel;let E;b==="sandbox"&&(E=Dr("#i"+a));const M=Dr(b==="sandbox"?E.nodes()[0].contentDocument.body:"body").select("#"+a);M.append("g");const P=p.db.getTasks(),B=p.db.getCommonDb().getDiagramTitle();$t.debug("task",P),LE.initGraphics(M);const j=p.db.getSections();$t.debug("sections",j);let R=0,H=0,Y=0,st=0,et=50+m,it=50;st=50;let dt=0,Tt=!0;j.forEach(function(Mt){const Z={number:dt,descr:Mt,section:dt,width:150,padding:20,maxHeight:R},Zt=LE.getVirtualNodeHeight(M,Z,v);$t.debug("sectionHeight before draw",Zt),R=Math.max(R,Zt+20)});let yt=0,xt=0;$t.debug("tasks.length",P.length);for(const[Mt,Z]of P.entries()){const Zt={number:Mt,descr:Z,section:Z.section,width:150,padding:20,maxHeight:H},vt=LE.getVirtualNodeHeight(M,Zt,v);$t.debug("taskHeight before draw",vt),H=Math.max(H,vt+20),yt=Math.max(yt,Z.events.length);let ze=0;for(let rt=0;rt<Z.events.length;rt++){const ne={descr:Z.events[rt],section:Z.section,number:Z.section,width:150,padding:20,maxHeight:50};ze+=LE.getVirtualNodeHeight(M,ne,v)}xt=Math.max(xt,ze)}$t.debug("maxSectionHeight before draw",R),$t.debug("maxTaskHeight before draw",H),j&&j.length>0?j.forEach(Mt=>{const Z=P.filter(rt=>rt.section===Mt),Zt={number:dt,descr:Mt,section:dt,width:200*Math.max(Z.length,1)-50,padding:20,maxHeight:R};$t.debug("sectionNode",Zt);const vt=M.append("g"),ze=LE.drawNode(vt,Zt,dt,v);$t.debug("sectionNode output",ze),vt.attr("transform",`translate(${et}, ${st})`),it+=R+50,Z.length>0&&Bjt(M,Z,dt,et,it,H,v,yt,xt,R,!1),et+=200*Math.max(Z.length,1),it=st,dt++}):(Tt=!1,Bjt(M,P,dt,et,it,H,v,yt,xt,R,!0));const ft=M.node().getBBox();$t.debug("bounds",ft),B&&M.append("text").text(B).attr("x",ft.width/2-m).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Y=Tt?R+H+150:H+100,M.append("g").attr("class","lineWrapper").append("line").attr("x1",m).attr("y1",Y).attr("x2",ft.width+3*m).attr("y2",Y).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),aE(void 0,M,((gt=v.timeline)==null?void 0:gt.padding)??50,((ht=v.timeline)==null?void 0:ht.useMaxWidth)??!1)},Bjt=function(i,a,f,p,v,m,b,E,C,M,P){var B;for(const j of a){const R={descr:j.task,section:f,number:f,width:150,padding:20,maxHeight:m};$t.debug("taskNode",R);const H=i.append("g").attr("class","taskWrapper"),st=LE.drawNode(H,R,f,b).height;if($t.debug("taskHeight after draw",st),H.attr("transform",`translate(${p}, ${v})`),m=Math.max(m,st),j.events){const et=i.append("g").attr("class","lineWrapper");let it=m;v+=100,it=it+jUe(i,j.events,f,p,v,b),v-=100,et.append("line").attr("x1",p+190/2).attr("y1",v+m).attr("x2",p+190/2).attr("y2",v+m+(P?m:M)+C+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}p=p+200,P&&!((B=b.timeline)!=null&&B.disableMulticolor)&&f++}v=v-10},jUe=function(i,a,f,p,v,m){let b=0;const E=v;v=v+100;for(const C of a){const M={descr:C,section:f,number:f,width:150,padding:20,maxHeight:50};$t.debug("eventNode",M);const P=i.append("g").attr("class","eventWrapper"),j=LE.drawNode(P,M,f,m).height;b=b+j,P.attr("transform",`translate(${p}, ${v})`),v=v+10+j}return v=E,b},$Ue={setConf:()=>{},draw:RUe},zUe=i=>{let a="";for(let f=0;f<i.THEME_COLOR_LIMIT;f++)i["lineColor"+f]=i["lineColor"+f]||i["cScaleInv"+f],iE(i["lineColor"+f])?i["lineColor"+f]=Ms(i["lineColor"+f],20):i["lineColor"+f]=ta(i["lineColor"+f],20);for(let f=0;f<i.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);a+=`
|
|||
|
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} path {
|
|||
|
fill: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.section-${f-1} text {
|
|||
|
fill: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.node-icon-${f-1} {
|
|||
|
font-size: 40px;
|
|||
|
color: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.section-edge-${f-1}{
|
|||
|
stroke: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.edge-depth-${f-1}{
|
|||
|
stroke-width: ${p};
|
|||
|
}
|
|||
|
.section-${f-1} line {
|
|||
|
stroke: ${i["cScaleInv"+f]} ;
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
|
|||
|
.lineWrapper line{
|
|||
|
stroke: ${i["cScaleLabel"+f]} ;
|
|||
|
}
|
|||
|
|
|||
|
.disabled, .disabled circle, .disabled text {
|
|||
|
fill: lightgray;
|
|||
|
}
|
|||
|
.disabled text {
|
|||
|
fill: #efefef;
|
|||
|
}
|
|||
|
`}return a},qUe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:_Ue,renderer:$Ue,parser:TUe,styles:i=>`
|
|||
|
.edge {
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
${zUe(i)}
|
|||
|
.section-root rect, .section-root path, .section-root circle {
|
|||
|
fill: ${i.git0};
|
|||
|
}
|
|||
|
.section-root text {
|
|||
|
fill: ${i.gitBranchLabel0};
|
|||
|
}
|
|||
|
.icon-container {
|
|||
|
height:100%;
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
.edge {
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
.eventWrapper {
|
|||
|
filter: brightness(120%);
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var Qgt=function(){var i=function(Tt,yt,xt,ft){for(xt=xt||{},ft=Tt.length;ft--;xt[Tt[ft]]=yt);return xt},a=[1,4],f=[1,13],p=[1,12],v=[1,15],m=[1,16],b=[1,20],E=[1,19],C=[6,7,8],M=[1,26],P=[1,24],B=[1,25],j=[6,7,11],R=[1,6,13,15,16,19,22],H=[1,33],Y=[1,34],st=[1,6,7,11,13,15,16,19,22],et={trace:function(){},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:function(yt,xt,ft,wt,nt,kt,gt){var ht=kt.length-1;switch(nt){case 6:case 7:return wt;case 8:wt.getLogger().trace("Stop NL ");break;case 9:wt.getLogger().trace("Stop EOF ");break;case 11:wt.getLogger().trace("Stop NL2 ");break;case 12:wt.getLogger().trace("Stop EOF2 ");break;case 15:wt.getLogger().info("Node: ",kt[ht].id),wt.addNode(kt[ht-1].length,kt[ht].id,kt[ht].descr,kt[ht].type);break;case 16:wt.getLogger().trace("Icon: ",kt[ht]),wt.decorateNode({icon:kt[ht]});break;case 17:case 21:wt.decorateNode({class:kt[ht]});break;case 18:wt.getLogger().trace("SPACELIST");break;case 19:wt.getLogger().trace("Node: ",kt[ht].id),wt.addNode(0,kt[ht].id,kt[ht].descr,kt[ht].type);break;case 20:wt.decorateNode({icon:kt[ht]});break;case 25:wt.getLogger().trace("node found ..",kt[ht-2]),this.$={id:kt[ht-1],descr:kt[ht-1],type:wt.getType(kt[ht-2],kt[ht])};break;case 26:this.$={id:kt[ht],descr:kt[ht],type:wt.nodeType.DEFAULT};break;case 27:wt.getLogger().trace("node found ..",kt[ht-3]),this.$={id:kt[ht-3],descr:kt[ht-1],type:wt.getType(kt[ht-2],kt[ht])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:a},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:a},{6:f,7:[1,10],9:9,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(C,[2,3]),{1:[2,2]},i(C,[2,4]),i(C,[2,5]),{1:[2,6],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:f,9:22,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:M,7:P,10:23,11:B},i(j,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:E}),i(j,[2,18]),i(j,[2,19]),i(j,[2,20]),i(j,[2,21]),i(j,[2,23]),i(j,[2,24]),i(j,[2,26],{19:[1,30]}),{20:[1,31]},{6:M,7:P,10:32,11:B},{1:[2,7],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(R,[2,14],{7:H,11:Y}),i(st,[2,8]),i(st,[2,9]),i(st,[2,10]),i(j,[2,15]),i(j,[2,16]),i(j,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:H,11:Y}),i(st,[2,11]),i(st,[2,12]),{21:[1,37]},i(j,[2,25]),i(j,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(yt,xt){if(xt.recoverable)this.trace(yt);else{var ft=new Error(yt);throw ft.hash=xt,ft}},parse:function(yt){var xt=this,ft=[0],wt=[],nt=[null],kt=[],gt=this.table,ht="",Mt=0,Z=0,Zt=2,vt=1,ze=kt.slice.call(arguments,1),rt=Object.create(this.lexer),Ae={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(Ae.yy[ne]=this.yy[ne]);rt.setInput(yt,Ae.yy),Ae.yy.lexer=rt,Ae.yy.parser=this,typeof rt.yylloc>"u"&&(rt.yylloc={});var Ot=rt.yylloc;kt.push(Ot);var Nt=rt.options&&rt.options.ranges;typeof Ae.yy.parseError=="function"?this.parseError=Ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var Ht;return Ht=wt.pop()||rt.lex()||vt,typeof Ht!="number"&&(Ht instanceof Array&&(wt=Ht,Ht=wt.pop()),Ht=xt.symbols_[Ht]||Ht),Ht}for(var cn,Fn,Te,vr,Ee={},le,ke,me,Gt;;){if(Fn=ft[ft.length-1],this.defaultActions[Fn]?Te=this.defaultActions[Fn]:((cn===null||typeof cn>"u")&&(cn=xe()),Te=gt[Fn]&>[Fn][cn]),typeof Te>"u"||!Te.length||!Te[0]){var Le="";Gt=[];for(le in gt[Fn])this.terminals_[le]&&le>Zt&&Gt.push("'"+this.terminals_[le]+"'");rt.showPosition?Le="Parse error on line "+(Mt+1)+`:
|
|||
|
`+rt.showPosition()+`
|
|||
|
Expecting `+Gt.join(", ")+", got '"+(this.terminals_[cn]||cn)+"'":Le="Parse error on line "+(Mt+1)+": Unexpected "+(cn==vt?"end of input":"'"+(this.terminals_[cn]||cn)+"'"),this.parseError(Le,{text:rt.match,token:this.terminals_[cn]||cn,line:rt.yylineno,loc:Ot,expected:Gt})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fn+", token: "+cn);switch(Te[0]){case 1:ft.push(cn),nt.push(rt.yytext),kt.push(rt.yylloc),ft.push(Te[1]),cn=null,Z=rt.yyleng,ht=rt.yytext,Mt=rt.yylineno,Ot=rt.yylloc;break;case 2:if(ke=this.productions_[Te[1]][1],Ee.$=nt[nt.length-ke],Ee._$={first_line:kt[kt.length-(ke||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(ke||1)].first_column,last_column:kt[kt.length-1].last_column},Nt&&(Ee._$.range=[kt[kt.length-(ke||1)].range[0],kt[kt.length-1].range[1]]),vr=this.performAction.apply(Ee,[ht,Z,Mt,Ae.yy,Te[1],nt,kt].concat(ze)),typeof vr<"u")return vr;ke&&(ft=ft.slice(0,-1*ke*2),nt=nt.slice(0,-1*ke),kt=kt.slice(0,-1*ke)),ft.push(this.productions_[Te[1]][0]),nt.push(Ee.$),kt.push(Ee._$),me=gt[ft[ft.length-2]][ft[ft.length-1]],ft.push(me);break;case 3:return!0}}return!0}},it=function(){var Tt={EOF:1,parseError:function(xt,ft){if(this.yy.parser)this.yy.parser.parseError(xt,ft);else throw new Error(xt)},setInput:function(yt,xt){return this.yy=xt||this.yy||{},this._input=yt,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},input:function(){var yt=this._input[0];this.yytext+=yt,this.yyleng++,this.offset++,this.match+=yt,this.matched+=yt;var xt=yt.match(/(?:\r\n?|\n).*/g);return xt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),yt},unput:function(yt){var xt=yt.length,ft=yt.split(/(?:\r\n?|\n)/g);this._input=yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var wt=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),ft.length-1&&(this.yylineno-=ft.length-1);var nt=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:ft?(ft.length===wt.length?this.yylloc.first_column:0)+wt[wt.length-ft.length].length-ft[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[nt[0],nt[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(yt){this.unput(this.match.slice(yt))},pastInput:function(){var yt=this.matched.substr(0,this.matched.length-this.match.length);return(yt.length>20?"...":"")+yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var yt=this.match;return yt.length<20&&(yt+=this._input.substr(0,20-yt.length)),(yt.substr(0,20)+(yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var yt=this.pastInput(),xt=new Array(yt.length+1).join("-");return yt+this.upcomingInput()+`
|
|||
|
`+xt+"^"},test_match:function(yt,xt){var ft,wt,nt;if(this.options.backtrack_lexer&&(nt={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&&(nt.yylloc.range=this.yylloc.range.slice(0))),wt=yt[0].match(/(?:\r\n?|\n).*/g),wt&&(this.yylineno+=wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:wt?wt[wt.length-1].length-wt[wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+yt[0].length},this.yytext+=yt[0],this.match+=yt[0],this.matches=yt,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(yt[0].length),this.matched+=yt[0],ft=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var kt in nt)this[kt]=nt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var yt,xt,ft,wt;this._more||(this.yytext="",this.match="");for(var nt=this._currentRules(),kt=0;kt<nt.length;kt++)if(ft=this._input.match(this.rules[nt[kt]]),ft&&(!xt||ft[0].length>xt[0].length)){if(xt=ft,wt=kt,this.options.backtrack_lexer){if(yt=this.test_match(ft,nt[kt]),yt!==!1)return yt;if(this._backtrack){xt=!1;continue}else return!1}else if(!this.options.flex)break}return xt?(yt=this.test_match(xt,nt[wt]),yt!==!1?yt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var xt=this.next();return xt||this.lex()},begin:function(xt){this.conditionStack.push(xt)},popState:function(){var xt=this.conditionStack.length-1;return xt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(xt){return xt=this.conditionStack.length-1-Math.abs(xt||0),xt>=0?this.conditionStack[xt]:"INITIAL"},pushState:function(xt){this.begin(xt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xt,ft,wt,nt){switch(wt){case 0:return xt.getLogger().trace("Found comment",ft.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:xt.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return xt.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:xt.getLogger().trace("end icon"),this.popState();break;case 10:return xt.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return xt.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return xt.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return xt.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:xt.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return xt.getLogger().trace("description:",ft.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),xt.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),xt.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),xt.getLogger().trace("node end ...",ft.yytext),"NODE_DEND";case 30:return this.popState(),xt.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),xt.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),xt.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),xt.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),xt.getLogger().trace("node end (("),"NODE_DEND";case 35:return xt.getLogger().trace("Long description:",ft.yytext),20;case 36:return xt.getLogger().trace("Long description:",ft.yytext),20}},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 Tt}();et.lexer=it;function dt(){this.yy={}}return dt.prototype=et,et.Parser=dt,new dt}();Qgt.parser=Qgt;const HUe=Qgt,eF=i=>ag(i,Ie());let sv=[],Rjt=0,Zgt={};const VUe=()=>{sv=[],Rjt=0,Zgt={}},GUe=function(i){for(let a=sv.length-1;a>=0;a--)if(sv[a].level<i)return sv[a];return null},UUe=()=>sv.length>0?sv[0]:null,WUe=(i,a,f,p)=>{$t.info("addNode",i,a,f,p);const v=Ie(),m={id:Rjt++,nodeId:eF(a),level:i,descr:eF(f),type:p,children:[],width:Ie().mindmap.maxNodeWidth};switch(m.type){case il.ROUNDED_RECT:m.padding=2*v.mindmap.padding;break;case il.
|
|||
|
a${b},${b} 1 0,1 ${f*.4},${-1*f*.1}
|
|||
|
a${m},${m} 1 0,1 ${f*.35},${1*f*.2}
|
|||
|
|
|||
|
a${v},${v} 1 0,1 ${f*.15},${1*p*.35}
|
|||
|
a${E},${E} 1 0,1 ${-1*f*.15},${1*p*.65}
|
|||
|
|
|||
|
a${m},${v} 1 0,1 ${-1*f*.25},${f*.15}
|
|||
|
a${b},${b} 1 0,1 ${-1*f*.5},0
|
|||
|
a${v},${v} 1 0,1 ${-1*f*.25},${-1*f*.15}
|
|||
|
|
|||
|
a${v},${v} 1 0,1 ${-1*f*.1},${-1*p*.35}
|
|||
|
a${E},${E} 1 0,1 ${f*.1},${-1*p*.65}
|
|||
|
|
|||
|
H0 V0 Z`)},rWe=function(i,a){const f=a.width,p=a.height,v=.15*f;i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+DE(a.type)).attr("d",`M0 0 a${v},${v} 1 0,0 ${f*.25},${-1*p*.1}
|
|||
|
a${v},${v} 1 0,0 ${f*.25},0
|
|||
|
a${v},${v} 1 0,0 ${f*.25},0
|
|||
|
a${v},${v} 1 0,0 ${f*.25},${1*p*.1}
|
|||
|
|
|||
|
a${v},${v} 1 0,0 ${f*.15},${1*p*.33}
|
|||
|
a${v*.8},${v*.8} 1 0,0 0,${1*p*.34}
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.15},${1*p*.33}
|
|||
|
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.25},${p*.15}
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.25},0
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.25},0
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.25},${-1*p*.15}
|
|||
|
|
|||
|
a${v},${v} 1 0,0 ${-1*f*.1},${-1*p*.33}
|
|||
|
a${v*.8},${v*.8} 1 0,0 0,${-1*p*.34}
|
|||
|
a${v},${v} 1 0,0 ${f*.1},${-1*p*.33}
|
|||
|
|
|||
|
H0 V0 Z`)},iWe=function(i,a){i.append("circle").attr("id","node-"+a.id).attr("class","node-bkg node-"+DE(a.type)).attr("r",a.width/2)};function sWe(i,a,f,p,v){return i.insert("polygon",":first-child").attr("points",p.map(function(m){return m.x+","+m.y}).join(" ")).attr("transform","translate("+(v.width-a)/2+", "+f+")")}const aWe=function(i,a){const f=a.height,v=f/4,m=a.width-a.padding+2*v,b=[{x:v,y:0},{x:m-v,y:0},{x:m,y:-f/2},{x:m-v,y:-f},{x:v,y:-f},{x:0,y:-f/2}];sWe(i,m,f,b,a)},oWe=function(i,a){i.append("rect").attr("id","node-"+a.id).attr("class","node-bkg node-"+DE(a.type)).attr("height",a.height).attr("rx",a.padding).attr("ry",a.padding).attr("width",a.width)},qjt={drawNode:function(i,a,f,p){const v=p.htmlLabels,m=f%(zjt-1),b=i.append("g");a.section=m;let E="section-"+m;m<0&&(E+=" section-root"),b.attr("class",(a.class?a.class+" ":"")+"mindmap-node "+E);const C=b.append("g"),M=b.append("g"),P=a.descr.replace(/(<br\/*>)/g,`
|
|||
|
`);_K(M,P,{useHtmlLabels:v,width:a.width,classes:"mindmap-node-label"}),v||M.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const B=M.node().getBBox(),j=p.fontSize.replace?p.fontSize.replace("px",""):p.fontSize;if(a.height=B.height+j*1.1*.5+a.padding,a.width=B.width+2*a.padding,a.icon)if(a.type===il.CIRCLE)a.height+=50,a.width+=50,b.append("foreignObject").attr("height","50px").attr("width",a.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),M.attr("transform","translate("+a.width/2+", "+(a.height/2-1.5*a.padding)+")");else{a.width+=50;const R=a.height;a.height=Math.max(R,60);const H=Math.abs(a.height-R);b.append("foreignObject").attr("width","60px").attr("height",a.height).attr("style","text-align: center;margin-top:"+H/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),M.attr("transform","translate("+(25+a.width/2)+", "+(H/2+a.padding/2)+")")}else if(v){const R=(a.width-B.width)/2,H=(a.height-B.height)/2;M.attr("transform","translate("+R+", "+H+")")}else{const R=a.width/2,H=a.padding/2;M.attr("transform","translate("+R+", "+H+")")}switch(a.type){case il.DEFAULT:tWe(C,a,m);break;case il.ROUNDED_RECT:oWe(C,a);break;case il.RECT:eWe(C,a);break;case il.CIRCLE:C.attr("transform","translate("+a.width/2+", "+ +a.height/2+")"),iWe(C,a);break;case il.CLOUD:nWe(C,a);break;case il.BANG:rWe(C,a);break;case il.HEXAGON:aWe(C,a);break}return jjt(a.id,b),a.height},positionNode:function(i){const a=Jgt(i.id),f=i.x||0,p=i.y||0;a.attr("transform","translate("+f+","+p+")")},drawEdge:function(a,f,p,v,m){const b=m%(zjt-1),E=p.x+p.width/2,C=p.y+p.height/2,M=f.x+f.width/2,P=f.y+f.height/2,B=M>E?E+Math.abs(E-M)/2:E-Math.abs(E-M)/2,j=P>C?C+Math.abs(C-P)/2:C-Math.abs(C-P)/2,R=M>E?Math.abs(E-B)/2+E:-Math.abs(E-B)/2+E,H=P>C?Math.abs(C-j)/2+C:-Math.abs(C-j)/2+C;a.append("path").attr("d",p.direction==="TB"||p.direction==="BT"?`M${E},${C} Q${E},${H} ${B},${j} T${M},${P}`:`M${E},${C} Q${R},${C} ${B},${j} T${M},${P}`).attr("class","edge section-edge-"+b+" edge-depth-"+v)}};var tpt={},cWe={get exports(){return tpt},set exports(i){tpt=i}};(function(i,a){(function(f,p){i.exports=p()})(ek,function(){function f(y){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},f(y)}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function v(y,g){for(var x=0;x<g.length;x++){var T=g[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}function m(y,g,x){return g&&v(y.prototype,g),x&&v(y,x),Object.defineProperty(y,"prototype",{writable:!1}),y}function b(y,g,x){return g in y?Object.defineProperty(y,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[g]=x,y}function E(y,g){return C(y)||M(y,g)||P(y,g)||j()}function C(y){if(Array.isArray(y))return y}function M(y,g){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var T=[],A=!0,I=!1,O,$;try{for(x=x.call(y);!(A=(O=x.next()).done)&&(T.push(O.value),!(g&&T.length===g));A=!0);}catch(z){I=!0,$=z}finally{try{!A&&x.return!=null&&x.return()}finally{if(I)throw $}}return T}}function P(y,g){if(y){if(typeof y=="string")return B(y,g);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return B(y,g)}}function B(y,g){(g==null||g>y.length)&&(g=y.length);for(var x=0,T=new Array(g);x<g;x++)T[x]=y[x];return T}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=typeof window>"u"?null:window,H=R?R.navigator:null;R&&R.document;var Y=f(""),st=f({}),et=f(function(){}),it=typeof HTMLElement>"u"?"undefined":f(HTMLElement),dt=function(g){return g&&g.instanceString&&yt(g.instanceString)?g.instanceString():null},Tt=function(g){return g!=null&&f(g)==Y},yt=function(g){return g!=null&&f(g)===et},xt=function(g){return!ht(g)&&(Array.isArray?Array.isArray(g):g!=null&&g instanceof Array)},ft=function(g){return g!=null&&f(g)===st&&!xt(g)&&g.constructor===Object},wt=function(g){return g!=null&&f(g)===st},nt=function(g){return g!=null&&f(g)===f(1)&&!isNaN(g)},kt=function(g){return nt(g)&&Math.floor(g)===g},gt=function(g){if(it!=="undefined")return g!=null&&g instanceof HTMLElement},ht=function(g){return Mt(g)||Z(g)},Mt=function(g){return dt(g)==="collection"&&g._private.single},Z=function(g){return dt(g)==="collection"&&!g._private.single},Zt=function(g){return dt(g)==="core"},vt=function(g){return dt(g)==="stylesheet"},ze=function(g){return dt(g)==="event"},rt=function(g){return g==null?!0:!!(g===""||g.match(/^\s+$/))},Ae=function(g){return typeof HTMLElement>"u"?!1:g instanceof HTMLElement},ne=function(g){return ft(g)&&nt(g.x1)&&nt(g.x2)&&nt(g.y1)&&nt(g.y2)},Ot=function(g){return wt(g)&&yt(g.then)},Nt=function(){return H&&H.userAgent.match(/msie|trident|edge/i)},xe=function(g,x){x||(x=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var I=[],O=0;O<arguments.length;O++)I.push(arguments[O]);return I.join("$")});var T=function A(){var I=this,O=arguments,$,z=x.apply(I,O),S=A.cache;return($=S[z])||($=S[z]=g.apply(I,O)),$};return T.cache={},T},cn=xe(function(y){return y.replace(/([A-Z])/g,function(g){return"-"+g.toLowerCase()})}),Fn=xe(function(y){return y.replace(/(-\w)/g,function(g){return g[1].toUpperCase()})}),Te=xe(function(y,g){return y+g[0].toUpperCase()+g.substring(1)},function(y,g){return y+"$"+g}),vr=function(g){return rt(g)?g:g.charAt(0).toUpperCase()+g.substring(1)},Ee="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",le="rgb[a]?\\(("+Ee+"[%]?)\\s*,\\s*("+Ee+"[%]?)\\s*,\\s*("+Ee+"[%]?)(?:\\s*,\\s*("+Ee+"))?\\)",ke="rgb[a]?\\((?:"+Ee+"[%]?)\\s*,\\s*(?:"+Ee+"[%]?)\\s*,\\s*(?:"+Ee+"[%]?)(?:\\s*,\\s*(?:"+Ee+"))?\\)",me="hsl[a]?\\(("+Ee+")\\s*,\\s*("+Ee+"[%])\\s*,\\s*("+Ee+"[%])(?:\\s*,\\s*("+Ee+"))?\\)",Gt="hsl[a]?\\((?:"+Ee+")\\s*,\\s*(?:"+Ee+"[%])\\s*,\\s*(?:"+Ee+"[%])(?:\\s*,\\s*(?:"+Ee+"))?\\)",Le="\\#[0-9a-fA-F]{3}",Ht="\\#[0-9a-fA-F]{6}",ln=function(g,x){return g<x?-1:g>x?1:0},Rt=function(g,x){return-1*ln(g,x)},We=Object.assign!=null?Object.assign.bind(Object):function(y){for(var g=arguments,x=1;x<g.length;x++){var T=g[x];if(T!=null)for(var A=Object.keys(T),I=0;I<A.length;I++){var O=A[I];y[O]=T[O]}}return y},se=function(g){if(!(!(g.length===4||g.length===7)||g[0]!=="#")){var x=g.length===4,T,A,I,O=16;return x?(T=parseInt(g[1]+g[1],O),A=parseInt(g[2]+g[2],O),I=parseInt(g[3]+g[3],O)):(T=parseInt(g[1]+g[2],O),A=parseInt(g[3]+g[4],O),I=parseInt(g[5]+g[6],O)),[T,A,I]}},Or=function(g){var x,T,A,I,O,$,z,S;function V(ut,lt,St){return St<0&&(St+=1),St>1&&(St-=1),St<1/6?ut+(lt-ut)*6*St:St<1/2?lt:St<2/3?ut+(lt-ut)*(2/3-St)*6:ut}var U=new RegExp("^"+me+"$").exec(g);if(U){if(T=parseInt(U[1]),T<0?T=(360- -1*T%360)%360:T>360&&(T=T%360),T/=360,A=parseFloat(U[2]),A<0||A>100||(A=A/100,I=parseFloat(U[3]),I<0||I>100)||(I=I/100,O=U[4],O!==void 0&&(O=parseFloat(O),O<0||O>1)))return;if(A===0)$=z=S=Math.round(I*255);else{var J=I<.5?I*(1+A):I+A-I*A,at=2*I-J;$=Math.round(255*V(at,J,T+1/3)),z=Math.round(255*V(at,J,T)),S=Math.round(255*V(at,J,T-1/3))}x=[$,z,S,O]}return x},Ce=function(g){var x,T=new RegExp("^"+le+"$").exec(g);if(T){x=[];for(var A=[],I=1;I<=3;I++){var O=T[I];if(O[O.length-1]==="%"&&(A[I]=!0),O=parseFloat(O),A[I]&&(O=O/100*255),O<0||O>255)return;x.push(Math.floor(O))}var $=A[1]||A[2]||A[3],z=A[1]&&A[2]&&A[3];if($&&!z)return;var S=T[4];if(S!==void 0){if(S=parseFloat(S),S<0||S>1)return;x.push(S)}}return x},Nr=function(g){return ir[g.toLowerCase()]},he=funct
|
|||
|
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
|
|||
|
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
|
|||
|
Licensed under The MIT License (http://opensource.org/licenses/MIT)
|
|||
|
*/var IF=0,OF=1,NF=2,uv=function y(g){if(!(this instanceof y))return new y(g);this.id="Thenable/1.0.7",this.state=IF,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof g=="function"&&g.call(this,this.fulfill.bind(this),this.reject.bind(this))};uv.prototype={fulfill:function(g){return PF(this,OF,"fulfillValue",g)},reject:function(g){return PF(this,NF,"rejectReason",g)},then:function(g,x){var T=this,A=new uv;return T.onFulfilled.push(RF(g,A,"fulfill")),T.onRejected.push(RF(x,A,"reject")),FF(T),A.proxy}};var PF=function(g,x,T,A){return g.state===IF&&(g.state=x,g[T]=A,FF(g)),g},FF=function(g){g.state===OF?BF(g,"onFulfilled",g.fulfillValue):g.state===NF&&BF(g,"onRejected",g.rejectReason)},BF=function(g,x,T){if(g[x].length!==0){var A=g[x];g[x]=[];var I=function(){for(var $=0;$<A.length;$++)A[$](T)};typeof setImmediate=="function"?setImmediate(I):setTimeout(I,0)}},RF=function(g,x,T){return function(A){if(typeof g!="function")x[T].call(x,A);else{var I;try{I=g(A)}catch(O){x.reject(O);return}BX(x,I)}}},BX=function y(g,x){if(g===x||g.proxy===x){g.reject(new TypeError("cannot resolve promise with itself"));return}var T;if(f(x)==="object"&&x!==null||typeof x=="function")try{T=x.then}catch(I){g.reject(I);return}if(typeof T=="function"){var A=!1;try{T.call(x,function(I){A||(A=!0,I===x?g.reject(new TypeError("circular thenable chain")):y(g,I))},function(I){A||(A=!0,g.reject(I))})}catch(I){A||g.reject(I)}return}g.fulfill(x)};uv.all=function(y){return new uv(function(g,x){for(var T=new Array(y.length),A=0,I=function(z,S){T[z]=S,A++,A===y.length&&g(T)},O=0;O<y.length;O++)(function($){var z=y[$],S=z!=null&&z.then!=null;if(S)z.then(function(U){I($,U)},function(U){x(U)});else{var V=z;I($,V)}})(O)})},uv.resolve=function(y){return new uv(function(g,x){g(y)})},uv.reject=function(y){return new uv(function(g,x){x(y)})};var Z5=typeof Promise<"u"?Promise:uv,VE=function(g,x,T){var A=Zt(g),I=!A,O=this._private=We({duration:1e3},x,T);if(O.target=g,O.style=O.style||O.css,O.started=!1,O.playing=!1,O.hooked=!1,O.applying=!1,O.progress=0,O.completes=[],O.frames=[],O.complete&&yt(O.complete)&&O.completes.push(O.complete),I){var $=g.position();O.startPosition=O.startPosition||{x:$.x,y:$.y},O.startStyle=O.startStyle||g.cy().style().getAnimationStartStyle(g,O.style)}if(A){var z=g.pan();O.startPan={x:z.x,y:z.y},O.startZoom=g.zoom()}this.length=1,this[0]=this},D3=VE.prototype;We(D3,{instanceString:function(){return"animation"},hook:function(){var g=this._private;if(!g.hooked){var x,T=g.target._private.animation;g.queue?x=T.queue:x=T.current,x.push(this),ht(g.target)&&g.target.cy().addToAnimationPool(g.target),g.hooked=!0}return this},play:function(){var g=this._private;return g.progress===1&&(g.progress=0),g.playing=!0,g.started=!1,g.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var g=this._private;return g.applying=!0,g.started=!1,g.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var g=this._private;return g.playing=!1,g.started=!1,this},stop:function(){var g=this._private;return g.playing=!1,g.started=!1,g.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(g){var x=this._private;return g===void 0?x.progress*x.duration:this.progress(g/x.duration)},progress:function(g){var x=this._private,T=x.playing;return g===void 0?x.progress:(T&&this.pause(),x.progress=g,x.started=!1,T&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var g=this._private,x=g.playing;x&&this.pause(),g.progress=1-g.progress,g.started=!1;var T=function(S,V){var U=g[S];U!=null&&(g[S]=g[V],g[V]=U)};if(T("zoom","startZoom"),T("pan","startPan"),T("position","startPosition"),g.style)for(var A=0;A<g.style.length;A++){var I=g.style[A],O=I.name,$=g.startStyle[O];g.startStyle[O]=I,g.style[A]=$}return x&&this.play(),this},promise:function(g){var x=this._private,T;switch(g){case"frame":T=x.frames;break;default:c
|
|||
|
Event object based on jQuery events, MIT license
|
|||
|
|
|||
|
https://jquery.org/license/
|
|||
|
https://tldrlegal.com/license/mit-license
|
|||
|
https://github.com/jquery/jquery/blob/master/src/event.js
|
|||
|
*/var pB=function(g,x){this.recycle(g,x)};function Rk(){return!1}function tT(){return!0}pB.prototype={instanceString:function(){return"event"},recycle:function(g,x){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Rk,g!=null&&g.preventDefault?(this.type=g.type,this.isDefaultPrevented=g.defaultPrevented?tT:Rk):g!=null&&g.type?x=g:this.type=g,x!=null&&(this.originalEvent=x.originalEvent,this.type=x.type!=null?x.type:this.type,this.cy=x.cy,this.target=x.target,this.position=x.position,this.renderedPosition=x.renderedPosition,this.namespace=x.namespace,this.layout=x.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var T=this.position,A=this.cy.zoom(),I=this.cy.pan();this.renderedPosition={x:T.x*A+I.x,y:T.y*A+I.y}}this.timeStamp=g&&g.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=tT;var g=this.originalEvent;g&&g.preventDefault&&g.preventDefault()},stopPropagation:function(){this.isPropagationStopped=tT;var g=this.originalEvent;g&&g.stopPropagation&&g.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tT,this.stopPropagation()},isDefaultPrevented:Rk,isPropagationStopped:Rk,isImmediatePropagationStopped:Rk};var bB=/^([^.]+)(\.(?:[^.]+))?$/,gJ=".*",vB={qualifierCompare:function(g,x){return g===x},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(g){return g},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},wB=Object.keys(vB),pJ={};function eT(){for(var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pJ,g=arguments.length>1?arguments[1]:void 0,x=0;x<wB.length;x++){var T=wB[x];this[T]=y[T]||vB[T]}this.context=g||this.context,this.listeners=[],this.emitting=0}var Em=eT.prototype,mB=function(g,x,T,A,I,O,$){yt(A)&&(I=A,A=null),$&&(O==null?O=$:O=We({},O,$));for(var z=xt(T)?T:T.split(/\s+/),S=0;S<z.length;S++){var V=z[S];if(!rt(V)){var U=V.match(bB);if(U){var J=U[1],at=U[2]?U[2]:null,ut=x(g,V,J,at,A,I,O);if(ut===!1)break}}}},yB=function(g,x){return g.addEventFields(g.context,x),new pB(x.type,x)},bJ=function(g,x,T){if(ze(T)){x(g,T);return}else if(ft(T)){x(g,yB(g,T));return}for(var A=xt(T)?T:T.split(/\s+/),I=0;I<A.length;I++){var O=A[I];if(!rt(O)){var $=O.match(bB);if($){var z=$[1],S=$[2]?$[2]:null,V=yB(g,{type:z,namespace:S,target:g.context});x(g,V)}}}};Em.on=Em.addListener=function(y,g,x,T,A){return mB(this,function(I,O,$,z,S,V,U){yt(V)&&I.listeners.push({event:O,callback:V,type:$,namespace:z,qualifier:S,conf:U})},y,g,x,T,A),this},Em.one=function(y,g,x,T){return this.on(y,g,x,T,{one:!0})},Em.removeListener=Em.off=function(y,g,x,T){var A=this;this.emitting!==0&&(this.listeners=aY(this.listeners));for(var I=this.listeners,O=function(S){var V=I[S];mB(A,function(U,J,at,ut,lt,St){if((V.type===at||y==="*")&&(!ut&&V.namespace!==".*"||V.namespace===ut)&&(!lt||U.qualifierCompare(V.qualifier,lt))&&(!St||V.callback===St))return I.splice(S,1),!1},y,g,x,T)},$=I.length-1;$>=0;$--)O($);return this},Em.removeAllListeners=function(){return this.removeListener("*")},Em.emit=Em.trigger=function(y,g,x){var T=this.listeners,A=T.length;return this.emitting++,xt(g)||(g=[g]),bJ(this,function(I,O){x!=null&&(T=[{event:O.event,type:O.type,namespace:O.namespace,callback:x}],A=T.length);for(var $=function(V){var U=T[V];if(U.type===O.type&&(!U.namespace||U.namespace===O.namespace||U.namespace===gJ)&&I.eventMatches(I.context,U,O)){var J=[O];g!=null&&rF(J,g),I.beforeEmit(I.context,U,O),U.conf&&U.conf.one&&(I.listeners=I.listeners.filter(function(lt){return lt!==U}));var at=I.callbackContext(I.context,U,O),ut=U.callback.apply(at,J);I.afterEmit(I.context,U,O),ut===!1&&(O.stopPropagation(),O.preventDefault())}},z=0;z<A;z++)$(z);I.bubble(I.context)&&!O.isPropagationStopped()&&I.parent(I.context).emit(O,g)},y),this.emitting--,this};var vJ={qualifierCompare:function(g,x){return g==null||x==null?g==null&&x==null:g.sameText(x)},eventMatches:function(g,x,T){var A=x.qualifier;return A!=null?g!==T.target&&Mt(T.target)&&A.matches(
|
|||
|
`),U=y.pstyle("text-max-width").pfValue,J=y.pstyle("text-overflow-wrap").value,at=J==="anywhere",ut=[],lt=/[\s\u200b]+/,St=at?"":" ",mt=0;mt<V.length;mt++){var Lt=V[mt],Dt=this.calculateLabelDimensions(y,Lt),Bt=Dt.width;if(at){var Xt=Lt.split("").join(S);Lt=Xt}if(Bt>U){for(var Ut=Lt.split(lt),jt="",te=0;te<Ut.length;te++){var qt=Ut[te],fe=jt.length===0?qt:jt+St+qt,ge=this.calculateLabelDimensions(y,fe),ee=ge.width;ee<=U?jt+=qt+St:(jt&&ut.push(jt),jt=qt+St)}jt.match(/^[\s\u200b]+$/)||ut.push(jt)}else ut.push(Lt)}O("labelWrapCachedLines",ut),A=O("labelWrapCachedText",ut.join(`
|
|||
|
`)),O("labelWrapKey",z)}else if($==="ellipsis"){var Ne=y.pstyle("text-max-width").pfValue,pe="",fn="…",je=!1;if(this.calculateLabelDimensions(y,A).width<Ne)return A;for(var qe=0;qe<A.length;qe++){var xn=this.calculateLabelDimensions(y,pe+A[qe]+fn).width;if(xn>Ne)break;pe+=A[qe],qe===A.length-1&&(je=!0)}return je||(pe+=fn),pe}return A},Ep.getLabelJustification=function(y){var g=y.pstyle("text-justification").strValue,x=y.pstyle("text-halign").strValue;if(g==="auto")if(y.isNode())switch(x){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return g},Ep.calculateLabelDimensions=function(y,g){var x=this,T=cd(g,y._private.labelDimsKey),A=x.labelDimCache||(x.labelDimCache=[]),I=A[T];if(I!=null)return I;var O=0,$=y.pstyle("font-style").strValue,z=y.pstyle("font-size").pfValue,S=y.pstyle("font-family").strValue,V=y.pstyle("font-weight").strValue,U=this.labelCalcCanvas,J=this.labelCalcCanvasContext;if(!U){U=this.labelCalcCanvas=document.createElement("canvas"),J=this.labelCalcCanvasContext=U.getContext("2d");var at=U.style;at.position="absolute",at.left="-9999px",at.top="-9999px",at.zIndex="-1",at.visibility="hidden",at.pointerEvents="none"}J.font="".concat($," ").concat(V," ").concat(z,"px ").concat(S);for(var ut=0,lt=0,St=g.split(`
|
|||
|
`),mt=0;mt<St.length;mt++){var Lt=St[mt],Dt=J.measureText(Lt),Bt=Math.ceil(Dt.width),Xt=z;ut=Math.max(Bt,ut),lt+=Xt}return ut+=O,lt+=O,A[T]={width:ut,height:lt}},Ep.calculateLabelAngle=function(y,g){var x=y._private,T=x.rscratch,A=y.isEdge(),I=g?g+"-":"",O=y.pstyle(I+"text-rotation"),$=O.strValue;return $==="none"?0:A&&$==="autorotate"?T.labelAutoAngle:$==="autorotate"?0:O.pfValue},Ep.calculateLabelAngles=function(y){var g=this,x=y.isEdge(),T=y._private,A=T.rscratch;A.labelAngle=g.calculateLabelAngle(y),x&&(A.sourceLabelAngle=g.calculateLabelAngle(y,"source"),A.targetLabelAngle=g.calculateLabelAngle(y,"target"))};var lh={},uD=28,QB=!1;lh.getNodeShape=function(y){var g=this,x=y.pstyle("shape").value;if(x==="cutrectangle"&&(y.width()<uD||y.height()<uD))return QB||(Wo("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),QB=!0),"rectangle";if(y.isParent())return x==="rectangle"||x==="roundrectangle"||x==="round-rectangle"||x==="cutrectangle"||x==="cut-rectangle"||x==="barrel"?x:"rectangle";if(x==="polygon"){var T=y.pstyle("shape-polygon-points").value;return g.nodeShapes.makePolygon(T).name}return x};var Gk={};Gk.registerCalculationListeners=function(){var y=this.cy,g=y.collection(),x=this,T=function(O){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(g.merge(O),$)for(var z=0;z<O.length;z++){var S=O[z],V=S._private,U=V.rstyle;U.clean=!1,U.cleanConnected=!1}};x.binder(y).on("bounds.* dirty.*",function(O){var $=O.target;T($)}).on("style.* background.*",function(O){var $=O.target;T($,!1)});var A=function(O){if(O){var $=x.onUpdateEleCalcsFns;g.cleanStyle();for(var z=0;z<g.length;z++){var S=g[z],V=S._private.rstyle;S.isNode()&&!V.cleanConnected&&(T(S.connectedEdges()),V.cleanConnected=!0)}if($)for(var U=0;U<$.length;U++){var J=$[U];J(O,g)}x.recalculateRenderedStyle(g),g=y.collection()}};x.flushRenderedStyleQueue=function(){A(!0)},x.beforeRender(A,x.beforeRenderPriorities.eleCalcs)},Gk.onUpdateEleCalcs=function(y){var g=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];g.push(y)},Gk.recalculateRenderedStyle=function(y,g){var x=function(Bt){return Bt._private.rstyle.cleanConnected},T=[],A=[];if(!this.destroyed){g===void 0&&(g=!0);for(var I=0;I<y.length;I++){var O=y[I],$=O._private,z=$.rstyle;O.isEdge()&&(!x(O.source())||!x(O.target()))&&(z.clean=!1),!(g&&z.clean||O.removed())&&O.pstyle("display").value!=="none"&&($.group==="nodes"?A.push(O):T.push(O),z.clean=!0)}for(var S=0;S<A.length;S++){var V=A[S],U=V._private,J=U.rstyle,at=V.position();this.recalculateNodeLabelProjection(V),J.nodeX=at.x,J.nodeY=at.y,J.nodeW=V.pstyle("width").pfValue,J.nodeH=V.pstyle("height").pfValue}this.recalculateEdgeProjections(T);for(var ut=0;ut<T.length;ut++){var lt=T[ut],St=lt._private,mt=St.rstyle,Lt=St.rscratch;mt.srcX=Lt.arrowStartX,mt.srcY=Lt.arrowStartY,mt.tgtX=Lt.arrowEndX,mt.tgtY=Lt.arrowEndY,mt.midX=Lt.midX,mt.midY=Lt.midY,mt.labelAngle=Lt.labelAngle,mt.sourceLabelAngle=Lt.sourceLabelAngle,mt.targetLabelAngle=Lt.targetLabelAngle}}};var wT={};wT.updateCachedGrabbedEles=function(){var y=this.cachedZSortedEles;if(y){y.drag=[],y.nondrag=[];for(var g=[],x=0;x<y.length;x++){var T=y[x],A=T._private.rscratch;T.grabbed()&&!T.isParent()?g.push(T):A.inDragLayer?y.drag.push(T):y.nondrag.push(T)}for(var x=0;x<g.length;x++){var T=g[x];y.drag.push(T)}}},wT.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},wT.getCachedZSortedEles=function(y){if(y||!this.cachedZSortedEles){var g=this.cy.mutableElements().toArray();g.sort(EB),g.interactive=g.filter(function(x){return x.interactive()}),this.cachedZSortedEles=g,this.updateCachedGrabbedEles()}else g=this.cachedZSortedEles;return g};var Uk={};[O3,vT,fd,Vk,cD,Ep,lh,Gk,wT].forEach(function(y){We(Uk,y)});var ZB={};ZB.getCachedImage=function(y,g,x){var T=this,A=T.imageCache=T.imageCache||{},I=A[y];if(I)return I.image.complete||I.image.addEventListener("load",x),I.image;I=A[y]=A[y]||{};var O=I.image=new Image;O.addEventListener("load",x),O.addEventListener("error",function(){O.error=!0});var $="data:",z=y.substring(0,$.length).toLowerCase()=
|
|||
|
`+i,p.parser);const m=Ie().securityLevel;let b;m==="sandbox"&&(b=Dr("#i"+a));const C=Dr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body").select("#"+a);C.append("g");const M=p.db.getMindmap(),P=C.append("g");P.attr("class","mindmap-edges");const B=C.append("g");B.attr("class","mindmap-nodes"),Ujt(B,M,-1,v);const j=await bWe(M,v);pWe(P,j),vWe(j),aE(void 0,C,v.mindmap.padding,v.mindmap.useMaxWidth)}},mWe=i=>{let a="";for(let f=0;f<i.THEME_COLOR_LIMIT;f++)i["lineColor"+f]=i["lineColor"+f]||i["cScaleInv"+f],iE(i["lineColor"+f])?i["lineColor"+f]=Ms(i["lineColor"+f],20):i["lineColor"+f]=ta(i["lineColor"+f],20);for(let f=0;f<i.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);a+=`
|
|||
|
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} polygon, .section-${f-1} path {
|
|||
|
fill: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.section-${f-1} text {
|
|||
|
fill: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.node-icon-${f-1} {
|
|||
|
font-size: 40px;
|
|||
|
color: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.section-edge-${f-1}{
|
|||
|
stroke: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.edge-depth-${f-1}{
|
|||
|
stroke-width: ${p};
|
|||
|
}
|
|||
|
.section-${f-1} line {
|
|||
|
stroke: ${i["cScaleInv"+f]} ;
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
|
|||
|
.disabled, .disabled circle, .disabled text {
|
|||
|
fill: lightgray;
|
|||
|
}
|
|||
|
.disabled text {
|
|||
|
fill: #efefef;
|
|||
|
}
|
|||
|
`}return a},yWe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:JUe,renderer:wWe,parser:HUe,styles:i=>`
|
|||
|
.edge {
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
${mWe(i)}
|
|||
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|||
|
fill: ${i.git0};
|
|||
|
}
|
|||
|
.section-root text {
|
|||
|
fill: ${i.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;
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));return F2});
|
|||
|
|
|||
|
;
|
|||
|
function css(e){return"rgb("+getComputedStyle(document.documentElement).getPropertyValue(e)+")"}mermaid.initialize({theme:"base",themeVariables:{background:css("--color-neutral"),primaryColor:css("--color-primary-200"),secondaryColor:css("--color-secondary-200"),tertiaryColor:css("--color-neutral-100"),primaryBorderColor:css("--color-primary-400"),secondaryBorderColor:css("--color-secondary-400"),tertiaryBorderColor:css("--color-neutral-400"),lineColor:css("--color-neutral-600"),fontFamily:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif",fontSize:"16px"}})
|