1590 lines
2.7 MiB
JavaScript
1590 lines
2.7 MiB
JavaScript
|
(function(T2,G0){typeof exports=="object"&&typeof module<"u"?module.exports=G0():typeof define=="function"&&define.amd?define(G0):(T2=typeof globalThis<"u"?globalThis:T2||self,T2.mermaid=G0())})(this,function(){"use strict";var VPn=Object.defineProperty;var UPn=(T2,G0,Ar)=>G0 in T2?VPn(T2,G0,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):T2[G0]=Ar;var CL=(T2,G0,Ar)=>(UPn(T2,typeof G0!="symbol"?G0+"":G0,Ar),Ar);function T2(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var l=Array.from(typeof r=="string"?[r]:r);l[l.length-1]=l[l.length-1].replace(/\r?\n([\t ]*)$/,"");var f=l.reduce(function(w,y){var k=y.match(/\n([\t ]+|(?!\s).)/g);return k?w.concat(k.map(function(E){var T,C;return(C=(T=E.match(/[\t ]/g))===null||T===void 0?void 0:T.length)!==null&&C!==void 0?C:0})):w},[]);if(f.length){var b=new RegExp(`
|
||
|
[ ]{`+Math.min.apply(Math,f)+"}","g");l=l.map(function(w){return w.replace(b,`
|
||
|
`)})}l[0]=l[0].replace(/^\r?\n/,"");var d=l[0];return i.forEach(function(w,y){var k=d.match(/(?:^|\n)( *)$/),E=k?k[1]:"",T=w;typeof w=="string"&&w.includes(`
|
||
|
`)&&(T=String(w).split(`
|
||
|
`).map(function(C,S){return S===0?C:""+E+C}).join(`
|
||
|
`)),d+=T+l[y+1]}),d}//! moment.js
|
||
|
//! version : 2.29.4
|
||
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
|
//! license : MIT
|
||
|
//! momentjs.com
|
||
|
var G0;function Ar(){return G0.apply(null,arguments)}function P_t(r){G0=r}function mv(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function M8(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Mo(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function vie(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var i;for(i in r)if(Mo(r,i))return!1;return!0}function V0(r){return r===void 0}function L3(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function SL(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function QEe(r,i){var o=[],l,f=r.length;for(l=0;l<f;++l)o.push(i(r[l],l));return o}function n6(r,i){for(var o in i)Mo(i,o)&&(r[o]=i[o]);return Mo(i,"toString")&&(r.toString=i.toString),Mo(i,"valueOf")&&(r.valueOf=i.valueOf),r}function Tm(r,i,o,l){return _9e(r,i,o,l,!0).utc()}function B_t(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ba(r){return r._pf==null&&(r._pf=B_t()),r._pf}var wie;Array.prototype.some?wie=Array.prototype.some:wie=function(r){var i=Object(this),o=i.length>>>0,l;for(l=0;l<o;l++)if(l in i&&r.call(this,i[l],l,i))return!0;return!1};function mie(r){if(r._isValid==null){var i=ba(r),o=wie.call(i.parsedDateParts,function(f){return f!=null}),l=!isNaN(r._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&o);if(r._strict&&(l=l&&i.charsLeftOver===0&&i.unusedTokens.length===0&&i.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=l;else return l}return r._isValid}function sz(r){var i=Tm(NaN);return r!=null?n6(ba(i),r):ba(i).userInvalidated=!0,i}var ZEe=Ar.momentProperties=[],yie=!1;function kie(r,i){var o,l,f,b=ZEe.length;if(V0(i._isAMomentObject)||(r._isAMomentObject=i._isAMomentObject),V0(i._i)||(r._i=i._i),V0(i._f)||(r._f=i._f),V0(i._l)||(r._l=i._l),V0(i._strict)||(r._strict=i._strict),V0(i._tzm)||(r._tzm=i._tzm),V0(i._isUTC)||(r._isUTC=i._isUTC),V0(i._offset)||(r._offset=i._offset),V0(i._pf)||(r._pf=ba(i)),V0(i._locale)||(r._locale=i._locale),b>0)for(o=0;o<b;o++)l=ZEe[o],f=i[l],V0(f)||(r[l]=f);return r}function AL(r){kie(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),yie===!1&&(yie=!0,Ar.updateOffset(this),yie=!1)}function yv(r){return r instanceof AL||r!=null&&r._isAMomentObject!=null}function JEe(r){Ar.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function C2(r,i){var o=!0;return n6(function(){if(Ar.deprecationHandler!=null&&Ar.deprecationHandler(null,r),o){var l=[],f,b,d,w=arguments.length;for(b=0;b<w;b++){if(f="",typeof arguments[b]=="object"){f+=`
|
||
|
[`+b+"] ";for(d in arguments[0])Mo(arguments[0],d)&&(f+=d+": "+arguments[0][d]+", ");f=f.slice(0,-2)}else f=arguments[b];l.push(f)}JEe(r+`
|
||
|
Arguments: `+Array.prototype.slice.call(l).join("")+`
|
||
|
`+new Error().stack),o=!1}return i.apply(this,arguments)},i)}var e9e={};function t9e(r,i){Ar.deprecationHandler!=null&&Ar.deprecationHandler(r,i),e9e[r]||(JEe(i),e9e[r]=!0)}Ar.suppressDeprecationWarnings=!1,Ar.deprecationHandler=null;function Cm(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function F_t(r){var i,o;for(o in r)Mo(r,o)&&(i=r[o],Cm(i)?this[o]=i:this["_"+o]=i);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xie(r,i){var o=n6({},r),l;for(l in i)Mo(i,l)&&(M8(r[l])&&M8(i[l])?(o[l]={},n6(o[l],r[l]),n6(o[l],i[l])):i[l]!=null?o[l]=i[l]:delete o[l]);for(l in r)Mo(r,l)&&!Mo(i,l)&&M8(r[l])&&(o[l]=n6({},o[l]));return o}function Eie(r){r!=null&&this.set(r)}var _ie;Object.keys?_ie=Object.keys:_ie=function(r){var i,o=[];for(i in r)Mo(r,i)&&o.push(i);return o};var R_t={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j_t(r,i,o){var l=this._calendar[r]||this._calendar.sameElse;return Cm(l)?l.call(i,o):l}function Sm(r,i,o){var l=""+Math.abs(r),f=i-l.length,b=r>=0;return(b?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+l}var Tie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,az=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Cie={},_T={};function Ki(r,i,o,l){var f=l;typeof l=="string"&&(f=function(){return this[l]()}),r&&(_T[r]=f),i&&(_T[i[0]]=function(){return Sm(f.apply(this,arguments),i[1],i[2])}),o&&(_T[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function $_t(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function H_t(r){var i=r.match(Tie),o,l;for(o=0,l=i.length;o<l;o++)_T[i[o]]?i[o]=_T[i[o]]:i[o]=$_t(i[o]);return function(f){var b="",d;for(d=0;d<l;d++)b+=Cm(i[d])?i[d].call(f,r):i[d];return b}}function oz(r,i){return r.isValid()?(i=n9e(i,r.localeData()),Cie[i]=Cie[i]||H_t(i),Cie[i](r)):r.localeData().invalidDate()}function n9e(r,i){var o=5;function l(f){return i.longDateFormat(f)||f}for(az.lastIndex=0;o>=0&&az.test(r);)r=r.replace(az,l),az.lastIndex=0,o-=1;return r}var z_t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G_t(r){var i=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return i||!o?i:(this._longDateFormat[r]=o.match(Tie).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[r])}var V_t="Invalid date";function U_t(){return this._invalidDate}var q_t="%d",Y_t=/\d{1,2}/;function W_t(r){return this._ordinal.replace("%d",r)}var K_t={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X_t(r,i,o,l){var f=this._relativeTime[o];return Cm(f)?f(r,i,o,l):f.replace(/%d/i,r)}function Q_t(r,i){var o=this._relativeTime[r>0?"future":"past"];return Cm(o)?o(i):o.replace(/%s/i,i)}var ML={};function nd(r,i){var o=r.toLowerCase();ML[o]=ML[o+"s"]=ML[i]=r}function S2(r){return typeof r=="string"?ML[r]||ML[r.toLowerCase()]:void 0}function Sie(r){var i={},o,l;for(l in r)Mo(r,l)&&(o=S2(l),o&&(i[o]=r[l]));return i}var r9e={};function rd(r,i){r9e[r]=i}function Z_t(r){var i=[],o;for(o in r)Mo(r,o)&&i.push({unit:o,priority:r9e[o]});return i.sort(function(l,f){return l.priority-f.priority}),i}function cz(r){return r%4===0&&r%100!==0||r%400===0}function A2(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function Fa(r){var i=+r,o=0;return i!==0&&isFinite(i)&&(o=A2(i)),o}function TT(r,i){return function(o){return o!=null?(i9e(this,r,o),Ar.updateOffset(this,i),this):uz(this,r)}}function uz(r,i){return r.isValid()?r._d["get"+(r
|
||
|
Ar.version="2.29.4",P_t(mu),Ar.fn=xr,Ar.min=xCt,Ar.max=ECt,Ar.now=_Ct,Ar.utc=Tm,Ar.unix=ZSt,Ar.months=eAt,Ar.isDate=SL,Ar.locale=r6,Ar.invalid=sz,Ar.duration=xv,Ar.isMoment=yv,Ar.weekdays=nAt,Ar.parseZone=JSt,Ar.localeData=P3,Ar.isDuration=kz,Ar.monthsShort=tAt,Ar.weekdaysMin=iAt,Ar.defineLocale=Nie,Ar.updateLocale=JTt,Ar.locales=eCt,Ar.weekdaysShort=rAt,Ar.normalizeUnits=S2,Ar.relativeTimeRounding=IAt,Ar.relativeTimeThreshold=OAt,Ar.calendarFormat=KCt,Ar.prototype=xr,Ar.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const j3={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Se={trace:(...r)=>{},debug:(...r)=>{},info:(...r)=>{},warn:(...r)=>{},error:(...r)=>{},fatal:(...r)=>{}},Wie=function(r="fatal"){let i=j3.fatal;typeof r=="string"?(r=r.toLowerCase(),r in j3&&(i=j3[r])):typeof r=="number"&&(i=r),Se.trace=()=>{},Se.debug=()=>{},Se.info=()=>{},Se.warn=()=>{},Se.error=()=>{},Se.fatal=()=>{},i<=j3.fatal&&(Se.fatal=console.error?console.error.bind(console,M2("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M2("FATAL"))),i<=j3.error&&(Se.error=console.error?console.error.bind(console,M2("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M2("ERROR"))),i<=j3.warn&&(Se.warn=console.warn?console.warn.bind(console,M2("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M2("WARN"))),i<=j3.info&&(Se.info=console.info?console.info.bind(console,M2("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M2("INFO"))),i<=j3.debug&&(Se.debug=console.debug?console.debug.bind(console,M2("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M2("DEBUG"))),i<=j3.trace&&(Se.trace=console.debug?console.debug.bind(console,M2("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M2("TRACE")))},M2=r=>`%c${Ar().format("ss.SSS")} : ${r} : `;var Mm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q9e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Kie={};Object.defineProperty(Kie,"__esModule",{value:!0});var $3=Kie.sanitizeUrl=void 0,PAt=/^([^\w]*)(javascript|data|vbscript)/im,BAt=/&#(\w+)(^\w|;)?/g,FAt=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,RAt=/^([^:]+):/gm,jAt=[".","/"];function $At(r){return jAt.indexOf(r[0])>-1}function HAt(r){return r.replace(BAt,function(i,o){return String.fromCharCode(o)})}function zAt(r){var i=HAt(r||"").replace(FAt,"").trim();if(!i)return"about:blank";if($At(i))return i;var o=i.match(RAt);if(!o)return i;var l=o[0];return PAt.test(l)?"about:blank":i}$3=Kie.sanitizeUrl=zAt;function Az(r,i){return r==null||i==null?NaN:r<i?-1:r>i?1:r>=i?0:NaN}function GAt(r,i){return r==null||i==null?NaN:i<r?-1:i>r?1:i>=r?0:NaN}function Xie(r){let i,o,l;r.length!==2?(i=Az,o=(w,y)=>Az(r(w),y),l=(w,y)=>r(w)-y):(i=r===Az||r===GAt?r:VAt,o=r,l=r);function f(w,y,k=0,E=w.length){if(k<E){if(i(y,y)!==0)return E;do{const T=k+E>>>1;o(w[T],y)<0?k=T+1:E=T}while(k<E)}return k}function b(w,y,k=0,E=w.length){if(k<E){if(i(y,y)!==0)return E;do{const T=k+E>>>1;o(w[T],y)<=0?k=T+1:E=T}while(k<E)}return k}function d(w,y,k=0,E=w.length){const T=f(w,y,k,E-1);return T>k&&l(w[T-1],y)>-l(w[T],y)?T-1:T}return{left:f,center:d,right:b}}function VAt(){return 0}function UAt(r){return r===null?NaN:+r}const qAt=Xie(Az).right;Xie(UAt).center;const YAt=qAt;class Y9e extends Map{constructor(i,o=XAt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:o}}),i!=null)for(const[l,f]of i)this.set(l,f)}get(i){return super.get(W9e(this,i))}has(i){return super.has(W9e(this,i))}set(i,o){return super.set(WAt(this,i),o)}delete(i){return super.delete(KAt(this,i))}}function W9e({_intern:r,_key:i},o){const l=i(o);return r.has(l)?r.get(l):o}function WAt({_intern:r,_key:i},o){const l=i(o);return r.has(l)?r.get(l):(r.set(l,o),o)}function KAt({_intern:r,_key:i},o){const l=i(o);return r.has(l)
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iPt=Object.hasOwnProperty,QTe=Object.setPrototypeOf,sPt=Object.isFrozen,aPt=Object.getPrototypeOf,oPt=Object.getOwnPropertyDescriptor,Wd=Object.freeze,Sv=Object.seal,cPt=Object.create,ZTe=typeof Reflect<"u"&&Reflect,pG=ZTe.apply,Xse=ZTe.construct;pG||(pG=function(i,o,l){return i.apply(o,l)}),Wd||(Wd=function(i){return i}),Sv||(Sv=function(i){return i}),Xse||(Xse=function(i,o){return gG(i,Cv(o))});var uPt=L2(Array.prototype.forEach),JTe=L2(Array.prototype.pop),JL=L2(Array.prototype.push),bG=L2(String.prototype.toLowerCase),Qse=L2(String.prototype.toString),lPt=L2(String.prototype.match),Av=L2(String.prototype.replace),hPt=L2(String.prototype.indexOf),fPt=L2(String.prototype.trim),Kd=L2(RegExp.prototype.test),Zse=dPt(TypeError);function L2(r){return function(i){for(var o=arguments.length,l=new Array(o>1?o-1:0),f=1;f<o;f++)l[f-1]=arguments[f];return pG(r,i,l)}}function dPt(r){return function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return Xse(r,o)}}function xa(r,i,o){o=o||bG,QTe&&QTe(r,null);for(var l=i.length;l--;){var f=i[l];if(typeof f=="string"){var b=o(f);b!==f&&(sPt(i)||(i[l]=b),f=b)}r[f]=!0}return r}function U8(r){var i=cPt(null),o;for(o in r)pG(iPt,r,[o])===!0&&(i[o]=r[o]);return i}function vG(r,i){for(;r!==null;){var o=oPt(r,i);if(o){if(o.get)return L2(o.get);if(typeof o.value=="function")return L2(o.value)}r=aPt(r)}function l(f){return console.warn("fallback value for",f),null}return l}var eCe=Wd(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jse=Wd(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),eae=Wd(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gPt=Wd(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),tae=Wd(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),pPt=Wd(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tCe=Wd(["#text"]),nCe=Wd(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding",
|
||
|
`+Lc),xe&&(Lc=Av(Lc,$," "),Lc=Av(Lc,ge," "),Lc=Av(Lc,ee," ")),q&&Zt?q.createHTML(Lc):Lc},i.setConfig=function(Ur){Hi(Ur),je=!0},i.clearConfig=function(){ei=null,je=!1},i.isValidAttribute=function(Ur,bt,$n){ei||Hi({});var Er=Pt(Ur),Ss=Pt(bt);return Ru(Er,Ss,$n)},i.addHook=function(Ur,bt){typeof bt=="function"&&(ae[Ur]=ae[Ur]||[],JL(ae[Ur],bt))},i.removeHook=function(Ur){if(ae[Ur])return JTe(ae[Ur])},i.removeHooks=function(Ur){ae[Ur]&&(ae[Ur]=[])},i.removeAllHooks=function(){ae={}},i}var eI=iCe();const SPt=r=>r?oCe(r).replace(/\\n/g,"#br#").split("#br#"):[""],sCe=r=>eI.sanitize(r),aCe=(r,i)=>{var o;if(((o=i.flowchart)==null?void 0:o.htmlLabels)!==!1){const l=i.securityLevel;l==="antiscript"||l==="strict"?r=sCe(r):l!=="loose"&&(r=oCe(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=LPt(r))}return r},up=(r,i)=>r&&(i.dompurifyConfig?r=eI.sanitize(aCe(r,i),i.dompurifyConfig).toString():r=eI.sanitize(aCe(r,i),{FORBID_TAGS:["style"]}).toString(),r),APt=(r,i)=>typeof r=="string"?up(r,i):r.flat().map(o=>up(o,i)),mG=/<br\s*\/?>/gi,MPt=r=>mG.test(r),DPt=r=>r.split(mG),LPt=r=>r.replace(/#br#/g,"<br/>"),oCe=r=>r.replace(mG,"#br#"),IPt=r=>{let i="";return r&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replaceAll(/\(/g,"\\("),i=i.replaceAll(/\)/g,"\\)")),i},cf=r=>!(r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())),o6=function(r){let i=r;if(r.split("~").length-1>=2){let o=i;do i=o,o=i.replace(/~([^\s,:;]+)~/,"<$1>");while(o!=i);return o6(o)}else return i},Cs={getRows:SPt,sanitizeText:up,sanitizeTextOrArray:APt,hasBreaks:MPt,splitBreaks:DPt,lineBreakRegex:mG,removeScript:sCe,getUrl:IPt,evaluate:cf},yG={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:r=>r>=255?255:r<0?0:r,g:r=>r>=255?255:r<0?0:r,b:r=>r>=255?255:r<0?0:r,h:r=>r%360,s:r=>r>=100?100:r<0?0:r,l:r=>r>=100?100:r<0?0:r,a:r=>r>=1?1:r<0?0:r},toLinear:r=>{const i=r/255;return r>.03928?Math.pow((i+.055)/1.055,2.4):i/12.92},hue2rgb:(r,i,o)=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r),hsl2rgb:({h:r,s:i,l:o},l)=>{if(!i)return o*2.55;r/=360,i/=100,o/=100;const f=o<.5?o*(1+i):o+i-o*i,b=2*o-f;switch(l){case"r":return yG.hue2rgb(b,f,r+1/3)*255;case"g":return yG.hue2rgb(b,f,r)*255;case"b":return yG.hue2rgb(b,f,r-1/3)*255}},rgb2hsl:({r,g:i,b:o},l)=>{r/=255,i/=255,o/=255;const f=Math.max(r,i,o),b=Math.min(r,i,o),d=(f+b)/2;if(l==="l")return d*100;if(f===b)return 0;const w=f-b,y=d>.5?w/(2-f-b):w/(f+b);if(l==="s")return y*100;switch(f){case r:return((i-o)/w+(i<o?6:0))*60;case i:return((o-r)/w+2)*60;case o:return((r-i)/w+4)*60;default:return-1}}},Bs={channel:yG,lang:{clamp:(r,i,o)=>i>o?Math.min(i,Math.max(o,r)):Math.min(o,Math.max(i,r)),round:r=>Math.round(r*1e10)/1e10},unit:{dec2hex:r=>{const i=Math.round(r).toString(16);return i.length>1?i:`0${i}`}}},c6={};for(let r=0;r<=255;r++)c6[r]=Bs.unit.dec2hex(r);const cd={ALL:0,RGB:1,HSL:2};class OPt{constructor(){this.type=cd.ALL}get(){return this.type}set(i){if(this.type&&this.type!==i)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=i}reset(){this.type=cd.ALL}is(i){return this.type===i}}const NPt=OPt;class PPt{constructor(i,o){this.color=o,this.changed=!1,this.data=i,this.type=new NPt}set(i,o){return this.color=o,this.changed=!1,this.data=i,this.type.type=cd.ALL,this}_ensureHSL(){const i=this.data,{h:o,s:l,l:f}=i;o===void 0&&(i.h=Bs.channel.rgb2hsl(i,"h")),l===void 0&&(i.s=Bs.channel.rgb2hsl(i,"s")),f===void 0&&(i.l=Bs.channel.rgb2hsl(i,"l"))}_ensureRGB(){const i=this.data,{r:o,g:l,b:f}=i;o===void 0&&(i.r=Bs.channel.hsl2rgb(i,"r")),l===void 0&&(i.g=Bs.channel.hsl2rgb(i,"g")),f===void 0&&(i.b=Bs.channel.hsl2rgb(i,"b"))}get r(){const i=this.data,o=i.r;return!this.type.is(cd.HSL)&&o!==void 0?o:(this._ensureHSL(),Bs.channel.hsl2rgb(i,"r"))}get g(){const i=this.data,o=i.g;return!this.type.is(cd.HSL)&&o!==void 0?o:(this._ensureHSL(),Bs.channel.hsl2rgb(i,"g"))}get b(){const i=this.data,o=i.b;return!this.type.is(cd.HSL)&&o!==void 0?o:(this._e
|
||
|
|
||
|
`+r.mark.snippet),l+" "+o):l}function rI(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=bCe(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}rI.prototype=Object.create(Error.prototype),rI.prototype.constructor=rI,rI.prototype.toString=function(i){return this.name+": "+bCe(this,i)};var Y3=rI;function rae(r,i,o,l,f){var b="",d="",w=Math.floor(f/2)-1;return l-i>w&&(b=" ... ",i=l-w+b.length),o-l>w&&(d=" ...",o=l+w-d.length),{str:b+r.slice(i,o).replace(/\t/g,"\u2192")+d,pos:l-i+b.length}}function iae(r,i){return Qd.repeat(" ",i-r.length)+r}function cBt(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var o=/\r?\n|\r|\0/g,l=[0],f=[],b,d=-1;b=o.exec(r.buffer);)f.push(b.index),l.push(b.index+b[0].length),r.position<=b.index&&d<0&&(d=l.length-2);d<0&&(d=l.length-1);var w="",y,k,E=Math.min(r.line+i.linesAfter,f.length).toString().length,T=i.maxLength-(i.indent+E+3);for(y=1;y<=i.linesBefore&&!(d-y<0);y++)k=rae(r.buffer,l[d-y],f[d-y],r.position-(l[d]-l[d-y]),T),w=Qd.repeat(" ",i.indent)+iae((r.line-y+1).toString(),E)+" | "+k.str+`
|
||
|
`+w;for(k=rae(r.buffer,l[d],f[d],r.position,T),w+=Qd.repeat(" ",i.indent)+iae((r.line+1).toString(),E)+" | "+k.str+`
|
||
|
`,w+=Qd.repeat("-",i.indent+E+3+k.pos)+`^
|
||
|
`,y=1;y<=i.linesAfter&&!(d+y>=f.length);y++)k=rae(r.buffer,l[d+y],f[d+y],r.position-(l[d]-l[d+y]),T),w+=Qd.repeat(" ",i.indent)+iae((r.line+y+1).toString(),E)+" | "+k.str+`
|
||
|
`;return w.replace(/\n$/,"")}var uBt=cBt,lBt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],hBt=["scalar","sequence","mapping"];function fBt(r){var i={};return r!==null&&Object.keys(r).forEach(function(o){r[o].forEach(function(l){i[String(l)]=o})}),i}function dBt(r,i){if(i=i||{},Object.keys(i).forEach(function(o){if(lBt.indexOf(o)===-1)throw new Y3('Unknown option "'+o+'" is met in definition of "'+r+'" YAML type.')}),this.options=i,this.tag=r,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(o){return o},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=fBt(i.styleAliases||null),hBt.indexOf(this.kind)===-1)throw new Y3('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}var ud=dBt;function vCe(r,i){var o=[];return r[i].forEach(function(l){var f=o.length;o.forEach(function(b,d){b.tag===l.tag&&b.kind===l.kind&&b.multi===l.multi&&(f=d)}),o[f]=l}),o}function gBt(){var r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,o;function l(f){f.multi?(r.multi[f.kind].push(f),r.multi.fallback.push(f)):r[f.kind][f.tag]=r.fallback[f.tag]=f}for(i=0,o=arguments.length;i<o;i+=1)arguments[i].forEach(l);return r}function sae(r){return this.extend(r)}sae.prototype.extend=function(i){var o=[],l=[];if(i instanceof ud)l.push(i);else if(Array.isArray(i))l=l.concat(i);else if(i&&(Array.isArray(i.implicit)||Array.isArray(i.explicit)))i.implicit&&(o=o.concat(i.implicit)),i.explicit&&(l=l.concat(i.explicit));else throw new Y3("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.forEach(function(b){if(!(b instanceof ud))throw new Y3("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(b.loadKind&&b.loadKind!=="scalar")throw new Y3("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(b.multi)throw new Y3("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(b){if(!(b instanceof ud))throw new Y3("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var f=Object.create(sae.prototype);return f.implicit=(this.implicit||[]).concat(o),f.explicit=(this.explicit||[]).concat(l),f.compiledImplicit=vCe(f,"implicit"),f.compiledExplicit=vCe(f,"explicit"),f.compiledTypeMap=gBt(f.compiledImplicit,f.compiledExplicit),f};var pBt=sae,bBt=new ud("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}}),vBt=new ud("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}}),wBt=new ud("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}}),wCe=new pBt({explicit:[bBt,vBt,wBt]});function mBt(r){if(r===null)return!0;var i=r.length;return i===1&&r==="~"||i===4&&(r==="null"||r==="Null"||r==="NULL")}function yBt(){return null}function kBt(r){return r===null}var xBt=new ud("tag:yaml.org,2002:null",{kind:"scalar",resolve:mBt,construct:yBt,predicate:kBt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function EBt(r){if(r===null)return!1;var i=r.length;return i===4&&(r==="true"||r==="True"||r==="TRUE")||i===5&&(r==="false"||r==="False"||r==="FALSE")}function _Bt(r){return r==="true"||r==="True"||r==="TRUE"}function TBt(r){return Object.prototype.toString.call(r)==="[object Boolean]"}var CBt=new ud("tag:yaml.org,2002:bool",{kind:"scalar",resolve:EBt,construct:_Bt,predicate:TBt,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"F
|
||
|
\r`;function KBt(r){if(r===null)return!1;var i,o,l=0,f=r.length,b=aae;for(o=0;o<f;o++)if(i=b.indexOf(r.charAt(o)),!(i>64)){if(i<0)return!1;l+=6}return l%8===0}function XBt(r){var i,o,l=r.replace(/[\r\n=]/g,""),f=l.length,b=aae,d=0,w=[];for(i=0;i<f;i++)i%4===0&&i&&(w.push(d>>16&255),w.push(d>>8&255),w.push(d&255)),d=d<<6|b.indexOf(l.charAt(i));return o=f%4*6,o===0?(w.push(d>>16&255),w.push(d>>8&255),w.push(d&255)):o===18?(w.push(d>>10&255),w.push(d>>2&255)):o===12&&w.push(d>>4&255),new Uint8Array(w)}function QBt(r){var i="",o=0,l,f,b=r.length,d=aae;for(l=0;l<b;l++)l%3===0&&l&&(i+=d[o>>18&63],i+=d[o>>12&63],i+=d[o>>6&63],i+=d[o&63]),o=(o<<8)+r[l];return f=b%3,f===0?(i+=d[o>>18&63],i+=d[o>>12&63],i+=d[o>>6&63],i+=d[o&63]):f===2?(i+=d[o>>10&63],i+=d[o>>4&63],i+=d[o<<2&63],i+=d[64]):f===1&&(i+=d[o>>2&63],i+=d[o<<4&63],i+=d[64],i+=d[64]),i}function ZBt(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}var JBt=new ud("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KBt,construct:XBt,predicate:ZBt,represent:QBt}),eFt=Object.prototype.hasOwnProperty,tFt=Object.prototype.toString;function nFt(r){if(r===null)return!0;var i=[],o,l,f,b,d,w=r;for(o=0,l=w.length;o<l;o+=1){if(f=w[o],d=!1,tFt.call(f)!=="[object Object]")return!1;for(b in f)if(eFt.call(f,b))if(!d)d=!0;else return!1;if(!d)return!1;if(i.indexOf(b)===-1)i.push(b);else return!1}return!0}function rFt(r){return r!==null?r:[]}var iFt=new ud("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nFt,construct:rFt}),sFt=Object.prototype.toString;function aFt(r){if(r===null)return!0;var i,o,l,f,b,d=r;for(b=new Array(d.length),i=0,o=d.length;i<o;i+=1){if(l=d[i],sFt.call(l)!=="[object Object]"||(f=Object.keys(l),f.length!==1))return!1;b[i]=[f[0],l[f[0]]]}return!0}function oFt(r){if(r===null)return[];var i,o,l,f,b,d=r;for(b=new Array(d.length),i=0,o=d.length;i<o;i+=1)l=d[i],f=Object.keys(l),b[i]=[f[0],l[f[0]]];return b}var cFt=new ud("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:aFt,construct:oFt}),uFt=Object.prototype.hasOwnProperty;function lFt(r){if(r===null)return!0;var i,o=r;for(i in o)if(uFt.call(o,i)&&o[i]!==null)return!1;return!0}function hFt(r){return r!==null?r:{}}var fFt=new ud("tag:yaml.org,2002:set",{kind:"mapping",resolve:lFt,construct:hFt}),dFt=zBt.extend({implicit:[qBt,WBt],explicit:[JBt,iFt,cFt,fFt]}),l6=Object.prototype.hasOwnProperty,AG=1,kCe=2,xCe=3,MG=4,oae=1,gFt=2,ECe=3,pFt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bFt=/[\x85\u2028\u2029]/,vFt=/[,\[\]\{\}]/,_Ce=/^(?:!|!!|![a-z\-]+!)$/i,TCe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function CCe(r){return Object.prototype.toString.call(r)}function Pm(r){return r===10||r===13}function q8(r){return r===9||r===32}function U0(r){return r===9||r===32||r===10||r===13}function YT(r){return r===44||r===91||r===93||r===123||r===125}function wFt(r){var i;return 48<=r&&r<=57?r-48:(i=r|32,97<=i&&i<=102?i-97+10:-1)}function mFt(r){return r===120?2:r===117?4:r===85?8:0}function yFt(r){return 48<=r&&r<=57?r-48:-1}function SCe(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?`
|
||
|
`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"\x85":r===95?"\xA0":r===76?"\u2028":r===80?"\u2029":""}function kFt(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}for(var ACe=new Array(256),MCe=new Array(256),WT=0;WT<256;WT++)ACe[WT]=SCe(WT)?1:0,MCe[WT]=SCe(WT);function xFt(r,i){this.input=r,this.filename=i.filename||null,this.schema=i.schema||dFt,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function DCe(r,i){var o={name:r.filename,buffer:r.input.slice(0,-1),position:r.position,line:r.line,column:r.position-r.lineStart};return o.snippet=uBt(o),new Y3(i,o)}function ji(r,i){throw DCe(r,i)}function DG(r,i){r.onWarning&&r.onWarning.call(null,DCe(r,i))}var LCe={YAML:function(i,o,l){var f,b,d;i.version!==null&&ji(i,"duplication of %YAML directive"),l.length!==1&&ji(i,"YAML directive accepts exactly one argument"),f=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),f===null&&ji(i,"ill-formed argument of the YAML directive"),b=parseInt(f[1],10),d=parseInt(f[2],10),b!==1&&ji(i,"unacceptable YAML version of the document"),i.version=l[0],i.checkLineBreaks=d<2,d!==1&&d!==2&&DG(i,"unsupported YAML version of the document")},TAG:function(i,o,l){var f,b;l.length!==2&&ji(i,"TAG directive accepts exactly two arguments"),f=l[0],b=l[1],_Ce.test(f)||ji(i,"ill-formed tag handle (first argument) of the TAG directive"),l6.call(i.tagMap,f)&&ji(i,'there is a previously declared suffix for "'+f+'" tag handle'),TCe.test(b)||ji(i,"ill-formed tag prefix (second argument) of the TAG directive");try{b=decodeURIComponent(b)}catch{ji(i,"tag prefix is malformed: "+b)}i.tagMap[f]=b}};function h6(r,i,o,l){var f,b,d,w;if(i<o){if(w=r.input.slice(i,o),l)for(f=0,b=w.length;f<b;f+=1)d=w.charCodeAt(f),d===9||32<=d&&d<=1114111||ji(r,"expected valid JSON character");else pFt.test(w)&&ji(r,"the stream contains non-printable characters");r.result+=w}}function ICe(r,i,o,l){var f,b,d,w;for(Qd.isObject(o)||ji(r,"cannot merge mappings; the provided source object is unacceptable"),f=Object.keys(o),d=0,w=f.length;d<w;d+=1)b=f[d],l6.call(i,b)||(i[b]=o[b],l[b]=!0)}function KT(r,i,o,l,f,b,d,w,y){var k,E;if(Array.isArray(f))for(f=Array.prototype.slice.call(f),k=0,E=f.length;k<E;k+=1)Array.isArray(f[k])&&ji(r,"nested arrays are not supported inside keys"),typeof f=="object"&&CCe(f[k])==="[object Object]"&&(f[k]="[object Object]");if(typeof f=="object"&&CCe(f)==="[object Object]"&&(f="[object Object]"),f=String(f),i===null&&(i={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(b))for(k=0,E=b.length;k<E;k+=1)ICe(r,i,b[k],o);else ICe(r,i,b,o);else!r.json&&!l6.call(o,f)&&l6.call(i,f)&&(r.line=d||r.line,r.lineStart=w||r.lineStart,r.position=y||r.position,ji(r,"duplicated mapping key")),f==="__proto__"?Object.defineProperty(i,f,{configurable:!0,enumerable:!0,writable:!0,value:b}):i[f]=b,delete o[f];return i}function cae(r){var i;i=r.input.charCodeAt(r.position),i===10?r.position++:i===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):ji(r,"a line break is expected"),r.line+=1,r.lineStart=r.position,r.firstTabInLine=-1}function Fh(r,i,o){for(var l=0,f=r.input.charCodeAt(r.position);f!==0;){for(;q8(f);)f===9&&r.firstTabInLine===-1&&(r.firstTabInLine=r.position),f=r.input.charCodeAt(++r.position);if(i&&f===35)do f=r.input.charCodeAt(++r.position);while(f!==10&&f!==13&&f!==0);if(Pm(f))for(cae(r),f=r.input.charCodeAt(r.position),l++,r.lineIndent=0;f===32;)r.lineIndent++,f=r.input.charCodeAt(++r.position);else break}return o!==-1&&l!==0&&r.lineIndent<o&&DG(r,"deficient indentation"),l}function LG(r){var i=r.position,o;return o=r.input.charCodeAt(i),!!((o===45||o===46)&&o===r.input.charCodeAt(i+1)&&o===r.input.charCodeAt(i+2)&&(i+=3,o=r.input.charCodeAt(i),o===0||U0(o)))}function uae(r,i){i===1?r.
|
||
|
`,i-1))}function EFt(r,i,o){var l,f,b,d,w,y,k,E,T=r.kind,C=r.result,S;if(S=r.input.charCodeAt(r.position),U0(S)||YT(S)||S===35||S===38||S===42||S===33||S===124||S===62||S===39||S===34||S===37||S===64||S===96||(S===63||S===45)&&(f=r.input.charCodeAt(r.position+1),U0(f)||o&&YT(f)))return!1;for(r.kind="scalar",r.result="",b=d=r.position,w=!1;S!==0;){if(S===58){if(f=r.input.charCodeAt(r.position+1),U0(f)||o&&YT(f))break}else if(S===35){if(l=r.input.charCodeAt(r.position-1),U0(l))break}else{if(r.position===r.lineStart&&LG(r)||o&&YT(S))break;if(Pm(S))if(y=r.line,k=r.lineStart,E=r.lineIndent,Fh(r,!1,-1),r.lineIndent>=i){w=!0,S=r.input.charCodeAt(r.position);continue}else{r.position=d,r.line=y,r.lineStart=k,r.lineIndent=E;break}}w&&(h6(r,b,d,!1),uae(r,r.line-y),b=d=r.position,w=!1),q8(S)||(d=r.position+1),S=r.input.charCodeAt(++r.position)}return h6(r,b,d,!1),r.result?!0:(r.kind=T,r.result=C,!1)}function _Ft(r,i){var o,l,f;if(o=r.input.charCodeAt(r.position),o!==39)return!1;for(r.kind="scalar",r.result="",r.position++,l=f=r.position;(o=r.input.charCodeAt(r.position))!==0;)if(o===39)if(h6(r,l,r.position,!0),o=r.input.charCodeAt(++r.position),o===39)l=r.position,r.position++,f=r.position;else return!0;else Pm(o)?(h6(r,l,f,!0),uae(r,Fh(r,!1,i)),l=f=r.position):r.position===r.lineStart&&LG(r)?ji(r,"unexpected end of the document within a single quoted scalar"):(r.position++,f=r.position);ji(r,"unexpected end of the stream within a single quoted scalar")}function TFt(r,i){var o,l,f,b,d,w;if(w=r.input.charCodeAt(r.position),w!==34)return!1;for(r.kind="scalar",r.result="",r.position++,o=l=r.position;(w=r.input.charCodeAt(r.position))!==0;){if(w===34)return h6(r,o,r.position,!0),r.position++,!0;if(w===92){if(h6(r,o,r.position,!0),w=r.input.charCodeAt(++r.position),Pm(w))Fh(r,!1,i);else if(w<256&&ACe[w])r.result+=MCe[w],r.position++;else if((d=mFt(w))>0){for(f=d,b=0;f>0;f--)w=r.input.charCodeAt(++r.position),(d=wFt(w))>=0?b=(b<<4)+d:ji(r,"expected hexadecimal character");r.result+=kFt(b),r.position++}else ji(r,"unknown escape sequence");o=l=r.position}else Pm(w)?(h6(r,o,l,!0),uae(r,Fh(r,!1,i)),o=l=r.position):r.position===r.lineStart&&LG(r)?ji(r,"unexpected end of the document within a double quoted scalar"):(r.position++,l=r.position)}ji(r,"unexpected end of the stream within a double quoted scalar")}function CFt(r,i){var o=!0,l,f,b,d=r.tag,w,y=r.anchor,k,E,T,C,S,L=Object.create(null),O,B,N,F;if(F=r.input.charCodeAt(r.position),F===91)E=93,S=!1,w=[];else if(F===123)E=125,S=!0,w={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=w),F=r.input.charCodeAt(++r.position);F!==0;){if(Fh(r,!0,i),F=r.input.charCodeAt(r.position),F===E)return r.position++,r.tag=d,r.anchor=y,r.kind=S?"mapping":"sequence",r.result=w,!0;o?F===44&&ji(r,"expected the node content, but found ','"):ji(r,"missed comma between flow collection entries"),B=O=N=null,T=C=!1,F===63&&(k=r.input.charCodeAt(r.position+1),U0(k)&&(T=C=!0,r.position++,Fh(r,!0,i))),l=r.line,f=r.lineStart,b=r.position,XT(r,i,AG,!1,!0),B=r.tag,O=r.result,Fh(r,!0,i),F=r.input.charCodeAt(r.position),(C||r.line===l)&&F===58&&(T=!0,F=r.input.charCodeAt(++r.position),Fh(r,!0,i),XT(r,i,AG,!1,!0),N=r.result),S?KT(r,w,L,B,O,N,l,f,b):T?w.push(KT(r,null,L,B,O,N,l,f,b)):w.push(O),Fh(r,!0,i),F=r.input.charCodeAt(r.position),F===44?(o=!0,F=r.input.charCodeAt(++r.position)):o=!1}ji(r,"unexpected end of the stream within a flow collection")}function SFt(r,i){var o,l,f=oae,b=!1,d=!1,w=i,y=0,k=!1,E,T;if(T=r.input.charCodeAt(r.position),T===124)l=!1;else if(T===62)l=!0;else return!1;for(r.kind="scalar",r.result="";T!==0;)if(T=r.input.charCodeAt(++r.position),T===43||T===45)oae===f?f=T===43?ECe:gFt:ji(r,"repeat of a chomping mode identifier");else if((E=yFt(T))>=0)E===0?ji(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?ji(r,"repeat of an indentation width identifier"):(w=i+E-1,d=!0);else break;if(q8(T)){do T=r.input.charCodeAt(++r.position);while(q8(T));if(T===35)do T=r.input.charCodeAt(++r.position);while(!Pm(T)&&T!==0)}for(;T!==0;){for(cae(r),r.lineIndent=0,T=r.input.charC
|
||
|
`,b?1+y:y):f===oae&&b&&(r.result+=`
|
||
|
`);break}for(l?q8(T)?(k=!0,r.result+=Qd.repeat(`
|
||
|
`,b?1+y:y)):k?(k=!1,r.result+=Qd.repeat(`
|
||
|
`,y+1)):y===0?b&&(r.result+=" "):r.result+=Qd.repeat(`
|
||
|
`,y):r.result+=Qd.repeat(`
|
||
|
`,b?1+y:y),b=!0,d=!0,y=0,o=r.position;!Pm(T)&&T!==0;)T=r.input.charCodeAt(++r.position);h6(r,o,r.position,!1)}return!0}function OCe(r,i){var o,l=r.tag,f=r.anchor,b=[],d,w=!1,y;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=b),y=r.input.charCodeAt(r.position);y!==0&&(r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,ji(r,"tab characters must not be used in indentation")),!(y!==45||(d=r.input.charCodeAt(r.position+1),!U0(d))));){if(w=!0,r.position++,Fh(r,!0,-1)&&r.lineIndent<=i){b.push(null),y=r.input.charCodeAt(r.position);continue}if(o=r.line,XT(r,i,xCe,!1,!0),b.push(r.result),Fh(r,!0,-1),y=r.input.charCodeAt(r.position),(r.line===o||r.lineIndent>i)&&y!==0)ji(r,"bad indentation of a sequence entry");else if(r.lineIndent<i)break}return w?(r.tag=l,r.anchor=f,r.kind="sequence",r.result=b,!0):!1}function AFt(r,i,o){var l,f,b,d,w,y,k=r.tag,E=r.anchor,T={},C=Object.create(null),S=null,L=null,O=null,B=!1,N=!1,F;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=T),F=r.input.charCodeAt(r.position);F!==0;){if(!B&&r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,ji(r,"tab characters must not be used in indentation")),l=r.input.charCodeAt(r.position+1),b=r.line,(F===63||F===58)&&U0(l))F===63?(B&&(KT(r,T,C,S,L,null,d,w,y),S=L=O=null),N=!0,B=!0,f=!0):B?(B=!1,f=!0):ji(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,F=l;else{if(d=r.line,w=r.lineStart,y=r.position,!XT(r,o,kCe,!1,!0))break;if(r.line===b){for(F=r.input.charCodeAt(r.position);q8(F);)F=r.input.charCodeAt(++r.position);if(F===58)F=r.input.charCodeAt(++r.position),U0(F)||ji(r,"a whitespace character is expected after the key-value separator within a block mapping"),B&&(KT(r,T,C,S,L,null,d,w,y),S=L=O=null),N=!0,B=!1,f=!1,S=r.tag,L=r.result;else if(N)ji(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=k,r.anchor=E,!0}else if(N)ji(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=k,r.anchor=E,!0}if((r.line===b||r.lineIndent>i)&&(B&&(d=r.line,w=r.lineStart,y=r.position),XT(r,i,MG,!0,f)&&(B?L=r.result:O=r.result),B||(KT(r,T,C,S,L,O,d,w,y),S=L=O=null),Fh(r,!0,-1),F=r.input.charCodeAt(r.position)),(r.line===b||r.lineIndent>i)&&F!==0)ji(r,"bad indentation of a mapping entry");else if(r.lineIndent<i)break}return B&&KT(r,T,C,S,L,null,d,w,y),N&&(r.tag=k,r.anchor=E,r.kind="mapping",r.result=T),N}function MFt(r){var i,o=!1,l=!1,f,b,d;if(d=r.input.charCodeAt(r.position),d!==33)return!1;if(r.tag!==null&&ji(r,"duplication of a tag property"),d=r.input.charCodeAt(++r.position),d===60?(o=!0,d=r.input.charCodeAt(++r.position)):d===33?(l=!0,f="!!",d=r.input.charCodeAt(++r.position)):f="!",i=r.position,o){do d=r.input.charCodeAt(++r.position);while(d!==0&&d!==62);r.position<r.length?(b=r.input.slice(i,r.position),d=r.input.charCodeAt(++r.position)):ji(r,"unexpected end of the stream within a verbatim tag")}else{for(;d!==0&&!U0(d);)d===33&&(l?ji(r,"tag suffix cannot contain exclamation marks"):(f=r.input.slice(i-1,r.position+1),_Ce.test(f)||ji(r,"named tag handle cannot contain such characters"),l=!0,i=r.position+1)),d=r.input.charCodeAt(++r.position);b=r.input.slice(i,r.position),vFt.test(b)&&ji(r,"tag suffix cannot contain flow indicator characters")}b&&!TCe.test(b)&&ji(r,"tag name cannot contain such characters: "+b);try{b=decodeURIComponent(b)}catch{ji(r,"tag name is malformed: "+b)}return o?r.tag=b:l6.call(r.tagMap,f)?r.tag=r.tagMap[f]+b:f==="!"?r.tag="!"+b:f==="!!"?r.tag="tag:yaml.org,2002:"+b:ji(r,'undeclared tag handle "'+f+'"'),!0}function DFt(r){var i,o;if(o=r.input.charCodeAt(r.position),o!==38)return!1;for(r.anchor!==null&&ji(r,"duplication of an anchor property"),o=r.input.charCodeAt(++r.position),i=r.position;o!==0&&!U0(o)&&!YT(o);)o=r.input.charCodeAt(++r.position);return r.position===i&&ji(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice(i,r.position),!0}function LFt(r){var i,o,l;if(l=r.input.charCodeAt(r.position),l!==42)return!1;f
|
||
|
`),r.charCodeAt(0)===65279&&(r=r.slice(1)));var o=new xFt(r,i),l=r.indexOf("\0");for(l!==-1&&(o.position=l,ji(o,"null byte is not allowed in input")),o.input+="\0";o.input.charCodeAt(o.position)===32;)o.lineIndent+=1,o.position+=1;for(;o.position<o.length-1;)IFt(o);return o.documents}function OFt(r,i,o){i!==null&&typeof i=="object"&&typeof o>"u"&&(o=i,i=null);var l=NCe(r,o);if(typeof i!="function")return l;for(var f=0,b=l.length;f<b;f+=1)i(l[f])}function NFt(r,i){var o=NCe(r,i);if(o.length!==0){if(o.length===1)return o[0];throw new Y3("expected a single document in the stream, but found more")}}var PFt=OFt,BFt=NFt,FFt={loadAll:PFt,load:BFt},RFt=wCe,jFt=FFt.load;const PCe=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function $Ft(r,i){var l;const o=r.match(PCe);if(o){const f=jFt(o[1],{schema:RFt});return f!=null&&f.title&&((l=i.setDiagramTitle)==null||l.call(i,f.title)),r.slice(o[0].length)}else return r}const HFt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zFt=/\s*%%.*\n/gm,IG={},lae=function(r,i){r=r.replace(PCe,"").replace(HFt,"").replace(zFt,`
|
||
|
`);for(const[o,{detector:l}]of Object.entries(IG))if(l(r,i))return o;throw new Error(`No diagram type detected for text: ${r}`)},BCe=(...r)=>{for(const{id:i,detector:o,loader:l}of r)FCe(i,o,l)},FCe=(r,i,o)=>{IG[r]?Se.error(`Detector with key ${r} already exists`):IG[r]={detector:i,loader:o},Se.debug(`Detector with key ${r} added${o?" with loader":""}`)},GFt=r=>IG[r].loader,hae=function(r,i,o){const{depth:l,clobber:f}=Object.assign({depth:2,clobber:!1},o);return Array.isArray(i)&&!Array.isArray(r)?(i.forEach(b=>hae(r,b,o)),r):Array.isArray(i)&&Array.isArray(r)?(i.forEach(b=>{r.includes(b)||r.push(b)}),r):r===void 0||l<=0?r!=null&&typeof r=="object"&&typeof i=="object"?Object.assign(r,i):i:(i!==void 0&&typeof r=="object"&&typeof i=="object"&&Object.keys(i).forEach(b=>{typeof i[b]=="object"&&(r[b]===void 0||typeof r[b]=="object")?(r[b]===void 0&&(r[b]=Array.isArray(i[b])?[]:{}),r[b]=hae(r[b],i[b],{depth:l-1,clobber:f})):(f||typeof r[b]!="object"&&typeof i[b]!="object")&&(r[b]=i[b])}),r)},Yf=hae;var VFt=typeof global=="object"&&global&&global.Object===Object&&global;const RCe=VFt;var UFt=typeof self=="object"&&self&&self.Object===Object&&self,qFt=RCe||UFt||Function("return this")();const Mv=qFt;var YFt=Mv.Symbol;const I2=YFt;var jCe=Object.prototype,WFt=jCe.hasOwnProperty,KFt=jCe.toString,iI=I2?I2.toStringTag:void 0;function XFt(r){var i=WFt.call(r,iI),o=r[iI];try{r[iI]=void 0;var l=!0}catch{}var f=KFt.call(r);return l&&(i?r[iI]=o:delete r[iI]),f}var QFt=Object.prototype,ZFt=QFt.toString;function JFt(r){return ZFt.call(r)}var eRt="[object Null]",tRt="[object Undefined]",$Ce=I2?I2.toStringTag:void 0;function Y8(r){return r==null?r===void 0?tRt:eRt:$Ce&&$Ce in Object(r)?XFt(r):JFt(r)}function lp(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}var nRt="[object AsyncFunction]",rRt="[object Function]",iRt="[object GeneratorFunction]",sRt="[object Proxy]";function QT(r){if(!lp(r))return!1;var i=Y8(r);return i==rRt||i==iRt||i==nRt||i==sRt}var aRt=Mv["__core-js_shared__"];const fae=aRt;var HCe=function(){var r=/[^.]+$/.exec(fae&&fae.keys&&fae.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function oRt(r){return!!HCe&&HCe in r}var cRt=Function.prototype,uRt=cRt.toString;function W8(r){if(r!=null){try{return uRt.call(r)}catch{}try{return r+""}catch{}}return""}var lRt=/[\\^$.*+?()[\]{}|]/g,hRt=/^\[object .+?Constructor\]$/,fRt=Function.prototype,dRt=Object.prototype,gRt=fRt.toString,pRt=dRt.hasOwnProperty,bRt=RegExp("^"+gRt.call(pRt).replace(lRt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vRt(r){if(!lp(r)||oRt(r))return!1;var i=QT(r)?bRt:hRt;return i.test(W8(r))}function wRt(r,i){return r==null?void 0:r[i]}function K8(r,i){var o=wRt(r,i);return vRt(o)?o:void 0}var mRt=K8(Object,"create");const sI=mRt;function yRt(){this.__data__=sI?sI(null):{},this.size=0}function kRt(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}var xRt="__lodash_hash_undefined__",ERt=Object.prototype,_Rt=ERt.hasOwnProperty;function TRt(r){var i=this.__data__;if(sI){var o=i[r];return o===xRt?void 0:o}return _Rt.call(i,r)?i[r]:void 0}var CRt=Object.prototype,SRt=CRt.hasOwnProperty;function ARt(r){var i=this.__data__;return sI?i[r]!==void 0:SRt.call(i,r)}var MRt="__lodash_hash_undefined__";function DRt(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=sI&&i===void 0?MRt:i,this}function X8(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var l=r[i];this.set(l[0],l[1])}}X8.prototype.clear=yRt,X8.prototype.delete=kRt,X8.prototype.get=TRt,X8.prototype.has=ARt,X8.prototype.set=DRt;function LRt(){this.__data__=[],this.size=0}function ZT(r,i){return r===i||r!==r&&i!==i}function OG(r,i){for(var o=r.length;o--;)if(ZT(r[o][0],i))return o;return-1}var IRt=Array.prototype,ORt=IRt.splice;function NRt(r){var i=this.__data__,o=OG(i,r);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():ORt.call(i,o,1),--this.size,!0}function PRt(r){var i=this.__data__,o=OG(i,r);return o<0?void 0:i[o][1]}function BRt(r){return OG(this.__data__,r)>-1}function FRt(r,i){var o=this.__
|
||
|
`,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),Se.debug(`Detecting diagram directive${i!==null?" type:"+i:""} based on the text:${r}`);let l;const f=[];for(;(l=dae.exec(r))!==null;)if(l.index===dae.lastIndex&&dae.lastIndex++,l&&!i||i&&l[1]&&l[1].match(i)||i&&l[2]&&l[2].match(i)){const b=l[1]?l[1]:l[2],d=l[3]?l[3].trim():l[4]?JSON.parse(l[4].trim()):null;f.push({type:b,args:d})}return f.length===0&&f.push({type:r,args:null}),f.length===1?f[0]:f}catch(o){return Se.error(`ERROR: ${o.message} - Unable to parse directive
|
||
|
${i!==null?" type:"+i:""} based on the text:${r}`),{type:null,args:null}}},KRt=function(r,i){for(const[o,l]of i.entries())if(l.match(r))return o;return-1};function q0(r,i){if(!r)return i;const o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return qRt[o]||i}function XRt(r,i){const o=r.trim();if(o)return i.securityLevel!=="loose"?$3(o):o}const QRt=(r,...i)=>{const o=r.split("."),l=o.length-1,f=o[l];let b=window;for(let d=0;d<l;d++)if(b=b[o[d]],!b)return;b[f](...i)};function PG(r,i){return r&&i?Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)):0}function ZRt(r){let i,o=0;r.forEach(b=>{o+=PG(b,i),i=b});let l=o/2,f;return i=void 0,r.forEach(b=>{if(i&&!f){const d=PG(b,i);if(d<l)l-=d;else{const w=l/d;w<=0&&(f=i),w>=1&&(f={x:b.x,y:b.y}),w>0&&w<1&&(f={x:(1-w)*i.x+w*b.x,y:(1-w)*i.y+w*b.y})}}i=b}),f}function JRt(r){return r.length===1?r[0]:ZRt(r)}const ejt=(r,i,o)=>{let l;Se.info(`our points ${JSON.stringify(i)}`),i[0]!==o&&(i=i.reverse());let b=25,d;l=void 0,i.forEach(E=>{if(l&&!d){const T=PG(E,l);if(T<b)b-=T;else{const C=b/T;C<=0&&(d=l),C>=1&&(d={x:E.x,y:E.y}),C>0&&C<1&&(d={x:(1-C)*l.x+C*E.x,y:(1-C)*l.y+C*E.y})}}l=E});const w=r?10:5,y=Math.atan2(i[0].y-d.y,i[0].x-d.x),k={x:0,y:0};return k.x=Math.sin(y)*w+(i[0].x+d.x)/2,k.y=-Math.cos(y)*w+(i[0].y+d.y)/2,k};function tjt(r,i,o){let l=JSON.parse(JSON.stringify(o)),f;Se.info("our points",l),i!=="start_left"&&i!=="start_right"&&(l=l.reverse()),l.forEach(T=>{f=T});let d=25+r,w;f=void 0,l.forEach(T=>{if(f&&!w){const C=PG(T,f);if(C<d)d-=C;else{const S=d/C;S<=0&&(w=f),S>=1&&(w={x:T.x,y:T.y}),S>0&&S<1&&(w={x:(1-S)*f.x+S*T.x,y:(1-S)*f.y+S*T.y})}}f=T});const y=10+r*.5,k=Math.atan2(l[0].y-w.y,l[0].x-w.x),E={x:0,y:0};return E.x=Math.sin(k)*y+(l[0].x+w.x)/2,E.y=-Math.cos(k)*y+(l[0].y+w.y)/2,i==="start_left"&&(E.x=Math.sin(k+Math.PI)*y+(l[0].x+w.x)/2,E.y=-Math.cos(k+Math.PI)*y+(l[0].y+w.y)/2),i==="end_right"&&(E.x=Math.sin(k-Math.PI)*y+(l[0].x+w.x)/2-5,E.y=-Math.cos(k-Math.PI)*y+(l[0].y+w.y)/2-5),i==="end_left"&&(E.x=Math.sin(k)*y+(l[0].x+w.x)/2-5,E.y=-Math.cos(k)*y+(l[0].y+w.y)/2-5),E}function Dv(r){let i="",o="";for(const l of r)l!==void 0&&(l.startsWith("color:")||l.startsWith("text-align:")?o=o+l+";":i=i+l+";");return{style:i,labelStyle:o}}let GCe=0;const VCe=()=>(GCe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+GCe);function njt(r){let i="";const o="0123456789abcdef",l=o.length;for(let f=0;f<r;f++)i+=o.charAt(Math.floor(Math.random()*l));return i}const UCe=r=>njt(r.length),rjt=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}},ijt=function(r,i){const o=i.text.replace(Cs.lineBreakRegex," "),[,l]=oI(i.fontSize),f=r.append("text");f.attr("x",i.x),f.attr("y",i.y),f.style("text-anchor",i.anchor),f.style("font-family",i.fontFamily),f.style("font-size",l),f.style("font-weight",i.fontWeight),f.attr("fill",i.fill),i.class!==void 0&&f.attr("class",i.class);const b=f.append("tspan");return b.attr("x",i.x+i.textMargin*2),b.attr("fill",i.fill),b.text(o),f},qCe=JT((r,i,o)=>{if(!r||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),Cs.lineBreakRegex.test(r)))return r;const l=r.split(" "),f=[];let b="";return l.forEach((d,w)=>{const y=Bm(`${d} `,o),k=Bm(b,o);if(y>i){const{hyphenatedStrings:C,remainingWord:S}=sjt(d,i,"-",o);f.push(b,...C),b=S}else k+y>=i?(f.push(b),b=d):b=[b,d].filter(Boolean).join(" ");w+1===l.length&&f.push(b)}),f.filter(d=>d!=="").join(o.joinWith)},(r,i,o)=>`${r}${i}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),sjt=JT((r,i,o="-",l)=>{l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},l);const f=[...r],b=[];let d="";return f.forEach((w,y)=>{const k=`${d}${w}`;if(Bm(k,l)>=i){const T=y+1,C=f.length===T,S=`${k}${o}`;b.push(C?k:S),d=""}else d=k}),{hyphenatedStrings:b,remainingWord:d}},(r,i,o="-",l)=>`${r}${i}${o}${l.fontSize}${l.fontWeight}${l.fontFamily}`);function gae(r,i){return i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},i),pae(r,i).height}function Bm(r,i){return i=Object.assign({fontSize:12,fontWeight
|
||
|
fill: ${r.nodeBorder};
|
||
|
fill: ${r.classText};
|
||
|
stroke: none;
|
||
|
font-family: ${r.fontFamily};
|
||
|
font-size: 10px;
|
||
|
|
||
|
.title {
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
.nodeLabel, .edgeLabel {
|
||
|
color: ${r.classText};
|
||
|
}
|
||
|
.edgeLabel .label rect {
|
||
|
fill: ${r.mainBkg};
|
||
|
}
|
||
|
.label text {
|
||
|
fill: ${r.classText};
|
||
|
}
|
||
|
.edgeLabel .label span {
|
||
|
background: ${r.mainBkg};
|
||
|
}
|
||
|
|
||
|
.classTitle {
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
.node rect,
|
||
|
.node circle,
|
||
|
.node ellipse,
|
||
|
.node polygon,
|
||
|
.node path {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
|
||
|
.divider {
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke: 1;
|
||
|
}
|
||
|
|
||
|
g.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
g.classGroup rect {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
g.classGroup line {
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.classLabel .box {
|
||
|
stroke: none;
|
||
|
stroke-width: 0;
|
||
|
fill: ${r.mainBkg};
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
.classLabel .label {
|
||
|
fill: ${r.nodeBorder};
|
||
|
font-size: 10px;
|
||
|
}
|
||
|
|
||
|
.relation {
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 1;
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.dashed-line{
|
||
|
stroke-dasharray: 3;
|
||
|
}
|
||
|
|
||
|
.dotted-line{
|
||
|
stroke-dasharray: 1 2;
|
||
|
}
|
||
|
|
||
|
#compositionStart, .composition {
|
||
|
fill: ${r.lineColor} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#compositionEnd, .composition {
|
||
|
fill: ${r.lineColor} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#dependencyStart, .dependency {
|
||
|
fill: ${r.lineColor} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#dependencyStart, .dependency {
|
||
|
fill: ${r.lineColor} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#extensionStart, .extension {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#extensionEnd, .extension {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#aggregationStart, .aggregation {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#aggregationEnd, .aggregation {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#lollipopStart, .lollipop {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#lollipopEnd, .lollipop {
|
||
|
fill: ${r.mainBkg} !important;
|
||
|
stroke: ${r.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.edgeTerminals {
|
||
|
font-size: 11px;
|
||
|
}
|
||
|
|
||
|
.classTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
`,cSe=r=>`
|
||
|
.entityBox {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
.attributeBoxOdd {
|
||
|
fill: ${r.attributeBackgroundColorOdd};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
.attributeBoxEven {
|
||
|
fill: ${r.attributeBackgroundColorEven};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
.relationshipLabelBox {
|
||
|
fill: ${r.tertiaryColor};
|
||
|
opacity: 0.7;
|
||
|
background-color: ${r.tertiaryColor};
|
||
|
rect {
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.relationshipLine {
|
||
|
stroke: ${r.lineColor};
|
||
|
}
|
||
|
|
||
|
.entityTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
`,Tae=()=>"",qG=r=>`.label {
|
||
|
font-family: ${r.fontFamily};
|
||
|
color: ${r.nodeTextColor||r.textColor};
|
||
|
}
|
||
|
.cluster-label text {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
.cluster-label span {
|
||
|
color: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.label text,span {
|
||
|
fill: ${r.nodeTextColor||r.textColor};
|
||
|
color: ${r.nodeTextColor||r.textColor};
|
||
|
}
|
||
|
|
||
|
.node rect,
|
||
|
.node circle,
|
||
|
.node ellipse,
|
||
|
.node polygon,
|
||
|
.node path {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.node .label {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.node.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.arrowheadPath {
|
||
|
fill: ${r.arrowheadColor};
|
||
|
}
|
||
|
|
||
|
.edgePath .path {
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 2.0px;
|
||
|
}
|
||
|
|
||
|
.flowchart-link {
|
||
|
stroke: ${r.lineColor};
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.edgeLabel {
|
||
|
background-color: ${r.edgeLabelBackground};
|
||
|
rect {
|
||
|
opacity: 0.5;
|
||
|
background-color: ${r.edgeLabelBackground};
|
||
|
fill: ${r.edgeLabelBackground};
|
||
|
}
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.cluster rect {
|
||
|
fill: ${r.clusterBkg};
|
||
|
stroke: ${r.clusterBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.cluster text {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.cluster span {
|
||
|
color: ${r.titleColor};
|
||
|
}
|
||
|
/* .cluster div {
|
||
|
color: ${r.titleColor};
|
||
|
} */
|
||
|
|
||
|
div.mermaidTooltip {
|
||
|
position: absolute;
|
||
|
text-align: center;
|
||
|
max-width: 200px;
|
||
|
padding: 2px;
|
||
|
font-family: ${r.fontFamily};
|
||
|
font-size: 12px;
|
||
|
background: ${r.tertiaryColor};
|
||
|
border: 1px solid ${r.border2};
|
||
|
border-radius: 2px;
|
||
|
pointer-events: none;
|
||
|
z-index: 100;
|
||
|
}
|
||
|
|
||
|
.flowchartTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
`,uSe=r=>`
|
||
|
.mermaid-main-font {
|
||
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
||
|
font-family: var(--mermaid-font-family);
|
||
|
}
|
||
|
.exclude-range {
|
||
|
fill: ${r.excludeBkgColor};
|
||
|
}
|
||
|
|
||
|
.section {
|
||
|
stroke: none;
|
||
|
opacity: 0.2;
|
||
|
}
|
||
|
|
||
|
.section0 {
|
||
|
fill: ${r.sectionBkgColor};
|
||
|
}
|
||
|
|
||
|
.section2 {
|
||
|
fill: ${r.sectionBkgColor2};
|
||
|
}
|
||
|
|
||
|
.section1,
|
||
|
.section3 {
|
||
|
fill: ${r.altSectionBkgColor};
|
||
|
opacity: 0.2;
|
||
|
}
|
||
|
|
||
|
.sectionTitle0 {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.sectionTitle1 {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.sectionTitle2 {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.sectionTitle3 {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.sectionTitle {
|
||
|
text-anchor: start;
|
||
|
// font-size: ${r.ganttFontSize};
|
||
|
// text-height: 14px;
|
||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
|
font-family: var(--mermaid-font-family);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Grid and axis */
|
||
|
|
||
|
.grid .tick {
|
||
|
stroke: ${r.gridColor};
|
||
|
opacity: 0.8;
|
||
|
shape-rendering: crispEdges;
|
||
|
text {
|
||
|
font-family: ${r.fontFamily};
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.grid path {
|
||
|
stroke-width: 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Today line */
|
||
|
|
||
|
.today {
|
||
|
fill: none;
|
||
|
stroke: ${r.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: ${r.ganttFontSize};
|
||
|
// }
|
||
|
|
||
|
.taskTextOutsideRight {
|
||
|
fill: ${r.taskTextDarkColor};
|
||
|
text-anchor: start;
|
||
|
// font-size: ${r.ganttFontSize};
|
||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
|
font-family: var(--mermaid-font-family);
|
||
|
|
||
|
}
|
||
|
|
||
|
.taskTextOutsideLeft {
|
||
|
fill: ${r.taskTextDarkColor};
|
||
|
text-anchor: end;
|
||
|
// font-size: ${r.ganttFontSize};
|
||
|
}
|
||
|
|
||
|
/* Special case clickable */
|
||
|
.task.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
.taskText.clickable {
|
||
|
cursor: pointer;
|
||
|
fill: ${r.taskTextClickableColor} !important;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.taskTextOutsideLeft.clickable {
|
||
|
cursor: pointer;
|
||
|
fill: ${r.taskTextClickableColor} !important;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.taskTextOutsideRight.clickable {
|
||
|
cursor: pointer;
|
||
|
fill: ${r.taskTextClickableColor} !important;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
/* Specific task settings for the sections*/
|
||
|
|
||
|
.taskText0,
|
||
|
.taskText1,
|
||
|
.taskText2,
|
||
|
.taskText3 {
|
||
|
fill: ${r.taskTextColor};
|
||
|
}
|
||
|
|
||
|
.task0,
|
||
|
.task1,
|
||
|
.task2,
|
||
|
.task3 {
|
||
|
fill: ${r.taskBkgColor};
|
||
|
stroke: ${r.taskBorderColor};
|
||
|
}
|
||
|
|
||
|
.taskTextOutside0,
|
||
|
.taskTextOutside2
|
||
|
{
|
||
|
fill: ${r.taskTextOutsideColor};
|
||
|
}
|
||
|
|
||
|
.taskTextOutside1,
|
||
|
.taskTextOutside3 {
|
||
|
fill: ${r.taskTextOutsideColor};
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Active task */
|
||
|
|
||
|
.active0,
|
||
|
.active1,
|
||
|
.active2,
|
||
|
.active3 {
|
||
|
fill: ${r.activeTaskBkgColor};
|
||
|
stroke: ${r.activeTaskBorderColor};
|
||
|
}
|
||
|
|
||
|
.activeText0,
|
||
|
.activeText1,
|
||
|
.activeText2,
|
||
|
.activeText3 {
|
||
|
fill: ${r.taskTextDarkColor} !important;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Completed task */
|
||
|
|
||
|
.done0,
|
||
|
.done1,
|
||
|
.done2,
|
||
|
.done3 {
|
||
|
stroke: ${r.doneTaskBorderColor};
|
||
|
fill: ${r.doneTaskBkgColor};
|
||
|
stroke-width: 2;
|
||
|
}
|
||
|
|
||
|
.doneText0,
|
||
|
.doneText1,
|
||
|
.doneText2,
|
||
|
.doneText3 {
|
||
|
fill: ${r.taskTextDarkColor} !important;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Tasks on the critical line */
|
||
|
|
||
|
.crit0,
|
||
|
.crit1,
|
||
|
.crit2,
|
||
|
.crit3 {
|
||
|
stroke: ${r.critBorderColor};
|
||
|
fill: ${r.critBkgColor};
|
||
|
stroke-width: 2;
|
||
|
}
|
||
|
|
||
|
.activeCrit0,
|
||
|
.activeCrit1,
|
||
|
.activeCrit2,
|
||
|
.activeCrit3 {
|
||
|
stroke: ${r.critBorderColor};
|
||
|
fill: ${r.activeTaskBkgColor};
|
||
|
stroke-width: 2;
|
||
|
}
|
||
|
|
||
|
.doneCrit0,
|
||
|
.doneCrit1,
|
||
|
.doneCrit2,
|
||
|
.doneCrit3 {
|
||
|
stroke: ${r.critBorderColor};
|
||
|
fill: ${r.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: ${r.taskTextDarkColor} !important;
|
||
|
}
|
||
|
|
||
|
.activeCritText0,
|
||
|
.activeCritText1,
|
||
|
.activeCritText2,
|
||
|
.activeCritText3 {
|
||
|
fill: ${r.taskTextDarkColor} !important;
|
||
|
}
|
||
|
|
||
|
.titleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor} ;
|
||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
|
font-family: var(--mermaid-font-family);
|
||
|
}
|
||
|
`,lSe=()=>"",hSe=r=>`
|
||
|
.pieCircle{
|
||
|
stroke: ${r.pieStrokeColor};
|
||
|
stroke-width : ${r.pieStrokeWidth};
|
||
|
opacity : ${r.pieOpacity};
|
||
|
}
|
||
|
.pieTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: ${r.pieTitleTextSize};
|
||
|
fill: ${r.pieTitleTextColor};
|
||
|
font-family: ${r.fontFamily};
|
||
|
}
|
||
|
.slice {
|
||
|
font-family: ${r.fontFamily};
|
||
|
fill: ${r.pieSectionTextColor};
|
||
|
font-size:${r.pieSectionTextSize};
|
||
|
// fill: white;
|
||
|
}
|
||
|
.legend text {
|
||
|
fill: ${r.pieLegendTextColor};
|
||
|
font-family: ${r.fontFamily};
|
||
|
font-size: ${r.pieLegendTextSize};
|
||
|
}
|
||
|
`,fSe=r=>`
|
||
|
|
||
|
marker {
|
||
|
fill: ${r.relationColor};
|
||
|
stroke: ${r.relationColor};
|
||
|
}
|
||
|
|
||
|
marker.cross {
|
||
|
stroke: ${r.lineColor};
|
||
|
}
|
||
|
|
||
|
svg {
|
||
|
font-family: ${r.fontFamily};
|
||
|
font-size: ${r.fontSize};
|
||
|
}
|
||
|
|
||
|
.reqBox {
|
||
|
fill: ${r.requirementBackground};
|
||
|
fill-opacity: 100%;
|
||
|
stroke: ${r.requirementBorderColor};
|
||
|
stroke-width: ${r.requirementBorderSize};
|
||
|
}
|
||
|
|
||
|
.reqTitle, .reqLabel{
|
||
|
fill: ${r.requirementTextColor};
|
||
|
}
|
||
|
.reqLabelBox {
|
||
|
fill: ${r.relationLabelBackground};
|
||
|
fill-opacity: 100%;
|
||
|
}
|
||
|
|
||
|
.req-title-line {
|
||
|
stroke: ${r.requirementBorderColor};
|
||
|
stroke-width: ${r.requirementBorderSize};
|
||
|
}
|
||
|
.relationshipLine {
|
||
|
stroke: ${r.relationColor};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
.relationshipLabel {
|
||
|
fill: ${r.relationLabelColor};
|
||
|
}
|
||
|
|
||
|
`,dSe=r=>`.actor {
|
||
|
stroke: ${r.actorBorder};
|
||
|
fill: ${r.actorBkg};
|
||
|
}
|
||
|
|
||
|
text.actor > tspan {
|
||
|
fill: ${r.actorTextColor};
|
||
|
stroke: none;
|
||
|
}
|
||
|
|
||
|
.actor-line {
|
||
|
stroke: ${r.actorLineColor};
|
||
|
}
|
||
|
|
||
|
.messageLine0 {
|
||
|
stroke-width: 1.5;
|
||
|
stroke-dasharray: none;
|
||
|
stroke: ${r.signalColor};
|
||
|
}
|
||
|
|
||
|
.messageLine1 {
|
||
|
stroke-width: 1.5;
|
||
|
stroke-dasharray: 2, 2;
|
||
|
stroke: ${r.signalColor};
|
||
|
}
|
||
|
|
||
|
#arrowhead path {
|
||
|
fill: ${r.signalColor};
|
||
|
stroke: ${r.signalColor};
|
||
|
}
|
||
|
|
||
|
.sequenceNumber {
|
||
|
fill: ${r.sequenceNumberColor};
|
||
|
}
|
||
|
|
||
|
#sequencenumber {
|
||
|
fill: ${r.signalColor};
|
||
|
}
|
||
|
|
||
|
#crosshead path {
|
||
|
fill: ${r.signalColor};
|
||
|
stroke: ${r.signalColor};
|
||
|
}
|
||
|
|
||
|
.messageText {
|
||
|
fill: ${r.signalTextColor};
|
||
|
stroke: none;
|
||
|
}
|
||
|
|
||
|
.labelBox {
|
||
|
stroke: ${r.labelBoxBorderColor};
|
||
|
fill: ${r.labelBoxBkgColor};
|
||
|
}
|
||
|
|
||
|
.labelText, .labelText > tspan {
|
||
|
fill: ${r.labelTextColor};
|
||
|
stroke: none;
|
||
|
}
|
||
|
|
||
|
.loopText, .loopText > tspan {
|
||
|
fill: ${r.loopTextColor};
|
||
|
stroke: none;
|
||
|
}
|
||
|
|
||
|
.loopLine {
|
||
|
stroke-width: 2px;
|
||
|
stroke-dasharray: 2, 2;
|
||
|
stroke: ${r.labelBoxBorderColor};
|
||
|
fill: ${r.labelBoxBorderColor};
|
||
|
}
|
||
|
|
||
|
.note {
|
||
|
//stroke: #decc93;
|
||
|
stroke: ${r.noteBorderColor};
|
||
|
fill: ${r.noteBkgColor};
|
||
|
}
|
||
|
|
||
|
.noteText, .noteText > tspan {
|
||
|
fill: ${r.noteTextColor};
|
||
|
stroke: none;
|
||
|
}
|
||
|
|
||
|
.activation0 {
|
||
|
fill: ${r.activationBkgColor};
|
||
|
stroke: ${r.activationBorderColor};
|
||
|
}
|
||
|
|
||
|
.activation1 {
|
||
|
fill: ${r.activationBkgColor};
|
||
|
stroke: ${r.activationBorderColor};
|
||
|
}
|
||
|
|
||
|
.activation2 {
|
||
|
fill: ${r.activationBkgColor};
|
||
|
stroke: ${r.activationBorderColor};
|
||
|
}
|
||
|
|
||
|
.actorPopupMenu {
|
||
|
position: absolute;
|
||
|
}
|
||
|
|
||
|
.actorPopupMenuPanel {
|
||
|
position: absolute;
|
||
|
fill: ${r.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: ${r.actorBorder};
|
||
|
fill: ${r.actorBkg};
|
||
|
}
|
||
|
.actor-man circle, line {
|
||
|
stroke: ${r.actorBorder};
|
||
|
fill: ${r.actorBkg};
|
||
|
stroke-width: 2px;
|
||
|
}
|
||
|
`,YG=r=>`
|
||
|
defs #statediagram-barbEnd {
|
||
|
fill: ${r.transitionColor};
|
||
|
stroke: ${r.transitionColor};
|
||
|
}
|
||
|
g.stateGroup text {
|
||
|
fill: ${r.nodeBorder};
|
||
|
stroke: none;
|
||
|
font-size: 10px;
|
||
|
}
|
||
|
g.stateGroup text {
|
||
|
fill: ${r.textColor};
|
||
|
stroke: none;
|
||
|
font-size: 10px;
|
||
|
|
||
|
}
|
||
|
g.stateGroup .state-title {
|
||
|
font-weight: bolder;
|
||
|
fill: ${r.stateLabelColor};
|
||
|
}
|
||
|
|
||
|
g.stateGroup rect {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
g.stateGroup line {
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.transition {
|
||
|
stroke: ${r.transitionColor};
|
||
|
stroke-width: 1;
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.stateGroup .composit {
|
||
|
fill: ${r.background};
|
||
|
border-bottom: 1px
|
||
|
}
|
||
|
|
||
|
.stateGroup .alt-composit {
|
||
|
fill: #e0e0e0;
|
||
|
border-bottom: 1px
|
||
|
}
|
||
|
|
||
|
.state-note {
|
||
|
stroke: ${r.noteBorderColor};
|
||
|
fill: ${r.noteBkgColor};
|
||
|
|
||
|
text {
|
||
|
fill: ${r.noteTextColor};
|
||
|
stroke: none;
|
||
|
font-size: 10px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.stateLabel .box {
|
||
|
stroke: none;
|
||
|
stroke-width: 0;
|
||
|
fill: ${r.mainBkg};
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
.edgeLabel .label rect {
|
||
|
fill: ${r.labelBackgroundColor};
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
.edgeLabel .label text {
|
||
|
fill: ${r.transitionLabelColor||r.tertiaryTextColor};
|
||
|
}
|
||
|
.label div .edgeLabel {
|
||
|
color: ${r.transitionLabelColor||r.tertiaryTextColor};
|
||
|
}
|
||
|
|
||
|
.stateLabel text {
|
||
|
fill: ${r.stateLabelColor};
|
||
|
font-size: 10px;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.node circle.state-start {
|
||
|
fill: ${r.specialStateColor};
|
||
|
stroke: ${r.specialStateColor};
|
||
|
}
|
||
|
|
||
|
.node .fork-join {
|
||
|
fill: ${r.specialStateColor};
|
||
|
stroke: ${r.specialStateColor};
|
||
|
}
|
||
|
|
||
|
.node circle.state-end {
|
||
|
fill: ${r.innerEndBackground};
|
||
|
stroke: ${r.background};
|
||
|
stroke-width: 1.5
|
||
|
}
|
||
|
.end-state-inner {
|
||
|
fill: ${r.compositeBackground||r.background};
|
||
|
// stroke: ${r.background};
|
||
|
stroke-width: 1.5
|
||
|
}
|
||
|
|
||
|
.node rect {
|
||
|
fill: ${r.stateBkg||r.mainBkg};
|
||
|
stroke: ${r.stateBorder||r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
.node polygon {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.stateBorder||r.nodeBorder};;
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
#statediagram-barbEnd {
|
||
|
fill: ${r.lineColor};
|
||
|
}
|
||
|
|
||
|
.statediagram-cluster rect {
|
||
|
fill: ${r.compositeTitleBackground};
|
||
|
stroke: ${r.stateBorder||r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.cluster-label, .nodeLabel {
|
||
|
color: ${r.stateLabelColor};
|
||
|
}
|
||
|
|
||
|
.statediagram-cluster rect.outer {
|
||
|
rx: 5px;
|
||
|
ry: 5px;
|
||
|
}
|
||
|
.statediagram-state .divider {
|
||
|
stroke: ${r.stateBorder||r.nodeBorder};
|
||
|
}
|
||
|
|
||
|
.statediagram-state .title-state {
|
||
|
rx: 5px;
|
||
|
ry: 5px;
|
||
|
}
|
||
|
.statediagram-cluster.statediagram-cluster .inner {
|
||
|
fill: ${r.compositeBackground||r.background};
|
||
|
}
|
||
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
||
|
fill: ${r.altBackground?r.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: ${r.altBackground?r.altBackground:"#efefef"};
|
||
|
}
|
||
|
|
||
|
.note-edge {
|
||
|
stroke-dasharray: 5;
|
||
|
}
|
||
|
|
||
|
.statediagram-note rect {
|
||
|
fill: ${r.noteBkgColor};
|
||
|
stroke: ${r.noteBorderColor};
|
||
|
stroke-width: 1px;
|
||
|
rx: 0;
|
||
|
ry: 0;
|
||
|
}
|
||
|
.statediagram-note rect {
|
||
|
fill: ${r.noteBkgColor};
|
||
|
stroke: ${r.noteBorderColor};
|
||
|
stroke-width: 1px;
|
||
|
rx: 0;
|
||
|
ry: 0;
|
||
|
}
|
||
|
|
||
|
.statediagram-note text {
|
||
|
fill: ${r.noteTextColor};
|
||
|
}
|
||
|
|
||
|
.statediagram-note .nodeLabel {
|
||
|
color: ${r.noteTextColor};
|
||
|
}
|
||
|
.statediagram .edgeLabel {
|
||
|
color: red; // ${r.noteTextColor};
|
||
|
}
|
||
|
|
||
|
#dependencyStart, #dependencyEnd {
|
||
|
fill: ${r.lineColor};
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.statediagramTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
`,gSe=r=>`.label {
|
||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
|
font-family: var(--mermaid-font-family);
|
||
|
color: ${r.textColor};
|
||
|
}
|
||
|
.mouth {
|
||
|
stroke: #666;
|
||
|
}
|
||
|
|
||
|
line {
|
||
|
stroke: ${r.textColor}
|
||
|
}
|
||
|
|
||
|
.legend {
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
|
||
|
.label text {
|
||
|
fill: #333;
|
||
|
}
|
||
|
.label {
|
||
|
color: ${r.textColor}
|
||
|
}
|
||
|
|
||
|
.face {
|
||
|
${r.faceColor?`fill: ${r.faceColor}`:"fill: #FFF8DC"};
|
||
|
stroke: #999;
|
||
|
}
|
||
|
|
||
|
.node rect,
|
||
|
.node circle,
|
||
|
.node ellipse,
|
||
|
.node polygon,
|
||
|
.node path {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.node .label {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.node.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.arrowheadPath {
|
||
|
fill: ${r.arrowheadColor};
|
||
|
}
|
||
|
|
||
|
.edgePath .path {
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 1.5px;
|
||
|
}
|
||
|
|
||
|
.flowchart-link {
|
||
|
stroke: ${r.lineColor};
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.edgeLabel {
|
||
|
background-color: ${r.edgeLabelBackground};
|
||
|
rect {
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.cluster rect {
|
||
|
}
|
||
|
|
||
|
.cluster text {
|
||
|
fill: ${r.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: ${r.tertiaryColor};
|
||
|
border: 1px solid ${r.border2};
|
||
|
border-radius: 2px;
|
||
|
pointer-events: none;
|
||
|
z-index: 100;
|
||
|
}
|
||
|
|
||
|
.task-type-0, .section-type-0 {
|
||
|
${r.fillType0?`fill: ${r.fillType0}`:""};
|
||
|
}
|
||
|
.task-type-1, .section-type-1 {
|
||
|
${r.fillType0?`fill: ${r.fillType1}`:""};
|
||
|
}
|
||
|
.task-type-2, .section-type-2 {
|
||
|
${r.fillType0?`fill: ${r.fillType2}`:""};
|
||
|
}
|
||
|
.task-type-3, .section-type-3 {
|
||
|
${r.fillType0?`fill: ${r.fillType3}`:""};
|
||
|
}
|
||
|
.task-type-4, .section-type-4 {
|
||
|
${r.fillType0?`fill: ${r.fillType4}`:""};
|
||
|
}
|
||
|
.task-type-5, .section-type-5 {
|
||
|
${r.fillType0?`fill: ${r.fillType5}`:""};
|
||
|
}
|
||
|
.task-type-6, .section-type-6 {
|
||
|
${r.fillType0?`fill: ${r.fillType6}`:""};
|
||
|
}
|
||
|
.task-type-7, .section-type-7 {
|
||
|
${r.fillType0?`fill: ${r.fillType7}`:""};
|
||
|
}
|
||
|
|
||
|
.actor-0 {
|
||
|
${r.actor0?`fill: ${r.actor0}`:""};
|
||
|
}
|
||
|
.actor-1 {
|
||
|
${r.actor1?`fill: ${r.actor1}`:""};
|
||
|
}
|
||
|
.actor-2 {
|
||
|
${r.actor2?`fill: ${r.actor2}`:""};
|
||
|
}
|
||
|
.actor-3 {
|
||
|
${r.actor3?`fill: ${r.actor3}`:""};
|
||
|
}
|
||
|
.actor-4 {
|
||
|
${r.actor4?`fill: ${r.actor4}`:""};
|
||
|
}
|
||
|
.actor-5 {
|
||
|
${r.actor5?`fill: ${r.actor5}`:""};
|
||
|
}
|
||
|
`,pSe=r=>`.person {
|
||
|
stroke: ${r.personBorder};
|
||
|
fill: ${r.personBkg};
|
||
|
}
|
||
|
`,WG={flowchart:qG,"flowchart-v2":qG,sequence:dSe,gantt:uSe,classDiagram:hI,"classDiagram-v2":hI,class:hI,stateDiagram:YG,state:YG,info:lSe,pie:hSe,er:cSe,error:Tae,journey:gSe,requirement:fSe,c4:pSe},Ljt=(r,i,o)=>{let l="";return r in WG&&WG[r]?l=WG[r](o):Se.warn(`No theme found for ${r}`),` & {
|
||
|
font-family: ${o.fontFamily};
|
||
|
font-size: ${o.fontSize};
|
||
|
fill: ${o.textColor}
|
||
|
}
|
||
|
|
||
|
/* Classes common for multiple diagrams */
|
||
|
|
||
|
& .error-icon {
|
||
|
fill: ${o.errorBkgColor};
|
||
|
}
|
||
|
& .error-text {
|
||
|
fill: ${o.errorTextColor};
|
||
|
stroke: ${o.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: ${o.lineColor};
|
||
|
stroke: ${o.lineColor};
|
||
|
}
|
||
|
& .marker.cross {
|
||
|
stroke: ${o.lineColor};
|
||
|
}
|
||
|
|
||
|
& svg {
|
||
|
font-family: ${o.fontFamily};
|
||
|
font-size: ${o.fontSize};
|
||
|
}
|
||
|
|
||
|
${l}
|
||
|
|
||
|
${i}
|
||
|
`},Ijt=(r,i)=>{WG[r]=i},Ojt=Ljt;let Cae="",KG="",Sae="";const Aae=r=>up(r,ht()),W0=function(){Cae="",Sae="",KG=""},K0=function(r){Cae=Aae(r).replace(/^\s+/g,"")},hp=function(){return Cae||KG},fp=function(r){Sae=Aae(r).replace(/\n\s+/g,`
|
||
|
`)},dp=function(){return Sae},Ov=function(r){KG=Aae(r)},Nv=function(){return KG},bSe=Object.freeze(Object.defineProperty({__proto__:null,clear:W0,setAccTitle:K0,getAccTitle:hp,setAccDescription:fp,getAccDescription:dp,setDiagramTitle:Ov,getDiagramTitle:Nv,default:{setAccTitle:K0,getAccTitle:hp,setDiagramTitle:Ov,getDiagramTitle:Nv,getAccDescription:dp,setAccDescription:fp,clear:W0}},Symbol.toStringTag,{value:"Module"}));let e7={};const Mae=function(r,i,o,l){Se.debug("parseDirective is being called",i,o,l);try{if(i!==void 0)switch(i=i.trim(),o){case"open_directive":e7={};break;case"type_directive":if(!e7)throw new Error("currentDirective is undefined");e7.type=i.toLowerCase();break;case"arg_directive":if(!e7)throw new Error("currentDirective is undefined");e7.args=JSON.parse(i);break;case"close_directive":Njt(r,e7,l),e7=void 0;break}}catch(f){Se.error(`Error while rendering sequenceDiagram directive: ${i} jison context: ${o}`),Se.error(f.message)}},Njt=function(r,i,o){switch(Se.info(`Directive type=${i.type} with args:`,i.args),i.type){case"init":case"initialize":{["config"].forEach(l=>{i.args[l]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i.args[o]=i.args[l],delete i.args[l])}),Se.info("sanitize in handleDirective",i.args),Q8(i.args),Se.info("sanitize in handleDirective (done)",i.args),_ae(i.args);break}case"wrap":case"nowrap":r&&r.setWrap&&r.setWrap(i.type==="wrap");break;case"themeCss":Se.warn("themeCss encountered");break;default:Se.warn(`Unhandled directive: source: '%%{${i.type}: ${JSON.stringify(i.args?i.args:{})}}%%`,i);break}},Pjt=Se,Bjt=Wie,fI=ht,Fjt=r=>up(r,fI()),vSe=J8,Rjt=()=>bSe,jjt=(r,i,o,l)=>Mae(r,i,o,l),XG={},uf=(r,i,o)=>{if(XG[r])throw new Error(`Diagram ${r} already registered.`);XG[r]=i,o&&FCe(r,o),Ijt(r,i.styles),i.injectUtils&&i.injectUtils(Pjt,Bjt,fI,Fjt,vSe,Rjt(),jjt)},wSe=r=>{if(r in XG)return XG[r];throw new Error(`Diagram ${r} not found.`)};var Dae=function(){var r=function(Y,z,W,Z){for(W=W||{},Z=Y.length;Z--;W[Y[Z]]=z);return W},i=[1,4],o=[1,7],l=[1,5],f=[1,9],b=[1,6],d=[2,6],w=[1,16],y=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],k=[8,14,20,22,24,25,27,29,32,37,40],E=[8,13,14,20,22,24,25,27,29,32,37,40],T=[1,26],C=[6,8,14,50,55],S=[8,14,55],L=[1,53],O=[1,52],B=[8,14,30,33,35,38,55],N=[1,67],F=[1,68],R=[1,69],q=[8,14,33,35,42,55],X={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
|
||
|
`+Te.showPosition()+`
|
||
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":ve="Parse error on line "+(de+1)+": Unexpected "+(Ie==Ce?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(ve,{text:Te.match,token:this.terminals_[Ie]||Ie,line:Te.yylineno,loc:Xe,expected:vt})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+Ie);switch(Le[0]){case 1:Z.push(Ie),ae.push(Te.yytext),$.push(Te.yylloc),Z.push(Le[1]),Ie=null,re=Te.yyleng,ee=Te.yytext,de=Te.yylineno,Xe=Te.yylloc;break;case 2:if(je=this.productions_[Le[1]][1],xe.$=ae[ae.length-je],xe._$={first_line:$[$.length-(je||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(je||1)].first_column,last_column:$[$.length-1].last_column},Ee&&(xe._$.range=[$[$.length-(je||1)].range[0],$[$.length-1].range[1]]),$e=this.performAction.apply(xe,[ee,re,de,Be.yy,Le[1],ae,$].concat(_e)),typeof $e<"u")return $e;je&&(Z=Z.slice(0,-1*je*2),ae=ae.slice(0,-1*je),$=$.slice(0,-1*je)),Z.push(this.productions_[Le[1]][0]),ae.push(xe.$),$.push(xe._$),me=ge[Z[Z.length-2]][Z[Z.length-1]],Z.push(me);break;case 3:return!0}}return!0}},te=function(){var Y={EOF:1,parseError:function(W,Z){if(this.yy.parser)this.yy.parser.parseError(W,Z);else throw new Error(W)},setInput:function(z,W){return this.yy=W||this.yy||{},this._input=z,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 z=this._input[0];this.yytext+=z,this.yyleng++,this.offset++,this.match+=z,this.matched+=z;var W=z.match(/(?:\r\n?|\n).*/g);return W?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),z},unput:function(z){var W=z.length,Z=z.split(/(?:\r\n?|\n)/g);this._input=z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-W),this.offset-=W;var G=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),Z.length-1&&(this.yylineno-=Z.length-1);var ae=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:Z?(Z.length===G.length?this.yylloc.first_column:0)+G[G.length-Z.length].length-Z[0].length:this.yylloc.first_column-W},this.options.ranges&&(this.yylloc.range=[ae[0],ae[0]+this.yyleng-W]),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(z){this.unput(this.match.slice(z))},pastInput:function(){var z=this.matched.substr(0,this.matched.length-this.match.length);return(z.length>20?"...":"")+z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var z=this.match;return z.length<20&&(z+=this._input.substr(0,20-z.length)),(z.substr(0,20)+(z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var z=this.pastInput(),W=new Array(z.length+1).join("-");return z+this.upcomingInput()+`
|
||
|
`+W+"^"},test_match:function(z,W){var Z,G,ae;if(this.options.backtrack_lexer&&(ae={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&&(ae.yylloc.range=this.yylloc.range.slice(0))),G=z[0].match(/(?:\r\n?|\n).*/g),G&&(this.yylineno+=G.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:G?G[G.length-1].length-G[G.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+z[0].length},this.yytext+=z[0],this.match+=z[0],this.matches=z,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(z[0].length),this.matched+=z[0],Z=this.performAction.call(this,this.yy,this,W,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var $ in ae)this[$]=ae[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var z,W,Z,G;this._more||(this.yytext="",this.match="");for(var ae=this._currentRules(),$=0;$<ae.length;$++)if(Z=this._input.match(this.rules[ae[$]]),Z&&(!W||Z[0].length>W[0].length)){if(W=Z,G=$,this.options.backtrack_lexer){if(z=this.test_match(Z,ae[$]),z!==!1)return z;if(this._backtrack){W=!1;continue}else return!1}else if(!this.options.flex)break}return W?(z=this.test_match(W,ae[G]),z!==!1?z:!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 W=this.next();return W||this.lex()},begin:function(W){this.conditionStack.push(W)},popState:function(){var W=this.conditionStack.length-1;return W>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(W){return W=this.conditionStack.length-1-Math.abs(W||0),W>=0?this.conditionStack[W]:"INITIAL"},pushState:function(W){this.begin(W)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(W,Z,G,ae){switch(G){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 Y}();X.lexer=te;function H(){this.yy={}}return H.prototype=X,X.Parser=H,new H}();Dae.parser=Dae;const $jt=Dae,Hjt=r=>r.match(/^\s*gitGraph/)!==null;let QG=ht().gitGraph.mainBranchName,zjt=ht().gitGraph.mainBranchOrder,lf={},Zd=null,dI={};dI[QG]={name:QG,order:zjt};let jh={};jh[QG]=Zd;let Wf=QG,mSe="LR",t7=0;function Lae(){return UCe({length:7})}const Gjt=function(r,i,o){Bu.parseDirective(this,r,i,o)};function Vjt(r,i){const o=Object.create(null);return r.reduce((l,f)=>{const b=i(f);return o[b]||(o[b]=!0,l.push(f)),l},[])}const Ujt=function(r){mSe=r};let ySe={};const qjt=function(r){Se.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{ySe=JSON.parse(r)}catch(i){Se.error("error while parsing gitGraph options",i.message)}},Yjt=function(){return ySe},Wjt=function(r,i,o,l){Se.debug("Entering commit:",r,i,o,l),i=Cs.sanitizeText(i,ht()),r=Cs.sanitizeText(r,ht()),l=Cs.s
|
||
|
${d-F.width/2-4/2},${q+2}
|
||
|
${d-F.width/2-4/2},${q-2}
|
||
|
${d+10-F.width/2-4},${q-R-2}
|
||
|
${d+10+F.width/2+4},${q-R-2}
|
||
|
${d+10+F.width/2+4},${q+R+2}
|
||
|
${d+10-F.width/2-4},${q+R+2}`),B.attr("cx",d-F.width/2+4/2).attr("cy",q).attr("r",1.5).attr("class","tag-hole")}}d+=50,d>eV&&(eV=d)})},u$t=(r,i,o)=>Object.keys(o).filter(b=>o[b].branch===i.branch&&o[b].seq>r.seq&&o[b].seq<i.seq).length>0,Iae=(r,i,o=0)=>{const l=r+Math.abs(r-i)/2;if(o>5)return l;if(JG.every(d=>Math.abs(d-l)>=10))return JG.push(l),l;const b=Math.abs(r-i);return Iae(r,i-b/5,o+1)},l$t=(r,i,o,l)=>{const f=ZG[i.id],b=ZG[o.id],d=u$t(i,o,l);let w="",y="",k=0,E=0,T=X0[o.branch].index,C;if(d){w="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",k=10,E=10,T=X0[o.branch].index;const S=f.y<b.y?Iae(f.y,b.y):Iae(b.y,f.y);f.y<b.y?C=`M ${f.x} ${f.y} L ${f.x} ${S-k} ${w} ${f.x+E} ${S} L ${b.x-k} ${S} ${y} ${b.x} ${S+E} L ${b.x} ${b.y}`:C=`M ${f.x} ${f.y} L ${f.x} ${S+k} ${y} ${f.x+E} ${S} L ${b.x-k} ${S} ${w} ${b.x} ${S-E} L ${b.x} ${b.y}`}else f.y<b.y&&(w="A 20 20, 0, 0, 0,",k=20,E=20,T=X0[o.branch].index,C=`M ${f.x} ${f.y} L ${f.x} ${b.y-k} ${w} ${f.x+E} ${b.y} L ${b.x} ${b.y}`),f.y>b.y&&(w="A 20 20, 0, 0, 0,",k=20,E=20,T=X0[i.branch].index,C=`M ${f.x} ${f.y} L ${b.x-k} ${f.y} ${w} ${b.x} ${f.y-E} L ${b.x} ${b.y}`),f.y===b.y&&(T=X0[i.branch].index,C=`M ${f.x} ${f.y} L ${f.x} ${b.y-k} ${w} ${f.x+E} ${b.y} L ${b.x} ${b.y}`);r.append("path").attr("d",C).attr("class","arrow arrow"+T%n7)},h$t=(r,i)=>{const o=r.append("g").attr("class","commit-arrows");Object.keys(i).forEach(l=>{const f=i[l];f.parents&&f.parents.length>0&&f.parents.forEach(b=>{l$t(o,i[b],f,i)})})},f$t=(r,i)=>{const o=fI().gitGraph,l=r.append("g");i.forEach((f,b)=>{const d=b%n7,w=X0[f.name].pos,y=l.append("line");y.attr("x1",0),y.attr("y1",w),y.attr("x2",eV),y.attr("y2",w),y.attr("class","branch branch"+d),JG.push(w);let k=f.name;const E=c$t(k),T=l.insert("rect"),S=l.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+d);S.node().appendChild(E);let L=E.getBBox();T.attr("class","branchLabelBkg label"+d).attr("rx",4).attr("ry",4).attr("x",-L.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-L.height/2+8).attr("width",L.width+18).attr("height",L.height+4),S.attr("transform","translate("+(-L.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(w-L.height/2-1)+")"),T.attr("transform","translate("+-19+", "+(w-L.height/2)+")")})},d$t={draw:function(r,i,o,l){var k;o$t();const f=fI(),b=f.gitGraph;Se.debug("in gitgraph renderer",r+`
|
||
|
`,"id:",i,o),pI=l.db.getCommits();const d=l.db.getBranchesAsObjArray();let w=0;d.forEach((E,T)=>{X0[E.name]={pos:w,index:T},w+=50+(b.rotateCommitLabel?40:0)});const y=Cn(`[id="${i}"]`);TSe(y,pI,!1),b.showBranches&&f$t(y,d),h$t(y,pI),TSe(y,pI,!0),Fs.insertTitle(y,"gitTitleText",b.titleTopMargin,l.db.getDiagramTitle()),vSe(void 0,y,b.diagramPadding,(k=b.useMaxWidth)!=null?k:f.useMaxWidth)}},g$t=r=>`
|
||
|
.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(i=>`
|
||
|
.branch-label${i} { fill: ${r["gitBranchLabel"+i]}; }
|
||
|
.commit${i} { stroke: ${r["git"+i]}; fill: ${r["git"+i]}; }
|
||
|
.commit-highlight${i} { stroke: ${r["gitInv"+i]}; fill: ${r["gitInv"+i]}; }
|
||
|
.label${i} { fill: ${r["git"+i]}; }
|
||
|
.arrow${i} { stroke: ${r["git"+i]}; }
|
||
|
`).join(`
|
||
|
`)}
|
||
|
|
||
|
.branch {
|
||
|
stroke-width: 1;
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-dasharray: 2;
|
||
|
}
|
||
|
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
|
||
|
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
|
||
|
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
||
|
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
|
||
|
.tag-hole { fill: ${r.textColor}; }
|
||
|
|
||
|
.commit-merge {
|
||
|
stroke: ${r.primaryColor};
|
||
|
fill: ${r.primaryColor};
|
||
|
}
|
||
|
.commit-reverse {
|
||
|
stroke: ${r.primaryColor};
|
||
|
fill: ${r.primaryColor};
|
||
|
stroke-width: 3;
|
||
|
}
|
||
|
.commit-highlight-outer {
|
||
|
}
|
||
|
.commit-highlight-inner {
|
||
|
stroke: ${r.primaryColor};
|
||
|
fill: ${r.primaryColor};
|
||
|
}
|
||
|
|
||
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
||
|
.gitTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
}
|
||
|
`;var tV=function(){var r=function(Kn,Jt,en,In){for(en=en||{},In=Kn.length;In--;en[Kn[In]]=Jt);return en},i=[1,6],o=[1,7],l=[1,8],f=[1,9],b=[1,16],d=[1,11],w=[1,12],y=[1,13],k=[1,14],E=[1,15],T=[1,27],C=[1,33],S=[1,34],L=[1,35],O=[1,36],B=[1,37],N=[1,72],F=[1,73],R=[1,74],q=[1,75],X=[1,76],te=[1,77],H=[1,78],Y=[1,38],z=[1,39],W=[1,40],Z=[1,41],G=[1,42],ae=[1,43],$=[1,44],ge=[1,45],ee=[1,46],de=[1,47],re=[1,48],ke=[1,49],Ce=[1,50],_e=[1,51],Te=[1,52],Be=[1,53],Ge=[1,54],Xe=[1,55],Ee=[1,56],Ze=[1,57],Ie=[1,59],Oe=[1,60],Le=[1,61],$e=[1,62],xe=[1,63],Ae=[1,64],je=[1,65],me=[1,66],vt=[1,67],ve=[1,68],Zt=[1,69],nt=[24,52],xn=[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],cn=[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],jt=[1,94],ot=[1,95],be=[1,96],We=[1,97],ct=[15,24,52],Yt=[7,8,9,10,18,22,25,26,27,28],Ut=[15,24,43,52],Wn=[15,24,43,52,86,87,89,90],Gt=[15,43],Rn=[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],si={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:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[5
|
||
|
`+ti.showPosition()+`
|
||
|
Expecting `+ol.join(", ")+", got '"+(this.terminals_[No]||No)+"'":Ur="Parse error on line "+(hi+1)+": Unexpected "+(No==ls?"end of input":"'"+(this.terminals_[No]||No)+"'"),this.parseError(Ur,{text:ti.match,token:this.terminals_[No]||No,line:ti.yylineno,loc:ai,expected:ol})}if(Yc[0]instanceof Array&&Yc.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Si+", token: "+No);switch(Yc[0]){case 1:In.push(No),Fr.push(ti.yytext),Pt.push(ti.yylloc),In.push(Yc[1]),No=null,Hi=ti.yyleng,nn=ti.yytext,hi=ti.yylineno,ai=ti.yylloc;break;case 2:if(fc=this.productions_[Yc[1]][1],su.$=Fr[Fr.length-fc],su._$={first_line:Pt[Pt.length-(fc||1)].first_line,last_line:Pt[Pt.length-1].last_line,first_column:Pt[Pt.length-(fc||1)].first_column,last_column:Pt[Pt.length-1].last_column},hc&&(su._$.range=[Pt[Pt.length-(fc||1)].range[0],Pt[Pt.length-1].range[1]]),lh=this.performAction.apply(su,[nn,Hi,hi,zi.yy,Yc[1],Fr,Pt].concat(vs)),typeof lh<"u")return lh;fc&&(In=In.slice(0,-1*fc*2),Fr=Fr.slice(0,-1*fc),Pt=Pt.slice(0,-1*fc)),In.push(this.productions_[Yc[1]][0]),Fr.push(su.$),Pt.push(su._$),Ll=ei[In[In.length-2]][In[In.length-1]],In.push(Ll);break;case 3:return!0}}return!0}},$r=function(){var Kn={EOF:1,parseError:function(en,In){if(this.yy.parser)this.yy.parser.parseError(en,In);else throw new Error(en)},setInput:function(Jt,en){return this.yy=en||this.yy||{},this._input=Jt,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 Jt=this._input[0];this.yytext+=Jt,this.yyleng++,this.offset++,this.match+=Jt,this.matched+=Jt;var en=Jt.match(/(?:\r\n?|\n).*/g);return en?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Jt},unput:function(Jt){var en=Jt.length,In=Jt.split(/(?:\r\n?|\n)/g);this._input=Jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-en),this.offset-=en;var hn=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),In.length-1&&(this.yylineno-=In.length-1);var Fr=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:In?(In.length===hn.length?this.yylloc.first_column:0)+hn[hn.length-In.length].length-In[0].length:this.yylloc.first_column-en},this.options.ranges&&(this.yylloc.range=[Fr[0],Fr[0]+this.yyleng-en]),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(Jt){this.unput(this.match.slice(Jt))},pastInput:function(){var Jt=this.matched.substr(0,this.matched.length-this.match.length);return(Jt.length>20?"...":"")+Jt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Jt=this.match;return Jt.length<20&&(Jt+=this._input.substr(0,20-Jt.length)),(Jt.substr(0,20)+(Jt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Jt=this.pastInput(),en=new Array(Jt.length+1).join("-");return Jt+this.upcomingInput()+`
|
||
|
`+en+"^"},test_match:function(Jt,en){var In,hn,Fr;if(this.options.backtrack_lexer&&(Fr={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&&(Fr.yylloc.range=this.yylloc.range.slice(0))),hn=Jt[0].match(/(?:\r\n?|\n).*/g),hn&&(this.yylineno+=hn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:hn?hn[hn.length-1].length-hn[hn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Jt[0].length},this.yytext+=Jt[0],this.match+=Jt[0],this.matches=Jt,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(Jt[0].length),this.matched+=Jt[0],In=this.performAction.call(this,this.yy,this,en,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),In)return In;if(this._backtrack){for(var Pt in Fr)this[Pt]=Fr[Pt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Jt,en,In,hn;this._more||(this.yytext="",this.match="");for(var Fr=this._currentRules(),Pt=0;Pt<Fr.length;Pt++)if(In=this._input.match(this.rules[Fr[Pt]]),In&&(!en||In[0].length>en[0].length)){if(en=In,hn=Pt,this.options.backtrack_lexer){if(Jt=this.test_match(In,Fr[Pt]),Jt!==!1)return Jt;if(this._backtrack){en=!1;continue}else return!1}else if(!this.options.flex)break}return en?(Jt=this.test_match(en,Fr[hn]),Jt!==!1?Jt:!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 en=this.next();return en||this.lex()},begin:function(en){this.conditionStack.push(en)},popState:function(){var en=this.conditionStack.length-1;return en>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(en){return en=this.conditionStack.length-1-Math.abs(en||0),en>=0?this.conditionStack[en]:"INITIAL"},pushState:function(en){this.begin(en)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(en,In,hn,Fr){switch(hn){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:[/^(?:%%\{)/,/^(?:.
|
||
|
`+We.showPosition()+`
|
||
|
Expecting `+hn.join(", ")+", got '"+(this.terminals_[Rn]||Rn)+"'":Fr="Parse error on line "+(xn+1)+": Unexpected "+(Rn==ot?"end of input":"'"+(this.terminals_[Rn]||Rn)+"'"),this.parseError(Fr,{text:We.match,token:this.terminals_[Rn]||Rn,line:We.yylineno,loc:Ut,expected:hn})}if($r[0]instanceof Array&&$r.length>1)throw new Error("Parse Error: multiple actions possible at state: "+si+", token: "+Rn);switch($r[0]){case 1:je.push(Rn),vt.push(We.yytext),ve.push(We.yylloc),je.push($r[1]),Rn=null,cn=We.yyleng,nt=We.yytext,xn=We.yylineno,Ut=We.yylloc;break;case 2:if(en=this.productions_[$r[1]][1],Kn.$=vt[vt.length-en],Kn._$={first_line:ve[ve.length-(en||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(en||1)].first_column,last_column:ve[ve.length-1].last_column},Wn&&(Kn._$.range=[ve[ve.length-(en||1)].range[0],ve[ve.length-1].range[1]]),nr=this.performAction.apply(Kn,[nt,cn,xn,ct.yy,$r[1],vt,ve].concat(be)),typeof nr<"u")return nr;en&&(je=je.slice(0,-1*en*2),vt=vt.slice(0,-1*en),ve=ve.slice(0,-1*en)),je.push(this.productions_[$r[1]][0]),vt.push(Kn.$),ve.push(Kn._$),In=Zt[je[je.length-2]][je[je.length-1]],je.push(In);break;case 3:return!0}}return!0}},Oe=function(){var $e={EOF:1,parseError:function(Ae,je){if(this.yy.parser)this.yy.parser.parseError(Ae,je);else throw new Error(Ae)},setInput:function(xe,Ae){return this.yy=Ae||this.yy||{},this._input=xe,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 xe=this._input[0];this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe;var Ae=xe.match(/(?:\r\n?|\n).*/g);return Ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xe},unput:function(xe){var Ae=xe.length,je=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ae),this.offset-=Ae;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),je.length-1&&(this.yylineno-=je.length-1);var vt=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:je?(je.length===me.length?this.yylloc.first_column:0)+me[me.length-je.length].length-je[0].length:this.yylloc.first_column-Ae},this.options.ranges&&(this.yylloc.range=[vt[0],vt[0]+this.yyleng-Ae]),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(xe){this.unput(this.match.slice(xe))},pastInput:function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xe=this.pastInput(),Ae=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+`
|
||
|
`+Ae+"^"},test_match:function(xe,Ae){var je,me,vt;if(this.options.backtrack_lexer&&(vt={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&&(vt.yylloc.range=this.yylloc.range.slice(0))),me=xe[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+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,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(xe[0].length),this.matched+=xe[0],je=this.performAction.call(this,this.yy,this,Ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),je)return je;if(this._backtrack){for(var ve in vt)this[ve]=vt[ve];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var xe,Ae,je,me;this._more||(this.yytext="",this.match="");for(var vt=this._currentRules(),ve=0;ve<vt.length;ve++)if(je=this._input.match(this.rules[vt[ve]]),je&&(!Ae||je[0].length>Ae[0].length)){if(Ae=je,me=ve,this.options.backtrack_lexer){if(xe=this.test_match(je,vt[ve]),xe!==!1)return xe;if(this._backtrack){Ae=!1;continue}else return!1}else if(!this.options.flex)break}return Ae?(xe=this.test_match(Ae,vt[me]),xe!==!1?xe:!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 Ae=this.next();return Ae||this.lex()},begin:function(Ae){this.conditionStack.push(Ae)},popState:function(){var Ae=this.conditionStack.length-1;return Ae>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(Ae){return Ae=this.conditionStack.length-1-Math.abs(Ae||0),Ae>=0?this.conditionStack[Ae]:"INITIAL"},pushState:function(Ae){this.begin(Ae)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ae,je,me,vt){switch(me){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"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;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 this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:return 69;case 57:return 69;case 58:return 69;case 59:return 69;case 60:return 61;case 61:return 61;case 62:return 63;case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},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)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,
|
||
|
`);y.forEach(function(C){Se.debug(`Adding line: ${C}`),w.append("tspan").text(C).attr("class","title").attr("dy",o.textHeight)});const k=d.node().getBBox(),T=d.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",k.width+2*o.padding).attr("height",k.height+y.length*o.textHeight+o.padding+.5*o.dividerMargin).node().getBBox().width;return w.node().childNodes.forEach(function(C){C.setAttribute("x",(T-C.getBBox().width)/2)}),b.width=T,b.height=k.height+y.length*o.textHeight+o.padding+.5*o.dividerMargin,b},SV=function(r){const i=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,o=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let l=r.match(i),f=r.match(o);return l&&!f?OWt(l):f?NWt(f):PWt(r)},OWt=function(r){let i="",o="";try{let l=r[1]?r[1].trim():"",f=r[2]?r[2].trim():"",b=r[3]?o6(r[3].trim()):"",d=r[4]?r[4].trim():"",w=r[5]?r[5].trim():"";o=l+f+b+" "+d,i=yoe(w)}catch{o=r}return{displayText:o,cssStyle:i}},NWt=function(r){let i="",o="";try{let l=r[1]?r[1].trim():"",f=r[2]?r[2].trim():"",b=r[3]?o6(r[3].trim()):"",d=r[4]?r[4].trim():"",w=r[5]?" : "+o6(r[5]).trim():"";o=l+f+"("+b+")"+w,i=yoe(d)}catch{o=r}return{displayText:o,cssStyle:i}},PWt=function(r){let i="",o="",l="",f=r.indexOf("("),b=r.indexOf(")");if(f>1&&b>f&&b<=r.length){let d="",w="",y=r.substring(0,1);y.match(/\w/)?w=r.substring(0,f).trim():(y.match(/[#+~-]/)&&(d=y),w=r.substring(1,f).trim());const k=r.substring(f+1,b);r.substring(b+1,1),o=yoe(r.substring(b+1,b+2)),i=d+w+"("+o6(k.trim())+")",b<r.length&&(l=r.substring(b+2).trim(),l!==""&&(l=" : "+o6(l),i+=l))}else i=o6(r);return{displayText:i,cssStyle:o}},IMe=function(r,i,o,l){let f=SV(i);const b=r.append("tspan").attr("x",l.padding).text(f.displayText);f.cssStyle!==""&&b.attr("style",f.cssStyle),o||b.attr("dy",l.textHeight)},yoe=function(r){switch(r){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},koe={drawClass:LWt,drawEdge:DWt,drawNote:IWt,parseMember:SV};let AV={};const MV=20,OI=function(r){const i=Object.entries(AV).find(o=>o[1].label===r);if(i)return i[0]},BWt=function(r){r.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"),r.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"),r.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"),r.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"),r.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"),r.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"),r.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"),r.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")},FWt={draw:function(r,i,o,l){const f=ht().class;AV={},Se.info("Rendering diagram "+r);const b=ht().securityLevel;let d;b==="sandbox"&&(d=Cn("#i"+i));const w=Cn(b==="sandbox"?d.nodes()[0].con
|
||
|
outsidePoint: ${JSON.stringify(i)}
|
||
|
insidePoint : ${JSON.stringify(o)}
|
||
|
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const l=r.x,f=r.y,b=Math.abs(l-o.x),d=r.width/2;let w=o.x<i.x?d-b:d+b;const y=r.height/2,k=Math.abs(i.y-o.y),E=Math.abs(i.x-o.x);if(Math.abs(f-i.y)*d>Math.abs(l-i.x)*y){let T=o.y<i.y?i.y-y-f:f-y-i.y;w=E*T/k;const C={x:o.x<i.x?o.x+w:o.x-E+w,y:o.y<i.y?o.y+k-T:o.y-k+T};return w===0&&(C.x=i.x,C.y=i.y),E===0&&(C.x=i.x),k===0&&(C.y=i.y),Se.warn(`abc89 topp/bott calc, Q ${k}, q ${T}, R ${E}, r ${w}`,C),C}else{o.x<i.x?w=i.x-d-l:w=l-d-i.x;let T=k*w/E,C=o.x<i.x?o.x+E-w:o.x-E+w,S=o.y<i.y?o.y+T:o.y-T;return Se.warn(`sides calc abc89, Q ${k}, q ${T}, R ${E}, r ${w}`,{_x:C,_y:S}),w===0&&(C=i.x,S=i.y),E===0&&(C=i.x),k===0&&(S=i.y),{x:C,y:S}}},KMe=(r,i)=>{Se.warn("abc88 cutPathAtIntersect",r,i);let o=[],l=r[0],f=!1;return r.forEach(b=>{if(Se.info("abc88 checking point",b,i),!EKt(i,b)&&!f){const d=_Kt(i,l,b);Se.warn("abc88 inside",b,l,d),Se.warn("abc88 intersection",d);let w=!1;o.forEach(y=>{w=w||y.x===d.x&&y.y===d.y}),o.some(y=>y.x===d.x&&y.y===d.y)?Se.warn("abc88 no intersect",d,o):o.push(d),f=!0}else Se.warn("abc88 outside",b,l),l=b,f||o.push(b)}),Se.warn("abc88 returning points",o),o},TKt=function(r,i,o,l,f,b){let d=o.points,w=!1;const y=b.node(i.v);var k=b.node(i.w);Se.info("abc88 InsertEdge: ",o),k.intersect&&y.intersect&&(d=d.slice(1,o.points.length-1),d.unshift(y.intersect(d[0])),Se.info("Last point",d[d.length-1],k,k.intersect(d[d.length-1])),d.push(k.intersect(d[d.length-1]))),o.toCluster&&(Se.info("to cluster abc88",l[o.toCluster]),d=KMe(o.points,l[o.toCluster].node),w=!0),o.fromCluster&&(Se.info("from cluster abc88",l[o.fromCluster]),d=KMe(d.reverse(),l[o.fromCluster].node).reverse(),w=!0);const E=d.filter(N=>!Number.isNaN(N.y));let T;f==="graph"||f==="flowchart"?T=o.curve||UT:T=UT;const C=V8().x(function(N){return N.x}).y(function(N){return N.y}).curve(T);let S;switch(o.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;default:S=""}switch(o.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break}const L=r.append("path").attr("d",C(E)).attr("id",o.id).attr("class"," "+S+(o.classes?" "+o.classes:"")).attr("style",o.style);let O="";switch((ht().flowchart.arrowMarkerAbsolute||ht().state.arrowMarkerAbsolute)&&(O=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,O=O.replace(/\(/g,"\\("),O=O.replace(/\)/g,"\\)")),Se.info("arrowTypeStart",o.arrowTypeStart),Se.info("arrowTypeEnd",o.arrowTypeEnd),o.arrowTypeStart){case"arrow_cross":L.attr("marker-start","url("+O+"#"+f+"-crossStart)");break;case"arrow_point":L.attr("marker-start","url("+O+"#"+f+"-pointStart)");break;case"arrow_barb":L.attr("marker-start","url("+O+"#"+f+"-barbStart)");break;case"arrow_circle":L.attr("marker-start","url("+O+"#"+f+"-circleStart)");break;case"aggregation":L.attr("marker-start","url("+O+"#"+f+"-aggregationStart)");break;case"extension":L.attr("marker-start","url("+O+"#"+f+"-extensionStart)");break;case"composition":L.attr("marker-start","url("+O+"#"+f+"-compositionStart)");break;case"dependency":L.attr("marker-start","url("+O+"#"+f+"-dependencyStart)");break;case"lollipop":L.attr("marker-start","url("+O+"#"+f+"-lollipopStart)");break}switch(o.arrowTypeEnd){case"arrow_cross":L.attr("marker-end","url("+O+"#"+f+"-crossEnd)");break;case"arrow_point":L.attr("marker-end","url("+O+"#"+f+"-pointEnd)");break;case"arrow_barb":L.attr("marker-end","url("+O+"#"+f+"-barbEnd)");break;case"arrow_circle":L.attr("marker-end","url("+O+"#"+f+"-circleEnd)");break;case"aggregation":L.attr("marker-end","url("+O+"#"+f+"-aggregationEnd)");break;case"extension":L.attr("marker-end","url("+O+"#"+f+"-extensionEnd)");break;case"composition":L.attr("marker-end","url("+O+"#"+f+"-compositionEnd)");break;case"dependency":L.attr("marker-end","url("+O+"#"+f+"-dependencyEnd)");break;case"lollipop":L.attr("marker-end","url("+O+"#"+f+"-lollipopEnd)");break}let B={};return w&&(B.updatedPath=d),B.originalPath=o.points,B},XMe=(r,i,o,l)=>{Se.info("Graph in
|
||
|
`),f.style===void 0&&(b.style=b.style||"stroke: #333; stroke-width: 1.5px;fill:none"),b.labelStyle=b.labelStyle.replace("color:","fill:"))),i.setEdge(f.id1,f.id2,b,l)})},MKt=function(r){Object.keys(r).forEach(function(o){ZMe[o]=r[o]})},DKt=function(r,i,o,l){Se.info("Drawing class - ",i);const f=ht().flowchart,b=ht().securityLevel;Se.info("config:",f);const d=f.nodeSpacing||50,w=f.rankSpacing||50,y=new zh({multigraph:!0,compound:!0}).setGraph({rankdir:l.db.getDirection(),nodesep:d,ranksep:w,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),k=l.db.getClasses(),E=l.db.getRelations(),T=l.db.getNotes();Se.info(E),CKt(k,y,i,l),AKt(E,y),SKt(T,y,E.length+1,k);let C;b==="sandbox"&&(C=Cn("#i"+i));const S=Cn(b==="sandbox"?C.nodes()[0].contentDocument.body:"body"),L=S.select(`[id="${i}"]`),O=S.select("#"+i+" g");if(xoe(O,y,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",i),Fs.insertTitle(L,"classTitleText",f.titleTopMargin,l.db.getDiagramTitle()),J8(y,L,f.diagramPadding,f.useMaxWidth),!f.htmlLabels){const B=b==="sandbox"?C.nodes()[0].contentDocument:document,N=B.querySelectorAll('[id="'+i+'"] .edgeLabel .label');for(const F of N){const R=F.getBBox(),q=B.createElementNS("http://www.w3.org/2000/svg","rect");q.setAttribute("rx",0),q.setAttribute("ry",0),q.setAttribute("width",R.width),q.setAttribute("height",R.height),F.insertBefore(q,F.firstChild)}}};function JMe(r){let i;switch(r){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}const LKt={setConf:MKt,draw:DKt};var Eoe=function(){var r=function(Z,G,ae,$){for(ae=ae||{},$=Z.length;$--;ae[Z[$]]=G);return ae},i=[1,2],o=[1,5],l=[6,9,11,23,25,27,29,30,31,51],f=[1,17],b=[1,18],d=[1,19],w=[1,20],y=[1,21],k=[1,22],E=[1,25],T=[1,30],C=[1,31],S=[1,32],L=[1,33],O=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],B=[1,45],N=[30,31,48,49],F=[4,6,9,11,23,25,27,29,30,31,51],R=[44,45,46,47],q=[22,37],X=[1,65],te=[1,64],H=[22,37,39,41],Y={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,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$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:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"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],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(G,ae,$,ge,ee,de,re){var ke=de.length-1;switch(ee){case 1:break;case 3:this.$=[];break;case 4:de[ke-1].push(de[ke]),this.$=de[ke-1];break;case 5:case 6:this.$=de[ke];break;case 7:case 8:this.$=[];break;case 12:ge.addEntity(de[ke-4]),ge.addEntity(de[ke-2]),ge.addRelationship(de[ke-4],de[ke],de[ke-2],de[ke-3]);break;case 13:ge.addEntity(de[ke-3]),g
|
||
|
`+Xe.showPosition()+`
|
||
|
Expecting `+nt.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":xn="Parse error on line "+(Ce+1)+": Unexpected "+($e==Be?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(xn,{text:Xe.match,token:this.terminals_[$e]||$e,line:Xe.yylineno,loc:Ie,expected:nt})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+$e);switch(Ae[0]){case 1:$.push($e),ee.push(Xe.yytext),de.push(Xe.yylloc),$.push(Ae[1]),$e=null,_e=Xe.yyleng,ke=Xe.yytext,Ce=Xe.yylineno,Ie=Xe.yylloc;break;case 2:if(ve=this.productions_[Ae[1]][1],me.$=ee[ee.length-ve],me._$={first_line:de[de.length-(ve||1)].first_line,last_line:de[de.length-1].last_line,first_column:de[de.length-(ve||1)].first_column,last_column:de[de.length-1].last_column},Oe&&(me._$.range=[de[de.length-(ve||1)].range[0],de[de.length-1].range[1]]),je=this.performAction.apply(me,[ke,_e,Ce,Ee.yy,Ae[1],ee,de].concat(Ge)),typeof je<"u")return je;ve&&($=$.slice(0,-1*ve*2),ee=ee.slice(0,-1*ve),de=de.slice(0,-1*ve)),$.push(this.productions_[Ae[1]][0]),ee.push(me.$),de.push(me._$),Zt=re[$[$.length-2]][$[$.length-1]],$.push(Zt);break;case 3:return!0}}return!0}},z=function(){var Z={EOF:1,parseError:function(ae,$){if(this.yy.parser)this.yy.parser.parseError(ae,$);else throw new Error(ae)},setInput:function(G,ae){return this.yy=ae||this.yy||{},this._input=G,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 G=this._input[0];this.yytext+=G,this.yyleng++,this.offset++,this.match+=G,this.matched+=G;var ae=G.match(/(?:\r\n?|\n).*/g);return ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),G},unput:function(G){var ae=G.length,$=G.split(/(?:\r\n?|\n)/g);this._input=G+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var ge=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),$.length-1&&(this.yylineno-=$.length-1);var ee=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:$?($.length===ge.length?this.yylloc.first_column:0)+ge[ge.length-$.length].length-$[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[ee[0],ee[0]+this.yyleng-ae]),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(G){this.unput(this.match.slice(G))},pastInput:function(){var G=this.matched.substr(0,this.matched.length-this.match.length);return(G.length>20?"...":"")+G.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var G=this.match;return G.length<20&&(G+=this._input.substr(0,20-G.length)),(G.substr(0,20)+(G.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var G=this.pastInput(),ae=new Array(G.length+1).join("-");return G+this.upcomingInput()+`
|
||
|
`+ae+"^"},test_match:function(G,ae){var $,ge,ee;if(this.options.backtrack_lexer&&(ee={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&&(ee.yylloc.range=this.yylloc.range.slice(0))),ge=G[0].match(/(?:\r\n?|\n).*/g),ge&&(this.yylineno+=ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ge?ge[ge.length-1].length-ge[ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+G[0].length},this.yytext+=G[0],this.match+=G[0],this.matches=G,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(G[0].length),this.matched+=G[0],$=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$)return $;if(this._backtrack){for(var de in ee)this[de]=ee[de];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var G,ae,$,ge;this._more||(this.yytext="",this.match="");for(var ee=this._currentRules(),de=0;de<ee.length;de++)if($=this._input.match(this.rules[ee[de]]),$&&(!ae||$[0].length>ae[0].length)){if(ae=$,ge=de,this.options.backtrack_lexer){if(G=this.test_match($,ee[de]),G!==!1)return G;if(this._backtrack){ae=!1;continue}else return!1}else if(!this.options.flex)break}return ae?(G=this.test_match(ae,ee[ge]),G!==!1?G:!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 ae=this.next();return ae||this.lex()},begin:function(ae){this.conditionStack.push(ae)},popState:function(){var ae=this.conditionStack.length-1;return ae>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(ae){return ae=this.conditionStack.length-1-Math.abs(ae||0),ae>=0?this.conditionStack[ae]:"INITIAL"},pushState:function(ae){this.begin(ae)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ae,$,ge,ee){switch(ge){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"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:break;case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:return 37;case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return $.yytext[0];case 30:return 44;case 31:return 46;case 32:return 46;case 33:return 46;case 34:return 44;case 35:return 44;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 45;case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:return 47;case 45:return 47;case 46:return 47;case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:return 49;case 53:return 49;case 54:return 48;case 55:return 48;case 56:return 48;case 57:return 30;case 58:return $.yytext[0];case 59: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,/^(?:[^\}]%%[^\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,/^(?:\.\.)/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:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,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,59],inclusive:!0}}};return Z}();Y.lexer=z;function W(){this.yy={}}return W.prototype=Y,Y.Parser=W,new W}();Eoe.parser=Eoe;const IKt=Eoe,OKt=r=>r.match(/^\s*erDiagram/)!==null;let BI={},_oe=[];const NKt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},PKt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},
|
||
|
`+fh.showPosition()+`
|
||
|
Expecting `+D7.join(", ")+", got '"+(this.terminals_[D1]||D1)+"'":sS="Parse error on line "+(n0+1)+": Unexpected "+(D1==tS?"end of input":"'"+(this.terminals_[D1]||D1)+"'"),this.parseError(sS,{text:fh.match,token:this.terminals_[D1]||D1,line:fh.yylineno,loc:rS,expected:D7})}if(r0[0]instanceof Array&&r0.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zm+", token: "+D1);switch(r0[0]){case 1:ra.push(D1),au.push(fh.yytext),gt.push(fh.yylloc),ra.push(r0[1]),D1=null,jO=fh.yyleng,It=fh.yytext,n0=fh.yylineno,rS=fh.yylloc;break;case 2:if(H2=this.productions_[r0[1]][1],w4.$=au[au.length-H2],w4._$={first_line:gt[gt.length-(H2||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(H2||1)].first_column,last_column:gt[gt.length-1].last_column},$O&&(w4._$.range=[gt[gt.length-(H2||1)].range[0],gt[gt.length-1].range[1]]),iS=this.performAction.apply(w4,[It,jO,n0,Qm.yy,r0[1],au,gt].concat(iq)),typeof iS<"u")return iS;H2&&(ra=ra.slice(0,-1*H2*2),au=au.slice(0,-1*H2),gt=gt.slice(0,-1*H2)),ra.push(this.productions_[r0[1]][0]),au.push(w4.$),gt.push(w4._$),HO=O6[ra[ra.length-2]][ra[ra.length-1]],ra.push(HO);break;case 3:return!0}}return!0}},bd=function(){var tg={EOF:1,parseError:function(Bi,ra){if(this.yy.parser)this.yy.parser.parseError(Bi,ra);else throw new Error(Bi)},setInput:function(Di,Bi){return this.yy=Bi||this.yy||{},this._input=Di,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 Di=this._input[0];this.yytext+=Di,this.yyleng++,this.offset++,this.match+=Di,this.matched+=Di;var Bi=Di.match(/(?:\r\n?|\n).*/g);return Bi?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Di},unput:function(Di){var Bi=Di.length,ra=Di.split(/(?:\r\n?|\n)/g);this._input=Di+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bi),this.offset-=Bi;var Rr=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),ra.length-1&&(this.yylineno-=ra.length-1);var au=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:ra?(ra.length===Rr.length?this.yylloc.first_column:0)+Rr[Rr.length-ra.length].length-ra[0].length:this.yylloc.first_column-Bi},this.options.ranges&&(this.yylloc.range=[au[0],au[0]+this.yyleng-Bi]),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(Di){this.unput(this.match.slice(Di))},pastInput:function(){var Di=this.matched.substr(0,this.matched.length-this.match.length);return(Di.length>20?"...":"")+Di.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Di=this.match;return Di.length<20&&(Di+=this._input.substr(0,20-Di.length)),(Di.substr(0,20)+(Di.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Di=this.pastInput(),Bi=new Array(Di.length+1).join("-");return Di+this.upcomingInput()+`
|
||
|
`+Bi+"^"},test_match:function(Di,Bi){var ra,Rr,au;if(this.options.backtrack_lexer&&(au={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&&(au.yylloc.range=this.yylloc.range.slice(0))),Rr=Di[0].match(/(?:\r\n?|\n).*/g),Rr&&(this.yylineno+=Rr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Rr?Rr[Rr.length-1].length-Rr[Rr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Di[0].length},this.yytext+=Di[0],this.match+=Di[0],this.matches=Di,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(Di[0].length),this.matched+=Di[0],ra=this.performAction.call(this,this.yy,this,Bi,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ra)return ra;if(this._backtrack){for(var gt in au)this[gt]=au[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Di,Bi,ra,Rr;this._more||(this.yytext="",this.match="");for(var au=this._currentRules(),gt=0;gt<au.length;gt++)if(ra=this._input.match(this.rules[au[gt]]),ra&&(!Bi||ra[0].length>Bi[0].length)){if(Bi=ra,Rr=gt,this.options.backtrack_lexer){if(Di=this.test_match(ra,au[gt]),Di!==!1)return Di;if(this._backtrack){Bi=!1;continue}else return!1}else if(!this.options.flex)break}return Bi?(Di=this.test_match(Bi,au[Rr]),Di!==!1?Di:!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 Bi=this.next();return Bi||this.lex()},begin:function(Bi){this.conditionStack.push(Bi)},popState:function(){var Bi=this.conditionStack.length-1;return Bi>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(Bi){return Bi=this.conditionStack.length-1-Math.abs(Bi||0),Bi>=0?this.conditionStack[Bi]:"INITIAL"},pushState:function(Bi){this.begin(Bi)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Bi,ra,Rr,au){switch(Rr){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:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return Bi.lex.firstGraph()&&this.begin("dir"),24;case 36:return Bi.lex.firstGraph()&&this.begin("dir"),24;case 37:return Bi.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;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 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/
|
||
|
`),f=0;f<l.length;f++)o.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(l[f]);return Hm(o,i.labelStyle),o}function EXt(r){for(var i="",o=!1,l,f=0;f<r.length;++f)if(l=r[f],o){switch(l){case"n":i+=`
|
||
|
`;break;default:i+=l}o=!1}else l==="\\"?o=!0:i+=l;return i}function Ooe(r,i,o){var l=i.label,f=r.append("g");i.labelType==="svg"?kXt(f,i):typeof l!="string"||i.labelType==="html"?$V(f,i):xXt(f,i);var b=f.node().getBBox(),d;switch(o){case"top":d=-i.height/2;break;case"bottom":d=i.height/2-b.height;break;default:d=-b.height/2}return f.attr("transform","translate("+-b.width/2+","+d+")"),f}var Noe=function(r,i){var o=i.nodes().filter(function(b){return BDe(i,b)}),l=r.selectAll("g.cluster").data(o,function(b){return b});$v(l.exit(),i).style("opacity",0).remove();var f=l.enter().append("g").attr("class","cluster").attr("id",function(b){var d=i.node(b);return d.id}).style("opacity",0).each(function(b){var d=i.node(b),w=Cn(this);Cn(this).append("rect");var y=w.append("g").attr("class","label");Ooe(y,d,d.clusterLabelPos)});return l=l.merge(f),l=$v(l,i).style("opacity",1),l.selectAll("rect").each(function(b){var d=i.node(b),w=Cn(this);Hm(w,d.style)}),l};function _Xt(r){Noe=r}let Poe=function(r,i){var o=r.selectAll("g.edgeLabel").data(i.edges(),function(f){return FDe(f)}).classed("update",!0);o.exit().remove(),o.enter().append("g").classed("edgeLabel",!0).style("opacity",0),o=r.selectAll("g.edgeLabel"),o.each(function(f){var b=Cn(this);b.select(".label").remove();var d=i.edge(f),w=Ooe(b,i.edge(f),0).classed("label",!0),y=w.node().getBBox();d.labelId&&w.attr("id",d.labelId),Ks(d,"width")||(d.width=y.width),Ks(d,"height")||(d.height=y.height)});var l;return o.exit?l=o.exit():l=o.selectAll(null),$v(l,i).style("opacity",0).remove(),o};function TXt(r){Poe=r}function jDe(r,i){return r.intersect(i)}var Boe=function(r,i,o){var l=r.selectAll("g.edgePath").data(i.edges(),function(d){return FDe(d)}).classed("update",!0),f=DXt(l,i);LXt(l,i);var b=l.merge!==void 0?l.merge(f):l;return $v(b,i).style("opacity",1),b.each(function(d){var w=Cn(this),y=i.edge(d);y.elem=this,y.id&&w.attr("id",y.id),RDe(w,y.class,(w.classed("update")?"update ":"")+"edgePath")}),b.selectAll("path.path").each(function(d){var w=i.edge(d);w.arrowheadId=TV("arrowhead");var y=Cn(this).attr("marker-end",function(){return"url("+SXt(location.href,w.arrowheadId)+")"}).style("fill","none");$v(y,i).attr("d",function(k){return AXt(i,k)}),Hm(y,w.style)}),b.selectAll("defs *").remove(),b.selectAll("defs").each(function(d){var w=i.edge(d),y=o[w.arrowhead];y(Cn(this),w.arrowheadId,w,"arrowhead")}),b};function CXt(r){Boe=r}function SXt(r,i){var o=r.split("#")[0];return o+"#"+i}function AXt(r,i){var o=r.edge(i),l=r.node(i.v),f=r.node(i.w),b=o.points.slice(1,o.points.length-1);return b.unshift(jDe(l,b[0])),b.push(jDe(f,b[b.length-1])),$De(o,b)}function $De(r,i){var o=(V8||FIt.line)().x(function(l){return l.x}).y(function(l){return l.y});return(o.curve||o.interpolate)(r.curve),o(i)}function MXt(r){var i=r.getBBox(),o=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(i.width/2,i.height/2);return{x:o.e,y:o.f}}function DXt(r,i){var o=r.enter().append("g").attr("class","edgePath").style("opacity",0);return o.append("path").attr("class","path").attr("d",function(l){var f=i.edge(l),b=i.node(l.v).elem,d=c7(f.points.length).map(function(){return MXt(b)});return $De(f,d)}),o.append("defs"),o}function LXt(r,i){var o=r.exit();$v(o,i).style("opacity",0).remove()}var Foe=function(r,i,o){var l=i.nodes().filter(function(d){return!BDe(i,d)}),f=r.selectAll("g.node").data(l,function(d){return d}).classed("update",!0);f.exit().remove(),f.enter().append("g").attr("class","node").style("opacity",0),f=r.selectAll("g.node"),f.each(function(d){var w=i.node(d),y=Cn(this);RDe(y,w.class,(y.classed("update")?"update ":"")+"node"),y.select("g.label").remove();var k=y.append("g").attr("class","label"),E=Ooe(k,w),T=o[w.shape],C=AI(E.node().getBBox(),"width","height");w.elem=this,w.id&&y.attr("id",w.id),w.labelId&&k.attr("id",w.labelId),Ks(w,"width")&&(C.width=w.width),Ks(w,"height")&&(C.height=w.height),C.width+=w.paddingLeft+w.paddingRight,C.height+=w.paddingTop+w.paddingBottom,k.attr("transform","translate("+(w.paddingLeft-w.paddingRight)/2+","+(w.paddingTop-w.paddingBottom)/2+")");var S=
|
||
|
`),d.style===void 0&&(E.style=E.style||"stroke: #333; stroke-width: 1.5px;fill:none"),E.labelStyle=E.labelStyle.replace("color:","fill:"))),E.id=w,E.class=y+" "+k,E.minlen=d.length||1,i.setEdge(o.db.lookUpDomId(d.start),o.db.lookUpDomId(d.end),E,l)})},ZXt={setConf:QXt,addVertices:tLe,addEdges:nLe,getClasses:function(r,i){Se.info("Extracting classes"),i.db.clear();try{return i.parse(r),i.db.getClasses()}catch(o){return Se.error(o),{}}},draw:function(r,i,o,l){Se.info("Drawing flowchart"),l.db.clear();const{securityLevel:f,flowchart:b}=ht();let d;f==="sandbox"&&(d=Cn("#i"+i));const w=Cn(f==="sandbox"?d.nodes()[0].contentDocument.body:"body"),y=f==="sandbox"?d.nodes()[0].contentDocument:document;try{l.parser.parse(r)}catch{Se.debug("Parsing failed")}let k=l.db.getDirection();k===void 0&&(k="TD");const E=b.nodeSpacing||50,T=b.rankSpacing||50,C=new zh({multigraph:!0,compound:!0}).setGraph({rankdir:k,nodesep:E,ranksep:T,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let S;const L=l.db.getSubGraphs();for(let te=L.length-1;te>=0;te--)S=L[te],l.db.addVertex(S.id,S.title,"group",void 0,S.classes);const O=l.db.getVertices();Se.warn("Get vertices",O);const B=l.db.getEdges();let N=0;for(N=L.length-1;N>=0;N--){S=L[N],ose("cluster").append("text");for(let te=0;te<S.nodes.length;te++)Se.warn("Setting subgraph",S.nodes[te],l.db.lookUpDomId(S.nodes[te]),l.db.lookUpDomId(S.id)),C.setParent(l.db.lookUpDomId(S.nodes[te]),l.db.lookUpDomId(S.id))}tLe(O,C,i,w,y,l),nLe(B,C,l);const F=new GXt;XXt.addToRender(F),F.arrows().none=function(H,Y,z,W){const G=H.append("marker").attr("id",Y).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");Hm(G,z[W+"Style"])},F.arrows().normal=function(H,Y){H.append("marker").attr("id",Y).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 R=w.select(`[id="${i}"]`),q=w.select("#"+i+" g");for(F(q,C),q.selectAll("g.node").attr("title",function(){return l.db.getTooltip(this.id)}),l.db.indexNodes("subGraph"+N),N=0;N<L.length;N++)if(S=L[N],S.title!=="undefined"){const te=y.querySelectorAll("#"+i+' [id="'+l.db.lookUpDomId(S.id)+'"] rect'),H=y.querySelectorAll("#"+i+' [id="'+l.db.lookUpDomId(S.id)+'"]'),Y=te[0].x.baseVal.value,z=te[0].y.baseVal.value,W=te[0].width.baseVal.value,G=Cn(H[0]).select(".label");G.attr("transform",`translate(${Y+W/2}, ${z+14})`),G.attr("id",i+"Text");for(let ae=0;ae<S.classes.length;ae++)H[0].classList.add(S.classes[ae])}if(!b.htmlLabels){const te=y.querySelectorAll('[id="'+i+'"] .edgeLabel .label');for(const H of te){const Y=H.getBBox(),z=y.createElementNS("http://www.w3.org/2000/svg","rect");z.setAttribute("rx",0),z.setAttribute("ry",0),z.setAttribute("width",Y.width),z.setAttribute("height",Y.height),H.insertBefore(z,H.firstChild)}}J8(C,R,b.diagramPadding,b.useMaxWidth),Object.keys(O).forEach(function(te){const H=O[te];if(H.link){const Y=w.select("#"+i+' [id="'+l.db.lookUpDomId(te)+'"]');if(Y){const z=y.createElementNS("http://www.w3.org/2000/svg","a");z.setAttributeNS("http://www.w3.org/2000/svg","class",H.classes.join(" ")),z.setAttributeNS("http://www.w3.org/2000/svg","href",H.link),z.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),f==="sandbox"?z.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):H.linkTarget&&z.setAttributeNS("http://www.w3.org/2000/svg","target",H.linkTarget);const W=Y.insert(function(){return z},":first-child"),Z=Y.select(".label-container");Z&&W.append(function(){return Z.node()});const G=Y.select(".label");G&&W.append(function(){return G.node()})}}})}},rLe={},JXt=function(r){const i=Object.keys(r);for(const o of i)rLe[o]=r[o]},iLe=function(r,i,o,l,f,b){const d=l.select(`[id="${o}"]`);Object.keys(r).forEach(function(y){const k=r[y];let
|
||
|
`),w.style===void 0&&(C.style=C.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),C.labelStyle=C.labelStyle.replace("color:","fill:"),C.id=k,C.classes="flowchart-link "+E+" "+T,i.setEdge(w.start,w.end,C,l)})},$oe={setConf:JXt,addVertices:iLe,addEdges:sLe,getClasses:function(r,i){Se.info("Extracting classes"),i.db.clear();try{return i.parse(r),i.db.getClasses()}catch{return}},draw:function(r,i,o,l){Se.info("Drawing flowchart"),l.db.clear(),$m.setGen("gen-2"),l.parser.parse(r);let f=l.db.getDirection();f===void 0&&(f="TD");const{securityLevel:b,flowchart:d}=ht(),w=d.nodeSpacing||50,y=d.rankSpacing||50;let k;b==="sandbox"&&(k=Cn("#i"+i));const E=Cn(b==="sandbox"?k.nodes()[0].contentDocument.body:"body"),T=b==="sandbox"?k.nodes()[0].contentDocument:document,C=new zh({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:w,ranksep:y,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let S;const L=l.db.getSubGraphs();Se.info("Subgraphs - ",L);for(let X=L.length-1;X>=0;X--)S=L[X],Se.info("Subgraph - ",S),l.db.addVertex(S.id,S.title,"group",void 0,S.classes,S.dir);const O=l.db.getVertices(),B=l.db.getEdges();Se.info("Edges",B);let N=0;for(N=L.length-1;N>=0;N--){S=L[N],ose("cluster").append("text");for(let X=0;X<S.nodes.length;X++)Se.info("Setting up subgraphs",S.nodes[X],S.id),C.setParent(S.nodes[X],S.id)}iLe(O,C,i,E,T,l),sLe(B,C);const F=E.select(`[id="${i}"]`),R=E.select("#"+i+" g");if(xoe(R,C,["point","circle","cross"],"flowchart",i),Fs.insertTitle(F,"flowchartTitleText",d.titleTopMargin,l.db.getDiagramTitle()),J8(C,F,d.diagramPadding,d.useMaxWidth),l.db.indexNodes("subGraph"+N),!d.htmlLabels){const X=T.querySelectorAll('[id="'+i+'"] .edgeLabel .label');for(const te of X){const H=te.getBBox(),Y=T.createElementNS("http://www.w3.org/2000/svg","rect");Y.setAttribute("rx",0),Y.setAttribute("ry",0),Y.setAttribute("width",H.width),Y.setAttribute("height",H.height),te.insertBefore(Y,te.firstChild)}}Object.keys(O).forEach(function(X){const te=O[X];if(te.link){const H=Cn("#"+i+' [id="'+X+'"]');if(H){const Y=T.createElementNS("http://www.w3.org/2000/svg","a");Y.setAttributeNS("http://www.w3.org/2000/svg","class",te.classes.join(" ")),Y.setAttributeNS("http://www.w3.org/2000/svg","href",te.link),Y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),b==="sandbox"?Y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):te.linkTarget&&Y.setAttributeNS("http://www.w3.org/2000/svg","target",te.linkTarget);const z=H.insert(function(){return Y},":first-child"),W=H.select(".label-container");W&&z.append(function(){return W.node()});const Z=H.select(".label");Z&&z.append(function(){return Z.node()})}}})}};var Hoe=function(){var r=function(Y,z,W,Z){for(W=W||{},Z=Y.length;Z--;W[Y[Z]]=z);return W},i=[1,3],o=[1,5],l=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],f=[1,15],b=[1,16],d=[1,17],w=[1,18],y=[1,19],k=[1,20],E=[1,21],T=[1,22],C=[1,23],S=[1,24],L=[1,25],O=[1,26],B=[1,27],N=[1,29],F=[1,31],R=[1,34],q=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],X={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",4
|
||
|
`+Te.showPosition()+`
|
||
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":ve="Parse error on line "+(de+1)+": Unexpected "+(Ie==Ce?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(ve,{text:Te.match,token:this.terminals_[Ie]||Ie,line:Te.yylineno,loc:Xe,expected:vt})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+Ie);switch(Le[0]){case 1:Z.push(Ie),ae.push(Te.yytext),$.push(Te.yylloc),Z.push(Le[1]),Ie=null,re=Te.yyleng,ee=Te.yytext,de=Te.yylineno,Xe=Te.yylloc;break;case 2:if(je=this.productions_[Le[1]][1],xe.$=ae[ae.length-je],xe._$={first_line:$[$.length-(je||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(je||1)].first_column,last_column:$[$.length-1].last_column},Ee&&(xe._$.range=[$[$.length-(je||1)].range[0],$[$.length-1].range[1]]),$e=this.performAction.apply(xe,[ee,re,de,Be.yy,Le[1],ae,$].concat(_e)),typeof $e<"u")return $e;je&&(Z=Z.slice(0,-1*je*2),ae=ae.slice(0,-1*je),$=$.slice(0,-1*je)),Z.push(this.productions_[Le[1]][0]),ae.push(xe.$),$.push(xe._$),me=ge[Z[Z.length-2]][Z[Z.length-1]],Z.push(me);break;case 3:return!0}}return!0}},te=function(){var Y={EOF:1,parseError:function(W,Z){if(this.yy.parser)this.yy.parser.parseError(W,Z);else throw new Error(W)},setInput:function(z,W){return this.yy=W||this.yy||{},this._input=z,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 z=this._input[0];this.yytext+=z,this.yyleng++,this.offset++,this.match+=z,this.matched+=z;var W=z.match(/(?:\r\n?|\n).*/g);return W?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),z},unput:function(z){var W=z.length,Z=z.split(/(?:\r\n?|\n)/g);this._input=z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-W),this.offset-=W;var G=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),Z.length-1&&(this.yylineno-=Z.length-1);var ae=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:Z?(Z.length===G.length?this.yylloc.first_column:0)+G[G.length-Z.length].length-Z[0].length:this.yylloc.first_column-W},this.options.ranges&&(this.yylloc.range=[ae[0],ae[0]+this.yyleng-W]),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(z){this.unput(this.match.slice(z))},pastInput:function(){var z=this.matched.substr(0,this.matched.length-this.match.length);return(z.length>20?"...":"")+z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var z=this.match;return z.length<20&&(z+=this._input.substr(0,20-z.length)),(z.substr(0,20)+(z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var z=this.pastInput(),W=new Array(z.length+1).join("-");return z+this.upcomingInput()+`
|
||
|
`+W+"^"},test_match:function(z,W){var Z,G,ae;if(this.options.backtrack_lexer&&(ae={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&&(ae.yylloc.range=this.yylloc.range.slice(0))),G=z[0].match(/(?:\r\n?|\n).*/g),G&&(this.yylineno+=G.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:G?G[G.length-1].length-G[G.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+z[0].length},this.yytext+=z[0],this.match+=z[0],this.matches=z,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(z[0].length),this.matched+=z[0],Z=this.performAction.call(this,this.yy,this,W,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var $ in ae)this[$]=ae[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var z,W,Z,G;this._more||(this.yytext="",this.match="");for(var ae=this._currentRules(),$=0;$<ae.length;$++)if(Z=this._input.match(this.rules[ae[$]]),Z&&(!W||Z[0].length>W[0].length)){if(W=Z,G=$,this.options.backtrack_lexer){if(z=this.test_match(Z,ae[$]),z!==!1)return z;if(this._backtrack){W=!1;continue}else return!1}else if(!this.options.flex)break}return W?(z=this.test_match(W,ae[G]),z!==!1?z:!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 W=this.next();return W||this.lex()},begin:function(W){this.conditionStack.push(W)},popState:function(){var W=this.conditionStack.length-1;return W>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(W){return W=this.conditionStack.length-1-Math.abs(W||0),W>=0?this.conditionStack[W]:"INITIAL"},pushState:function(W){this.begin(W)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(W,Z,G,ae){switch(G){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 Y}();X.lexer=te;function H(){this.yy={}}return H.prototype=X,X.Parser=H,new H}();Hoe.parser=Hoe;const eQt=Hoe,tQt=r=>r.match(/^\s*gantt/)!==null;let Gm="",zoe="",Goe,Voe="",HI=[],zI=[],Uoe={},qoe=[],HV=[],mC="";const aLe=["active","done","crit","milestone"];let Yoe=[],GI=!1,Woe=!1,Koe=0;const nQt=function(r,i,o){Bu.parseDirective(this,r,i,o)},rQt=function(){qoe=[],HV=[],mC="",Yoe=[],zV=0,Qoe=void 0,GV=void 0,ff=[],Gm="",zoe="",Goe=
|
||
|
`+R.showPosition()+`
|
||
|
Expecting `+de.join(", ")+", got '"+(this.terminals_[z]||z)+"'":re="Parse error on line "+(L+1)+": Unexpected "+(z==N?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(re,{text:R.match,token:this.terminals_[z]||z,line:R.yylineno,loc:te,expected:de})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+z);switch(Z[0]){case 1:y.push(z),E.push(R.yytext),T.push(R.yylloc),y.push(Z[1]),z=null,O=R.yyleng,S=R.yytext,L=R.yylineno,te=R.yylloc;break;case 2:if(ge=this.productions_[Z[1]][1],ae.$=E[E.length-ge],ae._$={first_line:T[T.length-(ge||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(ge||1)].first_column,last_column:T[T.length-1].last_column},H&&(ae._$.range=[T[T.length-(ge||1)].range[0],T[T.length-1].range[1]]),G=this.performAction.apply(ae,[S,O,L,q.yy,Z[1],E,T].concat(F)),typeof G<"u")return G;ge&&(y=y.slice(0,-1*ge*2),E=E.slice(0,-1*ge),T=T.slice(0,-1*ge)),y.push(this.productions_[Z[1]][0]),E.push(ae.$),T.push(ae._$),ee=C[y[y.length-2]][y[y.length-1]],y.push(ee);break;case 3:return!0}}return!0}},l=function(){var b={EOF:1,parseError:function(w,y){if(this.yy.parser)this.yy.parser.parseError(w,y);else throw new Error(w)},setInput:function(d,w){return this.yy=w||this.yy||{},this._input=d,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 d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var w=d.length,y=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=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),y.length-1&&(this.yylineno-=y.length-1);var E=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:y?(y.length===k.length?this.yylloc.first_column:0)+k[k.length-y.length].length-y[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-w]),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(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),w=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
||
|
`+w+"^"},test_match:function(d,w){var y,k,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),k=d[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],y=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var T in E)this[T]=E[T];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,w,y,k;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),T=0;T<E.length;T++)if(y=this._input.match(this.rules[E[T]]),y&&(!w||y[0].length>w[0].length)){if(w=y,k=T,this.options.backtrack_lexer){if(d=this.test_match(y,E[T]),d!==!1)return d;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(d=this.test_match(w,E[k]),d!==!1?d:!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 w=this.next();return w||this.lex()},begin:function(w){this.conditionStack.push(w)},popState:function(){var w=this.conditionStack.length-1;return w>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(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,y,k,E){switch(k){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 b}();o.lexer=l;function f(){this.yy={}}return f.prototype=o,o.Parser=f,new f}();Joe.parser=Joe;const OQt=Joe;var bLe="",vLe=!1;const NQt={setMessage:r=>{Se.debug("Setting message to: "+r),bLe=r},getMessage:()=>bLe,setInfo:r=>{vLe=r},getInfo:()=>vLe,clear:W0},PQt={draw:(r,i,o)=>{try{Se.debug(`Rendering info diagram
|
||
|
`+r);const l=ht().securityLevel;let f;l==="sandbox"&&(f=Cn("#i"+i));const d=Cn(l==="sandbox"?f.nodes()[0].contentDocument.body:"body").select("#"+i);d.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+o),d.attr("height",100),d.attr("width",400)}catch(l){Se.error("Error while rendering info diagram"),Se.error(l.message)}}},BQt=r=>r.match(/^\s*info/)!==null;var ece=function(){var r=function(te,H,Y,z){for(Y=Y||{},z=te.length;z--;Y[te[z]]=H);return Y},i=[1,4],o=[1,5],l=[1,6],f=[1,7],b=[1,9],d=[1,11,13,15,17,19,20,26,27,28,29],w=[2,5],y=[1,6,11,13,15,17,19,20,26,27,28,29],k=[26,27,28],E=[2,8],T=[1,18],C=[1,19],S=[1,20],L=[1,21],O=[1,22],B=[1,23],N=[1,28],F=[6,26,27,28,29],R={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(H,Y,z,W,Z,G,ae){var $=G.length-1;switch(Z){case 4:W.setShowData(!0);break;case 7:this.$=G[$-1];break;case 9:W.addSection(G[$-1],W.cleanupValue(G[$]));break;case 10:this.$=G[$].trim(),W.setDiagramTitle(this.$);break;case 11:this.$=G[$].trim(),W.setAccTitle(this.$);break;case 12:case 13:this.$=G[$].trim(),W.setAccDescription(this.$);break;case 14:W.addSection(G[$].substr(8)),this.$=G[$].substr(8);break;case 21:W.parseDirective("%%{","open_directive");break;case 22:W.parseDirective(G[$],"type_directive");break;case 23:G[$]=G[$].trim().replace(/'/g,'"'),W.parseDirective(G[$],"arg_directive");break;case 24:W.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:i,21:8,26:o,27:l,28:f,29:b},{1:[3]},{3:10,4:2,5:3,6:i,21:8,26:o,27:l,28:f,29:b},{3:11,4:2,5:3,6:i,21:8,26:o,27:l,28:f,29:b},r(d,w,{7:12,8:[1,13]}),r(y,[2,18]),r(y,[2,19]),r(y,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},r(k,E,{21:8,9:16,10:17,5:24,1:[2,3],11:T,13:C,15:S,17:L,19:O,20:B,29:b}),r(d,w,{7:25}),{23:26,24:[1,27],32:N},r([24,32],[2,22]),r(d,[2,6]),{4:29,26:o,27:l,28:f},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},r(k,[2,13]),r(k,[2,14]),r(k,[2,15]),r(k,E,{21:8,9:16,10:17,5:24,1:[2,4],11:T,13:C,15:S,17:L,19:O,20:B,29:b}),r(F,[2,16]),{25:34,31:[1,35]},r(F,[2,24]),r(d,[2,7]),r(k,[2,9]),r(k,[2,10]),r(k,[2,11]),r(k,[2,12]),{23:36,32:N},{32:[2,23]},r(F,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(H,Y){if(Y.recoverable)this.trace(H);else{var z=new Error(H);throw z.hash=Y,z}},parse:function(H){var Y=this,z=[0],W=[],Z=[null],G=[],ae=this.table,$="",ge=0,ee=0,de=2,re=1,ke=G.slice.call(arguments,1),Ce=Object.create(this.lexer),_e={yy:{}};for(var Te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Te)&&(_e.yy[Te]=this.yy[Te]);Ce.setInput(H,_e.yy),_e.yy.lexer=Ce,_e.yy.parser=this,typeof Ce.yylloc>"u"&&(Ce.yylloc={});var Be=Ce.yylloc;G.push(Be);var Ge=Ce.options&&Ce.options.ranges;typeof _e.yy.parseError=="function"?this.parseError=_e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var vt;return vt=W.pop()||Ce.lex()||re,typeof vt!="number"&&(vt instanceof Array&&(W=vt,vt=W.pop()),vt=Y.symbols_[vt]||vt),vt}for(var Ee,Ze,Ie,Oe,Le={},$e,xe,Ae,je;;){if(Ze=z[z.length-1],this.defaultActions[Ze]?Ie=this.defaultActions[Ze]:((Ee===null||typeof Ee>"u")&&(Ee=
|
||
|
`+Ce.showPosition()+`
|
||
|
Expecting `+je.join(", ")+", got '"+(this.terminals_[Ee]||Ee)+"'":me="Parse error on line "+(ge+1)+": Unexpected "+(Ee==re?"end of input":"'"+(this.terminals_[Ee]||Ee)+"'"),this.parseError(me,{text:Ce.match,token:this.terminals_[Ee]||Ee,line:Ce.yylineno,loc:Be,expected:je})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ze+", token: "+Ee);switch(Ie[0]){case 1:z.push(Ee),Z.push(Ce.yytext),G.push(Ce.yylloc),z.push(Ie[1]),Ee=null,ee=Ce.yyleng,$=Ce.yytext,ge=Ce.yylineno,Be=Ce.yylloc;break;case 2:if(xe=this.productions_[Ie[1]][1],Le.$=Z[Z.length-xe],Le._$={first_line:G[G.length-(xe||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(xe||1)].first_column,last_column:G[G.length-1].last_column},Ge&&(Le._$.range=[G[G.length-(xe||1)].range[0],G[G.length-1].range[1]]),Oe=this.performAction.apply(Le,[$,ee,ge,_e.yy,Ie[1],Z,G].concat(ke)),typeof Oe<"u")return Oe;xe&&(z=z.slice(0,-1*xe*2),Z=Z.slice(0,-1*xe),G=G.slice(0,-1*xe)),z.push(this.productions_[Ie[1]][0]),Z.push(Le.$),G.push(Le._$),Ae=ae[z[z.length-2]][z[z.length-1]],z.push(Ae);break;case 3:return!0}}return!0}},q=function(){var te={EOF:1,parseError:function(Y,z){if(this.yy.parser)this.yy.parser.parseError(Y,z);else throw new Error(Y)},setInput:function(H,Y){return this.yy=Y||this.yy||{},this._input=H,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 H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var Y=H.match(/(?:\r\n?|\n).*/g);return Y?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var Y=H.length,z=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Y),this.offset-=Y;var W=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),z.length-1&&(this.yylineno-=z.length-1);var Z=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:z?(z.length===W.length?this.yylloc.first_column:0)+W[W.length-z.length].length-z[0].length:this.yylloc.first_column-Y},this.options.ranges&&(this.yylloc.range=[Z[0],Z[0]+this.yyleng-Y]),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(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),Y=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
|
||
|
`+Y+"^"},test_match:function(H,Y){var z,W,Z;if(this.options.backtrack_lexer&&(Z={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&&(Z.yylloc.range=this.yylloc.range.slice(0))),W=H[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,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(H[0].length),this.matched+=H[0],z=this.performAction.call(this,this.yy,this,Y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var G in Z)this[G]=Z[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,Y,z,W;this._more||(this.yytext="",this.match="");for(var Z=this._currentRules(),G=0;G<Z.length;G++)if(z=this._input.match(this.rules[Z[G]]),z&&(!Y||z[0].length>Y[0].length)){if(Y=z,W=G,this.options.backtrack_lexer){if(H=this.test_match(z,Z[G]),H!==!1)return H;if(this._backtrack){Y=!1;continue}else return!1}else if(!this.options.flex)break}return Y?(H=this.test_match(Y,Z[W]),H!==!1?H:!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 Y=this.next();return Y||this.lex()},begin:function(Y){this.conditionStack.push(Y)},popState:function(){var Y=this.conditionStack.length-1;return Y>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(Y){return Y=this.conditionStack.length-1-Math.abs(Y||0),Y>=0?this.conditionStack[Y]:"INITIAL"},pushState:function(Y){this.begin(Y)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Y,z,W,Z){switch(W){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 te}();R.lexer=q;function X(){this.yy={}}return X.prototype=R,R.Parser=X,new X}();ece.parser=ece;const FQt=ece,RQt=r=>r.match(/^\s*pie/)!==null||r.match(/^\s*bar/)!==null;let VV={},tce=!1;const jQt={parseDirective:function(r,i,o){Bu.parseDirective(this,r,i,o)},getConfig:()=>ht().pie,addSection:function(r,i){r=Cs.sanitizeText(r,ht()),VV[r]===void 0&&(VV[r]=i,Se.debug("Added new section :",r))},getSections:()=>VV,cleanupValue:function(r){return r.substring(0,1)===":"&&(r=r.substring(1).trim()),Number(r.trim())},clear:function(){VV={},tce=!1,W0()},setAccTitle:K0,getAccTitle:hp,setDiagramTitle:Ov,getDiagramTitle:Nv,setShowData:function(r){tce=r},getShowData:function(){return tce},getAccDescription:dp,setAccDescription:fp};let a4=ht(),o4;const VI=450,$Qt={draw:(r,i,o,l)=>{try{a4=ht(),Se.debug(`Rendering info diagram
|
||
|
`+r);const F=ht().securityLevel;let R;F==="sandbox"&&(R=Cn("#i"+i));const q=Cn(F==="sandbox"?R.nodes()[0].contentDocument.body:"body"),X=F==="sandbox"?R.nodes()[0].contentDocument:document;l.db.clear(),l.parser.parse(r),Se.debug("Parsed info diagram");const te=X.getElementById(i);o4=te.parentElement.offsetWidth,o4===void 0&&(o4=1200),a4.useWidth!==void 0&&(o4=a4.useWidth),a4.pie.useWidth!==void 0&&(o4=a4.pie.useWidth);const H=q.select("#"+i);Iv(H,VI,o4,a4.pie.useMaxWidth),te.setAttribute("viewBox","0 0 "+o4+" "+VI);var f=40,b=18,d=4,w=Math.min(o4,VI)/2-f,y=H.append("g").attr("transform","translate("+o4/2+","+VI/2+")"),k=l.db.getSections(),E=0;Object.keys(k).forEach(function(z){E+=k[z]});const Y=a4.themeVariables;var T=[Y.pie1,Y.pie2,Y.pie3,Y.pie4,Y.pie5,Y.pie6,Y.pie7,Y.pie8,Y.pie9,Y.pie10,Y.pie11,Y.pie12],C=tTe().range(T),S=Object.entries(k).map(function(z,W){return{order:W,name:z[0],value:z[1]}}),L=NNt().value(function(z){return z.value}).sort(function(z,W){return z.order-W.order}),O=L(S),B=ZL().innerRadius(0).outerRadius(w);y.selectAll("mySlices").data(O).enter().append("path").attr("d",B).attr("fill",function(z){return C(z.data.name)}).attr("class","pieCircle"),y.selectAll("mySlices").data(O).enter().append("text").text(function(z){return(z.data.value/E*100).toFixed(0)+"%"}).attr("transform",function(z){return"translate("+B.centroid(z)+")"}).style("text-anchor","middle").attr("class","slice"),y.append("text").text(l.db.getDiagramTitle()).attr("x",0).attr("y",-(VI-50)/2).attr("class","pieTitleText");var N=y.selectAll(".legend").data(C.domain()).enter().append("g").attr("class","legend").attr("transform",function(z,W){const Z=b+d,G=Z*C.domain().length/2,ae=12*b,$=W*Z-G;return"translate("+ae+","+$+")"});N.append("rect").attr("width",b).attr("height",b).style("fill",C).style("stroke",C),N.data(O).append("text").attr("x",b+d).attr("y",b-d).text(function(z){return l.db.getShowData()||a4.showData||a4.pie.showData?z.data.name+" ["+z.data.value+"]":z.data.name})}catch(F){Se.error("Error while rendering info diagram"),Se.error(F)}}};var nce=function(){var r=function(Ze,Ie,Oe,Le){for(Oe=Oe||{},Le=Ze.length;Le--;Oe[Ze[Le]]=Ie);return Oe},i=[1,3],o=[1,5],l=[1,6],f=[1,7],b=[1,8],d=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],w=[1,22],y=[2,13],k=[1,26],E=[1,27],T=[1,28],C=[1,29],S=[1,30],L=[1,31],O=[1,24],B=[1,32],N=[1,33],F=[1,36],R=[71,72],q=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],X=[1,56],te=[1,57],H=[1,58],Y=[1,59],z=[1,60],W=[1,61],Z=[1,62],G=[62,63],ae=[1,74],$=[1,70],ge=[1,71],ee=[1,72],de=[1,73],re=[1,75],ke=[1,79],Ce=[1,80],_e=[1,77],Te=[1,78],Be=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Ge={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,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42
|
||
|
`+cn.showPosition()+`
|
||
|
Expecting `+Kn.join(", ")+", got '"+(this.terminals_[Yt]||Yt)+"'":Jt="Parse error on line "+(vt+1)+": Unexpected "+(Yt==nt?"end of input":"'"+(this.terminals_[Yt]||Yt)+"'"),this.parseError(Jt,{text:cn.match,token:this.terminals_[Yt]||Yt,line:cn.yylineno,loc:be,expected:Kn})}if(Wn[0]instanceof Array&&Wn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ut+", token: "+Yt);switch(Wn[0]){case 1:Le.push(Yt),xe.push(cn.yytext),Ae.push(cn.yylloc),Le.push(Wn[1]),Yt=null,ve=cn.yyleng,me=cn.yytext,vt=cn.yylineno,be=cn.yylloc;break;case 2:if($r=this.productions_[Wn[1]][1],Rn.$=xe[xe.length-$r],Rn._$={first_line:Ae[Ae.length-($r||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-($r||1)].first_column,last_column:Ae[Ae.length-1].last_column},We&&(Rn._$.range=[Ae[Ae.length-($r||1)].range[0],Ae[Ae.length-1].range[1]]),Gt=this.performAction.apply(Rn,[me,ve,vt,jt.yy,Wn[1],xe,Ae].concat(xn)),typeof Gt<"u")return Gt;$r&&(Le=Le.slice(0,-1*$r*2),xe=xe.slice(0,-1*$r),Ae=Ae.slice(0,-1*$r)),Le.push(this.productions_[Wn[1]][0]),xe.push(Rn.$),Ae.push(Rn._$),nr=je[Le[Le.length-2]][Le[Le.length-1]],Le.push(nr);break;case 3:return!0}}return!0}},Xe=function(){var Ze={EOF:1,parseError:function(Oe,Le){if(this.yy.parser)this.yy.parser.parseError(Oe,Le);else throw new Error(Oe)},setInput:function(Ie,Oe){return this.yy=Oe||this.yy||{},this._input=Ie,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 Ie=this._input[0];this.yytext+=Ie,this.yyleng++,this.offset++,this.match+=Ie,this.matched+=Ie;var Oe=Ie.match(/(?:\r\n?|\n).*/g);return Oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ie},unput:function(Ie){var Oe=Ie.length,Le=Ie.split(/(?:\r\n?|\n)/g);this._input=Ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Oe),this.offset-=Oe;var $e=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 xe=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===$e.length?this.yylloc.first_column:0)+$e[$e.length-Le.length].length-Le[0].length:this.yylloc.first_column-Oe},this.options.ranges&&(this.yylloc.range=[xe[0],xe[0]+this.yyleng-Oe]),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(Ie){this.unput(this.match.slice(Ie))},pastInput:function(){var Ie=this.matched.substr(0,this.matched.length-this.match.length);return(Ie.length>20?"...":"")+Ie.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ie=this.match;return Ie.length<20&&(Ie+=this._input.substr(0,20-Ie.length)),(Ie.substr(0,20)+(Ie.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ie=this.pastInput(),Oe=new Array(Ie.length+1).join("-");return Ie+this.upcomingInput()+`
|
||
|
`+Oe+"^"},test_match:function(Ie,Oe){var Le,$e,xe;if(this.options.backtrack_lexer&&(xe={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&&(xe.yylloc.range=this.yylloc.range.slice(0))),$e=Ie[0].match(/(?:\r\n?|\n).*/g),$e&&(this.yylineno+=$e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$e?$e[$e.length-1].length-$e[$e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ie[0].length},this.yytext+=Ie[0],this.match+=Ie[0],this.matches=Ie,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(Ie[0].length),this.matched+=Ie[0],Le=this.performAction.call(this,this.yy,this,Oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Le)return Le;if(this._backtrack){for(var Ae in xe)this[Ae]=xe[Ae];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ie,Oe,Le,$e;this._more||(this.yytext="",this.match="");for(var xe=this._currentRules(),Ae=0;Ae<xe.length;Ae++)if(Le=this._input.match(this.rules[xe[Ae]]),Le&&(!Oe||Le[0].length>Oe[0].length)){if(Oe=Le,$e=Ae,this.options.backtrack_lexer){if(Ie=this.test_match(Le,xe[Ae]),Ie!==!1)return Ie;if(this._backtrack){Oe=!1;continue}else return!1}else if(!this.options.flex)break}return Oe?(Ie=this.test_match(Oe,xe[$e]),Ie!==!1?Ie:!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 Oe=this.next();return Oe||this.lex()},begin:function(Oe){this.conditionStack.push(Oe)},popState:function(){var Oe=this.conditionStack.length-1;return Oe>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(Oe){return Oe=this.conditionStack.length-1-Math.abs(Oe||0),Oe>=0?this.conditionStack[Oe]:"INITIAL"},pushState:function(Oe){this.begin(Oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Oe,Le,$e,xe){switch($e){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 Le.yytext=Le.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 Ze}();Ge.lexer=Xe;function Ee(){this.yy={}}return Ee.prototype=Ge,Ge.Parser=Ee,new Ee}();nce.parser=nce;const HQt=nce,zQt=r=>r.match(/^\s*requirement(Diagram)?/)!==null;let rce=[],Z0={},UI={},v6={},qI={};const GQt={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_
|
||
|
L${i.line_height},${i.line_height/2}
|
||
|
M${i.line_height},${i.line_height/2}
|
||
|
L0,${i.line_height}`).attr("stroke-width",1)}};let Al={},mLe=0;const yLe=(r,i)=>r.insert("rect","#"+i).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Al.rect_min_width+"px").attr("height",Al.rect_min_height+"px"),kLe=(r,i,o)=>{let l=Al.rect_min_width/2,f=r.append("text").attr("class","req reqLabel reqTitle").attr("id",i).attr("x",l).attr("y",Al.rect_padding).attr("dominant-baseline","hanging"),b=0;o.forEach(k=>{b==0?f.append("tspan").attr("text-anchor","middle").attr("x",Al.rect_min_width/2).attr("dy",0).text(k):f.append("tspan").attr("text-anchor","middle").attr("x",Al.rect_min_width/2).attr("dy",Al.line_height*.75).text(k),b++});let d=1.5*Al.rect_padding,w=b*Al.line_height*.75,y=d+w;return r.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Al.rect_min_width).attr("y1",y).attr("y2",y),{titleNode:f,y}},xLe=(r,i,o,l)=>{let f=r.append("text").attr("class","req reqLabel").attr("id",i).attr("x",Al.rect_padding).attr("y",l).attr("dominant-baseline","hanging"),b=0;const d=30;let w=[];return o.forEach(y=>{let k=y.length;for(;k>d&&b<3;){let E=y.substring(0,d);y=y.substring(d,y.length),k=y.length,w[w.length]=E,b++}if(b==3){let E=w[w.length-1];w[w.length-1]=E.substring(0,E.length-4)+"..."}else w[w.length]=y;b=0}),w.forEach(y=>{f.append("tspan").attr("x",Al.rect_padding).attr("dy",Al.line_height).text(y)}),f},VQt=(r,i,o,l)=>{const f=i.node().getTotalLength(),b=i.node().getPointAtLength(f*.5),d="rel"+mLe;mLe++;const y=r.append("text").attr("class","req relationshipLabel").attr("id",d).attr("x",b.x).attr("y",b.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l).node().getBBox();r.insert("rect","#"+d).attr("class","req reqLabelBox").attr("x",b.x-y.width/2).attr("y",b.y-y.height/2).attr("width",y.width).attr("height",y.height).attr("fill","white").attr("fill-opacity","85%")},UQt=function(r,i,o,l,f){const b=o.edge(xC(i.src),xC(i.dst)),d=V8().x(function(y){return y.x}).y(function(y){return y.y}),w=r.insert("path","#"+l).attr("class","er relationshipLine").attr("d",d(b.points)).attr("fill","none");i.type==f.db.Relationships.CONTAINS?w.attr("marker-start","url("+Cs.getUrl(Al.arrowMarkerAbsolute)+"#"+i.type+"_line_ending)"):(w.attr("stroke-dasharray","10,7"),w.attr("marker-end","url("+Cs.getUrl(Al.arrowMarkerAbsolute)+"#"+wLe.ReqMarkers.ARROW+"_line_ending)")),VQt(r,w,Al,`<<${i.type}>>`)},qQt=(r,i,o)=>{Object.keys(r).forEach(l=>{let f=r[l];l=xC(l),Se.info("Added new requirement: ",l);const b=o.append("g").attr("id",l),d="req-"+l,w=yLe(b,d);let y=kLe(b,l+"_title",[`<<${f.type}>>`,`${f.name}`]);xLe(b,l+"_body",[`Id: ${f.id}`,`Text: ${f.text}`,`Risk: ${f.risk}`,`Verification: ${f.verifyMethod}`],y.y);const k=w.node().getBBox();i.setNode(l,{width:k.width,height:k.height,shape:"rect",id:l})})},YQt=(r,i,o)=>{Object.keys(r).forEach(l=>{let f=r[l];const b=xC(l),d=o.append("g").attr("id",b),w="element-"+b,y=yLe(d,w);let k=kLe(d,w+"_title",["<<Element>>",`${l}`]);xLe(d,w+"_body",[`Type: ${f.type||"Not Specified"}`,`Doc Ref: ${f.docRef||"None"}`],k.y);const E=y.node().getBBox();i.setNode(b,{width:E.width,height:E.height,shape:"rect",id:b})})},WQt=(r,i)=>(r.forEach(function(o){let l=xC(o.src),f=xC(o.dst);i.setEdge(l,f,{relationship:o})}),r),KQt=function(r,i){i.nodes().forEach(function(o){o!==void 0&&i.node(o)!==void 0&&(r.select("#"+o),r.select("#"+o).attr("transform","translate("+(i.node(o).x-i.node(o).width/2)+","+(i.node(o).y-i.node(o).height/2)+" )"))})},xC=r=>r.replace(/\s/g,"").replace(/\./g,"_"),XQt={draw:(r,i,o,l)=>{Al=ht().requirement,l.db.clear(),l.parser.parse(r);const f=Al.securityLevel;let b;f==="sandbox"&&(b=Cn("#i"+i));const w=Cn(f==="sandbox"?b.nodes()[0].contentDocument.body:"body").select(`[id='${i}']`);wLe.insertLineEndings(w,Al);const y=new zh({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Al.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let k=l.db.getRequirements(),E=l.db.getElements(),T=l.db.getRelationships();qQt(k,y,w),YQt(E,y,w),WQt(T,y),bC(y),KQt(w,y),T.forEach(function(B){UQt
|
||
|
`+ot.showPosition()+`
|
||
|
Expecting `+en.join(", ")+", got '"+(this.terminals_[Wn]||Wn)+"'":In="Parse error on line "+(Zt+1)+": Unexpected "+(Wn==cn?"end of input":"'"+(this.terminals_[Wn]||Wn)+"'"),this.parseError(In,{text:ot.match,token:this.terminals_[Wn]||Wn,line:ot.yylineno,loc:ct,expected:en})}if(Rn[0]instanceof Array&&Rn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+Wn);switch(Rn[0]){case 1:xe.push(Wn),je.push(ot.yytext),me.push(ot.yylloc),xe.push(Rn[1]),Wn=null,nt=ot.yyleng,ve=ot.yytext,Zt=ot.yylineno,ct=ot.yylloc;break;case 2:if(Kn=this.productions_[Rn[1]][1],$r.$=je[je.length-Kn],$r._$={first_line:me[me.length-(Kn||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Kn||1)].first_column,last_column:me[me.length-1].last_column},Yt&&($r._$.range=[me[me.length-(Kn||1)].range[0],me[me.length-1].range[1]]),si=this.performAction.apply($r,[ve,nt,Zt,be.yy,Rn[1],je,me].concat(jt)),typeof si<"u")return si;Kn&&(xe=xe.slice(0,-1*Kn*2),je=je.slice(0,-1*Kn),me=me.slice(0,-1*Kn)),xe.push(this.productions_[Rn[1]][0]),je.push($r.$),me.push($r._$),Jt=vt[xe[xe.length-2]][xe[xe.length-1]],xe.push(Jt);break;case 3:return!0}}return!0}},Ze=function(){var Oe={EOF:1,parseError:function($e,xe){if(this.yy.parser)this.yy.parser.parseError($e,xe);else throw new Error($e)},setInput:function(Le,$e){return this.yy=$e||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 $e=Le.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),Le},unput:function(Le){var $e=Le.length,xe=Le.split(/(?:\r\n?|\n)/g);this._input=Le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$e),this.offset-=$e;var Ae=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 je=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===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-xe.length].length-xe[0].length:this.yylloc.first_column-$e},this.options.ranges&&(this.yylloc.range=[je[0],je[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(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(),$e=new Array(Le.length+1).join("-");return Le+this.upcomingInput()+`
|
||
|
`+$e+"^"},test_match:function(Le,$e){var xe,Ae,je;if(this.options.backtrack_lexer&&(je={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&&(je.yylloc.range=this.yylloc.range.slice(0))),Ae=Le[0].match(/(?:\r\n?|\n).*/g),Ae&&(this.yylineno+=Ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ae?Ae[Ae.length-1].length-Ae[Ae.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],xe=this.performAction.call(this,this.yy,this,$e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var me in je)this[me]=je[me];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Le,$e,xe,Ae;this._more||(this.yytext="",this.match="");for(var je=this._currentRules(),me=0;me<je.length;me++)if(xe=this._input.match(this.rules[je[me]]),xe&&(!$e||xe[0].length>$e[0].length)){if($e=xe,Ae=me,this.options.backtrack_lexer){if(Le=this.test_match(xe,je[me]),Le!==!1)return Le;if(this._backtrack){$e=!1;continue}else return!1}else if(!this.options.flex)break}return $e?(Le=this.test_match($e,je[Ae]),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 $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,xe,Ae,je){switch(Ae){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;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"),54;case 14:return this.begin("ID"),56;case 15:return xe.yytext=xe.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;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"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return xe.yytext=xe.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67: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,/^(?: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,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48]
|
||
|
`+je.showPosition()+`
|
||
|
Expecting `+Ut.join(", ")+", got '"+(this.terminals_[xn]||xn)+"'":Wn="Parse error on line "+(Oe+1)+": Unexpected "+(xn==xe?"end of input":"'"+(this.terminals_[xn]||xn)+"'"),this.parseError(Wn,{text:je.match,token:this.terminals_[xn]||xn,line:je.yylineno,loc:ve,expected:Ut})}if(jt[0]instanceof Array&&jt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+xn);switch(jt[0]){case 1:Be.push(xn),Xe.push(je.yytext),Ee.push(je.yylloc),Be.push(jt[1]),xn=null,Le=je.yyleng,Ie=je.yytext,Oe=je.yylineno,ve=je.yylloc;break;case 2:if(ct=this.productions_[jt[1]][1],be.$=Xe[Xe.length-ct],be._$={first_line:Ee[Ee.length-(ct||1)].first_line,last_line:Ee[Ee.length-1].last_line,first_column:Ee[Ee.length-(ct||1)].first_column,last_column:Ee[Ee.length-1].last_column},Zt&&(be._$.range=[Ee[Ee.length-(ct||1)].range[0],Ee[Ee.length-1].range[1]]),ot=this.performAction.apply(be,[Ie,Le,Oe,me.yy,jt[1],Xe,Ee].concat(Ae)),typeof ot<"u")return ot;ct&&(Be=Be.slice(0,-1*ct*2),Xe=Xe.slice(0,-1*ct),Ee=Ee.slice(0,-1*ct)),Be.push(this.productions_[jt[1]][0]),Xe.push(be.$),Ee.push(be._$),Yt=Ze[Be[Be.length-2]][Be[Be.length-1]],Be.push(Yt);break;case 3:return!0}}return!0}},re=function(){var Ce={EOF:1,parseError:function(Te,Be){if(this.yy.parser)this.yy.parser.parseError(Te,Be);else throw new Error(Te)},setInput:function(_e,Te){return this.yy=Te||this.yy||{},this._input=_e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _e=this._input[0];this.yytext+=_e,this.yyleng++,this.offset++,this.match+=_e,this.matched+=_e;var Te=_e.match(/(?:\r\n?|\n).*/g);return Te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_e},unput:function(_e){var Te=_e.length,Be=_e.split(/(?:\r\n?|\n)/g);this._input=_e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Te),this.offset-=Te;var Ge=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),Be.length-1&&(this.yylineno-=Be.length-1);var Xe=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:Be?(Be.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-Be.length].length-Be[0].length:this.yylloc.first_column-Te},this.options.ranges&&(this.yylloc.range=[Xe[0],Xe[0]+this.yyleng-Te]),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(_e){this.unput(this.match.slice(_e))},pastInput:function(){var _e=this.matched.substr(0,this.matched.length-this.match.length);return(_e.length>20?"...":"")+_e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _e=this.match;return _e.length<20&&(_e+=this._input.substr(0,20-_e.length)),(_e.substr(0,20)+(_e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _e=this.pastInput(),Te=new Array(_e.length+1).join("-");return _e+this.upcomingInput()+`
|
||
|
`+Te+"^"},test_match:function(_e,Te){var Be,Ge,Xe;if(this.options.backtrack_lexer&&(Xe={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&&(Xe.yylloc.range=this.yylloc.range.slice(0))),Ge=_e[0].match(/(?:\r\n?|\n).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_e[0].length},this.yytext+=_e[0],this.match+=_e[0],this.matches=_e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_e[0].length),this.matched+=_e[0],Be=this.performAction.call(this,this.yy,this,Te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Be)return Be;if(this._backtrack){for(var Ee in Xe)this[Ee]=Xe[Ee];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _e,Te,Be,Ge;this._more||(this.yytext="",this.match="");for(var Xe=this._currentRules(),Ee=0;Ee<Xe.length;Ee++)if(Be=this._input.match(this.rules[Xe[Ee]]),Be&&(!Te||Be[0].length>Te[0].length)){if(Te=Be,Ge=Ee,this.options.backtrack_lexer){if(_e=this.test_match(Be,Xe[Ee]),_e!==!1)return _e;if(this._backtrack){Te=!1;continue}else return!1}else if(!this.options.flex)break}return Te?(_e=this.test_match(Te,Xe[Ge]),_e!==!1?_e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Te=this.next();return Te||this.lex()},begin:function(Te){this.conditionStack.push(Te)},popState:function(){var Te=this.conditionStack.length-1;return Te>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(Te){return Te=this.conditionStack.length-1-Math.abs(Te||0),Te>=0?this.conditionStack[Te]:"INITIAL"},pushState:function(Te){this.begin(Te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Te,Be,Ge,Xe){switch(Ge){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(),Be.yytext=Be.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),Be.yytext=Be.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),Be.yytext=Be.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),Be.yytext=Be.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),Be.yytext=Be.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),Be.yytext=Be.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(),Be.yytext=Be.yytext.substr(2).trim(),31;case 69:return this.popState(),Be.yytext=Be.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 Be.yytext=Be.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,/^(
|
||
|
`+ae.showPosition()+`
|
||
|
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[ke]||ke)+"'":Ie="Parse error on line "+(Y+1)+": Unexpected "+(ke==Z?"end of input":"'"+(this.terminals_[ke]||ke)+"'"),this.parseError(Ie,{text:ae.match,token:this.terminals_[ke]||ke,line:ae.yylineno,loc:ee,expected:Ze})}if(_e[0]instanceof Array&&_e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+ke);switch(_e[0]){case 1:F.push(ke),q.push(ae.yytext),X.push(ae.yylloc),F.push(_e[1]),ke=null,z=ae.yyleng,H=ae.yytext,Y=ae.yylineno,ee=ae.yylloc;break;case 2:if(Xe=this.productions_[_e[1]][1],Be.$=q[q.length-Xe],Be._$={first_line:X[X.length-(Xe||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Xe||1)].first_column,last_column:X[X.length-1].last_column},de&&(Be._$.range=[X[X.length-(Xe||1)].range[0],X[X.length-1].range[1]]),Te=this.performAction.apply(Be,[H,z,Y,$.yy,_e[1],q,X].concat(G)),typeof Te<"u")return Te;Xe&&(F=F.slice(0,-1*Xe*2),q=q.slice(0,-1*Xe),X=X.slice(0,-1*Xe)),F.push(this.productions_[_e[1]][0]),q.push(Be.$),X.push(Be._$),Ee=te[F[F.length-2]][F[F.length-1]],F.push(Ee);break;case 3:return!0}}return!0}},S=function(){var O={EOF:1,parseError:function(N,F){if(this.yy.parser)this.yy.parser.parseError(N,F);else throw new Error(N)},setInput:function(B,N){return this.yy=N||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 N=B.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),B},unput:function(B){var N=B.length,F=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var R=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),F.length-1&&(this.yylineno-=F.length-1);var q=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:F?(F.length===R.length?this.yylloc.first_column:0)+R[R.length-F.length].length-F[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-N]),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(),N=new Array(B.length+1).join("-");return B+this.upcomingInput()+`
|
||
|
`+N+"^"},test_match:function(B,N){var F,R,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),R=B[0].match(/(?:\r\n?|\n).*/g),R&&(this.yylineno+=R.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:R?R[R.length-1].length-R[R.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],F=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var X in q)this[X]=q[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,N,F,R;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),X=0;X<q.length;X++)if(F=this._input.match(this.rules[q[X]]),F&&(!N||F[0].length>N[0].length)){if(N=F,R=X,this.options.backtrack_lexer){if(B=this.test_match(F,q[X]),B!==!1)return B;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(B=this.test_match(N,q[R]),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 N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>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(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(N,F,R,q){switch(R){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 O}();C.lexer=S;function L(){this.yy={}}return L.prototype=C,C.Parser=L,new L}();Sce.parser=Sce;const aen=Sce,oen=r=>r.match(/^\s*journey/)!==null;let SC="";const Ace=[],tO=[],nO=[],cen=function(r,i,o){Bu.parseDirective(this,r,i,o)},uen=function(){Ace.length=0,tO.length=0,SC="",nO.length=0,W0()},len=function(r){SC=r,Ace.push(r)},hen=function(){return Ace},fen=function(){let r=pIe();const i=100;let o=0;for(;!r&&o<i;)r=pIe(),o++;return tO.push(...nO),tO},den=function(){const r=[];return tO.forEach(o=>{o.people&&r.push(...o.people)}),[...new Set(r)].sort()},gen=function(r,i){const o=i.substr(1).split(":");let l=0,f=[];o.length===1?(l=Number(o[0]),f=[]):(l=Number(o[0]),f=o[1].split(","));const b=f.map(w=>w.trim()),d={section:SC,type:SC,people:b,task:r,score:l};nO.push(d)},pen=function(r){const i={section:SC,type:SC,description:r,task:r,classes:[]};tO.push(i)},pIe=function(){const r=function(o){return nO[o].processed};let i=!0;for(const[o,l]of nO.entries())r(o),i=i&&l.processed;return i},bIe={parseDirective:cen,getConfig:()=>ht().journey,clear:uen,setDiagramTitle:Ov,getDiagramTitle:Nv,setAccTitle:K0,getAccTitle:hp,setAccDescription:fp,getAccDescription:dp,addSection:len,getSections:hen,getTasks:fen,addTask:gen,addTaskOrg:pen,getActors:function(){return den()}},nU=function(r,i){const o=r.append("rect");return o.attr("x",i.x),o.attr("y",i.y),o.attr("fill",i.fill),o.attr("stroke",i.stroke),o.attr("width",i.width),o.attr("height",i.height),o.attr("rx",i.rx),o.attr("ry",i.ry),i.class!==void 0&&o.attr("class",i.class),o},ben=function(r,i){const l=r.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),f=r.append("g");f.append("circle").attr("cx",i.cx-15/3).attr("cy",
|
||
|
`);const b=ht().securityLevel;let d;b==="sandbox"&&(d=Cn("#i"+i));const w=Cn(b==="sandbox"?d.nodes()[0].contentDocument.body:"body");B2.init();const y=w.select("#"+i);rO.initGraphics(y);const k=l.db.getTasks(),E=l.db.getDiagramTitle(),T=l.db.getActors();for(const N in l4)delete l4[N];let C=0;T.forEach(N=>{l4[N]={color:f.actorColours[C%f.actorColours.length],position:C},C++}),Een(y),B2.insert(0,0,p7,Object.keys(l4).length*50),Ten(y,k,0);const S=B2.getBounds();E&&y.append("text").text(E).attr("x",p7).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const L=S.stopy-S.starty+2*f.diagramMarginY,O=p7+S.stopx+2*f.diagramMarginX;Iv(y,L,O,f.useMaxWidth),y.append("line").attr("x1",p7).attr("y1",f.height*4).attr("x2",O-p7-4).attr("y2",f.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const B=E?70:0;y.attr("viewBox",`${S.startx} -25 ${O} ${L+B}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",L+B+25)},B2={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(r,i,o,l){r[i]===void 0?r[i]=o:r[i]=l(o,r[i])},updateBounds:function(r,i,o,l){const f=ht().journey,b=this;let d=0;function w(y){return function(E){d++;const T=b.sequenceItems.length-d+1;b.updateVal(E,"starty",i-T*f.boxMargin,Math.min),b.updateVal(E,"stopy",l+T*f.boxMargin,Math.max),b.updateVal(B2.data,"startx",r-T*f.boxMargin,Math.min),b.updateVal(B2.data,"stopx",o+T*f.boxMargin,Math.max),y!=="activation"&&(b.updateVal(E,"startx",r-T*f.boxMargin,Math.min),b.updateVal(E,"stopx",o+T*f.boxMargin,Math.max),b.updateVal(B2.data,"starty",i-T*f.boxMargin,Math.min),b.updateVal(B2.data,"stopy",l+T*f.boxMargin,Math.max))}}this.sequenceItems.forEach(w())},insert:function(r,i,o,l){const f=Math.min(r,o),b=Math.max(r,o),d=Math.min(i,l),w=Math.max(i,l);this.updateVal(B2.data,"startx",f,Math.min),this.updateVal(B2.data,"starty",d,Math.min),this.updateVal(B2.data,"stopx",b,Math.max),this.updateVal(B2.data,"stopy",w,Math.max),this.updateBounds(f,d,b,w)},bumpVerticalPos:function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Dce=rU.sectionFills,kIe=rU.sectionColours,Ten=function(r,i,o){const l=ht().journey;let f="";const b=l.height*2+l.diagramMarginY,d=o+b;let w=0,y="#CCC",k="black",E=0;for(const[T,C]of i.entries()){if(f!==C.section){y=Dce[w%Dce.length],E=w%Dce.length,k=kIe[w%kIe.length];const L={x:T*l.taskMargin+T*l.width+p7,y:50,text:C.section,fill:y,num:E,colour:k};rO.drawSection(r,L,l),f=C.section,w++}const S=C.people.reduce((L,O)=>(l4[O]&&(L[O]=l4[O]),L),{});C.x=T*l.taskMargin+T*l.width+p7,C.y=d,C.width=l.diagramMarginX,C.height=l.diagramMarginY,C.colour=k,C.fill=y,C.num=E,C.actors=S,rO.drawTask(r,C,l),B2.insert(C.x,C.y,C.x+C.width+l.taskMargin,300+5*30)}},xIe={setConf:xen,draw:_en};let EIe={};const iU={setConf:function(r){EIe={...EIe,...r}},draw:(r,i,o)=>{try{Se.debug(`Renering svg for syntax error
|
||
|
`);const l=Cn("#"+i),f=l.append("g");f.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"),f.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"),f.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"),f.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"),f.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"),f.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"),f.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),f.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+o),l.attr("height",100),l.attr("width",500),l.attr("viewBox","768 0 912 512")}catch(l){Se.error("Error while rendering info diagram"),Se.error(cjt(l))}}},_Ie="flowchart-elk",Cen={id:_Ie,detector:(r,i)=>{var o;return!!(r.match(/^\s*flowchart-elk/)||r.match(/^\s*flowchart|graph/)&&((o=i==null?void 0:i.flowchart)==null?void 0:o.defaultRenderer)==="elk")},loader:async()=>{const{diagram:r}=await Promise.resolve().then(()=>gtn);return{id:_Ie,diagram:r}}},TIe="timeline",Sen={id:TIe,detector:r=>r.match(/^\s*timeline/)!==null,loader:async()=>{const{diagram:r}=await Promise.resolve().then(()=>Ntn);return{id:TIe,diagram:r}}},CIe="mindmap",Aen={id:CIe,detector:r=>r.match(/^\s*mindmap/)!==null,loader:async()=>{const{diagram:r}=await Promise.resolve().then(()=>Ahn);return{id:CIe,diagram:r}}};let SIe=!1;const iO=()=>{SIe||(SIe=!0,BCe(Cen,Sen,Aen),uf("error",{db:{clear:()=>{}},styles:Tae,renderer:iU,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},r=>r.toLowerCase().trim()==="error"),uf("---",{db:{clear:()=>{}},styles:Tae,renderer:iU,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 unindented `---` blocks")}},init:()=>null},r=>r.toLowerCase().trimStart().startsWith("---")),uf("c4",{parser:p$t,db:ASe,renderer:FSe,styles:pSe,init:r=>{FSe.setConf(r.c4)}},b$t),uf("class",{parser:RSe,db:iC,renderer:FWt,styles:hI,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,iC.clear()}},nHt),uf("classDiagram",{parser:RSe,db:iC,renderer:LKt,styles:hI,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,iC.clear()}},rHt),uf("er",{parser:IKt,db:FKt,renderer:sXt,styles:cSe},OKt),uf("gantt",{parser:eQt,db:Zoe,renderer:IQt,styles:uSe},tQt),uf("info",{parser:OQt,db:NQt,renderer:PQt,styles:lSe},BQt),uf("pie",{parser:FQt,db:jQt,renderer:$Qt,styles:hSe},RQt),uf("requirement",{parser:HQt,db:GQt,renderer:XQt,styles:f
|
||
|
`,this.parse(this.txt,o)}parse(i,o){var l,f;if(this.detectTypeFailed)return!1;try{return i=i+`
|
||
|
`,(f=(l=this.db).clear)==null||f.call(l),this.parser.parse(i),!0}catch(b){this.handleError(b,o)}return!1}handleError(i,o){if(o===void 0)throw i;if(bae(i)){o(i.str,i.hash);return}o(i)}getParser(){return this.parser}getType(){return this.type}}const Ice=(r,i)=>{const o=lae(r,ht());try{wSe(o)}catch{const f=GFt(o);if(!f)throw new Error(`Diagram ${o} not found.`);return f().then(({diagram:b})=>(uf(o,b,void 0),new Lce(r,i)))}return new Lce(r,i)},Oce=Lce,Men="graphics-document document";function Den(r,i){r.attr("role",Men),gC(i)||r.attr("aria-roledescription",i)}function Len(r,i,o,l){if(r.insert!==void 0)if(i||o){if(o){const f="chart-desc-"+l;r.attr("aria-describedby",f),r.insert("desc",":first-child").attr("id",f).text(o)}if(i){const f="chart-title-"+l;r.attr("aria-labelledby",f),r.insert("title",":first-child").attr("id",f).text(i)}}else return}const Nce=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],AIe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",MIe="sandbox",DIe="loose",Ien="http://www.w3.org/2000/svg",LIe="http://www.w3.org/1999/xlink",IIe="http://www.w3.org/1999/xhtml",Oen="100%",Nen="100%",Pen="border:0;margin:0;",Ben="margin:0",Fen="allow-top-navigation-by-user-activation allow-popups",Ren='The "iframe" tag is not supported by your browser.',OIe=["foreignobject"],NIe=["dominant-baseline"];function jen(r,i){return iO(),new Oce(r,i).parse(r,i)}async function $en(r,i){return iO(),(await Ice(r,i)).parse(r,i)}const PIe=function(r){let i=r;return i=i.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),i=i.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),i=i.replace(/#\w+;/g,function(o){const l=o.substring(1,o.length-1);return/^\+?\d+$/.test(l)?"\uFB02\xB0\xB0"+l+"\xB6\xDF":"\uFB02\xB0"+l+"\xB6\xDF"}),i},Pce=function(r){let i=r;return i=i.replace(/fl°°/g,"&#"),i=i.replace(/fl°/g,"&"),i=i.replace(/¶ß/g,";"),i},BIe=(r,i,o=[])=>`
|
||
|
.${r} ${i} { ${o.join(" !important; ")} !important; }`,Hen=(r,i,o={})=>{var f;let l="";if(r.themeCSS!==void 0&&(l+=`
|
||
|
${r.themeCSS}`),r.fontFamily!==void 0&&(l+=`
|
||
|
:root { --mermaid-font-family: ${r.fontFamily}}`),r.altFontFamily!==void 0&&(l+=`
|
||
|
:root { --mermaid-alt-font-family: ${r.altFontFamily}}`),!gC(o)&&Nce.includes(i)){const y=r.htmlLabels||((f=r.flowchart)==null?void 0:f.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const k in o){const E=o[k];gC(E.styles)||y.forEach(T=>{l+=BIe(E.id,T,E.styles)}),gC(E.textStyles)||(l+=BIe(E.id,"tspan",E.textStyles))}}return l},FIe=(r,i,o,l)=>{const f=Hen(r,i,o),b=Ojt(i,f,r.themeVariables);return Eae(xjt(`${l}{${b}}`),_jt)},RIe=(r="",i,o)=>{let l=r;return!o&&!i&&(l=l.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),l=Pce(l),l=l.replace(/<br>/g,"<br/>"),l},jIe=(r="",i)=>{const o=i?i.viewBox.baseVal.height+"px":Nen,l=btoa('<body style="'+Ben+'">'+r+"</body>");return`<iframe style="width:${Oen};height:${o};${Pen}" src="data:text/html;base64,${l}" sandbox="${Fen}">
|
||
|
${Ren}
|
||
|
</iframe>`},sU=(r,i,o,l,f)=>{const b=r.append("div");b.attr("id",o),l&&b.attr("style",l);const d=b.append("svg").attr("id",i).attr("width","100%").attr("xmlns",Ien);return f&&d.attr("xmlns:xlink",f),d.append("g"),r};function aU(r,i){return r.append("iframe").attr("id",i).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const $Ie=(r,i,o,l)=>{var f,b,d;(f=r.getElementById(i))==null||f.remove(),(b=r.getElementById(o))==null||b.remove(),(d=r.getElementById(l))==null||d.remove()},zen=function(r,i,o,l){var $,ge,ee,de,re;iO(),lI();const f=Fs.detectInit(i);f&&(Q8(f),_ae(f));const b=ht();Se.debug(b),i.length>(($=b==null?void 0:b.maxTextSize)!=null?$:5e4)&&(i=AIe),i=i.replace(/\r\n?/g,`
|
||
|
`);const d="#"+r,w="i"+r,y="#"+w,k="d"+r,E="#"+k;let T=Cn("body");const C=b.securityLevel===MIe,S=b.securityLevel===DIe,L=b.fontFamily;if(l!==void 0){if(l&&(l.innerHTML=""),C){const ke=aU(Cn(l),w);T=Cn(ke.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Cn(l);sU(T,r,k,`font-family: ${L}`,LIe)}else{if($Ie(document,r,k,w),C){const ke=aU(Cn("body"),w);T=Cn(ke.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Cn("body");sU(T,r,k)}i=PIe(i);let O,B;try{if(O=Ice(i),"then"in O)throw new Error("Diagram is a promise. Use renderAsync.")}catch(ke){O=new Oce("error"),B=ke}const N=T.select(E).node(),F=O.type,R=N.firstChild,q=R.firstChild,X=Nce.includes(F)?O.renderer.getClasses(i,O):{},te=FIe(b,F,X,d),H=document.createElement("style");H.innerHTML=te,R.insertBefore(H,q);try{O.renderer.draw(i,r,VG.version,O)}catch(ke){throw iU.draw(i,r,VG.version),ke}const Y=T.select(`${E} svg`),z=(ee=(ge=O.db).getAccTitle)==null?void 0:ee.call(ge),W=(re=(de=O.db).getAccDescription)==null?void 0:re.call(de);HIe(F,Y,z,W),T.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",IIe);let Z=T.select(E).node().innerHTML;if(Se.debug("config.arrowMarkerAbsolute",b.arrowMarkerAbsolute),Z=RIe(Z,C,cf(b.arrowMarkerAbsolute)),C){const ke=T.select(E+" svg").node();Z=jIe(Z,ke)}else S||(Z=eI.sanitize(Z,{ADD_TAGS:OIe,ADD_ATTR:NIe}));if(o!==void 0)switch(F){case"flowchart":case"flowchart-v2":o(Z,$m.bindFunctions);break;case"gantt":o(Z,Zoe.bindFunctions);break;case"class":case"classDiagram":o(Z,iC.bindFunctions);break;default:o(Z)}else Se.debug("CB = undefined!");DLe();const ae=Cn(C?y:E).node();if(ae&&"remove"in ae&&ae.remove(),B)throw B;return Z},Gen=async function(r,i,o,l){var $,ge,ee,de,re;iO(),lI();const f=Fs.detectInit(i);f&&(Q8(f),_ae(f));const b=ht();Se.debug(b),i.length>(($=b==null?void 0:b.maxTextSize)!=null?$:5e4)&&(i=AIe),i=i.replace(/\r\n?/g,`
|
||
|
`);const d="#"+r,w="i"+r,y="#"+w,k="d"+r,E="#"+k;let T=Cn("body");const C=b.securityLevel===MIe,S=b.securityLevel===DIe,L=b.fontFamily;if(l!==void 0){if(l&&(l.innerHTML=""),C){const ke=aU(Cn(l),w);T=Cn(ke.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Cn(l);sU(T,r,k,`font-family: ${L}`,LIe)}else{if($Ie(document,r,k,w),C){const ke=aU(Cn("body"),w);T=Cn(ke.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Cn("body");sU(T,r,k)}i=PIe(i);let O,B;try{O=await Ice(i)}catch(ke){O=new Oce("error"),B=ke}const N=T.select(E).node(),F=O.type,R=N.firstChild,q=R.firstChild,X=Nce.includes(F)?O.renderer.getClasses(i,O):{},te=FIe(b,F,X,d),H=document.createElement("style");H.innerHTML=te,R.insertBefore(H,q);try{await O.renderer.draw(i,r,VG.version,O)}catch(ke){throw iU.draw(i,r,VG.version),ke}const Y=T.select(`${E} svg`),z=(ee=(ge=O.db).getAccTitle)==null?void 0:ee.call(ge),W=(re=(de=O.db).getAccDescription)==null?void 0:re.call(de);HIe(F,Y,z,W),T.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",IIe);let Z=T.select(E).node().innerHTML;if(Se.debug("config.arrowMarkerAbsolute",b.arrowMarkerAbsolute),Z=RIe(Z,C,cf(b.arrowMarkerAbsolute)),C){const ke=T.select(E+" svg").node();Z=jIe(Z,ke)}else S||(Z=eI.sanitize(Z,{ADD_TAGS:OIe,ADD_ATTR:NIe}));if(o!==void 0)switch(F){case"flowchart":case"flowchart-v2":o(Z,$m.bindFunctions);break;case"gantt":o(Z,Zoe.bindFunctions);break;case"class":case"classDiagram":o(Z,iC.bindFunctions);break;default:o(Z)}else Se.debug("CB = undefined!");DLe();const ae=Cn(C?y:E).node();if(ae&&"remove"in ae&&ae.remove(),B)throw B;return Z};function Ven(r={}){var o;(r==null?void 0:r.fontFamily)&&!((o=r.themeVariables)!=null&&o.fontFamily)&&(r.themeVariables={fontFamily:r.fontFamily}),Cjt(r),(r==null?void 0:r.theme)&&r.theme in q3?r.themeVariables=q3[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=q3.default.getThemeVariables(r.themeVariables));const i=typeof r=="object"?Tjt(r):nSe();Wie(i.logLevel),iO()}function HIe(r,i,o,l){Den(i,r),Len(i,o,l,i.attr("id"))}const Bu=Object.freeze({render:zen,renderAsync:Gen,parse:jen,parseAsync:$en,parseDirective:Mae,initialize:Ven,getConfig:ht,setConfig:rSe,getSiteConfig:nSe,updateSiteConfig:Sjt,reset:()=>{lI()},globalReset:()=>{lI(nC)},defaultConfig:nC});Wie(ht().logLevel),lI(ht());const Uen=async function(r,i,o){try{await GIe(r,i,o)}catch(l){Se.warn("Syntax Error rendering"),bae(l)&&Se.warn(l.str),F2.parseError&&F2.parseError(l)}},zIe=(r,i,o)=>{Se.warn(r),bae(r)?(o&&o(r.str,r.hash),i.push({...r,message:r.str,error:r})):(o&&o(r),r instanceof Error&&i.push({str:r.message,message:r.message,hash:r.name,error:r}))},qen=function(r,i,o){const l=Bu.getConfig();r&&(F2.sequenceConfig=r),Se.debug(`${o?"":"No "}Callback function found`);let f;if(i===void 0)f=document.querySelectorAll(".mermaid");else if(typeof i=="string")f=document.querySelectorAll(i);else if(i instanceof HTMLElement)f=[i];else if(i instanceof NodeList)f=i;else throw new Error("Invalid argument nodes for mermaid.init");Se.debug(`Found ${f.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(Se.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Bu.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const b=new Fs.initIdGenerator(l.deterministicIds,l.deterministicIDSeed);let d;const w=[];for(const y of Array.from(f)){Se.info("Rendering diagram: "+y.id);/*! Check if previously processed */if(y.getAttribute("data-processed"))continue;y.setAttribute("data-processed","true");const k=`mermaid-${b.next()}`;d=y.innerHTML,d=T2(Fs.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");const E=Fs.detectInit(d);E&&Se.debug("Detected early reinit: ",E);try{Bu.render(k,d,(T,C)=>{y.innerHTML=T,o!==void 0&&o(k),C&&C(y)},y)}catch(T){zIe(T,w,F2.parseError)}}if(w.length>0)throw w[0]},Yen=async(...r)=>{Se.debug(`Loading ${r.length} external diagrams`);const o=(await Promise.allSettled(r.map(async({id:l,detector:f,loader:b})=>{const{diagram:d}=await b();uf(l,d,f)}))).filter(l=>l.status==="rejected");if(o.length>0){Se.error(`Failed to load ${o.length} external diagrams`);f
|
||
|
* Wait for document loaded before starting the execution
|
||
|
*/window.addEventListener("load",VIe,!1)}const Xen=function(r){F2.parseError=r},Qen=r=>Bu.parse(r,F2.parseError),oU=[];let Bce=!1;const UIe=async()=>{if(!Bce){for(Bce=!0;oU.length>0;){const r=oU.shift();if(r)try{await r()}catch(i){Se.error("Error executing queue",i)}}Bce=!1}},Zen=r=>new Promise((i,o)=>{const l=()=>new Promise((f,b)=>{Bu.parseAsync(r,F2.parseError).then(d=>{f(d),i(d)},d=>{Se.error("Error parsing",d),b(d),o(d)})});oU.push(l),UIe().catch(o)}),Jen=(r,i,o,l)=>new Promise((f,b)=>{const d=()=>new Promise((w,y)=>{Bu.renderAsync(r,i,o,l).then(k=>{w(k),f(k)},k=>{Se.error("Error parsing",k),y(k),b(k)})});oU.push(d),UIe().catch(b)}),F2={startOnLoad:!0,diagrams:{},mermaidAPI:Bu,parse:Qen,parseAsync:Zen,render:Bu.render,renderAsync:Jen,init:Uen,initThrowsErrors:qen,initThrowsErrorsAsync:GIe,registerExternalDiagrams:Ken,initialize:Wen,parseError:void 0,contentLoaded:VIe,setParseErrorHandler:Xen},etn=(r,i,o)=>{const{parentById:l}=o,f=new Set;let b=r;for(;b;){if(f.add(b),b===i)return b;b=l[b]}for(b=i;b;){if(f.has(b))return b;b=l[b]}return"root"};function cU(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qIe={exports:{}};(function(r,i){(function(o){r.exports=o()})(function(){return function(){function o(l,f,b){function d(k,E){if(!f[k]){if(!l[k]){var T=typeof cU=="function"&&cU;if(!E&&T)return T(k,!0);if(w)return w(k,!0);var C=new Error("Cannot find module '"+k+"'");throw C.code="MODULE_NOT_FOUND",C}var S=f[k]={exports:{}};l[k][0].call(S.exports,function(L){var O=l[k][1][L];return d(O||L)},S,S.exports,o,l,f,b)}return f[k].exports}for(var w=typeof cU=="function"&&cU,y=0;y<b.length;y++)d(b[y]);return d}return o}()({1:[function(o,l,f){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function k(E,T){for(var C=0;C<T.length;C++){var S=T[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}}return function(E,T,C){return T&&k(E.prototype,T),C&&k(E,C),E}}();function d(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}var w=function(){function k(){var E=this,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=T.defaultLayoutOptions,S=C===void 0?{}:C,L=T.algorithms,O=L===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:L,B=T.workerFactory,N=T.workerUrl;if(d(this,k),this.defaultLayoutOptions=S,this.initialized=!1,typeof N>"u"&&typeof B>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var F=B;typeof N<"u"&&typeof B>"u"&&(F=function(X){return new Worker(X)});var R=F(N);if(typeof R.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new y(R),this.worker.postMessage({cmd:"register",algorithms:O}).then(function(q){return E.initialized=!0}).catch(console.err)}return b(k,[{key:"layout",value:function(T){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=C.layoutOptions,L=S===void 0?this.defaultLayoutOptions:S,O=C.logging,B=O===void 0?!1:O,N=C.measureExecutionTime,F=N===void 0?!1:N;return T?this.worker.postMessage({cmd:"layout",graph:T,layoutOptions:L,options:{logging:B,measureExecutionTime:F}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),k}();f.default=w;var y=function(){function k(E){var T=this;if(d(this,k),E===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=E,this.worker.onmessage=function(C){setTimeout(function(){T.receive(T,C)},0)}}return b
|
||
|
`,Ec(Is(e,t[0])))>=0;)++t[0]}function AA(e,t){this.e=t,this.a=Clt(e),this.a<54?this.f=vb(e):this.c=eM(e)}function Nct(e,t,n,s){Mr(),G2.call(this,26),this.c=e,this.a=t,this.d=n,this.b=s}function j1(e,t,n){var s,a;for(s=10,a=0;a<n-1;a++)t<s&&(e.a+="0"),s*=10;e.a+=t}function Z3n(e,t){var n;for(n=0;e.e!=e.i.gc();)q2n(t,On(e),Ke(n)),n!=Ir&&++n}function tge(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function J3n(e,t){var n,s,a;a=t.c.i,n=h(_n(e.f,a),57),s=n.d.c-n.e.c,Tge(t.a,s,0)}function MA(e){var t,n;return t=e+128,n=(jnt(),x3e)[t],!n&&(n=x3e[t]=new xqe(e)),n}function cr(e,t){var n;return rn(t),n=e[":"+t],i4n(!!n,se(ie(yn,1),st,1,5,[t])),n}function e4n(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=Ldt(t,n);while(e.b);e.b=n}}function t4n(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=Ldt(t,n);while(e.a);e.a=n}}function Pct(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function n4n(e,t){var n,s;for(s=t.c,n=s+1;n<=t.f;n++)e.a[n]>e.a[s]&&(s=n);return s}function r4n(e,t){var n;return n=Mb(e.e.c,t.e.c),n==0?Ui(e.e.d,t.e.d):n}function vy(e,t){return t.e==0||e.e==0?Gx:(cx(),DQ(e,t))}function i4n(e,t){if(!e)throw ne(new an(oAn("Enum constant undefined: %s",t)))}function qE(){qE=re,m5t=new M7,y5t=new iS,v5t=new z2,w5t=new _Be,k5t=new TBe}function OB(){OB=re,t4e=new Uhe("BY_SIZE",0),lte=new Uhe("BY_SIZE_AND_SHAPE",1)}function NB(){NB=re,kte=new qhe("EADES",0),Xj=new qhe("FRUCHTERMAN_REINGOLD",1)}function DA(){DA=re,S$=new Xhe("READING_DIRECTION",0),K5e=new Xhe("ROTATION",1)}function Bct(){Bct=re,r6t=ur((Kp(),se(ie(W5e,1),ze,335,0,[Qte,Y5e,Zte,k_,y_])))}function Fct(){Fct=re,Nxt=ur((f9(),se(ie(Kke,1),ze,315,0,[Wke,zne,Gne,N_,P_])))}function Rct(){Rct=re,q5t=ur((Iy(),se(ie(U5t,1),ze,363,0,[x$,_$,T$,E$,k$])))}function jct(){jct=re,b6t=ur((wl(),se(ie(T6e,1),ze,163,0,[LD,C_,Gg,S_,nm])))}function $ct(){$ct=re,tEt=ur((lM(),se(ie(m8e,1),ze,316,0,[b8e,Ere,w8e,_re,v8e])))}function Hct(){Hct=re,_Et=ur((Qh(),se(ie(P0,1),ze,175,0,[gn,gs,k1,w2,N0])))}function zct(){zct=re,K7t=ur((fx(),se(ie(W7t,1),ze,355,0,[y3,G5,W_,Y_,K_])))}function Gct(){Gct=re,h5t=ur((Zs(),se(ie(U4e,1),ze,356,0,[w1,Hg,oc,Go,Pa])))}function Vct(){Vct=re,WEt=ur((la(),se(ie(J_,1),ze,103,0,[Q1,Dh,Wl,zd,Gd])))}function Uct(){Uct=re,r9t=ur((Cy(),se(ie(rT,1),ze,249,0,[Xg,sL,U7e,nT,q7e])))}function qct(){qct=re,a9t=ur((Qe(),se(ie(ta,1),yo,61,0,[to,sn,pn,Fn,un])))}function DK(e,t){var n;return n=h(_n(e.a,t),134),n||(n=new bd,Pr(e.a,t,n)),n}function Yct(e){var t;return t=h(U(e,(He(),tv)),305),t?t.a==e:!1}function Wct(e){var t;return t=h(U(e,(He(),tv)),305),t?t.i==e:!1}function Kct(e,t){return rn(t),kde(e),e.d.Ob()?(t.td(e.d.Pb()),!0):!1}function PB(e){return mo(e,Ir)>0?Ir:mo(e,$s)<0?$s:Gn(e)}function vw(e){return e<3?(Uu(e,Gbt),e+1):e<N9?Li(e/.75+1):Ir}function Ht(e,t){var n;return n=(e.i==null&&s1(e),e.i),t>=0&&t<n.length?n[t]:null}function Wh(e,t,n){var s;if(t==null)throw ne(new P7);return s=Ed(e,t),Cyn(e,t,n),s}function Xct(e){return e.a>=-.01&&e.a<=If&&(e.a=0),e.b>=-.01&&e.b<=If&&(e.b=0),e}function Qct(e,t){return t==(KY(),KY(),x3t)?e.toLocaleLowerCase():e.toLowerCase()}function nge(e){return((e.i&2)!=0?"interface ":(e.i&1)!=0?"":"class ")+(yd(e),e.o)}function Aa(e){var t,n;n=(t=new Sq,t),qn((!e.q&&(e.q=new Ye(eh,e,11,10)),e.q),n)}function s4n(e,t){var n;return n=t>0?t-1:t,UXe(m1n(xut(ede(new H6,n),e.n),e.j),e.k)}function a4n(e,t,n,s){var a;e.j=-1,Tbe(e,sbe(e,t,n),(ia(),a=h(t,66).Mj(),a.Ok(s)))}function Zct(e){this.g=e,this.f=new qe,this.a=d.Math.min(this.g.c.c,this.g.d.c)}function Jct(e){this.b=new qe,this.a=new qe,this.c=new qe,this.d=new qe,this.e=e}function eut(e,t){this.a=new zn,this.e=new zn,this.b=(t9(),nH),this.c=e,this.b=t}function tut(e,t,n){gP.call(this),rge(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function nut(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(aN(),Qee)}function yb(e){if(e<0)throw ne(new an("Illegal Capacity: "+e));this.g=this.ri(e)}function o4n(e,t){if(0>e||e>t)throw ne(new bhe("fromIndex: 0, toIndex: "+e+iwe+t))}function c4n(e){var t;if(e.a==e.b.a)throw ne(new lo);return t=e.a,e.c=t,e.a=e.a.e
|
||
|
`)}return t&&(t.stack||n(e[vZ]))}function Ppe(e){lw();var t;switch(t=e.Pc(),t.length){case 0:return Kee;case 1:return new sW(Vn(t[0]));default:return new jW(Akn(t))}}function Db(e,t){switch(t.g){case 1:return R4(e.j,(Rc(),Z4e));case 2:return R4(e.j,(Rc(),e5e));default:return Rt(),Rt(),ca}}function Bpe(e,t){switch(t){case 3:xb(e,0);return;case 4:Eb(e,0);return;case 5:yc(e,0);return;case 6:kc(e,0);return}lpe(e,t)}function EX(){EX=re,TN(),eH=(tt(),uv),Dxt=Ef(se(ie(Mre,1),eye,146,0,[ND,Mh,z5,cv,lm,Ine,h8,f8,One,I_,p3,b2,b3]))}function Zht(e){var t,n;t=e.d==(u5(),Zx),n=P2e(e),t&&!n||!t&&n?Fe(e.a,(tt(),m1),($1(),YD)):Fe(e.a,(tt(),m1),($1(),qD))}function oxn(e,t){var n;return n=h(Gu(e,Bp(new Le,new Oe,new We,se(ie(gu,1),ze,132,0,[(Af(),Zu)]))),15),n.Qc(xnt(n.gc()))}function kF(){kF=re,Xre=new VN("SIMPLE",0),X7e=new VN("GROUP_DEC",1),Z7e=new VN("GROUP_MIXED",2),Q7e=new VN("GROUP_INC",3)}function _X(){_X=re,aie=new qze,kEe=new Yze,xEe=new Wze,EEe=new Kze,_Ee=new Xze,TEe=new Qze,CEe=new Zze,SEe=new Jze,AEe=new eGe}function Jht(e,t,n){out(),QKe.call(this),this.a=Ap(H3t,[Re,dwe],[595,212],0,[Vj,fte],2),this.c=new O4,this.g=e,this.f=t,this.d=n}function Fpe(e,t){this.n=Ap(ap,[Re,RZ],[364,25],14,[t,Li(d.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function cxn(e,t){Bn(t,"End label post-processing",1),Ti(Jr(Xa(new Vt(null,new Wt(e.b,16)),new XBe),new QBe),new ZBe),An(t)}function uxn(e,t,n){var s,a;return s=Pe(e.p[t.i.p])+Pe(e.d[t.i.p])+t.n.b+t.a.b,a=Pe(e.p[n.i.p])+Pe(e.d[n.i.p])+n.n.b+n.a.b,a-s}function lxn(e,t,n){var s,a;for(s=Zi(n,fa),a=0;mo(s,0)!=0&&a<t;a++)s=Vs(s,Zi(e[a],fa)),e[a]=Gn(s),s=dg(s,32);return Gn(s)}function xF(e){var t,n,s,a;for(a=0,n=0,s=e.length;n<s;n++)t=(er(n,e.length),e.charCodeAt(n)),t<64&&(a=xf(a,kd(1,t)));return a}function hxn(e){var t;return e==null?null:new hg((t=Ho(e,!0),t.length>0&&(er(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function fxn(e){var t;return e==null?null:new hg((t=Ho(e,!0),t.length>0&&(er(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function Rpe(e,t){var n;return e.i>0&&(t.length<e.i&&(n=LA(uu(t).c,e.i),t=n),Ao(e.g,0,t,0,e.i)),t.length>e.i&&pi(t,e.i,null),t}function Xo(e,t,n){var s,a,u;return e.ej()?(s=e.i,u=e.fj(),YA(e,s,t),a=e.Zi(3,null,t,s,u),n?n.Ei(a):n=a):YA(e,e.i,t),n}function dxn(e,t,n){var s,a;return s=new Sd(e.e,4,10,(a=t.c,ue(a,88)?h(a,26):(Bt(),nh)),null,y0(e,t),!1),n?n.Ei(s):n=s,n}function gxn(e,t,n){var s,a;return s=new Sd(e.e,3,10,null,(a=t.c,ue(a,88)?h(a,26):(Bt(),nh)),y0(e,t),!1),n?n.Ei(s):n=s,n}function eft(e){rw();var t;return t=new _a(h(e.e.We((Tr(),_3)),8)),e.B.Hc((fu(),x8))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function tft(e){Tw();var t;return(e.q?e.q:(Rt(),Rt(),K1))._b((tt(),av))?t=h(U(e,av),197):t=h(U(Us(e),L_),197),t}function _w(e,t){var n,s;return s=null,os(e,(tt(),Z$))&&(n=h(U(e,Z$),94),n.Xe(t)&&(s=n.We(t))),s==null&&(s=U(Us(e),t)),s}function nft(e,t){var n,s,a;return ue(t,42)?(n=h(t,42),s=n.cd(),a=xw(e.Rc(),s),n1(a,n.dd())&&(a!=null||e.Rc()._b(s))):!1}function TX(e,t){var n,s,a;return e.f>0?(e.qj(),s=t==null?0:ii(t),a=(s&Ir)%e.d.length,n=ngt(e,a,s,t),n!=-1):!1}function Xh(e,t){var n,s,a;return e.f>0&&(e.qj(),s=t==null?0:ii(t),a=(s&Ir)%e.d.length,n=xbe(e,a,s,t),n)?n.dd():null}function QA(e,t){var n,s,a,u;for(u=ac(e.e.Tg(),t),n=h(e.g,119),a=0;a<e.i;++a)if(s=n[a],u.rl(s.ak()))return!1;return!0}function rft(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!h(e.b,49).Zg())return!0;return e.b=null,!1}else return!0}function ift(e,t){e.mj();try{e.d.Vc(e.e++,t),e.f=e.d.j,e.g=-1}catch(n){throw n=ui(n),ue(n,73)?ne(new cl):ne(n)}}function EF(e,t){Cfe();var n,s;return n=YS((uN(),uN(),h_)),s=null,t==n&&(s=h(Fo(v3e,e),615)),s||(s=new zrt(e),t==n&&Ta(v3e,e,s)),s}function sft(e,t){var n,s;e.a=Vs(e.a,1),e.c=d.Math.min(e.c,t),e.b=d.Math.max(e.b,t),e.d+=t,n=t-e.f,s=e.e+n,e.f=s-e.e-n,e.e=s}function pxn(e,t){var n;e.c=t,e.a=Zkn(t),e.a<54&&(e.f=(n=t.d>1?xf(kd(t.a[1],32),Zi(t.a[0],fa)):Zi(t.a[0],fa),vb(js(t.e,n))))}function ZA(e,t){var n;return $a(e)&&$a(t)&&(n=e%t,RM<n&&n<Jp)?n:xg((Ive($a(e)?Bl(e):e,$a(t)?Bl(t):t,!0),Rg))}function c9(e,t){var n;POn(t),n=h(
|
||
|
`;return n.substring(0,s.length)==s&&(n=n.substring(s.length)),n.split(`
|
||
|
`)}return[]}function r7n(e){var t;return t=(Iut(),d3t),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function w1t(e){var t,n,s;e.b==e.c&&(s=e.a.length,n=Gge(d.Math.max(8,s))<<1,e.b!=0?(t=vh(e.a,n),$ut(e,t,s),e.a=t,e.b=0):FKe(e.a,n),e.c=s)}function i7n(e,t){var n;return n=e.b,n.Xe((Tr(),pu))?n.Hf()==(Qe(),un)?-n.rf().a-Pe(Je(n.We(pu))):t+Pe(Je(n.We(pu))):n.Hf()==(Qe(),un)?-n.rf().a:t}function iM(e){var t;return e.b.c.length!=0&&!!h(ut(e.b,0),70).a?h(ut(e.b,0),70).a:(t=PW(e),t!=null?t:""+(e.c?Ha(e.c.a,e,0):-1))}function $F(e){var t;return e.f.c.length!=0&&!!h(ut(e.f,0),70).a?h(ut(e.f,0),70).a:(t=PW(e),t!=null?t:""+(e.i?Ha(e.i.j,e,0):-1))}function s7n(e,t){var n,s;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(s=h(e.Xb(n),128),n==e.gc()-1||!s.o)return new As(Ke(n),s);return null}function a7n(e,t,n){var s,a,u,p,v;for(u=e.c,v=n?t:e,s=n?e:t,a=v.p+1;a<s.p;++a)if(p=h(ut(u.a,a),10),!(p.k==(bn(),Bf)||N7n(p)))return!1;return!0}function u2e(e){var t,n,s,a,u;for(u=0,a=Fi,s=0,n=new Q(e.a);n.a<n.c.c.length;)t=h(K(n),187),u+=t.r+(s>0?e.c:0),a=d.Math.max(a,t.d),++s;e.e=u,e.b=a}function o7n(e){var t,n;if(!e.b)for(e.b=dB(h(e.f,118).Ag().i),n=new Tn(h(e.f,118).Ag());n.e!=n.i.gc();)t=h(On(n),137),Ue(e.b,new Bq(t));return e.b}function c7n(e,t){var n,s,a;if(t.dc())return ik(),ik(),bL;for(n=new ktt(e,t.gc()),a=new Tn(e);a.e!=a.i.gc();)s=On(a),t.Hc(s)&&qn(n,s);return n}function l2e(e,t,n,s){return t==0?s?(!e.o&&(e.o=new Du((Qo(),ep),fv,e,0)),e.o):(!e.o&&(e.o=new Du((Qo(),ep),fv,e,0)),wA(e.o)):IF(e,t,n,s)}function QX(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)zS(he(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)zS(he(e.vb,t));AE((jc(),Ps),e),e.Bb|=1}function Zr(e,t,n,s,a,u,p,v,m,x,_,A,I,P){return Wdt(e,t,s,null,a,u,p,v,m,x,I,!0,P),ype(e,_),ue(e.Cb,88)&&Lw(ou(h(e.Cb,88)),2),n&&yge(e,n),kpe(e,A),e}function u7n(e){var t,n;if(e==null)return null;n=0;try{n=Wu(e,$s,Ir)&Oi}catch(s){if(s=ui(s),ue(s,127))t=LB(e),n=t[0];else throw ne(s)}return RA(n)}function l7n(e){var t,n;if(e==null)return null;n=0;try{n=Wu(e,$s,Ir)&Oi}catch(s){if(s=ui(s),ue(s,127))t=LB(e),n=t[0];else throw ne(s)}return RA(n)}function h7n(e,t){var n,s,a;return a=e.h-t.h,a<0||(n=e.l-t.l,s=e.m-t.m+(n>>22),a+=s>>22,a<0)?!1:(e.l=n&du,e.m=s&du,e.h=a&Rd,!0)}function f7n(e,t,n,s,a,u,p){var v,m;return!(t.Ae()&&(m=e.a.ue(n,s),m<0||!a&&m==0)||t.Be()&&(v=e.a.ue(n,u),v>0||!p&&v==0))}function d7n(e,t){Uk();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return yX(t,j5e)-yX(e,j5e);case 4:return yX(e,R5e)-yX(t,R5e)}return 0}function g7n(e){switch(e.g){case 0:return ene;case 1:return tne;case 2:return nne;case 3:return rne;case 4:return A$;case 5:return ine;default:return null}}function Ma(e,t,n){var s,a;return s=(a=new Aq,Vp(a,t),Ko(a,n),qn((!e.c&&(e.c=new Ye(dv,e,12,10)),e.c),a),a),p0(s,0),yw(s,1),m0(s,!0),w0(s,!0),s}function c5(e,t){var n,s;if(t>=e.i)throw ne(new EY(t,e.i));return++e.j,n=e.g[t],s=e.i-t-1,s>0&&Ao(e.g,t+1,e.g,t,s),pi(e.g,--e.i,null),e.fi(t,n),e.ci(),n}function m1t(e,t){var n,s;return e.Db>>16==17?e.Cb.ih(e,21,Jl,t):(s=aa(h(Ht((n=h(tn(e,16),26),n||e.zh()),e.Db>>16),18)),e.Cb.ih(e,s.n,s.f,t))}function p7n(e){var t,n,s,a;for(Rt(),hs(e.c,e.a),a=new Q(e.c);a.a<a.c.c.length;)for(s=K(a),n=new Q(e.b);n.a<n.c.c.length;)t=h(K(n),679),t.Ke(s)}function b7n(e){var t,n,s,a;for(Rt(),hs(e.c,e.a),a=new Q(e.c);a.a<a.c.c.length;)for(s=K(a),n=new Q(e.b);n.a<n.c.c.length;)t=h(K(n),369),t.Ke(s)}function v7n(e){var t,n,s,a,u;for(a=Ir,u=null,s=new Q(e.d);s.a<s.c.c.length;)n=h(K(s),213),n.d.j^n.e.j&&(t=n.e.e-n.d.e-n.a,t<a&&(a=t,u=n));return u}function h2e(){h2e=re,e5t=new $t(Lwe,(on(),!1)),Q4t=new $t(Iwe,100),F4e=(UE(),Tte),Z4t=new $t(Owe,F4e),J4t=new $t(Nwe,l1),t5t=new $t(Pwe,Ke(Ir))}function y1t(e,t,n){var s,a,u,p,v,m,x,_;for(x=0,a=e.a[t],u=0,p=a.length;u<p;++u)for(s=a[u],_=r9(s,n),m=_.Kc();m.Ob();)v=h(m.Pb(),11),Pr(e.f,v,Ke(x++))}function w7n(e,t,n){var s,a,u,p;if(n)for(a=n.a.length,s=new Mp(a),p=(s.b-s.a)*s.c<0?(cg(),sp):new fg(s);p.Ob();)u=h(p.Pb(),19),Ot(e,t,l5(bw(n,u.a)))}function m7n(e,t,n){var s,a,u,p;if(n)for(a=n.a.lengt
|
||
|
\r\f]+`);try{uT=se(ie(HPn,1),st,2015,0,[new fS((Cfe(),EF("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",YS((uN(),uN(),h_))))),new fS(EF("yyyy-MM-dd'T'HH:mm:ss'.'SSS",YS(h_))),new fS(EF("yyyy-MM-dd'T'HH:mm:ss",YS(h_))),new fS(EF("yyyy-MM-dd'T'HH:mm",YS(h_))),new fS(EF("yyyy-MM-dd",YS(h_)))])}catch(e){if(e=ui(e),!ue(e,78))throw ne(e)}}function TLn(e){var t,n,s,a;if(s=lZ((!e.c&&(e.c=UA(e.f)),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return s;if(t=hge(e)<0?1:0,n=e.e,a=(s.length+1+d.Math.abs(Li(e.e)),new Kv),t==1&&(a.a+="-"),e.e>0)if(n-=s.length-t,n>=0){for(a.a+="0.";n>l2.length;n-=l2.length)Vnt(a,l2);Ctt(a,l2,Li(n)),or(a,s.substr(t))}else n=t-n,or(a,$u(s,t,Li(n))),a.a+=".",or(a,jS(s,Li(n)));else{for(or(a,s.substr(t));n<-l2.length;n+=l2.length)Vnt(a,l2);Ctt(a,l2,Li(-n))}return a.a}function Sve(e,t,n,s){var a,u,p,v,m,x,_,A,I;return m=ms(new dt(n.a,n.b),e),x=m.a*t.b-m.b*t.a,_=t.a*s.b-t.b*s.a,A=(m.a*s.b-m.b*s.a)/_,I=x/_,_==0?x==0?(a=zr(new dt(n.a,n.b),Jf(new dt(s.a,s.b),.5)),u=yg(e,a),p=yg(zr(new dt(e.a,e.b),t),a),v=d.Math.sqrt(s.a*s.a+s.b*s.b)*.5,u<p&&u<=v?new dt(e.a,e.b):p<=v?zr(new dt(e.a,e.b),t):null):null:A>=0&&A<=1&&I>=0&&I<=1?zr(new dt(e.a,e.b),Jf(new dt(t.a,t.b),A)):null}function CLn(e,t,n){var s,a,u,p,v;if(s=h(U(e,(tt(),kne)),21),n.a>t.a&&(s.Hc((Aw(),WD))?e.c.a+=(n.a-t.a)/2:s.Hc(KD)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(s.Hc((Aw(),QD))?e.c.b+=(n.b-t.b)/2:s.Hc(XD)&&(e.c.b+=n.b-t.b)),h(U(e,(He(),Uo)),21).Hc((ha(),El))&&(n.a>t.a||n.b>t.b))for(v=new Q(e.a);v.a<v.c.c.length;)p=h(K(v),10),p.k==(bn(),Pi)&&(a=h(U(p,co),61),a==(Qe(),pn)?p.n.a+=n.a-t.a:a==Fn&&(p.n.b+=n.b-t.b));u=e.d,e.f.a=n.a-u.b-u.c,e.f.b=n.b-u.d-u.a}function SLn(e,t,n){var s,a,u,p,v;if(s=h(U(e,(tt(),kne)),21),n.a>t.a&&(s.Hc((Aw(),WD))?e.c.a+=(n.a-t.a)/2:s.Hc(KD)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(s.Hc((Aw(),QD))?e.c.b+=(n.b-t.b)/2:s.Hc(XD)&&(e.c.b+=n.b-t.b)),h(U(e,(He(),Uo)),21).Hc((ha(),El))&&(n.a>t.a||n.b>t.b))for(p=new Q(e.a);p.a<p.c.c.length;)u=h(K(p),10),u.k==(bn(),Pi)&&(a=h(U(u,co),61),a==(Qe(),pn)?u.n.a+=n.a-t.a:a==Fn&&(u.n.b+=n.b-t.b));v=e.d,e.f.a=n.a-v.b-v.c,e.f.b=n.b-v.d-v.a}function ALn(e){var t,n,s,a,u,p,v,m,x,_,A,I;for(t=L0t(e),_=(v=new P6(t).a.vc().Kc(),new ble(v));_.a.Ob();){for(x=(a=h(_.a.Pb(),42),h(a.cd(),10)),A=0,I=0,A=x.d.d,I=x.o.b+x.d.a,e.d[x.p]=0,n=x;(u=e.a[n.p])!=x;)s=$xn(n,u),m=0,e.c==(r1(),I0)?m=s.d.n.b+s.d.a.b-s.c.n.b-s.c.a.b:m=s.c.n.b+s.c.a.b-s.d.n.b-s.d.a.b,p=Pe(e.d[n.p])+m,e.d[u.p]=p,A=d.Math.max(A,u.d.d-p),I=d.Math.max(I,p+u.o.b+u.d.a),n=u;n=x;do e.d[n.p]=Pe(e.d[n.p])+A,n=e.a[n.p];while(n!=x);e.b[x.p]=A+I}}function WQ(e){var t,n,s,a,u,p,v,m,x,_,A,I;for(e.b=!1,A=ki,m=Fi,I=ki,x=Fi,s=e.e.a.ec().Kc();s.Ob();)for(n=h(s.Pb(),266),a=n.a,A=d.Math.min(A,a.c),m=d.Math.max(m,a.c+a.b),I=d.Math.min(I,a.d),x=d.Math.max(x,a.d+a.a),p=new Q(n.c);p.a<p.c.c.length;)u=h(K(p),395),t=u.a,t.a?(_=a.d+u.b.b,v=_+u.c,I=d.Math.min(I,_),x=d.Math.max(x,v)):(_=a.c+u.b.a,v=_+u.c,A=d.Math.min(A,_),m=d.Math.max(m,v));e.a=new dt(m-A,x-I),e.c=new dt(A+e.d.a,I+e.d.b)}function MLn(e,t,n){var s,a,u,p,v,m,x,_,A;for(A=new qe,_=new l0e(0,n),u=0,zB(_,new JK(0,0,_,n)),a=0,x=new Tn(e);x.e!=x.i.gc();)m=h(On(x),33),s=h(ut(_.a,_.a.c.length-1),187),v=a+m.g+(h(ut(_.a,0),187).b.c.length==0?0:n),v>t&&(a=0,u+=_.b+n,A.c[A.c.length]=_,_=new l0e(u,n),s=new JK(0,_.f,_,n),zB(_,s),a=0),s.b.c.length==0||m.f>=s.o&&m.f<=s.f||s.a*.5<=m.f&&s.a*1.5>=m.f?Epe(s,m):(p=new JK(s.s+s.r+n,_.f,_,n),zB(_,p),Epe(p,m)),a=m.i+m.g;return A.c[A.c.length]=_,A}function $y(e){var t,n,s,a,u,p,v,m;if(!e.a){if(e.o=null,m=new wKe(e),t=new Hze,n=fT,v=n.a.zc(e,n),v==null){for(p=new Tn(La(e));p.e!=p.i.gc();)u=h(On(p),26),mi(m,$y(u));n.a.Bc(e)!=null,n.a.gc()==0}for(a=(!e.s&&(e.s=new Ye(Ac,e,21,17)),new Tn(e.s));a.e!=a.i.gc();)s=h(On(a),170),ue(s,322)&&qn(t,h(s,34));kw(t),e.k=new _nt(e,(h(he(De((bg(),Xt).o),7),18),t.i),t.g),mi(m,e.k),kw(m),e.a=new ay((h(he(De(Xt.o),4),18),m.i),m.g),ou(e).b&=-2}return e.a}function DLn(e,t,n,s,a,u,p){var v,m,x,_,A,I;return A=!1,m=ygt(n.q,t.f+t.b-n.q.f),I=a-(n.q.e+m-p),I<s.g||(x=u==e.c.length-1&&I>=(Kt(u,e.c.length),h(e.c[u],200)).e,_=(v=M9(s,I,!1),v.a),_>t.b&&!x)?!1:((x||_<=t.b)&&(x&&_>t.b?(n.d=_,mA(n,_dt(n,_))):(G1t(n.q,m
|
||
|
\r\r `),Ta(M3,$ee,s),Ta(_8,$ee,Bw(s)),s=new zu(4),JA(s,qyt),Ta(M3,l_,s),Ta(_8,l_,Bw(s)),s=new zu(4),JA(s,qyt),Ta(M3,l_,s),Ta(_8,l_,Bw(s)),s=new zu(4),JA(s,Yyt),Fw(s,h(Fo(M3,l_),117)),Ta(M3,jee,s),Ta(_8,jee,Bw(s)),s=new zu(4),JA(s,"-.0:AZ__az\xB7\xB7\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u02D0\u02D1\u0300\u0345\u0360\u0361\u0386\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0483\u0486\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u0591\u05A1\u05A3\u05B9\u05BB\u05BD\u05BF\u05BF\u05C1\u05C2\u05C4\u05C4\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0640\u0652\u0660\u0669\u0670\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06E8\u06EA\u06ED\u06F0\u06F9\u0901\u0903\u0905\u0939\u093C\u094D\u0951\u0954\u0958\u0963\u0966\u096F\u0981\u0983\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09BC\u09BC\u09BE\u09C4\u09C7\u09C8\u09CB\u09CD\u09D7\u09D7\u09DC\u09DD\u09DF\u09E3\u09E6\u09F1\u0A02\u0A02\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3C\u0A3E\u0A42\u0A47\u0A48\u0A4B\u0A4D\u0A59\u0A5C\u0A5E\u0A5E\u0A66\u0A74\u0A81\u0A83\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABC\u0AC5\u0AC7\u0AC9\u0ACB\u0ACD\u0AE0\u0AE0\u0AE6\u0AEF\u0B01\u0B03\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3C\u0B43\u0B47\u0B48\u0B4B\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F\u0B61\u0B66\u0B6F\u0B82\u0B83\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0BBE\u0BC2\u0BC6\u0BC8\u0BCA\u0BCD\u0BD7\u0BD7\u0BE7\u0BEF\u0C01\u0C03\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C3E\u0C44\u0C46\u0C48\u0C4A\u0C4D\u0C55\u0C56\u0C60\u0C61\u0C66\u0C6F\u0C82\u0C83\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CBE\u0CC4\u0CC6\u0CC8\u0CCA\u0CCD\u0CD5\u0CD6\u0CDE\u0CDE\u0CE0\u0CE1\u0CE6\u0CEF\u0D02\u0D03\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D3E\u0D43\u0D46\u0D48\u0D4A\u0D4D\u0D57\u0D57\u0D60\u0D61\u0D66\u0D6F\u0E01\u0E2E\u0E30\u0E3A\u0E40\u0E4E\u0E50\u0E59\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB9\u0EBB\u0EBD\u0EC0\u0EC4\u0EC6\u0EC6\u0EC8\u0ECD\u0ED0\u0ED9\u0F18\u0F19\u0F20\u0F29\u0F35\u0F35\u0F37\u0F37\u0F39\u0F39\u0F3E\u0F47\u0F49\u0F69\u0F71\u0F84\u0F86\u0F8B\u0F90\u0F95\u0F97\u0F97\u0F99\u0FAD\u0FB1\u0FB7\u0FB9\u0FB9\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u20D0\u20DC\u20E1\u20E1\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3005\u3005\u3007\u3007\u3021\u302F\u3031\u3035\u3041\u3094\u3099\u309A\u309D\u309E\u30A1\u30FA\u30FC\u30FE\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3"),Ta(M3,Hee,s),Ta(_8,Hee,Bw(s)),s=new zu(4),JA(s,Yyt),$o(s,95,95),$o(s,58,58),Ta(M3,zee,s),Ta(_8,zee,Bw(s))),n=h(Fo(t?M3:_8,e),136),n}function hPn(e){Yn(e.a,lr,se(ie(it,1),Re,2,6,[_r,"anySimpleType"])),Yn(e.b,lr,se(ie(it,1),Re,2,6,[_r,"anyType",Gl,iD])),Yn(h(he(De(e.b),0),34),lr,se(ie(it,1),Re,2,6,[Gl,Nee,_r,":mixed"])),Yn(h(he(De(e.b),1),34),lr,se(ie(it,1),Re,2,6,[Gl,Nee,r3e,Bee,_r,":1",Iyt,"lax"])),Yn(h(he(De(e.b),2),34),lr,se(ie(it,1),Re,2,6,[Gl,Ayt,r3e,Bee,_r,":2",Iyt,"lax"
|
||
|
`,jvt=`)]}"' \r
|
||
|
`,$vt="The given string contains parts that cannot be parsed as numbers.",WM="org.eclipse.elk.core.math",Hvt={3:1,4:1,142:1,207:1,414:1},zvt={3:1,4:1,116:1,207:1,414:1},wn="org.eclipse.elk.layered",C0="org.eclipse.elk.alg.layered.graph.transform",Gvt="ElkGraphImporter",Vvt="ElkGraphImporter/lambda$0$Type",Uvt="ElkGraphImporter/lambda$1$Type",qvt="ElkGraphImporter/lambda$2$Type",Yvt="ElkGraphImporter/lambda$4$Type",Wvt="Node margin calculation",fn="org.eclipse.elk.alg.layered.intermediate",Kvt="ONE_SIDED_GREEDY_SWITCH",Xvt="TWO_SIDED_GREEDY_SWITCH",pJ="No implementation is available for the layout processor ",Fwe="IntermediateProcessorStrategy",bJ="Node '",Qvt="FIRST_SEPARATE",Zvt="LAST_SEPARATE",Jvt="Odd port side processing",Ri="org.eclipse.elk.alg.layered.intermediate.compaction",V9="org.eclipse.elk.alg.layered.intermediate.greedyswitch",W1="org.eclipse.elk.alg.layered.p3order.counting",KM={225:1},T5="org.eclipse.elk.alg.layered.intermediate.loops",Qu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Pg="org.eclipse.elk.alg.layered.intermediate.loops.routing",U9="org.eclipse.elk.alg.layered.intermediate.preserveorder",f1="org.eclipse.elk.alg.layered.intermediate.wrapping",ko="org.eclipse.elk.alg.layered.options",vJ="INTERACTIVE",ewt="DEPTH_FIRST",twt="EDGE_LENGTH",nwt="SELF_LOOPS",rwt="firstTryWithInitialOrder",Rwe="org.eclipse.elk.layered.directionCongruency",jwe="org.eclipse.elk.layered.feedbackEdges",HR="org.eclipse.elk.layered.interactiveReferencePoint",$we="org.eclipse.elk.layered.mergeEdges",Hwe="org.eclipse.elk.layered.mergeHierarchyEdges",zwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Gwe="org.eclipse.elk.layered.portSortingStrategy",Vwe="org.eclipse.elk.layered.thoroughness",Uwe="org.eclipse.elk.layered.unnecessaryBendpoints",qwe="org.eclipse.elk.layered.generatePositionAndLayerIds",wJ="org.eclipse.elk.layered.cycleBreaking.strategy",XM="org.eclipse.elk.layered.layering.strategy",Ywe="org.eclipse.elk.layered.layering.layerConstraint",Wwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",Kwe="org.eclipse.elk.layered.layering.layerId",mJ="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",yJ="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",kJ="org.eclipse.elk.layered.layering.nodePromotion.strategy",xJ="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",EJ="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",q9="org.eclipse.elk.layered.crossingMinimization.strategy",Xwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",_J="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",TJ="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Qwe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Zwe="org.eclipse.elk.layered.crossingMinimization.positionId",Jwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",CJ="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",zR="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",Wy="org.eclipse.elk.layered.nodePlacement.strategy",GR="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",SJ="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",AJ="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",MJ="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",DJ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",LJ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",eme="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",tme="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",VR="org.eclipse.elk.layered.edgeRouting.splines.mode",UR="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",IJ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",nme="org.eclipse.elk.layered.spacing.baseValue",rme="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",ime="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",sme="org.eclipse.elk.layered.spacing.nodeNodeBetw
|
||
|
`,t=Ke(0),p=0;p<this.p;p++){for(s+=""+t.a,t=Ke(Ttt(t.a)),a=0;a<this.o;a++)n=RK(this,a,p),mo(n,0)==0?s+="_":mo(n,1)==0?s+="X":s+="0";s+=`
|
||
|
`}return $u(s,0,s.length-1)},g.o=0,g.p=0,D(IR,"TwoBitGrid",1298),M(321,1298,{321:1},Fpe),g.j=0,g.k=0,D(IR,"PlanarGrid",321),M(167,321,{321:1,167:1}),g.g=0,g.i=0,D(IR,"Polyomino",167);var CPn=fi(GM,_vt);M(134,1,vwe,bd),g.Ye=function(t,n){return zA(this,t,n)},g.Ve=function(){return Ynt(this)},g.We=function(t){return U(this,t)},g.Xe=function(t){return os(this,t)},D(GM,"MapPropertyHolder",134),M(1299,134,vwe,Cgt),D(IR,"Polyominoes",1299);var y4t=!1,g_,k4e;M(1766,1,mn,hh),g.td=function(t){_2t(h(t,221))},D(y5,"DepthFirstCompaction/0methodref$compactTree$Type",1766),M(810,1,mn,Mle),g.td=function(t){hvn(this.a,h(t,221))},D(y5,"DepthFirstCompaction/lambda$1$Type",810),M(1767,1,mn,ant),g.td=function(t){Pxn(this.a,this.b,this.c,h(t,221))},D(y5,"DepthFirstCompaction/lambda$2$Type",1767);var p_,x4e;M(65,1,{65:1},dst),D(y5,"Node",65),M(1250,1,{},det),D(y5,"ScanlineOverlapCheck",1250),M(1251,1,{679:1},Oit),g.Ke=function(t){W0n(this,h(t,440))},D(y5,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),M(1252,1,Yr,tg),g.ue=function(t,n){return vkn(h(t,65),h(n,65))},g.Fb=function(t){return this===t},g.ve=function(){return new Hr(this)},D(y5,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),M(440,1,{440:1},Ghe),g.a=!1,D(y5,"ScanlineOverlapCheck/Timestamp",440),M(1253,1,Yr,Di),g.ue=function(t,n){return Y7n(h(t,440),h(n,440))},g.Fb=function(t){return this===t},g.ve=function(){return new Hr(this)},D(y5,"ScanlineOverlapCheck/lambda$0$Type",1253),M(550,1,{},Bi),D(Tvt,"SVGImage",550),M(324,1,{324:1},B1e),g.Ib=function(){return"("+this.a+Js+this.b+Js+this.c+")"},D(Tvt,"UniqueTriple",324),M(209,1,t2),D(Uy,"AbstractLayoutProvider",209),M(1132,209,t2,ra),g.Ze=function(t,n){var s,a,u,p;switch(Bn(n,Cvt,1),this.a=Pe(Je(pt(t,(l9(),A4e)))),Pp(t,vte)&&(u=Jn(pt(t,vte)),s=FQ(Ok(),u),s&&(a=h(zW(s.f),209),a.Ze(t,jo(n,1)))),p=new Mat(this.a),this.b=BOn(p,t),h(pt(t,(sX(),_4e)),481).g){case 0:ZTn(new Rr,this.b),ya(t,Wj,U(this.b,Wj));break;default:L1()}VOn(p),ya(t,C4e,this.b),An(n)},g.a=0,D(Svt,"DisCoLayoutProvider",1132),M(1244,1,{},Rr),g.c=!1,g.e=0,g.f=0,D(Svt,"DisCoPolyominoCompactor",1244),M(561,1,{561:1},Znt),g.b=!0,D(NR,"DCComponent",561),M(394,22,{3:1,35:1,22:1,394:1},IN),g.a=!1;var qj,vD,Yj,wD,k4t=tr(NR,"DCDirection",394,sr,Xmn,Fgn),x4t;M(266,134,{3:1,266:1,94:1,134:1},EQ),D(NR,"DCElement",266),M(395,1,{395:1},o2e),g.c=0,D(NR,"DCExtension",395),M(755,134,vwe,YXe),D(NR,"DCGraph",755),M(481,22,{3:1,35:1,22:1,481:1},Jet);var bte,E4e=tr(sJ,wwe,481,sr,Cvn,Rgn),E4t;M(854,1,$l,XVe),g.Qe=function(t){Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,mwe),Avt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),T4e),(E0(),_i)),E4e),Lt((Qh(),gn))))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,ywe),Avt),"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."),b8),it),Lt(gn)))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,kwe),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),jf),yn),Lt(gn)))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,xwe),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),jf),yn),Lt(gn)))),f2t((new QVe,t))};var _4t,_4e,T4e,T4t,C4t;D(sJ,"DisCoMetaDataProvider",854),M(998,1,$l,QVe),g.Qe=function(t){f2t(t)};var S4t,vte,A4t,C4e,Wj,wte,S4e,M4t,D4t,L4t,I4t,A4e;D(sJ,"DisCoOptions",998),M(999,1,{},au),g.$e=function(){var t;return t=new ra,t},g._e=function(t){},D(sJ,"DisCoOptions/DiscoFactory",999),M(562,167,{321:1,167:1,562:1},ugt),g.a=0,g.b=0,g.c=0,g.d=0,D("org.eclipse.elk.alg.disco.structures","DCPolyomino",562);var mte,yte,Kj;M(1268,1,Cr,gt),g.Mb=function(t){return wfe(t)},D(qy,"ElkGraphComponentsProcessor/lambda$0$Type",1268),M(1269,1,{},O6),g.Kb=function(t){return V4(),H1(h(t,79))},D(qy,"ElkGraphComponentsProcessor/lambda$1$Type",1269),M(1270,1,Cr,It),g.Mb=function(t){return F2n(h(t,79))},D(qy,"ElkGraphCompone
|
||
|
start=`,ho(t,this.i),t.a+=`
|
||
|
end=`,ho(t,this.a),t.a+=`
|
||
|
nodeStartEdge=`,ho(t,this.e),t.a+=`
|
||
|
startEndEdge=`,ho(t,this.j),t.a+=`
|
||
|
originalEdge=`,ho(t,this.f),t.a+=`
|
||
|
startInLayerDummy=`,ho(t,this.k),t.a+=`
|
||
|
startInLayerEdge=`,ho(t,this.n),t.a+=`
|
||
|
endInLayerDummy=`,ho(t,this.b),t.a+=`
|
||
|
endInLayerEdge=`,ho(t,this.c),t.a},D(f1,"BreakingPointInserter/BPInfo",305),M(652,1,{652:1},XYe),g.a=!1,g.b=0,g.c=0,D(f1,"BreakingPointInserter/Cut",652),M(1480,1,xi,r$e),g.pf=function(t,n){hSn(h(t,37),n)},D(f1,"BreakingPointProcessor",1480),M(1481,1,Cr,i$e),g.Mb=function(t){return Yct(h(t,10))},D(f1,"BreakingPointProcessor/0methodref$isEnd$Type",1481),M(1482,1,Cr,s$e),g.Mb=function(t){return Wct(h(t,10))},D(f1,"BreakingPointProcessor/1methodref$isStart$Type",1482),M(1483,1,xi,a$e),g.pf=function(t,n){NSn(this,h(t,37),n)},D(f1,"BreakingPointRemover",1483),M(1484,1,mn,o$e),g.td=function(t){h(t,128).k=!0},D(f1,"BreakingPointRemover/lambda$0$Type",1484),M(797,1,{},Lbe),g.b=0,g.e=0,g.f=0,g.j=0,D(f1,"GraphStats",797),M(798,1,{},Vue),g.Ce=function(t,n){return d.Math.max(Pe(Je(t)),Pe(Je(n)))},D(f1,"GraphStats/0methodref$max$Type",798),M(799,1,{},Uue),g.Ce=function(t,n){return d.Math.max(Pe(Je(t)),Pe(Je(n)))},D(f1,"GraphStats/2methodref$max$Type",799),M(1660,1,{},c$e),g.Ce=function(t,n){return m2n(Je(t),Je(n))},D(f1,"GraphStats/lambda$1$Type",1660),M(1661,1,{},zYe),g.Kb=function(t){return Bft(this.a,h(t,29))},D(f1,"GraphStats/lambda$2$Type",1661),M(1662,1,{},GYe),g.Kb=function(t){return vgt(this.a,h(t,29))},D(f1,"GraphStats/lambda$6$Type",1662),M(800,1,{},que),g.Vf=function(t,n){var s;return s=h(U(t,(tt(),Bke)),15),s||(Rt(),Rt(),ca)},g.Wf=function(){return!1},D(f1,"ICutIndexCalculator/ManualCutIndexCalculator",800),M(802,1,{},Yue),g.Vf=function(t,n){var s,a,u,p,v,m,x,_,A,I,P,j,V,J,oe,fe,le,we,Ne;for(Ne=(n.n==null&&a1t(n),n.n),x=(n.d==null&&a1t(n),n.d),we=pe(ks,ka,25,Ne.length,15,1),we[0]=Ne[0],fe=Ne[0],_=1;_<Ne.length;_++)we[_]=we[_-1]+Ne[_],fe+=Ne[_];for(u=xdt(n)-1,v=h(U(t,(tt(),Fke)),19).a,a=Fi,s=new qe,P=d.Math.max(0,u-v);P<=d.Math.min(n.f-1,u+v);P++){if(J=fe/(P+1),oe=0,A=1,p=new qe,le=Fi,I=0,m=0,V=x[0],P==0)le=fe,m=(n.g==null&&(n.g=Jut(n,new Uue)),Pe(n.g));else{for(;A<n.f;)we[A-1]-oe>=J&&(Ue(p,Ke(A)),le=d.Math.max(le,we[A-1]-I),m+=V,oe+=we[A-1]-oe,I=we[A-1],V=x[A]),V=d.Math.max(V,x[A]),++A;m+=V}j=d.Math.min(1/le,1/n.b/m),j>a&&(a=j,s=p)}return s},g.Wf=function(){return!1},D(f1,"MSDCutIndexHeuristic",802),M(1617,1,xi,u$e),g.pf=function(t,n){aLn(h(t,37),n)},D(f1,"SingleEdgeGraphWrapper",1617),M(227,22,{3:1,35:1,22:1,227:1},tE);var a3,Zx,Jx,Jw,m_,o3,e8=tr(ko,"CenterEdgeLabelPlacementStrategy",227,sr,v3n,Kgn),J5t;M(422,22,{3:1,35:1,22:1,422:1},Khe);var H5e,Kte,z5e=tr(ko,"ConstraintCalculationStrategy",422,sr,own,Xgn),e6t;M(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},tY),g.Kf=function(){return u0t(this)},g.Xf=function(){return u0t(this)};var _D,I5,G5e,V5e=tr(ko,"CrossingMinimizationStrategy",314,sr,Jwn,Qgn),t6t;M(337,22,{3:1,35:1,22:1,337:1},nY);var U5e,Xte,C$,q5e=tr(ko,"CuttingStrategy",337,sr,emn,epn),n6t;M(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},MS),g.Kf=function(){return K0t(this)},g.Xf=function(){return K0t(this)};var Y5e,Qte,y_,Zte,k_,W5e=tr(ko,"CycleBreakingStrategy",335,sr,Gyn,tpn),r6t;M(419,22,{3:1,35:1,22:1,419:1},Xhe);var S$,K5e,X5e=tr(ko,"DirectionCongruency",419,sr,awn,npn),i6t;M(450,22,{3:1,35:1,22:1,450:1},rY);var t8,Jte,c3,s6t=tr(ko,"EdgeConstraint",450,sr,tmn,rpn),a6t;M(276,22,{3:1,35:1,22:1,276:1},nE);var ene,tne,nne,rne,A$,ine,Q5e=tr(ko,"EdgeLabelSideSelection",276,sr,k3n,ipn),o6t;M(479,22,{3:1,35:1,22:1,479:1},Qhe);var M$,Z5e,J5e=tr(ko,"EdgeStraighteningStrategy",479,sr,swn,spn),c6t;M(274,22,{3:1,35:1,22:1,274:1},rE);var sne,e6e,t6e,D$,n6e,r6e,i6e=tr(ko,"FixedAlignment",274,sr,m3n,apn),u6t;M(275,22,{3:1,35:1,22:1,275:1},iE);var s6e,a6e,o6e,c6e,x_,u6e,l6e=tr(ko,"GraphCompactionStrategy",275,sr,w3n,opn),l6t;M(256,22,{3:1,35:1,22:1,256:1},Zv);var n8,L$,r8,El,E_,I$,i8,u3,O$,__,ane=tr(ko,"GraphProperties",256,sr,a5n,cpn),h6t;M(292,22,{3:1,35:1,22:1,292:1},iY);var TD,one,cne,une=tr(ko,"GreedySwitchType",292,sr,imn,upn),f6t;M(303,22,{3:1,35:1,22:1,303:1},sY);var O5,CD,l3,d6t=tr(ko,"InLayerConstraint",303,sr,rmn,lpn),g6t;M(420,22,{3:1,35:1,22:1,420:1},Zhe);var lne,h6e,f6e=tr(ko,"InteractiveReferencePoint",420,sr,cwn,hpn),p6t,d6e,N5,tv,N$,g6e,p6e,P$,b6e,SD,B$,T_,P5,em,hne,F$,co,v6e,nv,Uo,fne,dne,AD,h2,rv,B5,w6e,F5,MD,tm,
|
||
|
`;for(n=pr(this.a,0);n.b!=n.d.c;)t=h(gr(n),188),u+=(!!t.b&&!!t.c?uB(t.b)+"->"+uB(t.c):"e_"+ii(t))+`
|
||
|
`;return u};var NPn=D(K9,"TGraph",135);M(633,502,{3:1,502:1,633:1,94:1,134:1}),D(K9,"TShape",633),M(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},ZK),g.Ib=function(){return uB(this)};var PPn=D(K9,"TNode",86);M(255,1,G1,ng),g.Jc=function(t){Os(this,t)},g.Kc=function(){var t;return t=pr(this.a.d,0),new k4(t)},D(K9,"TNode/2",255),M(358,1,ys,k4),g.Nb=function(t){Ls(this,t)},g.Pb=function(){return h(gr(this.a),188).c},g.Ob=function(){return pN(this.a)},g.Qb=function(){BB(this.a)},D(K9,"TNode/2/1",358),M(1840,1,xi,Ntt),g.pf=function(t,n){WDn(this,h(t,135),n)},D(C5,"FanProcessor",1840),M(327,22,{3:1,35:1,22:1,327:1,234:1},aE),g.Kf=function(){switch(this.g){case 0:return new wXe;case 1:return new Ntt;case 2:return new fHe;case 3:return new lHe;case 4:return new gHe;case 5:return new pHe;default:throw ne(new an(pJ+(this.f!=null?this.f:""+this.g)))}};var Jne,ere,tre,nre,rre,hH,H8t=tr(C5,Fwe,327,sr,x3n,Opn),z8t;M(1843,1,xi,lHe),g.pf=function(t,n){DCn(this,h(t,135),n)},g.a=0,D(C5,"LevelHeightProcessor",1843),M(1844,1,G1,hHe),g.Jc=function(t){Os(this,t)},g.Kc=function(){return Rt(),K6(),Vx},D(C5,"LevelHeightProcessor/1",1844),M(1841,1,xi,fHe),g.pf=function(t,n){F_n(this,h(t,135),n)},g.a=0,D(C5,"NeighborsProcessor",1841),M(1842,1,G1,dHe),g.Jc=function(t){Os(this,t)},g.Kc=function(){return Rt(),K6(),Vx},D(C5,"NeighborsProcessor/1",1842),M(1845,1,xi,gHe),g.pf=function(t,n){MCn(this,h(t,135),n)},g.a=0,D(C5,"NodePositionProcessor",1845),M(1839,1,xi,wXe),g.pf=function(t,n){tIn(this,h(t,135))},D(C5,"RootProcessor",1839),M(1846,1,xi,pHe),g.pf=function(t,n){lkn(h(t,135))},D(C5,"Untreeifyer",1846);var zD,G_,G8t,ire,fH,V_,sre,dH,gH,g8,U_,pH,O0,mxe,V8t,are,dm,ore,yxe;M(851,1,$l,NUe),g.Qe=function(t){Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,nye),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),xxe),(E0(),_i)),Mxe),Lt((Qh(),gn))))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,rye),""),"Search Order"),"Which search order to use when computing a spanning tree."),kxe),_i),Lxe),Lt(gn)))),z2t((new OUe,t))};var U8t,kxe,q8t,xxe;D(sj,"MrTreeMetaDataProvider",851),M(994,1,$l,OUe),g.Qe=function(t){z2t(t)};var Y8t,Exe,W8t,K8t,X8t,Q8t,_xe,Z8t,Txe,J8t,bH,Cxe,e7t,Sxe,t7t;D(sj,"MrTreeOptions",994),M(995,1,{},bHe),g.$e=function(){var t;return t=new Ptt,t},g._e=function(t){},D(sj,"MrTreeOptions/MrtreeFactory",995),M(480,22,{3:1,35:1,22:1,480:1},afe);var cre,Axe,Mxe=tr(sj,"OrderWeighting",480,sr,bwn,Npn),n7t;M(425,22,{3:1,35:1,22:1,425:1},ofe);var Dxe,ure,Lxe=tr(sj,"TreeifyingOrder",425,sr,pwn,Bpn),r7t;M(1459,1,zo,_Ue),g.Yf=function(t){return h(t,135),i7t},g.pf=function(t,n){u5n(this,h(t,135),n)};var i7t;D("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),M(1460,1,zo,TUe),g.Yf=function(t){return h(t,135),s7t},g.pf=function(t,n){Y_n(this,h(t,135),n)};var s7t;D("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),M(1461,1,zo,EUe),g.Yf=function(t){return h(t,135),a7t},g.pf=function(t,n){lMn(this,h(t,135),n)},g.a=0;var a7t;D("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),M(1462,1,zo,CUe),g.Yf=function(t){return h(t,135),o7t},g.pf=function(t,n){B7n(h(t,135),n)};var o7t;D("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var q_;M(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},cfe),g.Kf=function(){return Wht(this)},g.Xf=function(){return Wht(this)};var vH,p8,Ixe=tr(iye,"RadialLayoutPhases",495,sr,vwn,Ppn),c7t;M(1131,209,t2,fQe),g.Ze=function(t,n){var s,a,u,p,v,m;if(s=Qdt(this,t),Bn(n,"Radial layout",s.c.length),ft(lt(pt(t,(Cw(),zxe))))||nB((a=new hS((Qv(),new Yv(t))),a)),m=JEn(t),ya(t,(xE(),q_),m),!m)throw ne(new an("The given graph is not a tree!"));for(u=Pe(Je(pt(t,yH))),u==0&&(u=h0t(t)),ya(t,yH,u),v=new Q(Qdt(this,t));v.a<v.c.c.length;)p=h(K(v),51),p.pf(t,jo(n,1));An(n)},D(iye,"RadialLayoutProvider",1131),M(549,1,Yr,bN),g.ue=function(t,n){return TMn(this.a,this.b,h(t,33),h(n,33))},g.Fb=function(t){return this===t},g.ve=function(){return new Hr(this)},g.a=0,g.b=0,D(iye,"RadialUtil/lambda$0$Type",549),M(1375,1,xi,wHe),g.pf=function(t,n){VIn(h(t,33),n)},D(xwt,"CalculateGraphSize",1375),M(442,22,{3:1,35:1,22:1,442:1,234:1}
|
||
|
`),u.length!=2)throw ne(new an("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=Dw(Mw(u[0])),this.b=Dw(Mw(u[1]))}catch(p){throw p=ui(p),ue(p,127)?(s=p,ne(new an($vt+s))):ne(p)}},g.Ib=function(){return"("+this.a+","+this.b+")"},g.a=0,g.b=0;var cs=D(WM,"KVector",8);M(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Oc,dN,rtt),g.Pc=function(){return x6n(this)},g.Jf=function(t){var n,s,a,u,p,v;a=Pw(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
||
|
`),Pl(this);try{for(s=0,p=0,u=0,v=0;s<a.length;)a[s]!=null&&Mw(a[s]).length>0&&(p%2==0?u=Dw(a[s]):v=Dw(a[s]),p>0&&p%2!=0&&vr(this,new dt(u,v)),++p),++s}catch(m){throw m=ui(m),ue(m,127)?(n=m,ne(new an("The given string does not match the expected format for vectors."+n))):ne(m)}},g.Ib=function(){var t,n,s;for(t=new ju("("),n=pr(this,0);n.b!=n.d.c;)s=h(gr(n),8),or(t,s.a+","+s.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var H8e=D(WM,"KVectorChain",74);M(248,22,{3:1,35:1,22:1,248:1},oE);var Dre,SH,AH,qD,YD,MH,z8e=tr(zl,"Alignment",248,sr,b3n,Jpn),SEt;M(979,1,$l,$Ue),g.Qe=function(t){Fpt(t)};var G8e,Lre,AEt,V8e,U8e,MEt,q8e,DEt,LEt,Y8e,W8e,IEt;D(zl,"BoxLayouterOptions",979),M(980,1,{},uze),g.$e=function(){var t;return t=new vze,t},g._e=function(t){},D(zl,"BoxLayouterOptions/BoxFactory",980),M(291,22,{3:1,35:1,22:1,291:1},cE);var WD,Ire,KD,XD,QD,Ore,Nre=tr(zl,"ContentAlignment",291,sr,p3n,e2n),OEt;M(684,1,$l,nle),g.Qe=function(t){Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,Pwt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(E0(),b8)),it),Lt((Qh(),gn))))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,Bwt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),jf),RPn),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,Nme),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),K8e),_i),z8e),Lt(gs)))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,k5),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Ba),Ts),Lt(gn)))),Dt(t,new kt(At(St(Mt(Et(Ct(_t(Tt(new yt,Aye),""),"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."),jf),H8e),Lt(k1)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,tj),""),"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."),Q8e),V5),Nre),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,eD),""),"Debug Mode"),"Whether additional debug information shall be generated."),(on(),!1)),zs),es),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,Fme),""),bwe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Z8e),_i),J_),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,ZM),""),"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."),t7e),_i),Yre),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,oj),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),zs),es),Lt(gn)))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,ej),""),"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`."),s7e),_i),V7e),ni(gn,se(ie(P0,1),ze,175,0,[gs]))))),Dt(t,new kt(At(St(Mt(zt(Et(Ct(_t(Tt(new yt,Vb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an outpu
|
||
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
||
|
... Falling back to non-web worker version.`);if(!S.workerFactory){var B=o("./elk-worker.min.js"),N=B.Worker;S.workerFactory=function(F){return new N(F)}}return d(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,S))}return T}(y);Object.defineProperty(l.exports,"__esModule",{value:!0}),l.exports=k,k.default=k},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,l,f){l.exports=Worker},{}]},{},[3])(3)})})(qIe);const ttn=q9e(qIe.exports),YIe=new ttn,zv={},ntn={};let h4={};const rtn=function(r,i,o,l,f,b,d){const w=o.select(`[id="${i}"]`),y=w.insert("g").attr("class","nodes");return Object.keys(r).forEach(function(E){const T=r[E];let C="default";T.classes.length>0&&(C=T.classes.join(" "));const S=Dv(T.styles);let L=T.text!==void 0?T.text:T.id,O;const B={width:0,height:0};if(cf(ht().flowchart.htmlLabels)){const z={label:L.replace(/fa[blrs]?:fa-[\w-]+/g,Z=>`<i class='${Z.replace(":"," ")}'></i>`)};O=$V(w,z).node();const W=O.getBBox();B.width=W.width,B.height=W.height,B.labelNode=O,O.parentNode.removeChild(O)}else{const z=l.createElementNS("http://www.w3.org/2000/svg","text");z.setAttribute("style",S.labelStyle.replace("color:","fill:"));const W=L.split(Cs.lineBreakRegex);for(const G of W){const ae=l.createElementNS("http://www.w3.org/2000/svg","tspan");ae.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ae.setAttribute("dy","1em"),ae.setAttribute("x","1"),ae.textContent=G,z.appendChild(ae)}O=z;const Z=O.getBBox();B.width=Z.width,B.height=Z.height,B.labelNode=O}const N=[{id:T.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:T.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:T.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:T.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let F=0,R="",q={};switch(T.type){case"round":F=5,R="rect";break;case"square":R="rect";break;case"diamond":R="question",q={portConstraints:"FIXED_SIDE"};break;case"hexagon":R="hexagon";break;case"odd":R="rect_left_inv_arrow";break;case"lean_right":R="lean_right";break;case"lean_left":R="lean_left";break;case"trapezoid":R="trapezoid";break;case"inv_trapezoid":R="inv_trapezoid";break;case"odd_right":R="rect_left_inv_arrow";break;case"circle":R="circle";break;case"ellipse":R="ellipse";break;case"stadium":R="stadium";break;case"subroutine":R="subroutine";break;case"cylinder":R="cylinder";break;case"group":R="rect";break;case"doublecircle":R="doublecircle";break;default:R="rect"}const X={labelStyle:S.labelStyle,shape:R,labelText:L,rx:F,ry:F,class:C,style:S.style,id:T.id,link:T.link,linkTarget:T.linkTarget,tooltip:f.db.getTooltip(T.id)||"",domId:f.db.lookUpDomId(T.id),haveCallback:T.haveCallback,width:T.type==="group"?500:void 0,dir:T.dir,type:T.type,props:T.props,padding:ht().flowchart.padding};let te,H;X.type!=="group"&&(H=UMe(y,X,T.dir),te=H.node().getBBox());const Y={id:T.id,ports:T.type==="diamond"?N:[],layoutOptions:q,labelText:L,labelData:B,domId:f.db.lookUpDomId(T.id),width:te==null?void 0:te.width,height:te==null?void 0:te.height,type:T.type,el:H,parent:b.parentById[T.id]};h4[X.id]=Y}),d},WIe=(r,i,o)=>{const l={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 l.TD=l.TB,Se.info("abc88",o,i,r),l[o][i][r]},KIe=(r,i,o)=>{if(Se.info("getNextPort abc88",{node:r,edgeDirection:i,graphDirection:o}),!zv[r])switch(o){case"TB":case"TD":zv[r]={inPosition:"north",outPosition:"south"};break;case"BT":zv[r]={inPosition:"south",outPosition:"north"};break;case"RL":zv[r]={inPosition:"east",outPosition:"west"};break;case"LR":zv[r]={inPosition:"west",outPosition:"east"};break}const l=i==="in"?zv[r].inPosition:zv[r].outPosition;return i==="in"?zv[r].inPosition=WIe(zv[r].inPosition,i,o):zv[r].outPosition=WIe(zv[r].outPosition,i,o),l},itn=(r,i)=>{let o=r.start,l=r.end;const f=h4[o],b=h4[l];return!f||!b?{source:o,target:l}:(f.type==="diamond"&&(o=`${o}-${KIe(o,"out",i)}`),b.type==="diamond"&&
|
||
|
`),k.style===void 0&&(L.style=L.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),L.labelStyle=L.labelStyle.replace("color:","fill:"),L.id=T,L.classes="flowchart-link "+C+" "+S;const N=WMe(f,L),{source:F,target:R}=itn(k,d);Se.debug("abc78 source and target",F,R),o.edges.push({id:"e"+k.start+k.end,sources:[F],targets:[R],labelEl:N,labels:[{width:L.width,height:L.height,orgWidth:L.width,orgHeight:L.height,text:L.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:L})}),o},atn=function(r,i,o,l){let f="";switch(l&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),i.arrowTypeStart){case"arrow_cross":r.attr("marker-start","url("+f+"#"+o+"-crossStart)");break;case"arrow_point":r.attr("marker-start","url("+f+"#"+o+"-pointStart)");break;case"arrow_barb":r.attr("marker-start","url("+f+"#"+o+"-barbStart)");break;case"arrow_circle":r.attr("marker-start","url("+f+"#"+o+"-circleStart)");break;case"aggregation":r.attr("marker-start","url("+f+"#"+o+"-aggregationStart)");break;case"extension":r.attr("marker-start","url("+f+"#"+o+"-extensionStart)");break;case"composition":r.attr("marker-start","url("+f+"#"+o+"-compositionStart)");break;case"dependency":r.attr("marker-start","url("+f+"#"+o+"-dependencyStart)");break;case"lollipop":r.attr("marker-start","url("+f+"#"+o+"-lollipopStart)");break}switch(i.arrowTypeEnd){case"arrow_cross":r.attr("marker-end","url("+f+"#"+o+"-crossEnd)");break;case"arrow_point":r.attr("marker-end","url("+f+"#"+o+"-pointEnd)");break;case"arrow_barb":r.attr("marker-end","url("+f+"#"+o+"-barbEnd)");break;case"arrow_circle":r.attr("marker-end","url("+f+"#"+o+"-circleEnd)");break;case"aggregation":r.attr("marker-end","url("+f+"#"+o+"-aggregationEnd)");break;case"extension":r.attr("marker-end","url("+f+"#"+o+"-extensionEnd)");break;case"composition":r.attr("marker-end","url("+f+"#"+o+"-compositionEnd)");break;case"dependency":r.attr("marker-end","url("+f+"#"+o+"-dependencyEnd)");break;case"lollipop":r.attr("marker-end","url("+f+"#"+o+"-lollipopEnd)");break}},otn=function(r,i){Se.info("Extracting classes"),i.db.clear("ver-2");try{return i.parse(r),i.db.getClasses()}catch{return{}}},ctn=function(r){const i={parentById:{},childrenById:{}},o=r.getSubGraphs();return Se.info("Subgraphs - ",o),o.forEach(function(l){l.nodes.forEach(function(f){i.parentById[f]=l.id,i.childrenById[l.id]===void 0&&(i.childrenById[l.id]=[]),i.childrenById[l.id].push(f)})}),o.forEach(function(l){l.id,i.parentById[l.id]!==void 0&&i.parentById[l.id]}),i},utn=function(r,i,o){const l=etn(r,i,o);if(l===void 0||l==="root")return{x:0,y:0};const f=h4[l].offset;return{x:f.posX,y:f.posY}},ltn=function(r,i,o,l,f){const b=utn(i.sources[0],i.targets[0],f),d=i.sections[0].startPoint,w=i.sections[0].endPoint,k=(i.sections[0].bendPoints?i.sections[0].bendPoints:[]).map(B=>[B.x+b.x,B.y+b.y]),E=[[d.x+b.x,d.y+b.y],...k,[w.x+b.x,w.y+b.y]],T=V8().curve(x1),C=r.insert("path").attr("d",T(E)).attr("class","path").attr("fill","none"),S=r.insert("g").attr("class","edgeLabel"),L=Cn(S.node().appendChild(i.labelEl)),O=L.node().firstChild.getBoundingClientRect();L.attr("width",O.width),L.attr("height",O.height),S.attr("transform",`translate(${i.labels[0].x+b.x}, ${i.labels[0].y+b.y})`),atn(C,o,l.type,l.arrowMarkerAbsolute)},XIe=(r,i)=>{r.forEach(o=>{o.children||(o.children=[]);const l=i.childrenById[o.id];l&&l.forEach(f=>{o.children.push(h4[f])}),XIe(o.children,i)})},htn=async function(r,i,o,l){var H;l.db.clear(),h4={},l.db.setGen("gen-2"),l.parser.parse(r);const f=Cn("body").append("div").attr("style","height:400px").attr("id","cy");let b={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(Se.info("Drawing flowchart using v3 renderer",YIe),l.db.getDirection()){case"BT":b.layoutOptions["elk.direction"]="UP";break;case"TB":b.layoutOptions["elk.di
|
||
|
.subgraph-lvl-${o} {
|
||
|
fill: ${r[`surface${o}`]};
|
||
|
stroke: ${r[`surfacePeer${o}`]};
|
||
|
}
|
||
|
`;return i},gtn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:pXt,renderer:ftn,parser:Soe,styles:r=>`.label {
|
||
|
font-family: ${r.fontFamily};
|
||
|
color: ${r.nodeTextColor||r.textColor};
|
||
|
}
|
||
|
.cluster-label text {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
.cluster-label span {
|
||
|
color: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.label text,span {
|
||
|
fill: ${r.nodeTextColor||r.textColor};
|
||
|
color: ${r.nodeTextColor||r.textColor};
|
||
|
}
|
||
|
|
||
|
.node rect,
|
||
|
.node circle,
|
||
|
.node ellipse,
|
||
|
.node polygon,
|
||
|
.node path {
|
||
|
fill: ${r.mainBkg};
|
||
|
stroke: ${r.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.node .label {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.node.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.arrowheadPath {
|
||
|
fill: ${r.arrowheadColor};
|
||
|
}
|
||
|
|
||
|
.edgePath .path {
|
||
|
stroke: ${r.lineColor};
|
||
|
stroke-width: 2.0px;
|
||
|
}
|
||
|
|
||
|
.flowchart-link {
|
||
|
stroke: ${r.lineColor};
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.edgeLabel {
|
||
|
background-color: ${r.edgeLabelBackground};
|
||
|
rect {
|
||
|
opacity: 0.5;
|
||
|
background-color: ${r.edgeLabelBackground};
|
||
|
fill: ${r.edgeLabelBackground};
|
||
|
}
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.cluster rect {
|
||
|
fill: ${r.clusterBkg};
|
||
|
stroke: ${r.clusterBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
.cluster text {
|
||
|
fill: ${r.titleColor};
|
||
|
}
|
||
|
|
||
|
.cluster span {
|
||
|
color: ${r.titleColor};
|
||
|
}
|
||
|
/* .cluster div {
|
||
|
color: ${r.titleColor};
|
||
|
} */
|
||
|
|
||
|
div.mermaidTooltip {
|
||
|
position: absolute;
|
||
|
text-align: center;
|
||
|
max-width: 200px;
|
||
|
padding: 2px;
|
||
|
font-family: ${r.fontFamily};
|
||
|
font-size: 12px;
|
||
|
background: ${r.tertiaryColor};
|
||
|
border: 1px solid ${r.border2};
|
||
|
border-radius: 2px;
|
||
|
pointer-events: none;
|
||
|
z-index: 100;
|
||
|
}
|
||
|
|
||
|
.flowchartTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${r.textColor};
|
||
|
}
|
||
|
.subgraph {
|
||
|
stroke-width:2;
|
||
|
rx:3;
|
||
|
}
|
||
|
// .subgraph-lvl-1 {
|
||
|
// fill:#ccc;
|
||
|
// // stroke:black;
|
||
|
// }
|
||
|
${dtn(r)}
|
||
|
`}},Symbol.toStringTag,{value:"Module"}));var Fce=function(){var r=function(B,N,F,R){for(F=F||{},R=B.length;R--;F[B[R]]=N);return F},i=[1,2],o=[1,5],l=[6,9,11,17,18,20,22,23,26,27,28],f=[1,15],b=[1,16],d=[1,17],w=[1,18],y=[1,19],k=[1,23],E=[1,24],T=[1,27],C=[4,6,9,11,17,18,20,22,23,26,27,28],S={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(N,F,R,q,X,te,H){var Y=te.length-1;switch(X){case 1:return te[Y-1];case 3:this.$=[];break;case 4:te[Y-1].push(te[Y]),this.$=te[Y-1];break;case 5:case 6:this.$=te[Y];break;case 7:case 8:this.$=[];break;case 11:q.getCommonDb().setDiagramTitle(te[Y].substr(6)),this.$=te[Y].substr(6);break;case 12:this.$=te[Y].trim(),q.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=te[Y].trim(),q.getCommonDb().setAccDescription(this.$);break;case 15:q.addSection(te[Y].substr(8)),this.$=te[Y].substr(8);break;case 19:q.addTask(te[Y],0,""),this.$=te[Y];break;case 20:q.addEvent(te[Y].substr(2)),this.$=te[Y];break;case 21:q.parseDirective("%%{","open_directive");break;case 22:q.parseDirective(te[Y],"type_directive");break;case 23:te[Y]=te[Y].trim().replace(/'/g,'"'),q.parseDirective(te[Y],"arg_directive");break;case 24:q.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:i,7:3,12:4,28:o},{1:[3]},r(l,[2,3],{5:6}),{3:7,4:i,7:3,12:4,28:o},{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:f,18:b,20:d,22:w,23:y,24:20,25:21,26:k,27:E,28:o},{1:[2,2]},{14:25,15:[1,26],31:T},r([15,31],[2,22]),r(l,[2,8],{1:[2,1]}),r(l,[2,4]),{7:22,10:28,12:4,17:f,18:b,20:d,22:w,23:y,24:20,25:21,26:k,27:E,28:o},r(l,[2,6]),r(l,[2,7]),r(l,[2,11]),{19:[1,29]},{21:[1,30]},r(l,[2,14]),r(l,[2,15]),r(l,[2,16]),r(l,[2,17]),r(l,[2,18]),r(l,[2,19]),r(l,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},r(l,[2,5]),r(l,[2,12]),r(l,[2,13]),r(C,[2,9]),{14:34,31:T},{31:[2,23]},{11:[1,35]},r(C,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(N,F){if(F.recoverable)this.trace(N);else{var R=new Error(N);throw R.hash=F,R}},parse:function(N){var F=this,R=[0],q=[],X=[null],te=[],H=this.table,Y="",z=0,W=0,Z=2,G=1,ae=te.slice.call(arguments,1),$=Object.create(this.lexer),ge={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(ge.yy[ee]=this.yy[ee]);$.setInput(N,ge.yy),ge.yy.lexer=$,ge.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var de=$.yylloc;te.push(de);var re=$.options&&$.options.ranges;typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(){var Le;return Le=q.pop()||$.lex()||G,typeof Le!="number"&&(Le instanceof Array&&(q=Le,Le=q.pop()),Le=F.symbols_[Le]||Le),Le}for(var Ce,_e,Te,Be,Ge={},Xe,Ee,Ze,Ie;;){if(_e=R[R.length-1],this.defaultActions[_e]?Te=this.defaultActions[_e]:((Ce===null||typeof Ce>"u")&&(Ce=ke()),Te=H[_e]&&H[_e][Ce]),typeof Te>"u"||!Te.length||!Te[0]){var Oe="";Ie=[];for(Xe in H[_e])this.terminals_[Xe]&&Xe>Z&&Ie.push("'"+this.terminals_[Xe]+"'");$.showPosition?Oe="Parse error on line "+(z+1)+`:
|
||
|
`+$.showPosition()+`
|
||
|
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[Ce]||Ce)+"'":Oe="Parse error on line "+(z+1)+": Unexpected "+(Ce==G?"end of input":"'"+(this.terminals_[Ce]||Ce)+"'"),this.parseError(Oe,{text:$.match,token:this.terminals_[Ce]||Ce,line:$.yylineno,loc:de,expected:Ie})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_e+", token: "+Ce);switch(Te[0]){case 1:R.push(Ce),X.push($.yytext),te.push($.yylloc),R.push(Te[1]),Ce=null,W=$.yyleng,Y=$.yytext,z=$.yylineno,de=$.yylloc;break;case 2:if(Ee=this.productions_[Te[1]][1],Ge.$=X[X.length-Ee],Ge._$={first_line:te[te.length-(Ee||1)].first_line,last_line:te[te.length-1].last_line,first_column:te[te.length-(Ee||1)].first_column,last_column:te[te.length-1].last_column},re&&(Ge._$.range=[te[te.length-(Ee||1)].range[0],te[te.length-1].range[1]]),Be=this.performAction.apply(Ge,[Y,W,z,ge.yy,Te[1],X,te].concat(ae)),typeof Be<"u")return Be;Ee&&(R=R.slice(0,-1*Ee*2),X=X.slice(0,-1*Ee),te=te.slice(0,-1*Ee)),R.push(this.productions_[Te[1]][0]),X.push(Ge.$),te.push(Ge._$),Ze=H[R[R.length-2]][R[R.length-1]],R.push(Ze);break;case 3:return!0}}return!0}},L=function(){var B={EOF:1,parseError:function(F,R){if(this.yy.parser)this.yy.parser.parseError(F,R);else throw new Error(F)},setInput:function(N,F){return this.yy=F||this.yy||{},this._input=N,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 N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var F=N.match(/(?:\r\n?|\n).*/g);return F?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},unput:function(N){var F=N.length,R=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var X=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:R?(R.length===q.length?this.yylloc.first_column:0)+q[q.length-R.length].length-R[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-F]),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(N){this.unput(this.match.slice(N))},pastInput:function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var N=this.pastInput(),F=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
|
||
|
`+F+"^"},test_match:function(N,F){var R,q,X;if(this.options.backtrack_lexer&&(X={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&&(X.yylloc.range=this.yylloc.range.slice(0))),q=N[0].match(/(?:\r\n?|\n).*/g),q&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,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(N[0].length),this.matched+=N[0],R=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var te in X)this[te]=X[te];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,F,R,q;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),te=0;te<X.length;te++)if(R=this._input.match(this.rules[X[te]]),R&&(!F||R[0].length>F[0].length)){if(F=R,q=te,this.options.backtrack_lexer){if(N=this.test_match(R,X[te]),N!==!1)return N;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(N=this.test_match(F,X[q]),N!==!1?N:!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 F=this.next();return F||this.lex()},begin:function(F){this.conditionStack.push(F)},popState:function(){var F=this.conditionStack.length-1;return F>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(F){return F=this.conditionStack.length-1-Math.abs(F||0),F>=0?this.conditionStack[F]:"INITIAL"},pushState:function(F){this.begin(F)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(F,R,q,X){switch(q){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 B}();S.lexer=L;function O(){this.yy={}}return O.prototype=S,S.Parser=O,new O}();Fce.parser=Fce;const ptn=Fce;let AC="",ZIe=0;const Rce=[],uU=[],MC=[],JIe=()=>bSe,eOe=(r,i,o)=>{Mae(globalThis,r,i,o)},tOe=function(){Rce.length=0,uU.length=0,AC="",MC.length=0,W0()},nOe=function(r){AC=r,Rce.push(r)},rOe=function(){return Rce},iOe=function(){let r=cOe();const i=100;let o=0;for(;!r&&o<i;)r=cOe(),o++;return uU.push(...MC),uU},sOe=function(r,i,o){const l={id:ZIe++,section:AC,type:AC,task:r,score:i||0,events:o?[o]:[]};MC.push(l)},aOe=function(r){MC.find(o=>o.id===ZIe-1).events.push(r)},oOe=function(r){const i={section:AC,type:AC,description:r,task:r,classes:[]};uU.push(i)},cOe=function(){const r=function(o){return MC[o].processed};let i=!0;for(const[o,l]of MC.entries())r(o),i=i&&l.processed;return i},btn=Object.freeze(Object.defineProperty({__proto__:null,getCommonDb:JIe,parseDirective:eOe,clear:tOe,addSection:nOe,getSections:rOe,getTasks:iOe,addTask:sOe,addEvent:aOe,addTaskOrg:oOe,default:{clear:tOe,getCommonDb:JIe,addSection:nOe,getSections:rOe,getTasks:iOe,addTask:sOe,addTaskOrg:oOe,addEvent:aOe,parseDirective:eOe}},Symbol.toStringTag,{value:"Module"})),vtn=12,lU=function(r,i){const o=r.append("rect");return o.attr("x",i.x),o.attr("y",i.y),o.attr("fill",i.fill),o.attr("stroke",i.stroke),o.attr("width",i.width),o.attr("height",i.height),o.attr("rx",i.rx),o.attr("ry",i.ry),i.class!==void 0&&o.attr("class",i.class),o},wtn=function(r,i){const l=r.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),f=r.append("g");f.append("circle").attr("cx",i.cx-15/3).attr("cy",i.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),f.append("circle").attr("cx",i.cx+15/3)
|
||
|
`),Se.debug("timeline",l.db);const d=f.securityLevel;let w;d==="sandbox"&&(w=Cn("#i"+i));const k=Cn(d==="sandbox"?w.nodes()[0].contentDocument.body:"body").select("#"+i);k.append("g");const E=l.db.getTasks(),T=l.db.getCommonDb().getDiagramTitle();Se.debug("task",E),b7.initGraphics(k);const C=l.db.getSections();Se.debug("sections",C);let S=0,L=0,O=0,B=0,N=50+b,F=50;B=50;let R=0,q=!0;C.forEach(function(z){const W={number:R,descr:z,section:R,width:150,padding:20,maxHeight:S},Z=b7.getVirtualNodeHeight(k,W,f);Se.debug("sectionHeight before draw",Z),S=Math.max(S,Z+20)});let X=0,te=0;Se.debug("tasks.length",E.length);for(const[z,W]of E.entries()){const Z={number:z,descr:W,section:W.section,width:150,padding:20,maxHeight:L},G=b7.getVirtualNodeHeight(k,Z,f);Se.debug("taskHeight before draw",G),L=Math.max(L,G+20),X=Math.max(X,W.events.length);let ae=0;for(let $=0;$<W.events.length;$++){const ee={descr:W.events[$],section:W.section,number:W.section,width:150,padding:20,maxHeight:50};ae+=b7.getVirtualNodeHeight(k,ee,f)}te=Math.max(te,ae)}Se.debug("maxSectionHeight before draw",S),Se.debug("maxTaskHeight before draw",L),C&&C.length>0?C.forEach(z=>{const W={number:R,descr:z,section:R,width:150,padding:20,maxHeight:S};Se.debug("sectionNode",W);const Z=k.append("g"),G=b7.drawNode(Z,W,R,f);Se.debug("sectionNode output",G),Z.attr("transform",`translate(${N}, ${B})`),F+=S+50;const ae=E.filter($=>$.section===z);ae.length>0&&dOe(k,ae,R,N,F,L,f,X,te,S,!1),N+=200*Math.max(ae.length,1),F=B,R++}):(q=!1,dOe(k,E,R,N,F,L,f,X,te,S,!0));const H=k.node().getBBox();Se.debug("bounds",H),T&&k.append("text").text(T).attr("x",H.width/2-b).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=q?S+L+150:L+100,k.append("g").attr("class","lineWrapper").append("line").attr("x1",b).attr("y1",O).attr("x2",H.width+3*b).attr("y2",O).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),J8(void 0,k,f.timeline.padding?f.timeline.padding:50,f.timeline.useMaxWidth?f.timeline.useMaxWidth:!1)},dOe=function(r,i,o,l,f,b,d,w,y,k,E){for(const T of i){const C={descr:T.task,section:o,number:o,width:150,padding:20,maxHeight:b};Se.debug("taskNode",C);const S=r.append("g").attr("class","taskWrapper"),O=b7.drawNode(S,C,o,d).height;if(Se.debug("taskHeight after draw",O),S.attr("transform",`translate(${l}, ${f})`),b=Math.max(b,O),T.events){const B=r.append("g").attr("class","lineWrapper");let N=b;f+=100,N=N+Ltn(r,T.events,o,l,f,d),f-=100,B.append("line").attr("x1",l+190/2).attr("y1",f+b).attr("x2",l+190/2).attr("y2",f+b+(E?b:k)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,E&&!ht().timeline.disableMulticolor&&o++}f=f-10},Ltn=function(r,i,o,l,f,b){let d=0;const w=f;f=f+100;for(const y of i){const k={descr:y,section:o,number:o,width:150,padding:20,maxHeight:50};Se.debug("eventNode",k);const E=r.append("g").attr("class","eventWrapper"),C=b7.drawNode(E,k,o,b).height;d=d+C,E.attr("transform",`translate(${l}, ${f})`),f=f+10+C}return f=w,d},Itn={setConf:Mtn,draw:Dtn},Otn=r=>{let i="";for(let o=0;o<r.THEME_COLOR_LIMIT;o++)r["lineColor"+o]=r["lineColor"+o]||r["cScaleInv"+o],fCe(r["lineColor"+o])?r["lineColor"+o]=is(r["lineColor"+o],20):r["lineColor"+o]=Ds(r["lineColor"+o],20);for(let o=0;o<r.THEME_COLOR_LIMIT;o++){const l=""+(17-3*o);i+=`
|
||
|
.section-${o-1} rect, .section-${o-1} path, .section-${o-1} circle, .section-${o-1} path {
|
||
|
fill: ${r["cScale"+o]};
|
||
|
}
|
||
|
.section-${o-1} text {
|
||
|
fill: ${r["cScaleLabel"+o]};
|
||
|
}
|
||
|
.node-icon-${o-1} {
|
||
|
font-size: 40px;
|
||
|
color: ${r["cScaleLabel"+o]};
|
||
|
}
|
||
|
.section-edge-${o-1}{
|
||
|
stroke: ${r["cScale"+o]};
|
||
|
}
|
||
|
.edge-depth-${o-1}{
|
||
|
stroke-width: ${l};
|
||
|
}
|
||
|
.section-${o-1} line {
|
||
|
stroke: ${r["cScaleInv"+o]} ;
|
||
|
stroke-width: 3;
|
||
|
}
|
||
|
|
||
|
.lineWrapper line{
|
||
|
stroke: ${r["cScaleLabel"+o]} ;
|
||
|
}
|
||
|
|
||
|
.disabled, .disabled circle, .disabled text {
|
||
|
fill: lightgray;
|
||
|
}
|
||
|
.disabled text {
|
||
|
fill: #efefef;
|
||
|
}
|
||
|
`}return i},Ntn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:btn,renderer:Itn,parser:ptn,styles:r=>`
|
||
|
.edge {
|
||
|
stroke-width: 3;
|
||
|
}
|
||
|
${Otn(r)}
|
||
|
.section-root rect, .section-root path, .section-root circle {
|
||
|
fill: ${r.git0};
|
||
|
}
|
||
|
.section-root text {
|
||
|
fill: ${r.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 $ce=function(){var r=function(q,X,te,H){for(te=te||{},H=q.length;H--;te[q[H]]=X);return te},i=[1,4],o=[1,13],l=[1,12],f=[1,15],b=[1,16],d=[1,20],w=[1,19],y=[6,7,8],k=[1,26],E=[1,24],T=[1,25],C=[6,7,11],S=[1,6,13,15,16,19,22],L=[1,33],O=[1,34],B=[1,6,7,11,13,15,16,19,22],N={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(X,te,H,Y,z,W,Z){var G=W.length-1;switch(z){case 6:case 7:return Y;case 8:Y.getLogger().trace("Stop NL ");break;case 9:Y.getLogger().trace("Stop EOF ");break;case 11:Y.getLogger().trace("Stop NL2 ");break;case 12:Y.getLogger().trace("Stop EOF2 ");break;case 15:Y.getLogger().info("Node: ",W[G].id),Y.addNode(W[G-1].length,W[G].id,W[G].descr,W[G].type);break;case 16:Y.getLogger().trace("Icon: ",W[G]),Y.decorateNode({icon:W[G]});break;case 17:case 21:Y.decorateNode({class:W[G]});break;case 18:Y.getLogger().trace("SPACELIST");break;case 19:Y.getLogger().trace("Node: ",W[G].id),Y.addNode(0,W[G].id,W[G].descr,W[G].type);break;case 20:Y.decorateNode({icon:W[G]});break;case 25:Y.getLogger().trace("node found ..",W[G-2]),this.$={id:W[G-1],descr:W[G-1],type:Y.getType(W[G-2],W[G])};break;case 26:this.$={id:W[G],descr:W[G],type:Y.nodeType.DEFAULT};break;case 27:Y.getLogger().trace("node found ..",W[G-3]),this.$={id:W[G-3],descr:W[G-1],type:Y.getType(W[G-2],W[G])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:o,7:[1,10],9:9,12:11,13:l,14:14,15:f,16:b,17:17,18:18,19:d,22:w},r(y,[2,3]),{1:[2,2]},r(y,[2,4]),r(y,[2,5]),{1:[2,6],6:o,12:21,13:l,14:14,15:f,16:b,17:17,18:18,19:d,22:w},{6:o,9:22,12:11,13:l,14:14,15:f,16:b,17:17,18:18,19:d,22:w},{6:k,7:E,10:23,11:T},r(C,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:d,22:w}),r(C,[2,18]),r(C,[2,19]),r(C,[2,20]),r(C,[2,21]),r(C,[2,23]),r(C,[2,24]),r(C,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:E,10:32,11:T},{1:[2,7],6:o,12:21,13:l,14:14,15:f,16:b,17:17,18:18,19:d,22:w},r(S,[2,14],{7:L,11:O}),r(B,[2,8]),r(B,[2,9]),r(B,[2,10]),r(C,[2,15]),r(C,[2,16]),r(C,[2,17]),{20:[1,35]},{21:[1,36]},r(S,[2,13],{7:L,11:O}),r(B,[2,11]),r(B,[2,12]),{21:[1,37]},r(C,[2,25]),r(C,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(X,te){if(te.recoverable)this.trace(X);else{var H=new Error(X);throw H.hash=te,H}},parse:function(X){var te=this,H=[0],Y=[],z=[null],W=[],Z=this.table,G="",ae=0,$=0,ge=2,ee=1,de=W.slice.call(arguments,1),re=Object.create(this.lexer),ke={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(ke.yy[Ce]=this.yy[Ce]);re.setInput(X,ke.yy),ke.yy.lexer=re,ke.yy.parser=this,typeof re.yylloc>"u"&&(re.yylloc={});var _e=re.yylloc;W.push(_e);var Te=re.options&&re.options.ranges;typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var je;return je=Y.pop()||re.lex()||ee,typeof je!="number"&&(je instanceof Array&&(Y=je,je=Y.pop()),je=te.symbols_[je]||je),je}for(var Ge,Xe,Ee,Ze,Ie={},Oe,Le,$e,xe;;){if(Xe=H[H.length-1],this.defaultActions[Xe]?Ee=this.defaultActions[Xe]:((Ge===null||typeof Ge>"u")&&(Ge=Be()),Ee=Z[Xe]&&Z[Xe][Ge]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ae="";xe=[];for(Oe in Z[Xe])this.terminals_[Oe]&&Oe>ge&&xe.push("'"+this.terminals_[Oe]+"'");re.showPosition?Ae="Parse error on line "+(ae+1)+`:
|
||
|
`+re.showPosition()+`
|
||
|
Expecting `+xe.join(", ")+", got '"+(this.terminals_[Ge]||Ge)+"'":Ae="Parse error on line "+(ae+1)+": Unexpected "+(Ge==ee?"end of input":"'"+(this.terminals_[Ge]||Ge)+"'"),this.parseError(Ae,{text:re.match,token:this.terminals_[Ge]||Ge,line:re.yylineno,loc:_e,expected:xe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+Ge);switch(Ee[0]){case 1:H.push(Ge),z.push(re.yytext),W.push(re.yylloc),H.push(Ee[1]),Ge=null,$=re.yyleng,G=re.yytext,ae=re.yylineno,_e=re.yylloc;break;case 2:if(Le=this.productions_[Ee[1]][1],Ie.$=z[z.length-Le],Ie._$={first_line:W[W.length-(Le||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Le||1)].first_column,last_column:W[W.length-1].last_column},Te&&(Ie._$.range=[W[W.length-(Le||1)].range[0],W[W.length-1].range[1]]),Ze=this.performAction.apply(Ie,[G,$,ae,ke.yy,Ee[1],z,W].concat(de)),typeof Ze<"u")return Ze;Le&&(H=H.slice(0,-1*Le*2),z=z.slice(0,-1*Le),W=W.slice(0,-1*Le)),H.push(this.productions_[Ee[1]][0]),z.push(Ie.$),W.push(Ie._$),$e=Z[H[H.length-2]][H[H.length-1]],H.push($e);break;case 3:return!0}}return!0}},F=function(){var q={EOF:1,parseError:function(te,H){if(this.yy.parser)this.yy.parser.parseError(te,H);else throw new Error(te)},setInput:function(X,te){return this.yy=te||this.yy||{},this._input=X,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 X=this._input[0];this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X;var te=X.match(/(?:\r\n?|\n).*/g);return te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var te=X.length,H=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var Y=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),H.length-1&&(this.yylineno-=H.length-1);var z=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:H?(H.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-H.length].length-H[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-te]),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(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),te=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
|
||
|
`+te+"^"},test_match:function(X,te){var H,Y,z;if(this.options.backtrack_lexer&&(z={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&&(z.yylloc.range=this.yylloc.range.slice(0))),Y=X[0].match(/(?:\r\n?|\n).*/g),Y&&(this.yylineno+=Y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Y?Y[Y.length-1].length-Y[Y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,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(X[0].length),this.matched+=X[0],H=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),H)return H;if(this._backtrack){for(var W in z)this[W]=z[W];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var X,te,H,Y;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),W=0;W<z.length;W++)if(H=this._input.match(this.rules[z[W]]),H&&(!te||H[0].length>te[0].length)){if(te=H,Y=W,this.options.backtrack_lexer){if(X=this.test_match(H,z[W]),X!==!1)return X;if(this._backtrack){te=!1;continue}else return!1}else if(!this.options.flex)break}return te?(X=this.test_match(te,z[Y]),X!==!1?X:!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 te=this.next();return te||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){var te=this.conditionStack.length-1;return te>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(te){return te=this.conditionStack.length-1-Math.abs(te||0),te>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,H,Y,z){switch(Y){case 0:te.getLogger().trace("Found comment",H.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:te.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return te.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:te.getLogger().trace("end icon"),this.popState();break;case 10:return te.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return te.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return te.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return te.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:te.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return te.getLogger().trace("description:",H.yytext),"NODE_DESCR";case 23:this.popState();break;case 24:return this.popState(),te.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),te.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),te.getLogger().trace("node end ...",H.yytext),"NODE_DEND";case 27:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 28:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 29:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 30:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 32:return te.getLogger().trace("Long description:",H.yytext),20;case 33:return te.getLogger().trace("Long description:",H.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],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return q}();N.lexer=F;function R(){this.yy={}}return R.prototype=N,N.Parser=R,new R}();$ce.parser=$ce;const Ptn=$ce,sO=r=>up(r,ht());let R2=[],gOe=0,Hce={};const Btn=()=>{R2=[],gOe=0,Hce={}},Ftn=function(r){for(let i=R2.length-1;i>=0;i--)if(R2[i].level<r)return R2[i];return null},Rtn=()=>R2.length>0?R2[0]:null,jtn=(r,i,o,l)=>{Se.info("addNode",r,i,o,l);const f=ht(),b={id:gOe++,nodeId:sO(i),level:r,descr:sO(o),type:l,children:[],width:ht().mindmap.maxNodeWidth};switch(b.type){case Uc.ROUNDED_RECT:b.padding=2*f.mindmap.padding;break;case Uc.RECT:b.padding=2*f.mindmap.padding;break;case Uc.HEXAGON:b.padding=2*f.mindmap.padding;break;default:b.padding=f.mindmap.padding}const d=Ftn(r);if(d)d.children.push(b),R2.push(b);else if(R2.lengt
|
||
|
a${d},${d} 1 0,1 ${o*.4},${-1*o*.1}
|
||
|
a${b},${b} 1 0,1 ${o*.35},${1*o*.2}
|
||
|
|
||
|
a${f},${f} 1 0,1 ${o*.15},${1*l*.35}
|
||
|
a${w},${w} 1 0,1 ${-1*o*.15},${1*l*.65}
|
||
|
|
||
|
a${b},${f} 1 0,1 ${-1*o*.25},${o*.15}
|
||
|
a${d},${d} 1 0,1 ${-1*o*.5},${0}
|
||
|
a${f},${f} 1 0,1 ${-1*o*.25},${-1*o*.15}
|
||
|
|
||
|
a${f},${f} 1 0,1 ${-1*o*.1},${-1*l*.35}
|
||
|
a${w},${w} 1 0,1 ${o*.1},${-1*l*.65}
|
||
|
|
||
|
H0 V0 Z`)},Xtn=function(r,i){const o=i.width,l=i.height,f=.15*o;r.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+v7(i.type)).attr("d",`M0 0 a${f},${f} 1 0,0 ${o*.25},${-1*l*.1}
|
||
|
a${f},${f} 1 0,0 ${o*.25},${0}
|
||
|
a${f},${f} 1 0,0 ${o*.25},${0}
|
||
|
a${f},${f} 1 0,0 ${o*.25},${1*l*.1}
|
||
|
|
||
|
a${f},${f} 1 0,0 ${o*.15},${1*l*.33}
|
||
|
a${f*.8},${f*.8} 1 0,0 ${0},${1*l*.34}
|
||
|
a${f},${f} 1 0,0 ${-1*o*.15},${1*l*.33}
|
||
|
|
||
|
a${f},${f} 1 0,0 ${-1*o*.25},${l*.15}
|
||
|
a${f},${f} 1 0,0 ${-1*o*.25},${0}
|
||
|
a${f},${f} 1 0,0 ${-1*o*.25},${0}
|
||
|
a${f},${f} 1 0,0 ${-1*o*.25},${-1*l*.15}
|
||
|
|
||
|
a${f},${f} 1 0,0 ${-1*o*.1},${-1*l*.33}
|
||
|
a${f*.8},${f*.8} 1 0,0 ${0},${-1*l*.34}
|
||
|
a${f},${f} 1 0,0 ${o*.1},${-1*l*.33}
|
||
|
|
||
|
H0 V0 Z`)},Qtn=function(r,i){r.append("circle").attr("id","node-"+i.id).attr("class","node-bkg node-"+v7(i.type)).attr("r",i.width/2)};function Ztn(r,i,o,l,f){return r.insert("polygon",":first-child").attr("points",l.map(function(b){return b.x+","+b.y}).join(" ")).attr("transform","translate("+(f.width-i)/2+", "+o+")")}const Jtn=function(r,i){const o=i.height,f=o/4,b=i.width-i.padding+2*f,d=[{x:f,y:0},{x:b-f,y:0},{x:b,y:-o/2},{x:b-f,y:-o},{x:f,y:-o},{x:0,y:-o/2}];Ztn(r,b,o,d,i)},enn=function(r,i){r.append("rect").attr("id","node-"+i.id).attr("class","node-bkg node-"+v7(i.type)).attr("height",i.height).attr("rx",i.padding).attr("ry",i.padding).attr("width",i.width)},wOe={drawNode:function(r,i,o,l){const f=o%(vOe-1),b=r.append("g");i.section=f;let d="section-"+f;f<0&&(d+=" section-root"),b.attr("class",(i.class?i.class+" ":"")+"mindmap-node "+d);const w=b.append("g"),y=b.append("g"),E=y.append("text").text(i.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(qtn,i.width).node().getBBox(),T=l.fontSize.replace?l.fontSize.replace("px",""):l.fontSize;if(i.height=E.height+T*1.1*.5+i.padding,i.width=E.width+2*i.padding,i.icon)if(i.type===Uc.CIRCLE)i.height+=50,i.width+=50,b.append("foreignObject").attr("height","50px").attr("width",i.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+f+" "+i.icon),y.attr("transform","translate("+i.width/2+", "+(i.height/2-1.5*i.padding)+")");else{i.width+=50;const C=i.height;i.height=Math.max(C,60);const S=Math.abs(i.height-C);b.append("foreignObject").attr("width","60px").attr("height",i.height).attr("style","text-align: center;margin-top:"+S/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+f+" "+i.icon),y.attr("transform","translate("+(25+i.width/2)+", "+(S/2+i.padding/2)+")")}else y.attr("transform","translate("+i.width/2+", "+i.padding/2+")");switch(i.type){case Uc.DEFAULT:Ytn(w,i,f);break;case Uc.ROUNDED_RECT:enn(w,i);break;case Uc.RECT:Wtn(w,i);break;case Uc.CIRCLE:w.attr("transform","translate("+i.width/2+", "+ +i.height/2+")"),Qtn(w,i);break;case Uc.CLOUD:Ktn(w,i);break;case Uc.BANG:Xtn(w,i);break;case Uc.HEXAGON:Jtn(w,i);break}return pOe(i.id,b),i.height},positionNode:function(r){const i=zce(r.id),o=r.x||0,l=r.y||0;i.attr("transform","translate("+o+","+l+")")},drawEdge:function(i,o,l,f,b){const d=b%(vOe-1),w=l.x+l.width/2,y=l.y+l.height/2,k=o.x+o.width/2,E=o.y+o.height/2,T=k>w?w+Math.abs(w-k)/2:w-Math.abs(w-k)/2,C=E>y?y+Math.abs(y-E)/2:y-Math.abs(y-E)/2,S=k>w?Math.abs(w-T)/2+w:-Math.abs(w-T)/2+w,L=E>y?Math.abs(y-C)/2+y:-Math.abs(y-C)/2+y;i.append("path").attr("d",l.direction==="TB"||l.direction==="BT"?`M${w},${y} Q${w},${L} ${T},${C} T${k},${E}`:`M${w},${y} Q${S},${y} ${T},${C} T${k},${E}`).attr("class","edge section-edge-"+d+" edge-depth-"+f)}};function tnn(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}var aO=tnn,nnn=typeof Mm=="object"&&Mm&&Mm.Object===Object&&Mm,rnn=nnn,inn=rnn,snn=typeof self=="object"&&self&&self.Object===Object&&self,ann=inn||snn||Function("return this")(),hU=ann,onn=hU,cnn=function(){return onn.Date.now()},unn=cnn,lnn=/\s/;function hnn(r){for(var i=r.length;i--&&lnn.test(r.charAt(i)););return i}var fnn=hnn,dnn=fnn,gnn=/^\s+/;function pnn(r){return r&&r.slice(0,dnn(r)+1).replace(gnn,"")}var bnn=pnn,vnn=hU,wnn=vnn.Symbol,Gce=wnn,mOe=Gce,yOe=Object.prototype,mnn=yOe.hasOwnProperty,ynn=yOe.toString,oO=mOe?mOe.toStringTag:void 0;function knn(r){var i=mnn.call(r,oO),o=r[oO];try{r[oO]=void 0;var l=!0}catch{}var f=ynn.call(r);return l&&(i?r[oO]=o:delete r[oO]),f}var xnn=knn,Enn=Object.prototype,_nn=Enn.toString;function Tnn(r){return _nn.call(r)}var Cnn=Tnn,kOe=Gce,Snn=xnn,Ann=Cnn,Mnn="[object Null]",Dnn="[object Undefined]",xOe=kOe?kOe.toStringTag:void 0;function Lnn(r){return r==null?r===void 0?Dnn:Mnn:xOe&&xOe in Object(r)?Snn(r):Ann(r)}var EOe=Lnn;function Inn(r){return r!=null&&typeof r=="object"}var Onn=Inn,Nnn=EOe,Pnn=Onn,Bnn="[object Symbol]";functi
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Fu=typeof window>"u"?null:window,YOe=Fu?Fu.navigator:null;Fu&&Fu.document;var $an=df(""),WOe=df({}),Han=df(function(){}),zan=typeof HTMLElement>"u"?"undefined":df(HTMLElement),hO=function(i){return i&&i.instanceString&&al(i.instanceString)?i.instanceString():null},$i=function(i){return i!=null&&df(i)==$an},al=function(i){return i!=null&&df(i)===Han},qc=function(i){return!vp(i)&&(Array.isArray?Array.isArray(i):i!=null&&i instanceof Array)},_o=function(i){return i!=null&&df(i)===WOe&&!qc(i)&&i.constructor===Object},Gan=function(i){return i!=null&&df(i)===WOe},Vr=function(i){return i!=null&&df(i)===df(1)&&!isNaN(i)},Van=function(i){return Vr(i)&&Math.floor(i)===i},vU=function(i){if(zan!=="undefined")return i!=null&&i instanceof HTMLElement},vp=function(i){return fO(i)||KOe(i)},fO=function(i){return hO(i)==="collection"&&i._private.single},KOe=function(i){return hO(i)==="collection"&&!i._private.single},Qce=function(i){return hO(i)==="core"},XOe=function(i){return hO(i)==="stylesheet"},Uan=function(i){return hO(i)==="event"},y6=function(i){return i==null?!0:!!(i===""||i.match(/^\s+$/))},qan=function(i){return typeof HTMLElement>"u"?!1:i instanceof HTMLElement},Yan=function(i){return _o(i)&&Vr(i.x1)&&Vr(i.x2)&&Vr(i.y1)&&Vr(i.y2)},Wan=function(i){return Gan(i)&&al(i.then)},Kan=function(){return YOe&&YOe.userAgent.match(/msie|trident|edge/i)},dO=function(i,o){o||(o=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var b=[],d=0;d<arguments.length;d++)b.push(arguments[d]);return b.join("$")});var l=function f(){var b=this,d=arguments,w,y=o.apply(b,d),k=f.cache;return(w=k[y])||(w=k[y]=i.apply(b,d)),w};return l.cache={},l},Zce=dO(function(r){return r.replace(/([A-Z])/g,function(i){return"-"+i.toLowerCase()})}),wU=dO(function(r){return r.replace(/(-\w)/g,function(i){return i[1].toUpperCase()})}),QOe=dO(function(r,i){return r+i[0].toUpperCase()+i.substring(1)},function(r,i){return r+"$"+i}),ZOe=function(i){return y6(i)?i:i.charAt(0).toUpperCase()+i.substring(1)},gf="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Xan="rgb[a]?\\(("+gf+"[%]?)\\s*,\\s*("+gf+"[%]?)\\s*,\\s*("+gf+"[%]?)(?:\\s*,\\s*("+gf+"))?\\)",Qan="rgb[a]?\\((?:"+gf+"[%]?)\\s*,\\s*(?:"+gf+"[%]?)\\s*,\\s*(?:"+gf+"[%]?)(?:\\s*,\\s*(?:"+gf+"))?\\)",Zan="hsl[a]?\\(("+gf+")\\s*,\\s*("+gf+"[%])\\s*,\\s*("+gf+"[%])(?:\\s*,\\s*("+gf+"))?\\)",Jan="hsl[a]?\\((?:"+gf+")\\s*,\\s*(?:"+gf+"[%])\\s*,\\s*(?:"+gf+"[%])(?:\\s*,\\s*(?:"+gf+"))?\\)",eon="\\#[0-9a-fA-F]{3}",ton="\\#[0-9a-fA-F]{6}",JOe=function(i,o){return i<o?-1:i>o?1:0},non=function(i,o){return-1*JOe(i,o)},bs=Object.assign!=null?Object.assign.bind(Object):function(r){for(var i=arguments,o=1;o<i.length;o++){var l=i[o];if(l!=null)for(var f=Object.keys(l),b=0;b<f.length;b++){var d=f[b];r[d]=l[d]}}return r},ron=function(i){if(!(!(i.length===4||i.length===7)||i[0]!=="#")){var o=i.length===4,l,f,b,d=16;return o?(l=parseInt(i[1]+i[1],d),f=parseInt(i[2]+i[2],d),b=parseInt(i[3]+i[3],d)):(l=parseInt(i[1]+i[2],d),f=parseInt(i[3]+i[4],d),b=parseInt(i[5]+i[6],d)),[l,f,b]}},ion=function(i){var o,l,f,b,d,w,y,k;function E(L,O,B){return B<0&&(B+=1),B>1&&(B-=1),B<1/6?L+(O-L)*6*B:B<1/2?O:B<2/3?L+(O-L)*(2/3-B)*6:L}var T=new RegExp("^"+Zan+"$").exec(i);if(T){if(l=parseInt(T[1]),l<0?l=(360- -1*l%360)%360:l>360&&(l=l%360),l/=360,f=parseFloat(T[2]),f<0||f>100||(f=f/100,b=parseFloat(T[3]),b<0||b>100)||(b=b/100,d=T[4],d!==void 0&&(d=parseFloat(d),d<0||d>1)))return;if(f===0)w=y=k=Math.round(b*255);else{var C=b<.5?b*(1+f):b+f-b*f,S=2*b-C;w=Math.round(255*E(S,C,l+1/3)),y=Math.round(255*E(S,C,l)),k=Math.round(255*E(S,C,l-1/3))}o=[w,y,k,d]}return o},son=function(i){var o,l=new RegExp("^"+Xan+"$").exec(i);if(l){o=[];for(var f=[],b=1;b<=3;b++){var d=l[b];if(d[d.length-1]==="%"&&(f[b]=!0),d=parseFloat(d),f[b]&&(d=d/100*255),d<0||d>255)return;o.push(Math.floor(d))}var w=f[1]||f[2]||f[3],y=f[1]&&f[2]&&f[3];if(w&&!y)return;var k=l[4];if(k!==void 0){if(k=parseFloat(k),k<0||k>1)return;o.push(k)}}return o},aon=function
|
||
|
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 jNe=0,$Ne=1,HNe=2,p4=function r(i){if(!(this instanceof r))return new r(i);this.id="Thenable/1.0.7",this.state=jNe,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof i=="function"&&i.call(this,this.fulfill.bind(this),this.reject.bind(this))};p4.prototype={fulfill:function(i){return zNe(this,$Ne,"fulfillValue",i)},reject:function(i){return zNe(this,HNe,"rejectReason",i)},then:function(i,o){var l=this,f=new p4;return l.onFulfilled.push(UNe(i,f,"fulfill")),l.onRejected.push(UNe(o,f,"reject")),GNe(l),f.proxy}};var zNe=function(i,o,l,f){return i.state===jNe&&(i.state=o,i[l]=f,GNe(i)),i},GNe=function(i){i.state===$Ne?VNe(i,"onFulfilled",i.fulfillValue):i.state===HNe&&VNe(i,"onRejected",i.rejectReason)},VNe=function(i,o,l){if(i[o].length!==0){var f=i[o];i[o]=[];var b=function(){for(var w=0;w<f.length;w++)f[w](l)};typeof setImmediate=="function"?setImmediate(b):setTimeout(b,0)}},UNe=function(i,o,l){return function(f){if(typeof i!="function")o[l].call(o,f);else{var b;try{b=i(f)}catch(d){o.reject(d);return}Wcn(o,b)}}},Wcn=function r(i,o){if(i===o||i.proxy===o){i.reject(new TypeError("cannot resolve promise with itself"));return}var l;if(df(o)==="object"&&o!==null||typeof o=="function")try{l=o.then}catch(b){i.reject(b);return}if(typeof l=="function"){var f=!1;try{l.call(o,function(b){f||(f=!0,b===o?i.reject(new TypeError("circular thenable chain")):r(i,b))},function(b){f||(f=!0,i.reject(b))})}catch(b){f||i.reject(b)}return}i.fulfill(o)};p4.all=function(r){return new p4(function(i,o){for(var l=new Array(r.length),f=0,b=function(y,k){l[y]=k,f++,f===r.length&&i(l)},d=0;d<r.length;d++)(function(w){var y=r[w],k=y!=null&&y.then!=null;if(k)y.then(function(T){b(w,T)},function(T){o(T)});else{var E=y;b(w,E)}})(d)})},p4.resolve=function(r){return new p4(function(i,o){i(r)})},p4.reject=function(r){return new p4(function(i,o){o(r)})};var HC=typeof Promise<"u"?Promise:p4,gue=function(i,o,l){var f=Qce(i),b=!f,d=this._private=bs({duration:1e3},o,l);if(d.target=i,d.style=d.style||d.css,d.started=!1,d.playing=!1,d.hooked=!1,d.applying=!1,d.progress=0,d.completes=[],d.frames=[],d.complete&&al(d.complete)&&d.completes.push(d.complete),b){var w=i.position();d.startPosition=d.startPosition||{x:w.x,y:w.y},d.startStyle=d.startStyle||i.cy().style().getAnimationStartStyle(i,d.style)}if(f){var y=i.pan();d.startPan={x:y.x,y:y.y},d.startZoom=i.zoom()}this.length=1,this[0]=this},x7=gue.prototype;bs(x7,{instanceString:function(){return"animation"},hook:function(){var i=this._private;if(!i.hooked){var o,l=i.target._private.animation;i.queue?o=l.queue:o=l.current,o.push(this),vp(i.target)&&i.target.cy().addToAnimationPool(i.target),i.hooked=!0}return this},play:function(){var i=this._private;return i.progress===1&&(i.progress=0),i.playing=!0,i.started=!1,i.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var i=this._private;return i.applying=!0,i.started=!1,i.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var i=this._private;return i.playing=!1,i.started=!1,this},stop:function(){var i=this._private;return i.playing=!1,i.started=!1,i.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(i){var o=this._private;return i===void 0?o.progress*o.duration:this.progress(i/o.duration)},progress:function(i){var o=this._private,l=o.playing;return i===void 0?o.progress:(l&&this.pause(),o.progress=i,o.started=!1,l&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var i=this._private,o=i.playing;o&&this.pause(),i.progress=1-i.progress,i.started=!1;var l=function(k,E){var T=i[k];T!=null&&(i[k]=i[E],i[E]=T)};if(l("zoom","startZoom"),l("pan","startPan"),l("position","startPosition"),i.style)for(var f=0;f<i.style.length;f++){var b=i.style[f],d=b.name,w=i.startStyle[d];i.startStyle[d]=b,i.style[f]=w}return o&&this.play(),this},promise:function(i){var o=this._private,l;switch(i){case"frame"
|
||
|
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 aPe=function(i,o){this.recycle(i,o)};function AO(){return!1}function PU(){return!0}aPe.prototype={instanceString:function(){return"event"},recycle:function(i,o){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=AO,i!=null&&i.preventDefault?(this.type=i.type,this.isDefaultPrevented=i.defaultPrevented?PU:AO):i!=null&&i.type?o=i:this.type=i,o!=null&&(this.originalEvent=o.originalEvent,this.type=o.type!=null?o.type:this.type,this.cy=o.cy,this.target=o.target,this.position=o.position,this.renderedPosition=o.renderedPosition,this.namespace=o.namespace,this.layout=o.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var l=this.position,f=this.cy.zoom(),b=this.cy.pan();this.renderedPosition={x:l.x*f+b.x,y:l.y*f+b.y}}this.timeStamp=i&&i.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=PU;var i=this.originalEvent;!i||i.preventDefault&&i.preventDefault()},stopPropagation:function(){this.isPropagationStopped=PU;var i=this.originalEvent;!i||i.stopPropagation&&i.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=PU,this.stopPropagation()},isDefaultPrevented:AO,isPropagationStopped:AO,isImmediatePropagationStopped:AO};var oPe=/^([^.]+)(\.(?:[^.]+))?$/,Dun=".*",cPe={qualifierCompare:function(i,o){return i===o},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(i){return i},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},uPe=Object.keys(cPe),Lun={};function BU(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lun,i=arguments.length>1?arguments[1]:void 0,o=0;o<uPe.length;o++){var l=uPe[o];this[l]=r[l]||cPe[l]}this.context=i||this.context,this.listeners=[],this.emitting=0}var D6=BU.prototype,lPe=function(i,o,l,f,b,d,w){al(f)&&(b=f,f=null),w&&(d==null?d=w:d=bs({},d,w));for(var y=qc(l)?l:l.split(/\s+/),k=0;k<y.length;k++){var E=y[k];if(!y6(E)){var T=E.match(oPe);if(T){var C=T[1],S=T[2]?T[2]:null,L=o(i,E,C,S,f,b,d);if(L===!1)break}}}},hPe=function(i,o){return i.addEventFields(i.context,o),new aPe(o.type,o)},Iun=function(i,o,l){if(Uan(l)){o(i,l);return}else if(_o(l)){o(i,hPe(i,l));return}for(var f=qc(l)?l:l.split(/\s+/),b=0;b<f.length;b++){var d=f[b];if(!y6(d)){var w=d.match(oPe);if(w){var y=w[1],k=w[2]?w[2]:null,E=hPe(i,{type:y,namespace:k,target:i.context});o(i,E)}}}};D6.on=D6.addListener=function(r,i,o,l,f){return lPe(this,function(b,d,w,y,k,E,T){al(E)&&b.listeners.push({event:d,callback:E,type:w,namespace:y,qualifier:k,conf:T})},r,i,o,l,f),this},D6.one=function(r,i,o,l){return this.on(r,i,o,l,{one:!0})},D6.removeListener=D6.off=function(r,i,o,l){var f=this;this.emitting!==0&&(this.listeners=bon(this.listeners));for(var b=this.listeners,d=function(k){var E=b[k];lPe(f,function(T,C,S,L,O,B){if((E.type===S||r==="*")&&(!L&&E.namespace!==".*"||E.namespace===L)&&(!O||T.qualifierCompare(E.qualifier,O))&&(!B||E.callback===B))return b.splice(k,1),!1},r,i,o,l)},w=b.length-1;w>=0;w--)d(w);return this},D6.removeAllListeners=function(){return this.removeListener("*")},D6.emit=D6.trigger=function(r,i,o){var l=this.listeners,f=l.length;return this.emitting++,qc(i)||(i=[i]),Iun(this,function(b,d){o!=null&&(l=[{event:d.event,type:d.type,namespace:d.namespace,callback:o}],f=l.length);for(var w=function(E){var T=l[E];if(T.type===d.type&&(!T.namespace||T.namespace===d.namespace||T.namespace===Dun)&&b.eventMatches(b.context,T,d)){var C=[d];i!=null&&won(C,i),b.beforeEmit(b.context,T,d),T.conf&&T.conf.one&&(b.listeners=b.listeners.filter(function(O){return O!==T}));var S=b.callbackContext(b.context,T,d),L=T.callback.apply(S,C);b.afterEmit(b.context,T,d),L===!1&&(d.stopPropagation(),d.preventDefault())}},y=0;y<f;y++)w(y);b.bubble(b.context)&&!d.isPropagationStopped()&&b.parent(b.context).emit(d,i)},r),this.emitting--,this};var Oun={qualifierCompare:function(i,o){return i==null||o==null?i==null&&o==null:i.sameText(o)},eventMatches:function(i,o,l){var f=o.qualifier;return f!=null?i!==l.target&&fO(l.target)&&f.ma
|
||
|
`),T=r.pstyle("text-max-width").pfValue,C=r.pstyle("text-overflow-wrap").value,S=C==="anywhere",L=[],O=/[\s\u200b]+/,B=S?"":" ",N=0;N<E.length;N++){var F=E[N],R=this.calculateLabelDimensions(r,F),q=R.width;if(S){var X=F.split("").join(k);F=X}if(q>T){for(var te=F.split(O),H="",Y=0;Y<te.length;Y++){var z=te[Y],W=H.length===0?z:H+B+z,Z=this.calculateLabelDimensions(r,W),G=Z.width;G<=T?H+=z+B:(H&&L.push(H),H=z+B)}H.match(/^[\s\u200b]+$/)||L.push(H)}else L.push(F)}d("labelWrapCachedLines",L),f=d("labelWrapCachedText",L.join(`
|
||
|
`)),d("labelWrapKey",y)}else if(w==="ellipsis"){var ae=r.pstyle("text-max-width").pfValue,$="",ge="\u2026",ee=!1;if(this.calculateLabelDimensions(r,f).width<ae)return f;for(var de=0;de<f.length;de++){var re=this.calculateLabelDimensions(r,$+f[de]+ge).width;if(re>ae)break;$+=f[de],de===f.length-1&&(ee=!0)}return ee||($+=ge),$}return f},Km.getLabelJustification=function(r){var i=r.pstyle("text-justification").strValue,o=r.pstyle("text-halign").strValue;if(i==="auto")if(r.isNode())switch(o){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return i},Km.calculateLabelDimensions=function(r,i){var o=this,l=w7(i,r._private.labelDimsKey),f=o.labelDimCache||(o.labelDimCache=[]),b=f[l];if(b!=null)return b;var d=0,w=r.pstyle("font-style").strValue,y=r.pstyle("font-size").pfValue,k=r.pstyle("font-family").strValue,E=r.pstyle("font-weight").strValue,T=this.labelCalcCanvas,C=this.labelCalcCanvasContext;if(!T){T=this.labelCalcCanvas=document.createElement("canvas"),C=this.labelCalcCanvasContext=T.getContext("2d");var S=T.style;S.position="absolute",S.left="-9999px",S.top="-9999px",S.zIndex="-1",S.visibility="hidden",S.pointerEvents="none"}C.font="".concat(w," ").concat(E," ").concat(y,"px ").concat(k);for(var L=0,O=0,B=i.split(`
|
||
|
`),N=0;N<B.length;N++){var F=B[N],R=C.measureText(F),q=Math.ceil(R.width),X=y;L=Math.max(q,L),O+=X}return L+=d,O+=d,f[l]={width:L,height:O}},Km.calculateLabelAngle=function(r,i){var o=r._private,l=o.rscratch,f=r.isEdge(),b=i?i+"-":"",d=r.pstyle(b+"text-rotation"),w=d.strValue;return w==="none"?0:f&&w==="autorotate"?l.labelAutoAngle:w==="autorotate"?0:d.pfValue},Km.calculateLabelAngles=function(r){var i=this,o=r.isEdge(),l=r._private,f=l.rscratch;f.labelAngle=i.calculateLabelAngle(r),o&&(f.sourceLabelAngle=i.calculateLabelAngle(r,"source"),f.targetLabelAngle=i.calculateLabelAngle(r,"target"))};var GPe={},VPe=28,UPe=!1;GPe.getNodeShape=function(r){var i=this,o=r.pstyle("shape").value;if(o==="cutrectangle"&&(r.width()<VPe||r.height()<VPe))return UPe||(tc("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),UPe=!0),"rectangle";if(r.isParent())return o==="rectangle"||o==="roundrectangle"||o==="round-rectangle"||o==="cutrectangle"||o==="cut-rectangle"||o==="barrel"?o:"rectangle";if(o==="polygon"){var l=r.pstyle("shape-polygon-points").value;return i.nodeShapes.makePolygon(l).name}return o};var ZU={};ZU.registerCalculationListeners=function(){var r=this.cy,i=r.collection(),o=this,l=function(d){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(i.merge(d),w)for(var y=0;y<d.length;y++){var k=d[y],E=k._private,T=E.rstyle;T.clean=!1,T.cleanConnected=!1}};o.binder(r).on("bounds.* dirty.*",function(d){var w=d.target;l(w)}).on("style.* background.*",function(d){var w=d.target;l(w,!1)});var f=function(d){if(d){var w=o.onUpdateEleCalcsFns;i.cleanStyle();for(var y=0;y<i.length;y++){var k=i[y],E=k._private.rstyle;k.isNode()&&!E.cleanConnected&&(l(k.connectedEdges()),E.cleanConnected=!0)}if(w)for(var T=0;T<w.length;T++){var C=w[T];C(d,i)}o.recalculateRenderedStyle(i),i=r.collection()}};o.flushRenderedStyleQueue=function(){f(!0)},o.beforeRender(f,o.beforeRenderPriorities.eleCalcs)},ZU.onUpdateEleCalcs=function(r){var i=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];i.push(r)},ZU.recalculateRenderedStyle=function(r,i){var o=function(q){return q._private.rstyle.cleanConnected},l=[],f=[];if(!this.destroyed){i===void 0&&(i=!0);for(var b=0;b<r.length;b++){var d=r[b],w=d._private,y=w.rstyle;d.isEdge()&&(!o(d.source())||!o(d.target()))&&(y.clean=!1),!(i&&y.clean||d.removed())&&d.pstyle("display").value!=="none"&&(w.group==="nodes"?f.push(d):l.push(d),y.clean=!0)}for(var k=0;k<f.length;k++){var E=f[k],T=E._private,C=T.rstyle,S=E.position();this.recalculateNodeLabelProjection(E),C.nodeX=S.x,C.nodeY=S.y,C.nodeW=E.pstyle("width").pfValue,C.nodeH=E.pstyle("height").pfValue}this.recalculateEdgeProjections(l);for(var L=0;L<l.length;L++){var O=l[L],B=O._private,N=B.rstyle,F=B.rscratch;N.srcX=F.arrowStartX,N.srcY=F.arrowStartY,N.tgtX=F.arrowEndX,N.tgtY=F.arrowEndY,N.midX=F.midX,N.midY=F.midY,N.labelAngle=F.labelAngle,N.sourceLabelAngle=F.sourceLabelAngle,N.targetLabelAngle=F.targetLabelAngle}}};var JU={};JU.updateCachedGrabbedEles=function(){var r=this.cachedZSortedEles;if(!!r){r.drag=[],r.nondrag=[];for(var i=[],o=0;o<r.length;o++){var l=r[o],f=l._private.rscratch;l.grabbed()&&!l.isParent()?i.push(l):f.inDragLayer?r.drag.push(l):r.nondrag.push(l)}for(var o=0;o<i.length;o++){var l=i[o];r.drag.push(l)}}},JU.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},JU.getCachedZSortedEles=function(r){if(r||!this.cachedZSortedEles){var i=this.cy.mutableElements().toArray();i.sort(gPe),i.interactive=i.filter(function(o){return o.interactive()}),this.cachedZSortedEles=i,this.updateCachedGrabbedEles()}else i=this.cachedZSortedEles;return i};var qPe={};[T7,QU,t0,NO,Due,Km,GPe,ZU,JU].forEach(function(r){bs(qPe,r)});var YPe={};YPe.getCachedImage=function(r,i,o){var l=this,f=l.imageCache=l.imageCache||{},b=f[r];if(b)return b.image.complete||b.image.addEventListener("load",o),b.image;b=f[r]=f[r]||{};var d=b.image=new Image;d.addEventListener("load",o),d.addEventListener("error",function(){d.error=!0});var w="data:",y=r.substring(0,w.length).toLowerCase()===w;return y||(d.crossOrigin=i),d.src=
|
||
|
`+r);const b=ht().securityLevel;let d;b==="sandbox"&&(d=Cn("#i"+i));const y=Cn(b==="sandbox"?d.nodes()[0].contentDocument.body:"body").select("#"+i);y.append("g");const k=l.db.getMindmap(),E=y.append("g");E.attr("class","mindmap-edges");const T=y.append("g");T.attr("class","mindmap-nodes"),xBe(T,k,-1,f);const C=await _hn(k,f);Ehn(E,C),Thn(C),J8(void 0,y,f.mindmap.padding,f.mindmap.useMaxWidth)}},Shn=r=>{let i="";for(let o=0;o<r.THEME_COLOR_LIMIT;o++)r["lineColor"+o]=r["lineColor"+o]||r["cScaleInv"+o],fCe(r["lineColor"+o])?r["lineColor"+o]=is(r["lineColor"+o],20):r["lineColor"+o]=Ds(r["lineColor"+o],20);for(let o=0;o<r.THEME_COLOR_LIMIT;o++){const l=""+(17-3*o);i+=`
|
||
|
.section-${o-1} rect, .section-${o-1} path, .section-${o-1} circle, .section-${o-1} polygon, .section-${o-1} path {
|
||
|
fill: ${r["cScale"+o]};
|
||
|
}
|
||
|
.section-${o-1} text {
|
||
|
fill: ${r["cScaleLabel"+o]};
|
||
|
}
|
||
|
.node-icon-${o-1} {
|
||
|
font-size: 40px;
|
||
|
color: ${r["cScaleLabel"+o]};
|
||
|
}
|
||
|
.section-edge-${o-1}{
|
||
|
stroke: ${r["cScale"+o]};
|
||
|
}
|
||
|
.edge-depth-${o-1}{
|
||
|
stroke-width: ${l};
|
||
|
}
|
||
|
.section-${o-1} line {
|
||
|
stroke: ${r["cScaleInv"+o]} ;
|
||
|
stroke-width: 3;
|
||
|
}
|
||
|
|
||
|
.disabled, .disabled circle, .disabled text {
|
||
|
fill: lightgray;
|
||
|
}
|
||
|
.disabled text {
|
||
|
fill: #efefef;
|
||
|
}
|
||
|
`}return i},Ahn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:Utn,renderer:Chn,parser:Ptn,styles:r=>`
|
||
|
.edge {
|
||
|
stroke-width: 3;
|
||
|
}
|
||
|
${Shn(r)}
|
||
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
||
|
fill: ${r.git0};
|
||
|
}
|
||
|
.section-root text {
|
||
|
fill: ${r.gitBranchLabel0};
|
||
|
}
|
||
|
.icon-container {
|
||
|
height:100%;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.edge {
|
||
|
fill: none;
|
||
|
}
|
||
|
`}},Symbol.toStringTag,{value:"Module"}));return F2});
|
||
|
//# sourceMappingURL=mermaid.min.js.map
|