2030 lines
3.2 MiB
JavaScript
2030 lines
3.2 MiB
JavaScript
|
|
(function(QM,_g){typeof exports=="object"&&typeof module<"u"?module.exports=_g():typeof define=="function"&&define.amd?define(_g):(QM=typeof globalThis<"u"?globalThis:QM||self,QM.mermaid=_g())})(this,function(){var $We,zWe;"use strict";function QM(i){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];var d=Array.from(typeof i=="string"?[i]:i);d[d.length-1]=d[d.length-1].replace(/\r?\n([\t ]*)$/,"");var p=d.reduce(function(y,T){var _=T.match(/\n([\t ]+|(?!\s).)/g);return _?y.concat(_.map(function(A){var P,R;return(R=(P=A.match(/[\t ]/g))===null||P===void 0?void 0:P.length)!==null&&R!==void 0?R:0})):y},[]);if(p.length){var v=new RegExp(`
|
|||
|
|
[ ]{`+Math.min.apply(Math,p)+"}","g");d=d.map(function(y){return y.replace(v,`
|
|||
|
|
`)})}d[0]=d[0].replace(/^\r?\n/,"");var b=d[0];return s.forEach(function(y,T){var _=b.match(/(?:^|\n)( *)$/),A=_?_[1]:"",P=y;typeof y=="string"&&y.includes(`
|
|||
|
|
`)&&(P=String(y).split(`
|
|||
|
|
`).map(function(R,F){return F===0?R:""+A+R}).join(`
|
|||
|
|
`)),b+=P+d[T+1]}),b}var _g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lC(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oBe={exports:{}};(function(i,s){(function(u,d){i.exports=d()})(_g,function(){var u=1e3,d=6e4,p=36e5,v="millisecond",b="second",y="minute",T="hour",_="day",A="week",P="month",R="quarter",F="year",j="date",W="Invalid Date",ee=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,oe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Be){var Ne=["th","st","nd","rd"],je=Be%100;return"["+Be+(Ne[(je-20)%10]||Ne[je]||Ne[0])+"]"}},be=function(Be,Ne,je){var Ie=String(Be);return!Ie||Ie.length>=Ne?Be:""+Array(Ne+1-Ie.length).join(je)+Be},ge={s:be,z:function(Be){var Ne=-Be.utcOffset(),je=Math.abs(Ne),Ie=Math.floor(je/60),Se=je%60;return(Ne<=0?"+":"-")+be(Ie,2,"0")+":"+be(Se,2,"0")},m:function Be(Ne,je){if(Ne.date()<je.date())return-Be(je,Ne);var Ie=12*(je.year()-Ne.year())+(je.month()-Ne.month()),Se=Ne.clone().add(Ie,P),Ce=je-Se<0,ke=Ne.clone().add(Ie+(Ce?-1:1),P);return+(-(Ie+(je-Se)/(Ce?Se-ke:ke-Se))||0)},a:function(Be){return Be<0?Math.ceil(Be)||0:Math.floor(Be)},p:function(Be){return{M:P,y:F,w:A,d:_,D:j,h:T,m:y,s:b,ms:v,Q:R}[Be]||String(Be||"").toLowerCase().replace(/s$/,"")},u:function(Be){return Be===void 0}},ae="en",ne={};ne[ae]=oe;var se="$isDayjsObject",de=function(Be){return Be instanceof xe||!(!Be||!Be[se])},X=function Be(Ne,je,Ie){var Se;if(!Ne)return ae;if(typeof Ne=="string"){var Ce=Ne.toLowerCase();ne[Ce]&&(Se=Ce),je&&(ne[Ce]=je,Se=Ce);var ke=Ne.split("-");if(!Se&&ke.length>1)return Be(ke[0])}else{var Ke=Ne.name;ne[Ke]=Ne,Se=Ke}return!Ie&&Se&&(ae=Se),Se||!Ie&&ae},pe=function(Be,Ne){if(de(Be))return Be.clone();var je=typeof Ne=="object"?Ne:{};return je.date=Be,je.args=arguments,new xe(je)},G=ge;G.l=X,G.i=de,G.w=function(Be,Ne){return pe(Be,{locale:Ne.$L,utc:Ne.$u,x:Ne.$x,$offset:Ne.$offset})};var xe=function(){function Be(je){this.$L=X(je.locale,null,!0),this.parse(je),this.$x=this.$x||je.x||{},this[se]=!0}var Ne=Be.prototype;return Ne.parse=function(je){this.$d=function(Ie){var Se=Ie.date,Ce=Ie.utc;if(Se===null)return new Date(NaN);if(G.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if(typeof Se=="string"&&!/Z$/i.test(Se)){var ke=Se.match(ee);if(ke){var Ke=ke[2]-1||0,Ft=(ke[7]||"0").substring(0,3);return Ce?new Date(Date.UTC(ke[1],Ke,ke[3]||1,ke[4]||0,ke[5]||0,ke[6]||0,Ft)):new Date(ke[1],Ke,ke[3]||1,ke[4]||0,ke[5]||0,ke[6]||0,Ft)}}return new Date(Se)}(je),this.init()},Ne.init=function(){var je=this.$d;this.$y=je.getFullYear(),this.$M=je.getMonth(),this.$D=je.getDate(),this.$W=je.getDay(),this.$H=je.getHours(),this.$m=je.getMinutes(),this.$s=je.getSeconds(),this.$ms=je.getMilliseconds()},Ne.$utils=function(){return G},Ne.isValid=function(){return this.$d.toString()!==W},Ne.isSame=function(je,Ie){var Se=pe(je);return this.startOf(Ie)<=Se&&Se<=this.endOf(Ie)},Ne.isAfter=function(je,Ie){return pe(je)<this.startOf(Ie)},Ne.isBefore=function(je,Ie){return this.endOf(Ie)<pe(je)},Ne.$g=function(je,Ie,Se){return G.u(je)?this[Ie]:this.set(Se,je)},Ne.unix=function(){return Math.floor(this.valueOf()/1e3)},Ne.valueOf=function(){return this.$d.getTime()},Ne.startOf=function(je,Ie){var Se=this,Ce=!!G.u(Ie)||Ie,ke=G.p(je),Ke=function(xt,Pt){var Ze=G.w(Se.$u?Date.UTC(Se.$y,Pt,xt):new Date(Se.$y,Pt,xt),Se);return Ce?Ze:Ze.endOf(_)},Ft=function(xt,Pt){return G.w(Se.toDate()[xt].apply(Se.toDate("s"),(Ce?[0,0,0,0]:[23,59,59,999]).slice(Pt)),Se)},Pe=this.$W,gn=this.$M,kt=this.$D,Et="set"+(this.$u?"UTC":"");switch(ke){case F:return Ce?Ke(1,0):Ke(31,11);case P:return Ce?Ke(1,gn):Ke(0,gn+1);case A:var Gt=this.$locale().weekStart||0,ln=(Pe<Gt?Pe+7:Pe)-Gt;return Ke(Ce?kt-ln:kt+(6-ln),gn);case _:case j:return
|
|||
|
|
`+Wi),At&&gX([xe,U,Be],ls=>{Wi=jF(Wi,ls," ")}),ge&&yi?ge.createHTML(Wi):Wi},s.setConfig=function(){let bs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vc(bs),ht=!0},s.clearConfig=function(){Bc=null,ht=!1},s.isValidAttribute=function(bs,pn,Zr){Bc||vc({});const ss=Cs(bs),hu=Cs(pn);return Ud(ss,hu,Zr)},s.addHook=function(bs,pn){typeof pn=="function"&&RF(G[bs],pn)},s.removeHook=function(bs,pn){if(pn!==void 0){const Zr=QNt(G[bs],pn);return Zr===-1?void 0:JNt(G[bs],Zr,1)[0]}return hRe(G[bs])},s.removeHooks=function(bs){G[bs]=[]},s.removeAllHooks=function(){G=yRe()},s}var lD=xRe();const hD=/<br\s*\/?>/gi,pPt=i=>i?TRe(i).replace(/\\n/g,"#br#").split("#br#"):[""],bPt=(()=>{let i=!1;return()=>{i||(mPt(),i=!0)}})();function mPt(){const i="data-temp-href-target";lD.addHook("beforeSanitizeAttributes",s=>{s.tagName==="A"&&s.hasAttribute("target")&&s.setAttribute(i,s.getAttribute("target")??"")}),lD.addHook("afterSanitizeAttributes",s=>{s.tagName==="A"&&s.hasAttribute(i)&&(s.setAttribute("target",s.getAttribute(i)??""),s.removeAttribute(i),s.getAttribute("target")==="_blank"&&s.setAttribute("rel","noopener"))})}const kRe=i=>(bPt(),lD.sanitize(i)),ERe=(i,s)=>{var u;if(((u=s.flowchart)==null?void 0:u.htmlLabels)!==!1){const d=s.securityLevel;d==="antiscript"||d==="strict"?i=kRe(i):d!=="loose"&&(i=TRe(i),i=i.replace(/</g,"<").replace(/>/g,">"),i=i.replace(/=/g,"="),i=xPt(i))}return i},yh=(i,s)=>i&&(s.dompurifyConfig?i=lD.sanitize(ERe(i,s),s.dompurifyConfig).toString():i=lD.sanitize(ERe(i,s),{FORBID_TAGS:["style"]}).toString(),i),vPt=(i,s)=>typeof i=="string"?yh(i,s):i.flat().map(u=>yh(u,s)),wPt=i=>hD.test(i),yPt=i=>i.split(hD),xPt=i=>i.replace(/#br#/g,"<br/>"),TRe=i=>i.replace(hD,"#br#"),kPt=i=>{let s="";return i&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replaceAll(/\(/g,"\\("),s=s.replaceAll(/\)/g,"\\)")),s},u1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),EPt=function(...i){const s=i.filter(u=>!isNaN(u));return Math.max(...s)},TPt=function(...i){const s=i.filter(u=>!isNaN(u));return Math.min(...s)},HF=function(i){const s=i.split(/(,)/),u=[];for(let d=0;d<s.length;d++){let p=s[d];if(p===","&&d>0&&d+1<s.length){const v=s[d-1],b=s[d+1];CPt(v,b)&&(p=v+","+b,d++,u.pop())}u.push(SPt(p))}return u.join("")},l2e=(i,s)=>Math.max(0,i.split(s).length-1),CPt=(i,s)=>{const u=l2e(i,"~"),d=l2e(s,"~");return u===1&&d===1},SPt=i=>{const s=l2e(i,"~");let u=!1;if(s<=1)return i;s%2!==0&&i.startsWith("~")&&(i=i.substring(1),u=!0);const d=[...i];let p=d.indexOf("~"),v=d.lastIndexOf("~");for(;p!==-1&&v!==-1&&p!==v;)d[p]="<",d[v]=">",p=d.indexOf("~"),v=d.lastIndexOf("~");return u&&d.unshift("~"),d.join("")},CRe=()=>window.MathMLElement!==void 0,h2e=/\$\$(.*)\$\$/g,Dv=i=>{var s;return(((s=i.match(h2e))==null?void 0:s.length)??0)>0},VF=async(i,s)=>{const u=document.createElement("div");u.innerHTML=await TC(i,s),u.id="katex-temp",u.style.visibility="hidden",u.style.position="absolute",u.style.top="0";const d=document.querySelector("body");d==null||d.insertAdjacentElement("beforeend",u);const p={width:u.clientWidth,height:u.clientHeight};return u.remove(),p},_Pt=async(i,s)=>{if(!Dv(i))return i;if(!CRe()&&!s.legacyMathML)return i.replace(h2e,"MathML is unsupported in this environment.");const{default:u}=await Promise.resolve().then(()=>BVt);return i.split(hD).map(d=>Dv(d)?`
|
|||
|
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|||
|
|
${d}
|
|||
|
|
</div>
|
|||
|
|
`:`<div>${d}</div>`).join("").replace(h2e,(d,p)=>u.renderToString(p,{throwOnError:!0,displayMode:!0,output:CRe()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},TC=async(i,s)=>yh(await _Pt(i,s),s),ci={getRows:pPt,sanitizeText:yh,sanitizeTextOrArray:vPt,hasBreaks:wPt,splitBreaks:yPt,lineBreakRegex:hD,removeScript:kRe,getUrl:kPt,evaluate:u1,getMax:EPt,getMin:TPt},mX={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const s=i/255;return i>.03928?Math.pow((s+.055)/1.055,2.4):s/12.92},hue2rgb:(i,s,u)=>(u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(s-i)*6*u:u<1/2?s:u<2/3?i+(s-i)*(2/3-u)*6:i),hsl2rgb:({h:i,s,l:u},d)=>{if(!s)return u*2.55;i/=360,s/=100,u/=100;const p=u<.5?u*(1+s):u+s-u*s,v=2*u-p;switch(d){case"r":return mX.hue2rgb(v,p,i+1/3)*255;case"g":return mX.hue2rgb(v,p,i)*255;case"b":return mX.hue2rgb(v,p,i-1/3)*255}},rgb2hsl:({r:i,g:s,b:u},d)=>{i/=255,s/=255,u/=255;const p=Math.max(i,s,u),v=Math.min(i,s,u),b=(p+v)/2;if(d==="l")return b*100;if(p===v)return 0;const y=p-v,T=b>.5?y/(2-p-v):y/(p+v);if(d==="s")return T*100;switch(p){case i:return((s-u)/y+(s<u?6:0))*60;case s:return((u-i)/y+2)*60;case u:return((i-s)/y+4)*60;default:return-1}}},Wa={channel:mX,lang:{clamp:(i,s,u)=>s>u?Math.min(s,Math.max(u,i)):Math.min(u,Math.max(s,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const s=Math.round(i).toString(16);return s.length>1?s:`0${s}`}}},m9={};for(let i=0;i<=255;i++)m9[i]=Wa.unit.dec2hex(i);const Ig={ALL:0,RGB:1,HSL:2};class APt{constructor(){this.type=Ig.ALL}get(){return this.type}set(s){if(this.type&&this.type!==s)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=s}reset(){this.type=Ig.ALL}is(s){return this.type===s}}const LPt=APt;class MPt{constructor(s,u){this.color=u,this.changed=!1,this.data=s,this.type=new LPt}set(s,u){return this.color=u,this.changed=!1,this.data=s,this.type.type=Ig.ALL,this}_ensureHSL(){const s=this.data,{h:u,s:d,l:p}=s;u===void 0&&(s.h=Wa.channel.rgb2hsl(s,"h")),d===void 0&&(s.s=Wa.channel.rgb2hsl(s,"s")),p===void 0&&(s.l=Wa.channel.rgb2hsl(s,"l"))}_ensureRGB(){const s=this.data,{r:u,g:d,b:p}=s;u===void 0&&(s.r=Wa.channel.hsl2rgb(s,"r")),d===void 0&&(s.g=Wa.channel.hsl2rgb(s,"g")),p===void 0&&(s.b=Wa.channel.hsl2rgb(s,"b"))}get r(){const s=this.data,u=s.r;return!this.type.is(Ig.HSL)&&u!==void 0?u:(this._ensureHSL(),Wa.channel.hsl2rgb(s,"r"))}get g(){const s=this.data,u=s.g;return!this.type.is(Ig.HSL)&&u!==void 0?u:(this._ensureHSL(),Wa.channel.hsl2rgb(s,"g"))}get b(){const s=this.data,u=s.b;return!this.type.is(Ig.HSL)&&u!==void 0?u:(this._ensureHSL(),Wa.channel.hsl2rgb(s,"b"))}get h(){const s=this.data,u=s.h;return!this.type.is(Ig.RGB)&&u!==void 0?u:(this._ensureRGB(),Wa.channel.rgb2hsl(s,"h"))}get s(){const s=this.data,u=s.s;return!this.type.is(Ig.RGB)&&u!==void 0?u:(this._ensureRGB(),Wa.channel.rgb2hsl(s,"s"))}get l(){const s=this.data,u=s.l;return!this.type.is(Ig.RGB)&&u!==void 0?u:(this._ensureRGB(),Wa.channel.rgb2hsl(s,"l"))}get a(){return this.data.a}set r(s){this.type.set(Ig.RGB),this.changed=!0,this.data.r=s}set g(s){this.type.set(Ig.RGB),this.changed=!0,this.data.g=s}set b(s){this.type.set(Ig.RGB),this.changed=!0,this.data.b=s}set h(s){this.type.set(Ig.HSL),this.changed=!0,this.data.h=s}set s(s){this.type.set(Ig.HSL),this.changed=!0,this.data.s=s}set l(s){this.type.set(Ig.HSL),this.changed=!0,this.data.l=s}set a(s){this.changed=!0,this.data.a=s}}const DPt=MPt,vX=new DPt({r:0,g:0,b:0,a:0},"transparent"),SRe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const s=i.match(SRe.re);if(!s)return;const u=s[1],d=parseInt(u,16),p=u.length,v=p%4===0,b=p>4,y=b?1:17,T=b?8:4,_=v?0:-1,A=b?255:15;return vX.set({r:(d>>T*(_+3)&A)*y,g:(d>>T*(_+2)&A)*y,b:(d>>T*(_+1)&A)*y,a:v?(d&A)*y/255:1},i)},stringify:i=>{const{r:s,g:u,b:d,a:p}=i;return p<1?`#${m9[Math.round(s)]}${m9[Math.round(u)]}${m9[Mat
|
|||
|
|
`);for(const[u,{detector:d}]of Object.entries(fD))if(d(i,s))return u;throw new PRe(`No diagram type detected matching given configuration for text: ${i}`)},BRe=(...i)=>{for(const{id:s,detector:u,loader:d}of i)FRe(s,u,d)},FRe=(i,s,u)=>{fD[i]?Xe.error(`Detector with key ${i} already exists`):fD[i]={detector:s,loader:u},Xe.debug(`Detector with key ${i} added${u?" with loader":""}`)},GPt=i=>fD[i].loader,d2e=(i,s,{depth:u=2,clobber:d=!1}={})=>{const p={depth:u,clobber:d};return Array.isArray(s)&&!Array.isArray(i)?(s.forEach(v=>d2e(i,v,p)),i):Array.isArray(s)&&Array.isArray(i)?(s.forEach(v=>{i.includes(v)||i.push(v)}),i):i===void 0||u<=0?i!=null&&typeof i=="object"&&typeof s=="object"?Object.assign(i,s):s:(s!==void 0&&typeof i=="object"&&typeof s=="object"&&Object.keys(s).forEach(v=>{typeof s[v]=="object"&&(i[v]===void 0||typeof i[v]=="object")?(i[v]===void 0&&(i[v]=Array.isArray(s[v])?[]:{}),i[v]=d2e(i[v],s[v],{depth:u-1,clobber:d})):(d||typeof i[v]!="object"&&typeof s[v]!="object")&&(i[v]=s[v])}),i)},td=d2e;var KPt=typeof global=="object"&&global&&global.Object===Object&&global;const RRe=KPt;var WPt=typeof self=="object"&&self&&self.Object===Object&&self,YPt=RRe||WPt||Function("return this")();const N3=YPt;var XPt=N3.Symbol;const Iv=XPt;var jRe=Object.prototype,QPt=jRe.hasOwnProperty,JPt=jRe.toString,KF=Iv?Iv.toStringTag:void 0;function ZPt(i){var s=QPt.call(i,KF),u=i[KF];try{i[KF]=void 0;var d=!0}catch{}var p=JPt.call(i);return d&&(s?i[KF]=u:delete i[KF]),p}var eBt=Object.prototype,tBt=eBt.toString;function nBt(i){return tBt.call(i)}var rBt="[object Null]",iBt="[object Undefined]",$Re=Iv?Iv.toStringTag:void 0;function _C(i){return i==null?i===void 0?iBt:rBt:$Re&&$Re in Object(i)?ZPt(i):nBt(i)}function sm(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var sBt="[object AsyncFunction]",aBt="[object Function]",oBt="[object GeneratorFunction]",cBt="[object Proxy]";function dD(i){if(!sm(i))return!1;var s=_C(i);return s==aBt||s==oBt||s==sBt||s==cBt}var uBt=N3["__core-js_shared__"];const g2e=uBt;var zRe=function(){var i=/[^.]+$/.exec(g2e&&g2e.keys&&g2e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function lBt(i){return!!zRe&&zRe in i}var hBt=Function.prototype,fBt=hBt.toString;function AC(i){if(i!=null){try{return fBt.call(i)}catch{}try{return i+""}catch{}}return""}var dBt=/[\\^$.*+?()[\]{}|]/g,gBt=/^\[object .+?Constructor\]$/,pBt=Function.prototype,bBt=Object.prototype,mBt=pBt.toString,vBt=bBt.hasOwnProperty,wBt=RegExp("^"+mBt.call(vBt).replace(dBt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yBt(i){if(!sm(i)||lBt(i))return!1;var s=dD(i)?wBt:gBt;return s.test(AC(i))}function xBt(i,s){return i==null?void 0:i[s]}function LC(i,s){var u=xBt(i,s);return yBt(u)?u:void 0}var kBt=LC(Object,"create");const WF=kBt;function EBt(){this.__data__=WF?WF(null):{},this.size=0}function TBt(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}var CBt="__lodash_hash_undefined__",SBt=Object.prototype,_Bt=SBt.hasOwnProperty;function ABt(i){var s=this.__data__;if(WF){var u=s[i];return u===CBt?void 0:u}return _Bt.call(s,i)?s[i]:void 0}var LBt=Object.prototype,MBt=LBt.hasOwnProperty;function DBt(i){var s=this.__data__;return WF?s[i]!==void 0:MBt.call(s,i)}var IBt="__lodash_hash_undefined__";function OBt(i,s){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=WF&&s===void 0?IBt:s,this}function MC(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var d=i[s];this.set(d[0],d[1])}}MC.prototype.clear=EBt,MC.prototype.delete=TBt,MC.prototype.get=ABt,MC.prototype.has=DBt,MC.prototype.set=OBt;function NBt(){this.__data__=[],this.size=0}function gD(i,s){return i===s||i!==i&&s!==s}function _X(i,s){for(var u=i.length;u--;)if(gD(i[u][0],s))return u;return-1}var PBt=Array.prototype,BBt=PBt.splice;function FBt(i){var s=this.__data__,u=_X(s,i);if(u<0)return!1;var d=s.length-1;return u==d?s.pop():BBt.call(s,u,1),--this.size,!0}function RBt(i){var s=this.__data__,u=_X(s,i);return u<0?void 0:s[u][1]}function jBt(i){return _X(this.__data__,i)>-1}function $Bt(i,s){v
|
|||
|
|
`,"ig");i=i.trim().replace(u,"").replace(/'/gm,'"'),Xe.debug(`Detecting diagram directive${s!==null?" type:"+s:""} based on the text:${i}`);let d;const p=[];for(;(d=GF.exec(i))!==null;)if(d.index===GF.lastIndex&&GF.lastIndex++,d&&!s||s&&d[1]&&d[1].match(s)||s&&d[2]&&d[2].match(s)){const v=d[1]?d[1]:d[2],b=d[3]?d[3].trim():d[4]?JSON.parse(d[4].trim()):null;p.push({type:v,args:b})}return p.length===0?{type:i,args:null}:p.length===1?p[0]:p}catch(u){return Xe.error(`ERROR: ${u.message} - Unable to parse directive type: '${s}' based on the text: '${i}'`),{type:void 0,args:null}}},CRt=function(i){return i.replace(GF,"")},SRt=function(i,s){for(const[u,d]of s.entries())if(d.match(i))return u;return-1};function Ov(i,s){if(!i)return s;const u=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return kRt[u]??s}function _Rt(i,s){const u=i.trim();if(u)return s.securityLevel!=="loose"?g9.sanitizeUrl(u):u}const ARt=(i,...s)=>{const u=i.split("."),d=u.length-1,p=u[d];let v=window;for(let b=0;b<d;b++)if(v=v[u[b]],!v){Xe.error(`Function name: ${i} not found in window`);return}v[p](...s)};function pje(i,s){return!i||!s?0:Math.sqrt(Math.pow(s.x-i.x,2)+Math.pow(s.y-i.y,2))}function LRt(i){let s,u=0;i.forEach(p=>{u+=pje(p,s),s=p});const d=u/2;return k2e(i,d)}function MRt(i){return i.length===1?i[0]:LRt(i)}const bje=(i,s=2)=>{const u=Math.pow(10,s);return Math.round(i*u)/u},k2e=(i,s)=>{let u,d=s;for(const p of i){if(u){const v=pje(p,u);if(v<d)d-=v;else{const b=d/v;if(b<=0)return u;if(b>=1)return{x:p.x,y:p.y};if(b>0&&b<1)return{x:bje((1-b)*u.x+b*p.x,5),y:bje((1-b)*u.y+b*p.y,5)}}}u=p}throw new Error("Could not find a suitable point for the given distance")},DRt=(i,s,u)=>{Xe.info(`our points ${JSON.stringify(s)}`),s[0]!==u&&(s=s.reverse());const p=k2e(s,25),v=i?10:5,b=Math.atan2(s[0].y-p.y,s[0].x-p.x),y={x:0,y:0};return y.x=Math.sin(b)*v+(s[0].x+p.x)/2,y.y=-Math.cos(b)*v+(s[0].y+p.y)/2,y};function IRt(i,s,u){const d=structuredClone(u);Xe.info("our points",d),s!=="start_left"&&s!=="start_right"&&d.reverse();const p=25+i,v=k2e(d,p),b=10+i*.5,y=Math.atan2(d[0].y-v.y,d[0].x-v.x),T={x:0,y:0};return s==="start_left"?(T.x=Math.sin(y+Math.PI)*b+(d[0].x+v.x)/2,T.y=-Math.cos(y+Math.PI)*b+(d[0].y+v.y)/2):s==="end_right"?(T.x=Math.sin(y-Math.PI)*b+(d[0].x+v.x)/2-5,T.y=-Math.cos(y-Math.PI)*b+(d[0].y+v.y)/2-5):s==="end_left"?(T.x=Math.sin(y)*b+(d[0].x+v.x)/2-5,T.y=-Math.cos(y)*b+(d[0].y+v.y)/2-5):(T.x=Math.sin(y)*b+(d[0].x+v.x)/2,T.y=-Math.cos(y)*b+(d[0].y+v.y)/2),T}function am(i){let s="",u="";for(const d of i)d!==void 0&&(d.startsWith("color:")||d.startsWith("text-align:")?u=u+d+";":s=s+d+";");return{style:s,labelStyle:u}}let mje=0;const vje=()=>(mje++,"id-"+Math.random().toString(36).substr(2,12)+"-"+mje);function ORt(i){let s="";const u="0123456789abcdef",d=u.length;for(let p=0;p<i;p++)s+=u.charAt(Math.floor(Math.random()*d));return s}const wje=i=>ORt(i.length),NRt=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,text:""}},PRt=function(i,s){const u=s.text.replace(ci.lineBreakRegex," "),[,d]=OC(s.fontSize),p=i.append("text");p.attr("x",s.x),p.attr("y",s.y),p.style("text-anchor",s.anchor),p.style("font-family",s.fontFamily),p.style("font-size",d),p.style("font-weight",s.fontWeight),p.attr("fill",s.fill),s.class!==void 0&&p.attr("class",s.class);const v=p.append("tspan");return v.attr("x",s.x+s.textMargin*2),v.attr("fill",s.fill),v.text(u),p},yje=pD((i,s,u)=>{if(!i||(u=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},u),ci.lineBreakRegex.test(i)))return i;const d=i.split(" "),p=[];let v="";return d.forEach((b,y)=>{const T=H4(`${b} `,u),_=H4(v,u);if(T>s){const{hyphenatedStrings:R,remainingWord:F}=BRt(b,s,"-",u);p.push(v,...R),v=F}else _+T>=s?(p.push(v),v=b):v=[v,b].filter(Boolean).join(" ");y+1===d.length&&p.push(v)}),p.filter(b=>b!=="").join(u.joinWith)},(i,s,u)=>`${i}${s}${u.fontSize}${u.fontWeight}${u.fontFamily}${u.joinWith}`),BRt=pD((i,s,u="-",d)=>{d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},d);const p=[...i],v=[];let b="";ret
|
|||
|
|
font-family: ${u.fontFamily};
|
|||
|
|
font-size: ${u.fontSize};
|
|||
|
|
fill: ${u.textColor}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* Classes common for multiple diagrams */
|
|||
|
|
|
|||
|
|
& .error-icon {
|
|||
|
|
fill: ${u.errorBkgColor};
|
|||
|
|
}
|
|||
|
|
& .error-text {
|
|||
|
|
fill: ${u.errorTextColor};
|
|||
|
|
stroke: ${u.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: ${u.lineColor};
|
|||
|
|
stroke: ${u.lineColor};
|
|||
|
|
}
|
|||
|
|
& .marker.cross {
|
|||
|
|
stroke: ${u.lineColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
& svg {
|
|||
|
|
font-family: ${u.fontFamily};
|
|||
|
|
font-size: ${u.fontSize};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
${d}
|
|||
|
|
|
|||
|
|
${s}
|
|||
|
|
`},Ljt=(i,s)=>{s!==void 0&&(WX[i]=s)},Mjt=Ajt;let D2e="",I2e="",O2e="";const N2e=i=>yh(i,xh()),Ng=()=>{D2e="",O2e="",I2e=""},Pg=i=>{D2e=N2e(i).replace(/^\s+/g,"")},Sp=()=>D2e,_p=i=>{O2e=N2e(i).replace(/\n\s+/g,`
|
|||
|
|
`)},Ap=()=>O2e,om=i=>{I2e=N2e(i)},Lp=()=>I2e,e$e=Object.freeze(Object.defineProperty({__proto__:null,clear:Ng,getAccDescription:Ap,getAccTitle:Sp,getDiagramTitle:Lp,setAccDescription:_p,setAccTitle:Pg,setDiagramTitle:om},Symbol.toStringTag,{value:"Module"})),Djt=Xe,Ijt=fpe,qt=xh,Ojt=Oje,t$e=kD,Njt=i=>yh(i,qt()),n$e=w9,Pjt=()=>e$e,YX={},XX=(i,s,u)=>{var d;if(YX[i])throw new Error(`Diagram ${i} already registered.`);YX[i]=s,u&&FRe(i,u),Ljt(i,s.styles),(d=s.injectUtils)==null||d.call(s,Djt,Ijt,qt,Njt,n$e,Pjt(),()=>{})},P2e=i=>{if(i in YX)return YX[i];throw new Bjt(i)};class Bjt extends Error{constructor(s){super(`Diagram ${s} not found.`)}}const iR=i=>{var p;const{securityLevel:s}=qt();let u=Ir("body");if(s==="sandbox"){const b=((p=Ir(`#i${i}`).node())==null?void 0:p.contentDocument)??document;u=Ir(b.body)}return u.select(`#${i}`)},r$e={draw:(i,s,u)=>{Xe.debug(`rendering svg for syntax error
|
|||
|
|
`);const d=iR(s),p=d.append("g");d.attr("viewBox","0 0 2412 512"),Og(d,100,512,!0),p.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"),p.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"),p.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"),p.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"),p.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"),p.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"),p.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),p.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${u}`)}},Fjt=r$e,Rjt={db:{},renderer:r$e,parser:{parser:{yy:{}},parse:()=>{}}},i$e="flowchart-elk",jjt={id:i$e,detector:(i,s)=>{var u;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((u=s==null?void 0:s.flowchart)==null?void 0:u.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Uan);return{id:i$e,diagram:i}}},s$e="timeline",$jt={id:s$e,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>lon);return{id:s$e,diagram:i}}},a$e="mindmap",zjt={id:a$e,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Ron);return{id:a$e,diagram:i}}},o$e="sankey",qjt={id:o$e,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>gcn);return{id:o$e,diagram:i}}},c$e="block",Hjt={id:c$e,detector:i=>/^\s*block-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Bcn);return{id:c$e,diagram:i}}};let u$e=!1;const B2e=()=>{u$e||(u$e=!0,XX("error",Rjt,i=>i.toLowerCase().trim()==="error"),XX("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),BRe(ujt,kjt,xjt,fjt,gjt,pjt,bjt,wjt,yjt,jjt,hjt,ljt,zjt,$jt,djt,Tjt,Ejt,Cjt,mjt,qjt,vjt,Hjt))};class l$e{constructor(s,u={}){this.text=s,this.metadata=u,this.type="graph",this.text=$Rt(s),this.text+=`
|
|||
|
|
`;const d=xh();try{this.type=SX(s,d)}catch(v){this.type="error",this.detectError=v}const p=P2e(this.type);Xe.debug("Type "+this.type),this.db=p.db,this.renderer=p.renderer,this.parser=p.parser,this.parser.parser.yy=this.db,this.init=p.init,this.parse()}parse(){var u,d,p,v,b;if(this.detectError)throw this.detectError;(d=(u=this.db).clear)==null||d.call(u);const s=xh();(p=this.init)==null||p.call(this,s),this.metadata.title&&((b=(v=this.db).setDiagramTitle)==null||b.call(v,this.metadata.title)),this.parser.parse(this.text)}async render(s,u){await this.renderer.draw(this.text,s,u,this)}getParser(){return this.parser}getType(){return this.type}}const Vjt=async(i,s={})=>{const u=SX(i,xh());try{P2e(u)}catch{const p=GPt(u);if(!p)throw new PRe(`Diagram ${u} not found.`);const{id:v,diagram:b}=await p();XX(v,b)}return new l$e(i,s)};let h$e=[];const Ujt=()=>{h$e.forEach(i=>{i()}),h$e=[]};var Gjt=XRe(Object.keys,Object);const Kjt=Gjt;var Wjt=Object.prototype,Yjt=Wjt.hasOwnProperty;function f$e(i){if(!IX(i))return Kjt(i);var s=[];for(var u in Object(i))Yjt.call(i,u)&&u!="constructor"&&s.push(u);return s}var Xjt=LC(N3,"DataView");const F2e=Xjt;var Qjt=LC(N3,"Promise");const R2e=Qjt;var Jjt=LC(N3,"Set");const TD=Jjt;var Zjt=LC(N3,"WeakMap");const j2e=Zjt;var d$e="[object Map]",e$t="[object Object]",g$e="[object Promise]",p$e="[object Set]",b$e="[object WeakMap]",m$e="[object DataView]",t$t=AC(F2e),n$t=AC(YF),r$t=AC(R2e),i$t=AC(TD),s$t=AC(j2e),PC=_C;(F2e&&PC(new F2e(new ArrayBuffer(1)))!=m$e||YF&&PC(new YF)!=d$e||R2e&&PC(R2e.resolve())!=g$e||TD&&PC(new TD)!=p$e||j2e&&PC(new j2e)!=b$e)&&(PC=function(i){var s=_C(i),u=s==e$t?i.constructor:void 0,d=u?AC(u):"";if(d)switch(d){case t$t:return m$e;case n$t:return d$e;case r$t:return g$e;case i$t:return p$e;case s$t:return b$e}return s});const CD=PC;var a$t="[object Map]",o$t="[object Set]",c$t=Object.prototype,u$t=c$t.hasOwnProperty;function sR(i){if(i==null)return!0;if(v9(i)&&(L0(i)||typeof i=="string"||typeof i.splice=="function"||mD(i)||NX(i)||bD(i)))return!i.length;var s=CD(i);if(s==a$t||s==o$t)return!i.size;if(IX(i))return!f$e(i).length;for(var u in i)if(u$t.call(i,u))return!1;return!0}const l$t="graphics-document document";function h$t(i,s){i.attr("role",l$t),s!==""&&i.attr("aria-roledescription",s)}function f$t(i,s,u,d){if(i.insert!==void 0){if(u){const p=`chart-desc-${d}`;i.attr("aria-describedby",p),i.insert("desc",":first-child").attr("id",p).text(u)}if(s){const p=`chart-title-${d}`;i.attr("aria-labelledby",p),i.insert("title",":first-child").attr("id",p).text(s)}}}const d$t=i=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function v$e(i){return typeof i>"u"||i===null}function g$t(i){return typeof i=="object"&&i!==null}function p$t(i){return Array.isArray(i)?i:v$e(i)?[]:[i]}function b$t(i,s){var u,d,p,v;if(s)for(v=Object.keys(s),u=0,d=v.length;u<d;u+=1)p=v[u],i[p]=s[p];return i}function m$t(i,s){var u="",d;for(d=0;d<s;d+=1)u+=i;return u}function v$t(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}var w$t=v$e,y$t=g$t,x$t=p$t,k$t=m$t,E$t=v$t,T$t=b$t,Mp={isNothing:w$t,isObject:y$t,toArray:x$t,repeat:k$t,isNegativeZero:E$t,extend:T$t};function w$e(i,s){var u="",d=i.reason||"(unknown reason)";return i.mark?(i.mark.name&&(u+='in "'+i.mark.name+'" '),u+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!s&&i.mark.snippet&&(u+=`
|
|||
|
|
|
|||
|
|
`+i.mark.snippet),d+" "+u):d}function aR(i,s){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=s,this.message=w$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}aR.prototype=Object.create(Error.prototype),aR.prototype.constructor=aR,aR.prototype.toString=function(s){return this.name+": "+w$e(this,s)};var _7=aR;function $2e(i,s,u,d,p){var v="",b="",y=Math.floor(p/2)-1;return d-s>y&&(v=" ... ",s=d-y+v.length),u-d>y&&(b=" ...",u=d+y-b.length),{str:v+i.slice(s,u).replace(/\t/g,"→")+b,pos:d-s+v.length}}function z2e(i,s){return Mp.repeat(" ",s-i.length)+i}function C$t(i,s){if(s=Object.create(s||null),!i.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);for(var u=/\r?\n|\r|\0/g,d=[0],p=[],v,b=-1;v=u.exec(i.buffer);)p.push(v.index),d.push(v.index+v[0].length),i.position<=v.index&&b<0&&(b=d.length-2);b<0&&(b=d.length-1);var y="",T,_,A=Math.min(i.line+s.linesAfter,p.length).toString().length,P=s.maxLength-(s.indent+A+3);for(T=1;T<=s.linesBefore&&!(b-T<0);T++)_=$2e(i.buffer,d[b-T],p[b-T],i.position-(d[b]-d[b-T]),P),y=Mp.repeat(" ",s.indent)+z2e((i.line-T+1).toString(),A)+" | "+_.str+`
|
|||
|
|
`+y;for(_=$2e(i.buffer,d[b],p[b],i.position,P),y+=Mp.repeat(" ",s.indent)+z2e((i.line+1).toString(),A)+" | "+_.str+`
|
|||
|
|
`,y+=Mp.repeat("-",s.indent+A+3+_.pos)+`^
|
|||
|
|
`,T=1;T<=s.linesAfter&&!(b+T>=p.length);T++)_=$2e(i.buffer,d[b+T],p[b+T],i.position-(d[b]-d[b+T]),P),y+=Mp.repeat(" ",s.indent)+z2e((i.line+T+1).toString(),A)+" | "+_.str+`
|
|||
|
|
`;return y.replace(/\n$/,"")}var S$t=C$t,_$t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],A$t=["scalar","sequence","mapping"];function L$t(i){var s={};return i!==null&&Object.keys(i).forEach(function(u){i[u].forEach(function(d){s[String(d)]=u})}),s}function M$t(i,s){if(s=s||{},Object.keys(s).forEach(function(u){if(_$t.indexOf(u)===-1)throw new _7('Unknown option "'+u+'" is met in definition of "'+i+'" YAML type.')}),this.options=s,this.tag=i,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(u){return u},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.representName=s.representName||null,this.defaultStyle=s.defaultStyle||null,this.multi=s.multi||!1,this.styleAliases=L$t(s.styleAliases||null),A$t.indexOf(this.kind)===-1)throw new _7('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var Bg=M$t;function y$e(i,s){var u=[];return i[s].forEach(function(d){var p=u.length;u.forEach(function(v,b){v.tag===d.tag&&v.kind===d.kind&&v.multi===d.multi&&(p=b)}),u[p]=d}),u}function D$t(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,u;function d(p){p.multi?(i.multi[p.kind].push(p),i.multi.fallback.push(p)):i[p.kind][p.tag]=i.fallback[p.tag]=p}for(s=0,u=arguments.length;s<u;s+=1)arguments[s].forEach(d);return i}function q2e(i){return this.extend(i)}q2e.prototype.extend=function(s){var u=[],d=[];if(s instanceof Bg)d.push(s);else if(Array.isArray(s))d=d.concat(s);else if(s&&(Array.isArray(s.implicit)||Array.isArray(s.explicit)))s.implicit&&(u=u.concat(s.implicit)),s.explicit&&(d=d.concat(s.explicit));else throw new _7("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");u.forEach(function(v){if(!(v instanceof Bg))throw new _7("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(v.loadKind&&v.loadKind!=="scalar")throw new _7("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(v.multi)throw new _7("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(v){if(!(v instanceof Bg))throw new _7("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var p=Object.create(q2e.prototype);return p.implicit=(this.implicit||[]).concat(u),p.explicit=(this.explicit||[]).concat(d),p.compiledImplicit=y$e(p,"implicit"),p.compiledExplicit=y$e(p,"explicit"),p.compiledTypeMap=D$t(p.compiledImplicit,p.compiledExplicit),p};var I$t=q2e,O$t=new Bg("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),N$t=new Bg("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),P$t=new Bg("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),B$t=new I$t({explicit:[O$t,N$t,P$t]});function F$t(i){if(i===null)return!0;var s=i.length;return s===1&&i==="~"||s===4&&(i==="null"||i==="Null"||i==="NULL")}function R$t(){return null}function j$t(i){return i===null}var $$t=new Bg("tag:yaml.org,2002:null",{kind:"scalar",resolve:F$t,construct:R$t,predicate:j$t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function z$t(i){if(i===null)return!1;var s=i.length;return s===4&&(i==="true"||i==="True"||i==="TRUE")||s===5&&(i==="false"||i==="False"||i==="FALSE")}function q$t(i){return i==="true"||i==="True"||i==="TRUE"}function H$t(i){return Object.prototype.toString.call(i)==="[object Boolean]"}var V$t=new Bg("tag:yaml.org,2002:bool",{kind:"scalar",resolve:z$t,construct:q$t,predicate:H$t,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"F
|
|||
|
|
\r`;function fzt(i){if(i===null)return!1;var s,u,d=0,p=i.length,v=H2e;for(u=0;u<p;u++)if(s=v.indexOf(i.charAt(u)),!(s>64)){if(s<0)return!1;d+=6}return d%8===0}function dzt(i){var s,u,d=i.replace(/[\r\n=]/g,""),p=d.length,v=H2e,b=0,y=[];for(s=0;s<p;s++)s%4===0&&s&&(y.push(b>>16&255),y.push(b>>8&255),y.push(b&255)),b=b<<6|v.indexOf(d.charAt(s));return u=p%4*6,u===0?(y.push(b>>16&255),y.push(b>>8&255),y.push(b&255)):u===18?(y.push(b>>10&255),y.push(b>>2&255)):u===12&&y.push(b>>4&255),new Uint8Array(y)}function gzt(i){var s="",u=0,d,p,v=i.length,b=H2e;for(d=0;d<v;d++)d%3===0&&d&&(s+=b[u>>18&63],s+=b[u>>12&63],s+=b[u>>6&63],s+=b[u&63]),u=(u<<8)+i[d];return p=v%3,p===0?(s+=b[u>>18&63],s+=b[u>>12&63],s+=b[u>>6&63],s+=b[u&63]):p===2?(s+=b[u>>10&63],s+=b[u>>4&63],s+=b[u<<2&63],s+=b[64]):p===1&&(s+=b[u>>2&63],s+=b[u<<4&63],s+=b[64],s+=b[64]),s}function pzt(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var bzt=new Bg("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fzt,construct:dzt,predicate:pzt,represent:gzt}),mzt=Object.prototype.hasOwnProperty,vzt=Object.prototype.toString;function wzt(i){if(i===null)return!0;var s=[],u,d,p,v,b,y=i;for(u=0,d=y.length;u<d;u+=1){if(p=y[u],b=!1,vzt.call(p)!=="[object Object]")return!1;for(v in p)if(mzt.call(p,v))if(!b)b=!0;else return!1;if(!b)return!1;if(s.indexOf(v)===-1)s.push(v);else return!1}return!0}function yzt(i){return i!==null?i:[]}var xzt=new Bg("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wzt,construct:yzt}),kzt=Object.prototype.toString;function Ezt(i){if(i===null)return!0;var s,u,d,p,v,b=i;for(v=new Array(b.length),s=0,u=b.length;s<u;s+=1){if(d=b[s],kzt.call(d)!=="[object Object]"||(p=Object.keys(d),p.length!==1))return!1;v[s]=[p[0],d[p[0]]]}return!0}function Tzt(i){if(i===null)return[];var s,u,d,p,v,b=i;for(v=new Array(b.length),s=0,u=b.length;s<u;s+=1)d=b[s],p=Object.keys(d),v[s]=[p[0],d[p[0]]];return v}var Czt=new Bg("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ezt,construct:Tzt}),Szt=Object.prototype.hasOwnProperty;function _zt(i){if(i===null)return!0;var s,u=i;for(s in u)if(Szt.call(u,s)&&u[s]!==null)return!1;return!0}function Azt(i){return i!==null?i:{}}var Lzt=new Bg("tag:yaml.org,2002:set",{kind:"mapping",resolve:_zt,construct:Azt}),Mzt=szt.extend({implicit:[uzt,hzt],explicit:[bzt,xzt,Czt,Lzt]}),y9=Object.prototype.hasOwnProperty,QX=1,T$e=2,C$e=3,JX=4,V2e=1,Dzt=2,S$e=3,Izt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ozt=/[\x85\u2028\u2029]/,Nzt=/[,\[\]\{\}]/,_$e=/^(?:!|!!|![a-z\-]+!)$/i,A$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function L$e(i){return Object.prototype.toString.call(i)}function V4(i){return i===10||i===13}function BC(i){return i===9||i===32}function R2(i){return i===9||i===32||i===10||i===13}function SD(i){return i===44||i===91||i===93||i===123||i===125}function Pzt(i){var s;return 48<=i&&i<=57?i-48:(s=i|32,97<=s&&s<=102?s-97+10:-1)}function Bzt(i){return i===120?2:i===117?4:i===85?8:0}function Fzt(i){return 48<=i&&i<=57?i-48:-1}function M$e(i){return i===48?"\0":i===97?"\x07":i===98?"\b":i===116||i===9?" ":i===110?`
|
|||
|
|
`:i===118?"\v":i===102?"\f":i===114?"\r":i===101?"\x1B":i===32?" ":i===34?'"':i===47?"/":i===92?"\\":i===78?"
":i===95?" ":i===76?"\u2028":i===80?"\u2029":""}function Rzt(i){return i<=65535?String.fromCharCode(i):String.fromCharCode((i-65536>>10)+55296,(i-65536&1023)+56320)}for(var D$e=new Array(256),I$e=new Array(256),_D=0;_D<256;_D++)D$e[_D]=M$e(_D)?1:0,I$e[_D]=M$e(_D);function jzt(i,s){this.input=i,this.filename=s.filename||null,this.schema=s.schema||Mzt,this.onWarning=s.onWarning||null,this.legacy=s.legacy||!1,this.json=s.json||!1,this.listener=s.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O$e(i,s){var u={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return u.snippet=S$t(u),new _7(s,u)}function ca(i,s){throw O$e(i,s)}function ZX(i,s){i.onWarning&&i.onWarning.call(null,O$e(i,s))}var N$e={YAML:function(s,u,d){var p,v,b;s.version!==null&&ca(s,"duplication of %YAML directive"),d.length!==1&&ca(s,"YAML directive accepts exactly one argument"),p=/^([0-9]+)\.([0-9]+)$/.exec(d[0]),p===null&&ca(s,"ill-formed argument of the YAML directive"),v=parseInt(p[1],10),b=parseInt(p[2],10),v!==1&&ca(s,"unacceptable YAML version of the document"),s.version=d[0],s.checkLineBreaks=b<2,b!==1&&b!==2&&ZX(s,"unsupported YAML version of the document")},TAG:function(s,u,d){var p,v;d.length!==2&&ca(s,"TAG directive accepts exactly two arguments"),p=d[0],v=d[1],_$e.test(p)||ca(s,"ill-formed tag handle (first argument) of the TAG directive"),y9.call(s.tagMap,p)&&ca(s,'there is a previously declared suffix for "'+p+'" tag handle'),A$e.test(v)||ca(s,"ill-formed tag prefix (second argument) of the TAG directive");try{v=decodeURIComponent(v)}catch{ca(s,"tag prefix is malformed: "+v)}s.tagMap[p]=v}};function x9(i,s,u,d){var p,v,b,y;if(s<u){if(y=i.input.slice(s,u),d)for(p=0,v=y.length;p<v;p+=1)b=y.charCodeAt(p),b===9||32<=b&&b<=1114111||ca(i,"expected valid JSON character");else Izt.test(y)&&ca(i,"the stream contains non-printable characters");i.result+=y}}function P$e(i,s,u,d){var p,v,b,y;for(Mp.isObject(u)||ca(i,"cannot merge mappings; the provided source object is unacceptable"),p=Object.keys(u),b=0,y=p.length;b<y;b+=1)v=p[b],y9.call(s,v)||(s[v]=u[v],d[v]=!0)}function AD(i,s,u,d,p,v,b,y,T){var _,A;if(Array.isArray(p))for(p=Array.prototype.slice.call(p),_=0,A=p.length;_<A;_+=1)Array.isArray(p[_])&&ca(i,"nested arrays are not supported inside keys"),typeof p=="object"&&L$e(p[_])==="[object Object]"&&(p[_]="[object Object]");if(typeof p=="object"&&L$e(p)==="[object Object]"&&(p="[object Object]"),p=String(p),s===null&&(s={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(v))for(_=0,A=v.length;_<A;_+=1)P$e(i,s,v[_],u);else P$e(i,s,v,u);else!i.json&&!y9.call(u,p)&&y9.call(s,p)&&(i.line=b||i.line,i.lineStart=y||i.lineStart,i.position=T||i.position,ca(i,"duplicated mapping key")),p==="__proto__"?Object.defineProperty(s,p,{configurable:!0,enumerable:!0,writable:!0,value:v}):s[p]=v,delete u[p];return s}function U2e(i){var s;s=i.input.charCodeAt(i.position),s===10?i.position++:s===13?(i.position++,i.input.charCodeAt(i.position)===10&&i.position++):ca(i,"a line break is expected"),i.line+=1,i.lineStart=i.position,i.firstTabInLine=-1}function D0(i,s,u){for(var d=0,p=i.input.charCodeAt(i.position);p!==0;){for(;BC(p);)p===9&&i.firstTabInLine===-1&&(i.firstTabInLine=i.position),p=i.input.charCodeAt(++i.position);if(s&&p===35)do p=i.input.charCodeAt(++i.position);while(p!==10&&p!==13&&p!==0);if(V4(p))for(U2e(i),p=i.input.charCodeAt(i.position),d++,i.lineIndent=0;p===32;)i.lineIndent++,p=i.input.charCodeAt(++i.position);else break}return u!==-1&&d!==0&&i.lineIndent<u&&ZX(i,"deficient indentation"),d}function eQ(i){var s=i.position,u;return u=i.input.charCodeAt(s),!!((u===45||u===46)&&u===i.input.charCodeAt(s+1)&&u===i.input.charCodeAt(s+2)&&(s+=3,u=i.input.charCodeAt(s),u===0||R2(u)))}function G2e(i,s){s===1?i.resu
|
|||
|
|
`,s-1))}function $zt(i,s,u){var d,p,v,b,y,T,_,A,P=i.kind,R=i.result,F;if(F=i.input.charCodeAt(i.position),R2(F)||SD(F)||F===35||F===38||F===42||F===33||F===124||F===62||F===39||F===34||F===37||F===64||F===96||(F===63||F===45)&&(p=i.input.charCodeAt(i.position+1),R2(p)||u&&SD(p)))return!1;for(i.kind="scalar",i.result="",v=b=i.position,y=!1;F!==0;){if(F===58){if(p=i.input.charCodeAt(i.position+1),R2(p)||u&&SD(p))break}else if(F===35){if(d=i.input.charCodeAt(i.position-1),R2(d))break}else{if(i.position===i.lineStart&&eQ(i)||u&&SD(F))break;if(V4(F))if(T=i.line,_=i.lineStart,A=i.lineIndent,D0(i,!1,-1),i.lineIndent>=s){y=!0,F=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=T,i.lineStart=_,i.lineIndent=A;break}}y&&(x9(i,v,b,!1),G2e(i,i.line-T),v=b=i.position,y=!1),BC(F)||(b=i.position+1),F=i.input.charCodeAt(++i.position)}return x9(i,v,b,!1),i.result?!0:(i.kind=P,i.result=R,!1)}function zzt(i,s){var u,d,p;if(u=i.input.charCodeAt(i.position),u!==39)return!1;for(i.kind="scalar",i.result="",i.position++,d=p=i.position;(u=i.input.charCodeAt(i.position))!==0;)if(u===39)if(x9(i,d,i.position,!0),u=i.input.charCodeAt(++i.position),u===39)d=i.position,i.position++,p=i.position;else return!0;else V4(u)?(x9(i,d,p,!0),G2e(i,D0(i,!1,s)),d=p=i.position):i.position===i.lineStart&&eQ(i)?ca(i,"unexpected end of the document within a single quoted scalar"):(i.position++,p=i.position);ca(i,"unexpected end of the stream within a single quoted scalar")}function qzt(i,s){var u,d,p,v,b,y;if(y=i.input.charCodeAt(i.position),y!==34)return!1;for(i.kind="scalar",i.result="",i.position++,u=d=i.position;(y=i.input.charCodeAt(i.position))!==0;){if(y===34)return x9(i,u,i.position,!0),i.position++,!0;if(y===92){if(x9(i,u,i.position,!0),y=i.input.charCodeAt(++i.position),V4(y))D0(i,!1,s);else if(y<256&&D$e[y])i.result+=I$e[y],i.position++;else if((b=Bzt(y))>0){for(p=b,v=0;p>0;p--)y=i.input.charCodeAt(++i.position),(b=Pzt(y))>=0?v=(v<<4)+b:ca(i,"expected hexadecimal character");i.result+=Rzt(v),i.position++}else ca(i,"unknown escape sequence");u=d=i.position}else V4(y)?(x9(i,u,d,!0),G2e(i,D0(i,!1,s)),u=d=i.position):i.position===i.lineStart&&eQ(i)?ca(i,"unexpected end of the document within a double quoted scalar"):(i.position++,d=i.position)}ca(i,"unexpected end of the stream within a double quoted scalar")}function Hzt(i,s){var u=!0,d,p,v,b=i.tag,y,T=i.anchor,_,A,P,R,F,j=Object.create(null),W,ee,ie,oe;if(oe=i.input.charCodeAt(i.position),oe===91)A=93,F=!1,y=[];else if(oe===123)A=125,F=!0,y={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=y),oe=i.input.charCodeAt(++i.position);oe!==0;){if(D0(i,!0,s),oe=i.input.charCodeAt(i.position),oe===A)return i.position++,i.tag=b,i.anchor=T,i.kind=F?"mapping":"sequence",i.result=y,!0;u?oe===44&&ca(i,"expected the node content, but found ','"):ca(i,"missed comma between flow collection entries"),ee=W=ie=null,P=R=!1,oe===63&&(_=i.input.charCodeAt(i.position+1),R2(_)&&(P=R=!0,i.position++,D0(i,!0,s))),d=i.line,p=i.lineStart,v=i.position,LD(i,s,QX,!1,!0),ee=i.tag,W=i.result,D0(i,!0,s),oe=i.input.charCodeAt(i.position),(R||i.line===d)&&oe===58&&(P=!0,oe=i.input.charCodeAt(++i.position),D0(i,!0,s),LD(i,s,QX,!1,!0),ie=i.result),F?AD(i,y,j,ee,W,ie,d,p,v):P?y.push(AD(i,null,j,ee,W,ie,d,p,v)):y.push(W),D0(i,!0,s),oe=i.input.charCodeAt(i.position),oe===44?(u=!0,oe=i.input.charCodeAt(++i.position)):u=!1}ca(i,"unexpected end of the stream within a flow collection")}function Vzt(i,s){var u,d,p=V2e,v=!1,b=!1,y=s,T=0,_=!1,A,P;if(P=i.input.charCodeAt(i.position),P===124)d=!1;else if(P===62)d=!0;else return!1;for(i.kind="scalar",i.result="";P!==0;)if(P=i.input.charCodeAt(++i.position),P===43||P===45)V2e===p?p=P===43?S$e:Dzt:ca(i,"repeat of a chomping mode identifier");else if((A=Fzt(P))>=0)A===0?ca(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?ca(i,"repeat of an indentation width identifier"):(y=s+A-1,b=!0);else break;if(BC(P)){do P=i.input.charCodeAt(++i.position);while(BC(P));if(P===35)do P=i.input.charCodeAt(++i.position);while(!V4(P)&&P!==0)}for(;P!==0;){for(U2e(i),i.li
|
|||
|
|
`,v?1+T:T):p===V2e&&v&&(i.result+=`
|
|||
|
|
`);break}for(d?BC(P)?(_=!0,i.result+=Mp.repeat(`
|
|||
|
|
`,v?1+T:T)):_?(_=!1,i.result+=Mp.repeat(`
|
|||
|
|
`,T+1)):T===0?v&&(i.result+=" "):i.result+=Mp.repeat(`
|
|||
|
|
`,T):i.result+=Mp.repeat(`
|
|||
|
|
`,v?1+T:T),v=!0,b=!0,T=0,u=i.position;!V4(P)&&P!==0;)P=i.input.charCodeAt(++i.position);x9(i,u,i.position,!1)}return!0}function B$e(i,s){var u,d=i.tag,p=i.anchor,v=[],b,y=!1,T;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=v),T=i.input.charCodeAt(i.position);T!==0&&(i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,ca(i,"tab characters must not be used in indentation")),!(T!==45||(b=i.input.charCodeAt(i.position+1),!R2(b))));){if(y=!0,i.position++,D0(i,!0,-1)&&i.lineIndent<=s){v.push(null),T=i.input.charCodeAt(i.position);continue}if(u=i.line,LD(i,s,C$e,!1,!0),v.push(i.result),D0(i,!0,-1),T=i.input.charCodeAt(i.position),(i.line===u||i.lineIndent>s)&&T!==0)ca(i,"bad indentation of a sequence entry");else if(i.lineIndent<s)break}return y?(i.tag=d,i.anchor=p,i.kind="sequence",i.result=v,!0):!1}function Uzt(i,s,u){var d,p,v,b,y,T,_=i.tag,A=i.anchor,P={},R=Object.create(null),F=null,j=null,W=null,ee=!1,ie=!1,oe;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=P),oe=i.input.charCodeAt(i.position);oe!==0;){if(!ee&&i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,ca(i,"tab characters must not be used in indentation")),d=i.input.charCodeAt(i.position+1),v=i.line,(oe===63||oe===58)&&R2(d))oe===63?(ee&&(AD(i,P,R,F,j,null,b,y,T),F=j=W=null),ie=!0,ee=!0,p=!0):ee?(ee=!1,p=!0):ca(i,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),i.position+=1,oe=d;else{if(b=i.line,y=i.lineStart,T=i.position,!LD(i,u,T$e,!1,!0))break;if(i.line===v){for(oe=i.input.charCodeAt(i.position);BC(oe);)oe=i.input.charCodeAt(++i.position);if(oe===58)oe=i.input.charCodeAt(++i.position),R2(oe)||ca(i,"a whitespace character is expected after the key-value separator within a block mapping"),ee&&(AD(i,P,R,F,j,null,b,y,T),F=j=W=null),ie=!0,ee=!1,p=!1,F=i.tag,j=i.result;else if(ie)ca(i,"can not read an implicit mapping pair; a colon is missed");else return i.tag=_,i.anchor=A,!0}else if(ie)ca(i,"can not read a block mapping entry; a multiline key may not be an implicit key");else return i.tag=_,i.anchor=A,!0}if((i.line===v||i.lineIndent>s)&&(ee&&(b=i.line,y=i.lineStart,T=i.position),LD(i,s,JX,!0,p)&&(ee?j=i.result:W=i.result),ee||(AD(i,P,R,F,j,W,b,y,T),F=j=W=null),D0(i,!0,-1),oe=i.input.charCodeAt(i.position)),(i.line===v||i.lineIndent>s)&&oe!==0)ca(i,"bad indentation of a mapping entry");else if(i.lineIndent<s)break}return ee&&AD(i,P,R,F,j,null,b,y,T),ie&&(i.tag=_,i.anchor=A,i.kind="mapping",i.result=P),ie}function Gzt(i){var s,u=!1,d=!1,p,v,b;if(b=i.input.charCodeAt(i.position),b!==33)return!1;if(i.tag!==null&&ca(i,"duplication of a tag property"),b=i.input.charCodeAt(++i.position),b===60?(u=!0,b=i.input.charCodeAt(++i.position)):b===33?(d=!0,p="!!",b=i.input.charCodeAt(++i.position)):p="!",s=i.position,u){do b=i.input.charCodeAt(++i.position);while(b!==0&&b!==62);i.position<i.length?(v=i.input.slice(s,i.position),b=i.input.charCodeAt(++i.position)):ca(i,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!R2(b);)b===33&&(d?ca(i,"tag suffix cannot contain exclamation marks"):(p=i.input.slice(s-1,i.position+1),_$e.test(p)||ca(i,"named tag handle cannot contain such characters"),d=!0,s=i.position+1)),b=i.input.charCodeAt(++i.position);v=i.input.slice(s,i.position),Nzt.test(v)&&ca(i,"tag suffix cannot contain flow indicator characters")}v&&!A$e.test(v)&&ca(i,"tag name cannot contain such characters: "+v);try{v=decodeURIComponent(v)}catch{ca(i,"tag name is malformed: "+v)}return u?i.tag=v:y9.call(i.tagMap,p)?i.tag=i.tagMap[p]+v:p==="!"?i.tag="!"+v:p==="!!"?i.tag="tag:yaml.org,2002:"+v:ca(i,'undeclared tag handle "'+p+'"'),!0}function Kzt(i){var s,u;if(u=i.input.charCodeAt(i.position),u!==38)return!1;for(i.anchor!==null&&ca(i,"duplication of an anchor property"),u=i.input.charCodeAt(++i.position),s=i.position;u!==0&&!R2(u)&&!SD(u);)u=i.input.charCodeAt(++i.position);return i.position===s&&ca(i,"name of an anchor node must contain at least one character"),i.anchor=i.input.slice(s,i.position),!0}function Wzt(i){var s,u,d;if(d=i.input.charCo
|
|||
|
|
`),i.charCodeAt(0)===65279&&(i=i.slice(1)));var u=new jzt(i,s),d=i.indexOf("\0");for(d!==-1&&(u.position=d,ca(u,"null byte is not allowed in input")),u.input+="\0";u.input.charCodeAt(u.position)===32;)u.lineIndent+=1,u.position+=1;for(;u.position<u.length-1;)Yzt(u);return u.documents}function Xzt(i,s,u){s!==null&&typeof s=="object"&&typeof u>"u"&&(u=s,s=null);var d=F$e(i,u);if(typeof s!="function")return d;for(var p=0,v=d.length;p<v;p+=1)s(d[p])}function Qzt(i,s){var u=F$e(i,s);if(u.length!==0){if(u.length===1)return u[0];throw new _7("expected a single document in the stream, but found more")}}var Jzt=Xzt,Zzt=Qzt,eqt={loadAll:Jzt,load:Zzt},tqt=x$e,nqt=eqt.load;function rqt(i){const s=i.match(NRe);if(!s)return{text:i,metadata:{}};let u=nqt(s[1],{schema:tqt})??{};u=typeof u=="object"&&!Array.isArray(u)?u:{};const d={};return u.displayMode&&(d.displayMode=u.displayMode.toString()),u.title&&(d.title=u.title.toString()),u.config&&(d.config=u.config),{text:i.slice(s[0].length),metadata:d}}const iqt=i=>i.replace(/\r\n?/g,`
|
|||
|
|
`).replace(/<(\w+)([^>]*)>/g,(s,u,d)=>"<"+u+d.replace(/="([^"]*)"/g,"='$1'")+">"),sqt=i=>{const{text:s,metadata:u}=rqt(i),{displayMode:d,title:p,config:v={}}=u;return d&&(v.gantt||(v.gantt={}),v.gantt.displayMode=d),{title:p,config:v,text:s}},aqt=i=>{const s=So.detectInit(i)??{},u=So.detectDirective(i,"wrap");return Array.isArray(u)?s.wrap=u.some(({type:d})=>{}):(u==null?void 0:u.type)==="wrap"&&(s.wrap=!0),{text:CRt(i),directive:s}};function R$e(i){const s=iqt(i),u=sqt(s),d=aqt(u.text),p=ZF(u.config,d.directive);return i=d$t(d.text),{code:i,title:u.title,config:p}}const oqt=5e4,cqt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",uqt="sandbox",lqt="loose",hqt="http://www.w3.org/2000/svg",fqt="http://www.w3.org/1999/xlink",dqt="http://www.w3.org/1999/xhtml",gqt="100%",pqt="100%",bqt="border:0;margin:0;",mqt="margin:0",vqt="allow-top-navigation-by-user-activation allow-popups",wqt='The "iframe" tag is not supported by your browser.',yqt=["foreignobject"],xqt=["dominant-baseline"];function j$e(i){const s=R$e(i);return KX(),ajt(s.config??{}),s}async function kqt(i,s){B2e(),i=j$e(i).code;try{await K2e(i)}catch(u){if(s!=null&&s.suppressErrors)return!1;throw u}return!0}const $$e=(i,s,u=[])=>`
|
|||
|
|
.${i} ${s} { ${u.join(" !important; ")} !important; }`,Eqt=(i,s={})=>{var d;let u="";if(i.themeCSS!==void 0&&(u+=`
|
|||
|
|
${i.themeCSS}`),i.fontFamily!==void 0&&(u+=`
|
|||
|
|
:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(u+=`
|
|||
|
|
:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!sR(s)){const y=i.htmlLabels||((d=i.flowchart)==null?void 0:d.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const T in s){const _=s[T];sR(_.styles)||y.forEach(A=>{u+=$$e(_.id,A,_.styles)}),sR(_.textStyles)||(u+=$$e(_.id,"tspan",_.textStyles))}}return u},Tqt=(i,s,u,d)=>{const p=Eqt(i,u),v=Mjt(s,p,i.themeVariables);return M2e(ejt(`${d}{${v}}`),njt)},Cqt=(i="",s,u)=>{let d=i;return!u&&!s&&(d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),d=eR(d),d=d.replace(/<br>/g,"<br/>"),d},Sqt=(i="",s)=>{var p,v;const u=(v=(p=s==null?void 0:s.viewBox)==null?void 0:p.baseVal)!=null&&v.height?s.viewBox.baseVal.height+"px":pqt,d=btoa('<body style="'+mqt+'">'+i+"</body>");return`<iframe style="width:${gqt};height:${u};${bqt}" src="data:text/html;base64,${d}" sandbox="${vqt}">
|
|||
|
|
${wqt}
|
|||
|
|
</iframe>`},z$e=(i,s,u,d,p)=>{const v=i.append("div");v.attr("id",u),d&&v.attr("style",d);const b=v.append("svg").attr("id",s).attr("width","100%").attr("xmlns",hqt);return p&&b.attr("xmlns:xlink",p),b.append("g"),i};function q$e(i,s){return i.append("iframe").attr("id",s).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const _qt=(i,s,u,d)=>{var p,v,b;(p=i.getElementById(s))==null||p.remove(),(v=i.getElementById(u))==null||v.remove(),(b=i.getElementById(d))==null||b.remove()},Aqt=async function(i,s,u){var U,Be,Ne,je,Ie,Se;B2e();const d=j$e(s);s=d.code;const p=xh();Xe.debug(p),s.length>((p==null?void 0:p.maxTextSize)??oqt)&&(s=cqt);const v="#"+i,b="i"+i,y="#"+b,T="d"+i,_="#"+T;let A=Ir("body");const P=p.securityLevel===uqt,R=p.securityLevel===lqt,F=p.fontFamily;if(u!==void 0){if(u&&(u.innerHTML=""),P){const Ce=q$e(Ir(u),b);A=Ir(Ce.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=Ir(u);z$e(A,i,T,`font-family: ${F}`,fqt)}else{if(_qt(document,i,T,b),P){const Ce=q$e(Ir("body"),b);A=Ir(Ce.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=Ir("body");z$e(A,i,T)}let j,W;try{j=await K2e(s,{title:d.title})}catch(Ce){j=new l$e("error"),W=Ce}const ee=A.select(_).node(),ie=j.type,oe=ee.firstChild,be=oe.firstChild,ge=(Be=(U=j.renderer).getClasses)==null?void 0:Be.call(U,s,j),ae=Tqt(p,ie,ge,v),ne=document.createElement("style");ne.innerHTML=ae,oe.insertBefore(ne,be);try{await j.renderer.draw(s,i,Mje,j)}catch(Ce){throw Fjt.draw(s,i,Mje),Ce}const se=A.select(`${_} svg`),de=(je=(Ne=j.db).getAccTitle)==null?void 0:je.call(Ne),X=(Se=(Ie=j.db).getAccDescription)==null?void 0:Se.call(Ie);Mqt(ie,se,de,X),A.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",dqt);let pe=A.select(_).node().innerHTML;if(Xe.debug("config.arrowMarkerAbsolute",p.arrowMarkerAbsolute),pe=Cqt(pe,P,u1(p.arrowMarkerAbsolute)),P){const Ce=A.select(_+" svg").node();pe=Sqt(pe,Ce)}else R||(pe=lD.sanitize(pe,{ADD_TAGS:yqt,ADD_ATTR:xqt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Ujt(),W)throw W;const xe=Ir(P?y:_).node();return xe&&"remove"in xe&&xe.remove(),{svg:pe,bindFunctions:j.db.bindFunctions}};function Lqt(i={}){var u;i!=null&&i.fontFamily&&!((u=i.themeVariables)!=null&&u.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),ijt(i),i!=null&&i.theme&&i.theme in k7?i.themeVariables=k7[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=k7.default.getThemeVariables(i.themeVariables));const s=typeof i=="object"?rjt(i):Ije();fpe(s.logLevel),B2e()}const K2e=(i,s={})=>{const{code:u}=R$e(i);return Vjt(u,s)};function Mqt(i,s,u,d){h$t(s,i),f$t(s,u,d,s.attr("id"))}const FC=Object.freeze({render:Aqt,parse:kqt,getDiagramFromText:K2e,initialize:Lqt,getConfig:xh,setConfig:Oje,getSiteConfig:Ije,updateSiteConfig:sjt,reset:()=>{KX()},globalReset:()=>{KX(kD)},defaultConfig:kD});fpe(xh().logLevel),KX(xh());const Dqt=async()=>{Xe.debug("Loading registered diagrams");const s=(await Promise.allSettled(Object.entries(fD).map(async([u,{detector:d,loader:p}])=>{if(p)try{P2e(u)}catch{try{const{diagram:b,id:y}=await p();XX(y,b,d)}catch(b){throw Xe.error(`Failed to load external diagram with key ${u}. Removing from detectors.`),delete fD[u],b}}}))).filter(u=>u.status==="rejected");if(s.length>0){Xe.error(`Failed to load ${s.length} external diagrams`);for(const u of s)Xe.error(u);throw new Error(`Failed to load ${s.length} external diagrams`)}},Iqt=(i,s,u)=>{Xe.warn(i),xje(i)?(u&&u(i.str,i.hash),s.push({...i,message:i.str,error:i})):(u&&u(i),i instanceof Error&&s.push({str:i.message,message:i.message,hash:i.name,error:i}))},H$e=async function(i={querySelector:".mermaid"}){try{await Oqt(i)}catch(s){if(xje(s)&&Xe.error(s.str),cm.parseError&&cm.parseError(s),!i.suppressErrors)throw Xe.error("Use the suppressErrors option to suppress these errors"),s}},Oqt=async function({postRenderCallback:i,querySelector:s,nodes:u}={querySelector:".mermaid"}){const d=FC.getConfig();Xe.debug(`${i?"":"No "}Callback function found`);let p;if(u)p=u;else if(s)p=document.querySelectorAll(s);else throw new Er
|
|||
|
|
* Wait for document loaded before starting the execution
|
|||
|
|
*/window.addEventListener("load",U$e,!1)}const Bqt=function(i){cm.parseError=i},tQ=[];let W2e=!1;const G$e=async()=>{if(!W2e){for(W2e=!0;tQ.length>0;){const i=tQ.shift();if(i)try{await i()}catch(s){Xe.error("Error executing queue",s)}}W2e=!1}},Fqt=async(i,s)=>new Promise((u,d)=>{const p=()=>new Promise((v,b)=>{FC.parse(i,s).then(y=>{v(y),u(y)},y=>{var T;Xe.error("Error parsing",y),(T=cm.parseError)==null||T.call(cm,y),b(y),d(y)})});tQ.push(p),G$e().catch(d)}),K$e=(i,s,u)=>new Promise((d,p)=>{const v=()=>new Promise((b,y)=>{FC.render(i,s,u).then(T=>{b(T),d(T)},T=>{var _;Xe.error("Error parsing",T),(_=cm.parseError)==null||_.call(cm,T),y(T),p(T)})});tQ.push(v),G$e().catch(p)}),cm={startOnLoad:!0,mermaidAPI:FC,parse:Fqt,render:K$e,init:Nqt,run:H$e,registerExternalDiagrams:Pqt,initialize:V$e,parseError:void 0,contentLoaded:U$e,setParseErrorHandler:Bqt,detectType:SX};class um{constructor(s,u,d){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=s,this.start=u,this.end=d}static range(s,u){return u?!s||!s.loc||!u.loc||s.loc.lexer!==u.loc.lexer?null:new um(s.loc.lexer,s.loc.start,u.loc.end):s&&s.loc}}class Pv{constructor(s,u){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=s,this.loc=u}range(s,u){return new Pv(u,um.range(this,s))}}class Si{constructor(s,u){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var d="KaTeX parse error: "+s,p,v,b=u&&u.loc;if(b&&b.start<=b.end){var y=b.lexer.input;p=b.start,v=b.end,p===y.length?d+=" at end of input: ":d+=" at position "+(p+1)+": ";var T=y.slice(p,v).replace(/[^]/g,"$&̲"),_;p>15?_="…"+y.slice(p-15,p):_=y.slice(0,p);var A;v+15<y.length?A=y.slice(v,v+15)+"…":A=y.slice(v),d+=_+T+A}var P=new Error(d);return P.name="ParseError",P.__proto__=Si.prototype,P.position=p,p!=null&&v!=null&&(P.length=v-p),P.rawMessage=s,P}}Si.prototype.__proto__=Error.prototype;var Rqt=function(s,u){return s.indexOf(u)!==-1},jqt=function(s,u){return s===void 0?u:s},$qt=/([A-Z])/g,zqt=function(s){return s.replace($qt,"-$1").toLowerCase()},qqt={"&":"&",">":">","<":"<",'"':""","'":"'"},Hqt=/[&><"']/g;function Vqt(i){return String(i).replace(Hqt,s=>qqt[s])}var W$e=function i(s){return s.type==="ordgroup"||s.type==="color"?s.body.length===1?i(s.body[0]):s:s.type==="font"?i(s.body):s},Uqt=function(s){var u=W$e(s);return u.type==="mathord"||u.type==="textord"||u.type==="atom"},Gqt=function(s){if(!s)throw new Error("Expected non-null, but got "+String(s));return s},Kqt=function(s){var u=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(s);return u?u[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(u[1])?null:u[1].toLowerCase():"_relative"},pa={contains:Rqt,deflt:jqt,escape:Vqt,hyphenate:zqt,getBaseElem:W$e,isCharacterBox:Uqt,protocolFromUrl:Kqt},nQ={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:i=>"#"+i},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(i,s)=>(s.push(i),s)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems,
|
|||
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|||
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|||
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|||
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|||
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|||
|
|
l`+s/2.075+" -"+s+`
|
|||
|
|
c5.3,-9.3,12,-14,20,-14
|
|||
|
|
H400000v`+(40+s)+`H845.2724
|
|||
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|||
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|||
|
|
M`+(834+s)+" "+u+"h400000v"+(40+s)+"h-400000z"},rHt=function(s,u){return"M263,"+(601+s+u)+`c0.7,0,18,39.7,52,119
|
|||
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|||
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|||
|
|
l`+s/2.084+" -"+s+`
|
|||
|
|
c4.7,-7.3,11,-11,19,-11
|
|||
|
|
H40000v`+(40+s)+`H1012.3
|
|||
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|||
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|||
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|||
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|||
|
|
M`+(1001+s)+" "+u+"h400000v"+(40+s)+"h-400000z"},iHt=function(s,u){return"M983 "+(10+s+u)+`
|
|||
|
|
l`+s/3.13+" -"+s+`
|
|||
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+s)+`
|
|||
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|||
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|||
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|||
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|||
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|||
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|||
|
|
M`+(1001+s)+" "+u+"h400000v"+(40+s)+"h-400000z"},sHt=function(s,u){return"M424,"+(2398+s+u)+`
|
|||
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|||
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|||
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|||
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|||
|
|
l`+s/4.223+" -"+s+`c4,-6.7,10,-10,18,-10 H400000
|
|||
|
|
v`+(40+s)+`H1014.6
|
|||
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|||
|
|
c-2,6,-10,9,-24,9
|
|||
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+s)+" "+u+`
|
|||
|
|
h400000v`+(40+s)+"h-400000z"},aHt=function(s,u){return"M473,"+(2713+s+u)+`
|
|||
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+s/5.298+" -"+s+`
|
|||
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+s)+`H1017.7
|
|||
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|||
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|||
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|||
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|||
|
|
606zM`+(1001+s)+" "+u+"h400000v"+(40+s)+"H1017.7z"},oHt=function(s){var u=s/2;return"M400000 "+s+" H0 L"+u+" 0 l65 45 L145 "+(s-80)+" H400000z"},cHt=function(s,u,d){var p=d-54-u-s;return"M702 "+(s+u)+"H400000"+(40+s)+`
|
|||
|
|
H742v`+p+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|||
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|||
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|||
|
|
219 661 l218 661zM702 `+u+"H400000v"+(40+s)+"H742z"},uHt=function(s,u,d){u=1e3*u;var p="";switch(s){case"sqrtMain":p=nHt(u,ID);break;case"sqrtSize1":p=rHt(u,ID);break;case"sqrtSize2":p=iHt(u,ID);break;case"sqrtSize3":p=sHt(u,ID);break;case"sqrtSize4":p=aHt(u,ID);break;case"sqrtTall":p=cHt(u,ID,d)}return p},lHt=function(s,u){switch(s){case"⎜":return"M291 0 H417 V"+u+" H291z M291 0 H417 V"+u+" H291z";case"∣":return"M145 0 H188 V"+u+" H145z M145 0 H188 V"+u+" H145z";case"∥":return"M145 0 H188 V"+u+" H145z M145 0 H188 V"+u+" H145z"+("M367 0 H410 V"+u+" H367z M367 0 H410 V"+u+" H367z");case"⎟":return"M457 0 H583 V"+u+" H457z M457 0 H583 V"+u+" H457z";case"⎢":return"M319 0 H403 V"+u+" H319z M319 0 H403 V"+u+" H319z";case"⎥":return"M263 0 H347 V"+u+" H263z M263 0 H347 V"+u+" H263z";case"⎪":return"M384 0 H504 V"+u+" H384z M384 0 H504 V"+u+" H384z";case"⏐":return"M312 0 H355 V"+u+" H312z M312 0 H355 V"+u+" H312z";case"‖":return"M257 0 H300 V"+u+" H257z M257 0 H300 V"+u+" H257z"+("M478 0 H521 V"+u+" H478z M478 0 H521 V"+u+" H478z");default:return""}},X$e={doubleleftarrow:`M262 157
|
|||
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|||
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|||
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|||
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|||
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|||
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|||
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|||
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|||
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|||
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|||
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|||
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|||
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|||
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|||
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|||
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|||
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|||
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|||
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|||
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|||
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|||
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|||
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|||
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|||
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|||
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|||
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|||
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|||
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|||
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|||
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|||
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|||
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|||
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|||
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|||
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|||
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|||
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|||
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|||
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|||
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|||
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|||
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|||
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|||
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|||
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|||
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|||
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|||
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|||
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|||
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|||
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|||
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|||
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|||
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|||
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|||
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|||
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|||
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|||
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|||
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|||
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|||
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|||
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|||
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|||
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|||
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|||
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|||
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|||
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|||
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|||
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|||
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|||
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|||
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|||
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|||
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|||
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|||
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|||
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|||
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|||
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|||
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|||
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|||
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|||
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|||
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|||
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|||
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|||
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|||
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|||
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|||
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|||
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|||
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|||
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|||
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|||
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|||
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|||
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|||
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|||
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|||
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|||
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|||
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|||
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|||
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|||
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|||
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|||
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|||
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|||
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|||
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|||
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|||
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|||
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|||
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|||
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|||
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|||
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|||
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|||
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|||
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|||
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|||
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|||
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|||
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|||
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|||
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|||
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|||
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|||
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|||
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|||
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|||
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|||
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|||
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|||
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|||
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|||
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|||
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|||
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|||
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|||
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|||
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|||
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|||
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|||
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|||
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|||
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|||
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|||
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|||
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|||
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|||
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},hHt=function(s,u){switch(s){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v1759 h347 v-84
|
|||
|
|
H403z M403 1759 V0 H319 V1759 v`+u+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v1759 H0 v84 H347z
|
|||
|
|
M347 1759 V0 H263 V1759 v`+u+" v1759 h84z";case"vert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+" v585 h43z";case"doublevert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+` v585 h43z
|
|||
|
|
M367 15 v585 v`+u+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+u+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+u+` v1715 h263 v84 H319z
|
|||
|
|
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+u+` v1799 H0 v-84 H319z
|
|||
|
|
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v602 h84z
|
|||
|
|
M403 1759 V0 H319 V1759 v`+u+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v602 h84z
|
|||
|
|
M347 1759 V0 h-84 V1759 v`+u+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|||
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|||
|
|
-36,557 l0,`+(u+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|||
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|||
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|||
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|||
|
|
l0,-`+(u+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|||
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|||
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|||
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(u+9)+`
|
|||
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|||
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|||
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|||
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|||
|
|
l0,-`+(u+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|||
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class cR{constructor(s){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=s,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(s){return pa.contains(this.classes,s)}toNode(){for(var s=document.createDocumentFragment(),u=0;u<this.children.length;u++)s.appendChild(this.children[u].toNode());return s}toMarkup(){for(var s="",u=0;u<this.children.length;u++)s+=this.children[u].toMarkup();return s}toText(){var s=u=>u.toText();return this.children.map(s).join("")}}var G4={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.755
|
|||
|
|
`+se+" children.");for(var G=0;G<se;G++){var xe=new T9(be[G]),U=new M7([xe],{width:"400em",height:ji(ne),viewBox:"0 0 "+y+" "+ae,preserveAspectRatio:X[G]+" slice"}),Be=Hn.makeSvgSpan([de[G]],[U],u);if(se===1)return{span:Be,minWidth:ge,height:ne};Be.style.height=ji(ne),ie.push(Be)}return{span:Hn.makeSpan(["stretchy"],ie,u),minWidth:ge,height:ne}}}var{span:p,minWidth:v,height:b}=d();return p.height=b,p.style.height=ji(b),v>0&&(p.style.minWidth=ji(v)),p},YHt=function(s,u,d,p,v){var b,y=s.height+s.depth+d+p;if(/fbox|color|angl/.test(u)){if(b=Hn.makeSpan(["stretchy",u],[],v),u==="fbox"){var T=v.color&&v.getColor();T&&(b.style.borderColor=T)}}else{var _=[];/^[bx]cancel$/.test(u)&&_.push(new nbe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(u)&&_.push(new nbe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var A=new M7(_,{width:"100%",height:ji(y)});b=Hn.makeSvgSpan([],[A],v)}return b.height=y,b.style.height=ji(y),b},N7={encloseSpan:YHt,mathMLnode:UHt,svgSpan:WHt};function Ko(i,s){if(!i||i.type!==s)throw new Error("Expected node of type "+s+", but got "+(i?"node of type "+i.type:String(i)));return i}function dbe(i){var s=mQ(i);if(!s)throw new Error("Expected node of symbol group type, but got "+(i?"node of type "+i.type:String(i)));return s}function mQ(i){return i&&(i.type==="atom"||yHt.hasOwnProperty(i.type))?i:null}var gbe=(i,s)=>{var u,d,p;i&&i.type==="supsub"?(d=Ko(i.base,"accent"),u=d.base,i.base=u,p=vHt(uu(i,s)),i.base=d):(d=Ko(i,"accent"),u=d.base);var v=uu(u,s.havingCrampedStyle()),b=d.isShifty&&pa.isCharacterBox(u),y=0;if(b){var T=pa.getBaseElem(u),_=uu(T,s.havingCrampedStyle());y=ize(_).skew}var A=d.label==="\\c",P=A?v.height+v.depth:Math.min(v.height,s.fontMetrics().xHeight),R;if(d.isStretchy)R=N7.svgSpan(d,s),R=Hn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"elem",elem:R,wrapperClasses:["svg-align"],wrapperStyle:y>0?{width:"calc(100% - "+ji(2*y)+")",marginLeft:ji(2*y)}:void 0}]},s);else{var F,j;d.label==="\\vec"?(F=Hn.staticSvg("vec",s),j=Hn.svgData.vec[1]):(F=Hn.makeOrd({mode:d.mode,text:d.label},s,"textord"),F=ize(F),F.italic=0,j=F.width,A&&(P+=F.depth)),R=Hn.makeSpan(["accent-body"],[F]);var W=d.label==="\\textcircled";W&&(R.classes.push("accent-full"),P=v.height);var ee=y;W||(ee-=j/2),R.style.left=ji(ee),d.label==="\\textcircled"&&(R.style.top=".2em"),R=Hn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"kern",size:-P},{type:"elem",elem:R}]},s)}var ie=Hn.makeSpan(["mord","accent"],[R],s);return p?(p.children[0]=ie,p.height=Math.max(ie.height,p.height),p.classes[0]="mord",p):ie},kze=(i,s)=>{var u=i.isStretchy?N7.mathMLnode(i.label):new wi.MathNode("mo",[jv(i.label,i.mode)]),d=new wi.MathNode("mover",[Dl(i.base,s),u]);return d.setAttribute("accent","true"),d},XHt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(i=>"\\"+i).join("|"));Ji({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(i,s)=>{var u=pQ(s[0]),d=!XHt.test(i.funcName),p=!d||i.funcName==="\\widehat"||i.funcName==="\\widetilde"||i.funcName==="\\widecheck";return{type:"accent",mode:i.parser.mode,label:i.funcName,isStretchy:d,isShifty:p,base:u}},htmlBuilder:gbe,mathmlBuilder:kze}),Ji({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(i,s)=>{var u=s[0],d=i.parser.mode;return d==="math"&&(i.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+i.funcName+" works only in text mode"),d="text"),{type:"accent",mode:d,label:i.funcName,isStretchy:!1,isShifty:!0,base:u}},htmlBuilder:gbe,mathmlBuilder:kze}),Ji({type
|
|||
|
|
]`,EVt="\\\\[a-zA-Z@]+",TVt="\\\\[^\uD800-\uDFFF]",CVt="("+EVt+")"+fqe+"*",SVt=`\\\\(
|
|||
|
|
|[ \r ]+
|
|||
|
|
?)[ \r ]*`,Ibe="[̀-ͯ]",_Vt=new RegExp(Ibe+"+$"),AVt="("+fqe+"+)|"+(SVt+"|")+"([!-\\[\\]-‧-豈-]"+(Ibe+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ibe+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+CVt)+("|"+TVt+")");class dqe{constructor(s,u){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=s,this.settings=u,this.tokenRegex=new RegExp(AVt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(s,u){this.catcodes[s]=u}lex(){var s=this.input,u=this.tokenRegex.lastIndex;if(u===s.length)return new Pv("EOF",new um(this,u,u));var d=this.tokenRegex.exec(s);if(d===null||d.index!==u)throw new Si("Unexpected character: '"+s[u]+"'",new Pv(s[u],new um(this,u,u+1)));var p=d[6]||d[3]||(d[2]?"\\ ":" ");if(this.catcodes[p]===14){var v=s.indexOf(`
|
|||
|
|
`,this.tokenRegex.lastIndex);return v===-1?(this.tokenRegex.lastIndex=s.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=v+1,this.lex()}return new Pv(p,new um(this,u,this.tokenRegex.lastIndex))}}class LVt{constructor(s,u){s===void 0&&(s={}),u===void 0&&(u={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=u,this.builtins=s,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Si("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var s=this.undefStack.pop();for(var u in s)s.hasOwnProperty(u)&&(s[u]==null?delete this.current[u]:this.current[u]=s[u])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(s){return this.current.hasOwnProperty(s)||this.builtins.hasOwnProperty(s)}get(s){return this.current.hasOwnProperty(s)?this.current[s]:this.builtins[s]}set(s,u,d){if(d===void 0&&(d=!1),d){for(var p=0;p<this.undefStack.length;p++)delete this.undefStack[p][s];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][s]=u)}else{var v=this.undefStack[this.undefStack.length-1];v&&!v.hasOwnProperty(s)&&(v[s]=this.current[s])}u==null?delete this.current[s]:this.current[s]=u}}var MVt=qze;et("\\noexpand",function(i){var s=i.popToken();return i.isExpandable(s.text)&&(s.noexpand=!0,s.treatAsRelax=!0),{tokens:[s],numArgs:0}}),et("\\expandafter",function(i){var s=i.popToken();return i.expandOnce(!0),{tokens:[s],numArgs:0}}),et("\\@firstoftwo",function(i){var s=i.consumeArgs(2);return{tokens:s[0],numArgs:0}}),et("\\@secondoftwo",function(i){var s=i.consumeArgs(2);return{tokens:s[1],numArgs:0}}),et("\\@ifnextchar",function(i){var s=i.consumeArgs(3);i.consumeSpaces();var u=i.future();return s[0].length===1&&s[0][0].text===u.text?{tokens:s[1],numArgs:0}:{tokens:s[2],numArgs:0}}),et("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),et("\\TextOrMath",function(i){var s=i.consumeArgs(2);return i.mode==="text"?{tokens:s[0],numArgs:0}:{tokens:s[1],numArgs:0}});var gqe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};et("\\char",function(i){var s=i.popToken(),u,d="";if(s.text==="'")u=8,s=i.popToken();else if(s.text==='"')u=16,s=i.popToken();else if(s.text==="`")if(s=i.popToken(),s.text[0]==="\\")d=s.text.charCodeAt(1);else{if(s.text==="EOF")throw new Si("\\char` missing argument");d=s.text.charCodeAt(0)}else u=10;if(u){if(d=gqe[s.text],d==null||d>=u)throw new Si("Invalid base-"+u+" digit "+s.text);for(var p;(p=gqe[i.future().text])!=null&&p<u;)d*=u,d+=p,i.popToken()}return"\\@char{"+d+"}"});var Obe=(i,s,u)=>{var d=i.consumeArg().tokens;if(d.length!==1)throw new Si("\\newcommand's first argument must be a macro name");var p=d[0].text,v=i.isDefined(p);if(v&&!s)throw new Si("\\newcommand{"+p+"} attempting to redefine "+(p+"; use \\renewcommand"));if(!v&&!u)throw new Si("\\renewcommand{"+p+"} when command "+p+" does not yet exist; use \\newcommand");var b=0;if(d=i.consumeArg().tokens,d.length===1&&d[0].text==="["){for(var y="",T=i.expandNextToken();T.text!=="]"&&T.text!=="EOF";)y+=T.text,T=i.expandNextToken();if(!y.match(/^\s*[0-9]+\s*$/))throw new Si("Invalid number of arguments: "+y);b=parseInt(y),d=i.consumeArg().tokens}return i.macros.set(p,{tokens:d,numArgs:b}),""};et("\\newcommand",i=>Obe(i,!1,!0)),et("\\renewcommand",i=>Obe(i,!0,!1)),et("\\providecommand",i=>Obe(i,!0,!0)),et("\\message",i=>{var s=i.consumeArgs(1)[0];return console.log(s.reverse().map(u=>u.text).join("")),""}),et("\\errmessage",i=>{var s=i.consumeArgs(1)[0];return console.error(s.reverse().map(u=>u.text).join("")),""}),et("\\show",i=>{var s=i.popToken(),u=s.text;return console.log(s,i.macros.get(u),A9[u],Ul.math[u],Ul.text[u]),""}),et("\\bgroup","{"),et("\\egroup","}"),et("~","\\nobreakspace"),et("\\lq","`"),et("\\rq","'"),et("\\aa","\\r a"),et("\\AA","\\r A"),et("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),et("\\copyright
|
|||
|
|
please report what input caused this bug`);return d=d.slice(1,-1),{type:"verb",mode:"text",body:d,star:p}}yqe.hasOwnProperty(u[0])&&!Ul[this.mode][u[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+u[0]+'" used in math mode',s),u=yqe[u[0]]+u.slice(1));var v=_Vt.exec(u);v&&(u=u.substring(0,v.index),u==="i"?u="ı":u==="j"&&(u="ȷ"));var b;if(Ul[this.mode][u]){this.settings.strict&&this.mode==="math"&&abe.indexOf(u)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+u[0]+'" used in math mode',s);var y=Ul[this.mode][u].group,T=um.range(s),_;if(wHt.hasOwnProperty(y)){var A=y;_={type:"atom",mode:this.mode,family:A,loc:T,text:u}}else _={type:y,mode:this.mode,loc:T,text:u};b=_}else if(u.charCodeAt(0)>=128)this.settings.strict&&(Y$e(u.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+u[0]+'" used in math mode',s):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+u[0]+'"'+(" ("+u.charCodeAt(0)+")"),s)),b={type:"textord",mode:"text",loc:um.range(s),text:u};else return null;if(this.consume(),v)for(var P=0;P<v[0].length;P++){var R=v[0][P];if(!Pbe[R])throw new Si("Unknown accent ' "+R+"'",s);var F=Pbe[R][this.mode]||Pbe[R].text;if(!F)throw new Si("Accent "+R+" unsupported in "+this.mode+" mode",s);b={type:"accent",mode:this.mode,loc:um.range(s),label:F,isStretchy:!1,isShifty:!0,base:b}}return b}}TQ.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Bbe=function(s,u){if(!(typeof s=="string"||s instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var d=new TQ(s,u);delete d.gullet.macros.current["\\df@tag"];var p=d.parse();if(delete d.gullet.macros.current["\\current@color"],delete d.gullet.macros.current["\\color"],d.gullet.macros.get("\\df@tag")){if(!u.displayMode)throw new Si("\\tag works only in display equations");p=[{type:"tag",mode:"text",body:p,tag:d.subparse([new Pv("\\df@tag")])}]}return p},xqe=function(s,u,d){u.textContent="";var p=Fbe(s,d).toNode();u.appendChild(p)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),xqe=function(){throw new Si("KaTeX doesn't work in quirks mode.")});var IVt=function(s,u){var d=Fbe(s,u).toMarkup();return d},OVt=function(s,u){var d=new Y2e(u);return Bbe(s,d)},kqe=function(s,u,d){if(d.throwOnError||!(s instanceof Si))throw s;var p=Hn.makeSpan(["katex-error"],[new Fv(u)]);return p.setAttribute("title",s.toString()),p.setAttribute("style","color:"+d.errorColor),p},Fbe=function(s,u){var d=new Y2e(u);try{var p=Bbe(s,d);return qHt(p,s,d)}catch(v){return kqe(v,s,d)}},NVt=function(s,u){var d=new Y2e(u);try{var p=Bbe(s,d);return HHt(p,s,d)}catch(v){return kqe(v,s,d)}},PVt={version:"0.16.11",render:xqe,renderToString:IVt,ParseError:Si,SETTINGS_SCHEMA:nQ,__parse:OVt,__renderToDomTree:Fbe,__renderToHTMLTree:NVt,__setFontMetrics:fHt,__defineSymbol:we,__defineFunction:Ji,__defineMacro:et,__domTree:{Span:uR,Anchor:tbe,SymbolNode:Fv,SvgNode:M7,PathNode:T9,LineNode:nbe}};const BVt=Object.freeze(Object.defineProperty({__proto__:null,default:PVt},Symbol.toStringTag,{value:"Module"}));var CQ=function(){var i=function(_r,Nn,$n,qn){for($n=$n||{},qn=_r.length;qn--;$n[_r[qn]]=Nn);return $n},s=[1,24],u=[1,25],d=[1,26],p=[1,27],v=[1,28],b=[1,63],y=[1,64],T=[1,65],_=[1,66],A=[1,67],P=[1,68],R=[1,69],F=[1,29],j=[1,30],W=[1,31],ee=[1,32],ie=[1,33],oe=[1,34],be=[1,35],ge=[1,36],ae=[1,37],ne=[1,38],se=[1,39],de=[1,40],X=[1,41],pe=[1,42],G=[1,43],xe=[1,44],U=[1,45],Be=[1,46],Ne=[1,47],je=[1,48],Ie=[1,50],Se=[1,51],Ce=[1,52],ke=[1,53],Ke=[1,54],Ft=[1,55],Pe=[1,56],gn=[1,57],kt=[1,58],Et=[1,59],Gt=[1,60],ln=[14,42],xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56
|
|||
|
|
`+Ts.showPosition()+`
|
|||
|
|
Expecting `+ja.join(", ")+", got '"+(this.terminals_[lu]||lu)+"'":ka="Parse error on line "+(mo+1)+": Unexpected "+(lu==ua?"end of input":"'"+(this.terminals_[lu]||lu)+"'"),this.parseError(ka,{text:Ts.match,token:this.terminals_[lu]||lu,line:Ts.yylineno,loc:id,expected:ja})}if(Cs[0]instanceof Array&&Cs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xc+", token: "+lu);switch(Cs[0]){case 1:qn.push(lu),wt.push(Ts.yytext),cn.push(Ts.yylloc),qn.push(Cs[1]),lu=null,Io=Ts.yyleng,Mn=Ts.yytext,mo=Ts.yylineno,id=Ts.yylloc;break;case 2:if(vc=this.productions_[Cs[1]][1],Ma.$=wt[wt.length-vc],Ma._$={first_line:cn[cn.length-(vc||1)].first_line,last_line:cn[cn.length-1].last_line,first_column:cn[cn.length-(vc||1)].first_column,last_column:cn[cn.length-1].last_column},gm&&(Ma._$.range=[cn[cn.length-(vc||1)].range[0],cn[cn.length-1].range[1]]),Bc=this.performAction.apply(Ma,[Mn,Io,mo,nl.yy,Cs[1],wt,cn].concat(Oo)),typeof Bc<"u")return Bc;vc&&(qn=qn.slice(0,-1*vc*2),wt=wt.slice(0,-1*vc),cn=cn.slice(0,-1*vc)),qn.push(this.productions_[Cs[1]][0]),wt.push(Ma.$),cn.push(Ma._$),Qa=fn[qn[qn.length-2]][qn[qn.length-1]],qn.push(Qa);break;case 3:return!0}}return!0}},na=function(){var _r={EOF:1,parseError:function($n,qn){if(this.yy.parser)this.yy.parser.parseError($n,qn);else throw new Error($n)},setInput:function(Nn,$n){return this.yy=$n||this.yy||{},this._input=Nn,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 Nn=this._input[0];this.yytext+=Nn,this.yyleng++,this.offset++,this.match+=Nn,this.matched+=Nn;var $n=Nn.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),Nn},unput:function(Nn){var $n=Nn.length,qn=Nn.split(/(?:\r\n?|\n)/g);this._input=Nn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$n),this.offset-=$n;var Lt=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),qn.length-1&&(this.yylineno-=qn.length-1);var wt=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:qn?(qn.length===Lt.length?this.yylloc.first_column:0)+Lt[Lt.length-qn.length].length-qn[0].length:this.yylloc.first_column-$n},this.options.ranges&&(this.yylloc.range=[wt[0],wt[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(Nn){this.unput(this.match.slice(Nn))},pastInput:function(){var Nn=this.matched.substr(0,this.matched.length-this.match.length);return(Nn.length>20?"...":"")+Nn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Nn=this.match;return Nn.length<20&&(Nn+=this._input.substr(0,20-Nn.length)),(Nn.substr(0,20)+(Nn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Nn=this.pastInput(),$n=new Array(Nn.length+1).join("-");return Nn+this.upcomingInput()+`
|
|||
|
|
`+$n+"^"},test_match:function(Nn,$n){var qn,Lt,wt;if(this.options.backtrack_lexer&&(wt={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&&(wt.yylloc.range=this.yylloc.range.slice(0))),Lt=Nn[0].match(/(?:\r\n?|\n).*/g),Lt&&(this.yylineno+=Lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lt?Lt[Lt.length-1].length-Lt[Lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Nn[0].length},this.yytext+=Nn[0],this.match+=Nn[0],this.matches=Nn,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(Nn[0].length),this.matched+=Nn[0],qn=this.performAction.call(this,this.yy,this,$n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),qn)return qn;if(this._backtrack){for(var cn in wt)this[cn]=wt[cn];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Nn,$n,qn,Lt;this._more||(this.yytext="",this.match="");for(var wt=this._currentRules(),cn=0;cn<wt.length;cn++)if(qn=this._input.match(this.rules[wt[cn]]),qn&&(!$n||qn[0].length>$n[0].length)){if($n=qn,Lt=cn,this.options.backtrack_lexer){if(Nn=this.test_match(qn,wt[cn]),Nn!==!1)return Nn;if(this._backtrack){$n=!1;continue}else return!1}else if(!this.options.flex)break}return $n?(Nn=this.test_match($n,wt[Lt]),Nn!==!1?Nn:!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:{},performAction:function($n,qn,Lt,wt){switch(Lt){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;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:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/
|
|||
|
|
stroke: ${i.personBorder};
|
|||
|
|
fill: ${i.personBkg};
|
|||
|
|
}
|
|||
|
|
`,init:({c4:i,wrap:s})=>{Nqe.setConf(i),$be.setWrap(s)}}},Symbol.toStringTag,{value:"Module"}));var Ube=function(){var i=function(yu,Wi,ls,Da){for(ls=ls||{},Da=yu.length;Da--;ls[yu[Da]]=Wi);return ls},s=[1,4],u=[1,3],d=[1,5],p=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],v=[2,2],b=[1,13],y=[1,14],T=[1,15],_=[1,16],A=[1,23],P=[1,25],R=[1,26],F=[1,27],j=[1,49],W=[1,48],ee=[1,29],ie=[1,30],oe=[1,31],be=[1,32],ge=[1,33],ae=[1,44],ne=[1,46],se=[1,42],de=[1,47],X=[1,43],pe=[1,50],G=[1,45],xe=[1,51],U=[1,52],Be=[1,34],Ne=[1,35],je=[1,36],Ie=[1,37],Se=[1,57],Ce=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ke=[1,61],Ke=[1,60],Ft=[1,62],Pe=[8,9,11,73,75],gn=[1,88],kt=[1,93],Et=[1,92],Gt=[1,89],ln=[1,85],xt=[1,91],Pt=[1,87],Ze=[1,94],At=[1,90],Tt=[1,95],On=[1,86],ht=[8,9,10,11,73,75],zr=[8,9,10,11,44,73,75],yt=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Fi=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],yi=[42,58,86,99,102,103,106,108,111,112,113],Ba=[1,121],na=[1,120],Ro=[1,128],_r=[1,142],Nn=[1,143],$n=[1,144],qn=[1,145],Lt=[1,130],wt=[1,132],cn=[1,136],fn=[1,137],Mn=[1,138],mo=[1,139],Io=[1,140],Xa=[1,141],ua=[1,146],Oo=[1,147],Ts=[1,126],nl=[1,127],Zo=[1,134],id=[1,129],gm=[1,133],qu=[1,131],lu=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Xc=[1,149],Cs=[8,9,11],Bc=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Ma=[1,169],No=[1,165],vc=[1,166],Qa=[1,170],ja=[1,167],ka=[1,168],wu=[75,113,116],Fc=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],a5=[10,103],jg=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],b1=[1,235],Hd=[1,233],ch=[1,237],Vd=[1,231],Ud=[1,232],Gd=[1,234],sd=[1,236],F0=[1,238],bs=[1,255],pn=[8,9,11,103],Zr=[8,9,10,11,58,81,102,103,106,107,108,109],ss={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[
|
|||
|
|
`+Ch.showPosition()+`
|
|||
|
|
Expecting `+u5.join(", ")+", got '"+(this.terminals_[m1]||m1)+"'":X3="Parse error on line "+(R0+1)+": Unexpected "+(m1==j9?"end of input":"'"+(this.terminals_[m1]||m1)+"'"),this.parseError(X3,{text:Ch.match,token:this.terminals_[m1]||m1,line:Ch.yylineno,loc:$9,expected:u5})}if(od[0]instanceof Array&&od.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ad+", token: "+m1);switch(od[0]){case 1:Da.push(m1),nu.push(Ch.yytext),Ot.push(Ch.yylloc),Da.push(od[1]),m1=null,Fp=Ch.yyleng,Kt=Ch.yytext,R0=Ch.yylineno,$9=Ch.yylloc;break;case 2:if(K2=this.productions_[od[1]][1],Uv.$=nu[nu.length-K2],Uv._$={first_line:Ot[Ot.length-(K2||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(K2||1)].first_column,last_column:Ot[Ot.length-1].last_column},bm&&(Uv._$.range=[Ot[Ot.length-(K2||1)].range[0],Ot[Ot.length-1].range[1]]),z9=this.performAction.apply(Uv,[Kt,Fp,R0,$g.yy,od[1],nu,Ot].concat(o5)),typeof z9<"u")return z9;K2&&(Da=Da.slice(0,-1*K2*2),nu=nu.slice(0,-1*K2),Ot=Ot.slice(0,-1*K2)),Da.push(this.productions_[od[1]][0]),nu.push(Uv.$),Ot.push(Uv._$),Y7=W3[Da[Da.length-2]][Da[Da.length-1]],Da.push(Y7);break;case 3:return!0}}return!0}},hu=function(){var yu={EOF:1,parseError:function(ls,Da){if(this.yy.parser)this.yy.parser.parseError(ls,Da);else throw new Error(ls)},setInput:function(Wi,ls){return this.yy=ls||this.yy||{},this._input=Wi,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 Wi=this._input[0];this.yytext+=Wi,this.yyleng++,this.offset++,this.match+=Wi,this.matched+=Wi;var ls=Wi.match(/(?:\r\n?|\n).*/g);return ls?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Wi},unput:function(Wi){var ls=Wi.length,Da=Wi.split(/(?:\r\n?|\n)/g);this._input=Wi+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ls),this.offset-=ls;var ui=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Da.length-1&&(this.yylineno-=Da.length-1);var nu=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Da?(Da.length===ui.length?this.yylloc.first_column:0)+ui[ui.length-Da.length].length-Da[0].length:this.yylloc.first_column-ls},this.options.ranges&&(this.yylloc.range=[nu[0],nu[0]+this.yyleng-ls]),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(Wi){this.unput(this.match.slice(Wi))},pastInput:function(){var Wi=this.matched.substr(0,this.matched.length-this.match.length);return(Wi.length>20?"...":"")+Wi.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Wi=this.match;return Wi.length<20&&(Wi+=this._input.substr(0,20-Wi.length)),(Wi.substr(0,20)+(Wi.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Wi=this.pastInput(),ls=new Array(Wi.length+1).join("-");return Wi+this.upcomingInput()+`
|
|||
|
|
`+ls+"^"},test_match:function(Wi,ls){var Da,ui,nu;if(this.options.backtrack_lexer&&(nu={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&&(nu.yylloc.range=this.yylloc.range.slice(0))),ui=Wi[0].match(/(?:\r\n?|\n).*/g),ui&&(this.yylineno+=ui.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ui?ui[ui.length-1].length-ui[ui.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Wi[0].length},this.yytext+=Wi[0],this.match+=Wi[0],this.matches=Wi,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(Wi[0].length),this.matched+=Wi[0],Da=this.performAction.call(this,this.yy,this,ls,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Da)return Da;if(this._backtrack){for(var Ot in nu)this[Ot]=nu[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Wi,ls,Da,ui;this._more||(this.yytext="",this.match="");for(var nu=this._currentRules(),Ot=0;Ot<nu.length;Ot++)if(Da=this._input.match(this.rules[nu[Ot]]),Da&&(!ls||Da[0].length>ls[0].length)){if(ls=Da,ui=Ot,this.options.backtrack_lexer){if(Wi=this.test_match(Da,nu[Ot]),Wi!==!1)return Wi;if(this._backtrack){ls=!1;continue}else return!1}else if(!this.options.flex)break}return ls?(Wi=this.test_match(ls,nu[ui]),Wi!==!1?Wi:!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 ls=this.next();return ls||this.lex()},begin:function(ls){this.conditionStack.push(ls)},popState:function(){var ls=this.conditionStack.length-1;return ls>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(ls){return ls=this.conditionStack.length-1-Math.abs(ls||0),ls>=0?this.conditionStack[ls]:"INITIAL"},pushState:function(ls){this.begin(ls)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ls,Da,ui,nu){switch(ui){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;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:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return ls.lex.firstGraph()&&this.begin("dir"),12;case 30:return ls.lex.firstGraph()&&this.begin("dir"),12;case 31:return ls.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112
|
|||
|
|
|
|||
|
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|||
|
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|||
|
|
You have to call mermaid.initialize.`)},Rqe=function(i,s,u){Xe.info("addLink (abc78)",i,s,u);let d,p;for(d=0;d<i.length;d++)for(p=0;p<s.length;p++)Fqe(i[d],s[p],u)},jqe=function(i,s){i.forEach(function(u){u==="default"?z3.defaultInterpolate=s:z3[u].interpolate=s})},$qe=function(i,s){i.forEach(function(u){if(u>=z3.length)throw new Error(`The index ${u} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z3.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);u==="default"?z3.defaultStyle=s:(So.isSubstringInArray("fill",s)===-1&&s.push("fill:none"),z3[u].style=s)})},zqe=function(i,s){i.split(",").forEach(function(u){BD[u]===void 0&&(BD[u]={id:u,styles:[],textStyles:[]}),s!=null&&s.forEach(function(d){if(d.match("color")){const p=d.replace("fill","bgFill").replace("color","fill");BD[u].textStyles.push(p)}BD[u].styles.push(d)})})},qqe=function(i){zv=i,zv.match(/.*</)&&(zv="RL"),zv.match(/.*\^/)&&(zv="BT"),zv.match(/.*>/)&&(zv="LR"),zv.match(/.*v/)&&(zv="TB"),zv==="TD"&&(zv="TB")},RQ=function(i,s){i.split(",").forEach(function(u){let d=u;oh[d]!==void 0&&oh[d].classes.push(s),IQ[d]!==void 0&&IQ[d].classes.push(s)})},_Ut=function(i,s){i.split(",").forEach(function(u){s!==void 0&&(OQ[PQ==="gen-1"?mR(u):u]=FQ(s))})},AUt=function(i,s,u){let d=mR(i);if(qt().securityLevel!=="loose"||s===void 0)return;let p=[];if(typeof u=="string"){p=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let v=0;v<p.length;v++){let b=p[v].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),p[v]=b}}p.length===0&&p.push(i),oh[i]!==void 0&&(oh[i].haveCallback=!0,BQ.push(function(){const v=document.querySelector(`[id="${d}"]`);v!==null&&v.addEventListener("click",function(){So.runFunc(s,...p)},!1)}))},Hqe=function(i,s,u){i.split(",").forEach(function(d){oh[d]!==void 0&&(oh[d].link=So.formatUrl(s,PD),oh[d].linkTarget=u)}),RQ(i,"clickable")},Vqe=function(i){if(OQ.hasOwnProperty(i))return OQ[i]},Uqe=function(i,s,u){i.split(",").forEach(function(d){AUt(d,s,u)}),RQ(i,"clickable")},Gqe=function(i){BQ.forEach(function(s){s(i)})},Kqe=function(){return zv.trim()},Wqe=function(){return oh},Yqe=function(){return z3},Xqe=function(){return BD},Qqe=function(i){let s=Ir(".mermaidTooltip");(s._groups||s)[0][0]===null&&(s=Ir("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ir(i).select("svg").selectAll("g.node").on("mouseover",function(){const p=Ir(this);if(p.attr("title")===null)return;const b=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(p.attr("title")).style("left",window.scrollX+b.left+(b.right-b.left)/2+"px").style("top",window.scrollY+b.bottom+"px"),s.html(s.html().replace(/<br\/>/g,"<br/>")),p.classed("hover",!0)}).on("mouseout",function(){s.transition().duration(500).style("opacity",0),Ir(this).classed("hover",!1)})};BQ.push(Qqe);const Jqe=function(i="gen-1"){oh={},BD={},z3=[],BQ=[Qqe],F7=[],IQ={},NQ=0,OQ={},Kbe=!0,PQ=i,PD=qt(),Ng()},Zqe=i=>{PQ=i||"gen-2"},eHe=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},tHe=function(i,s,u){let d=i.text.trim(),p=u.text;i===u&&u.text.match(/\s/)&&(d=void 0);function v(A){const P={boolean:{},number:{},string:{}},R=[];let F;return{nodeList:A.filter(function(W){const ee=typeof W;return W.stmt&&W.stmt==="dir"?(F=W.value,!1):W.trim()===""?!1:ee in P?P[ee].hasOwnProperty(W)?!1:P[ee][W]=!0:R.includes(W)?!1:R.push(W)}),dir:F}}let b=[];const{nodeList:y,dir:T}=v(b.concat.apply(b,s));if(b=y,PQ==="gen-1")for(let A=0;A<b.length;A++)b[A]=mR(b[A]);d=d||"subGraph"+NQ,p=p||"",p=FQ(p),NQ=NQ+1;const _={id:d,nodes:b,title:p.trim(),classes:[],dir:T,labelType:u.type};return Xe.info("Adding",_.id,_.nodes,_.dir),_.nodes=lHe(_,F7).nodes,F7.push(_),IQ[d]=_,d},LUt=function(i){for(const[s,u]of F7.entries())if(u.id===i)return s;return-1};let vR=-1;const nHe=[],rHe=function(i,s){const u=F7[s].nodes;if(vR=vR+1,vR>2e3)return;if(nHe[vR]=s,F7[s].id===i)return{result:!0,count:0};let d=0,p=1;for(;d<u.length;){const v=LUt(u[d]);if(v>=0){const b=rHe(i,v);if
|
|||
|
|
`),p=0;p<d.length;p++)u.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(d[p]);return J4(u,s.labelStyle),u}function iQt(i){for(var s="",u=!1,d,p=0;p<i.length;++p)if(d=i[p],u){switch(d){case"n":s+=`
|
|||
|
|
`;break;default:s+=d}u=!1}else d==="\\"?u=!0:s+=d;return s}function wme(i,s,u){var d=s.label,p=i.append("g");s.labelType==="svg"?nQt(p,s):typeof d!="string"||s.labelType==="html"?vme(p,s):rQt(p,s);var v=p.node().getBBox(),b;switch(u){case"top":b=-s.height/2;break;case"bottom":b=s.height/2-v.height;break;default:b=-v.height/2}return p.attr("transform","translate("+-v.width/2+","+b+")"),p}var yme=function(i,s){var u=s.nodes().filter(function(v){return kVe(s,v)}),d=i.selectAll("g.cluster").data(u,function(v){return v});q3(d.exit(),s).style("opacity",0).remove();var p=d.enter().append("g").attr("class","cluster").attr("id",function(v){var b=s.node(v);return b.id}).style("opacity",0).each(function(v){var b=s.node(v),y=Ir(this);Ir(this).append("rect");var T=y.append("g").attr("class","label");wme(T,b,b.clusterLabelPos)});return d=d.merge(p),d=q3(d,s).style("opacity",1),d.selectAll("rect").each(function(v){var b=s.node(v),y=Ir(this);J4(y,b.style)}),d};function sQt(i){yme=i}let xme=function(i,s){var u=i.selectAll("g.edgeLabel").data(s.edges(),function(p){return EVe(p)}).classed("update",!0);u.exit().remove(),u.enter().append("g").classed("edgeLabel",!0).style("opacity",0),u=i.selectAll("g.edgeLabel"),u.each(function(p){var v=Ir(this);v.select(".label").remove();var b=s.edge(p),y=wme(v,s.edge(p),0).classed("label",!0),T=y.node().getBBox();b.labelId&&y.attr("id",b.labelId),Object.prototype.hasOwnProperty.call(b,"width")||(b.width=T.width),Object.prototype.hasOwnProperty.call(b,"height")||(b.height=T.height)});var d;return u.exit?d=u.exit():d=u.selectAll(null),q3(d,s).style("opacity",0).remove(),u};function aQt(i){xme=i}function CVe(i,s){return i.intersect(s)}var kme=function(i,s,u){var d=i.selectAll("g.edgePath").data(s.edges(),function(b){return EVe(b)}).classed("update",!0),p=hQt(d,s);fQt(d,s);var v=d.merge!==void 0?d.merge(p):d;return q3(v,s).style("opacity",1),v.each(function(b){var y=Ir(this),T=s.edge(b);T.elem=this,T.id&&y.attr("id",T.id),TVe(y,T.class,(y.classed("update")?"update ":"")+"edgePath")}),v.selectAll("path.path").each(function(b){var y=s.edge(b);y.arrowheadId=KQ("arrowhead");var T=Ir(this).attr("marker-end",function(){return"url("+cQt(location.href,y.arrowheadId)+")"}).style("fill","none");q3(T,s).attr("d",function(_){return uQt(s,_)}),J4(T,y.style)}),v.selectAll("defs *").remove(),v.selectAll("defs").each(function(b){var y=s.edge(b),T=u[y.arrowhead];T(Ir(this),y.arrowheadId,y,"arrowhead")}),v};function oQt(i){kme=i}function cQt(i,s){var u=i.split("#")[0];return u+"#"+s}function uQt(i,s){var u=i.edge(s),d=i.node(s.v),p=i.node(s.w),v=u.points.slice(1,u.points.length-1);return v.unshift(CVe(d,v[0])),v.push(CVe(p,v[v.length-1])),SVe(u,v)}function SVe(i,s){var u=(x7||RIt.line)().x(function(d){return d.x}).y(function(d){return d.y});return(u.curve||u.interpolate)(i.curve),u(s)}function lQt(i){var s=i.getBBox(),u=i.ownerSVGElement.getScreenCTM().inverse().multiply(i.getScreenCTM()).translate(s.width/2,s.height/2);return{x:u.e,y:u.f}}function hQt(i,s){var u=i.enter().append("g").attr("class","edgePath").style("opacity",0);return u.append("path").attr("class","path").attr("d",function(d){var p=s.edge(d),v=s.node(d.v).elem,b=UC(p.points.length).map(function(){return lQt(v)});return SVe(p,b)}),u.append("defs"),u}function fQt(i,s){var u=i.exit();q3(u,s).style("opacity",0).remove()}var Eme=function(i,s,u){var d=s.nodes().filter(function(b){return!kVe(s,b)}),p=i.selectAll("g.node").data(d,function(b){return b}).classed("update",!0);p.exit().remove(),p.enter().append("g").attr("class","node").style("opacity",0),p=i.selectAll("g.node"),p.each(function(b){var y=s.node(b),T=Ir(this);TVe(T,y.class,(T.classed("update")?"update ":"")+"node"),T.select("g.label").remove();var _=T.append("g").attr("class","label"),A=wme(_,y),P=u[y.shape],R=ER(A.node().getBBox(),"width","height");y.elem=this,y.id&&T.attr("id",y.id),y.labelId&&_.attr("id",y.labelId),Object.prototype.hasOwnProperty.call(y,"width")&&(R.width=y.width),Object.prototype.hasOwnProperty.call(y,"height")&&(R.height=y.height),R.width+=y.paddingLeft+y.paddingRight,R.height+=y.pad
|
|||
|
|
`),b.style===void 0&&(A.style=A.style||"stroke: #333; stroke-width: 1.5px;fill:none"),A.labelStyle=A.labelStyle.replace("color:","fill:"))),A.id=y,A.class=T+" "+_,A.minlen=b.length||1,s.setEdge(u.db.lookUpDomId(b.start),u.db.lookUpDomId(b.end),A,d)}},OQt={setConf:IQt,addVertices:zVe,addEdges:qVe,getClasses:function(i,s){return Xe.info("Extracting classes"),s.db.getClasses()},draw:async function(i,s,u,d){Xe.info("Drawing flowchart");const{securityLevel:p,flowchart:v}=qt();let b;p==="sandbox"&&(b=Ir("#i"+s));const y=Ir(p==="sandbox"?b.nodes()[0].contentDocument.body:"body"),T=p==="sandbox"?b.nodes()[0].contentDocument:document;let _=d.db.getDirection();_===void 0&&(_="TD");const A=v.nodeSpacing||50,P=v.rankSpacing||50,R=new N0({multigraph:!0,compound:!0}).setGraph({rankdir:_,nodesep:A,ranksep:P,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let F;const j=d.db.getSubGraphs();for(let ne=j.length-1;ne>=0;ne--)F=j[ne],d.db.addVertex(F.id,F.title,"group",void 0,F.classes);const W=d.db.getVertices();Xe.warn("Get vertices",W);const ee=d.db.getEdges();let ie=0;for(ie=j.length-1;ie>=0;ie--){F=j[ie],_Be("cluster").append("text");for(let ne=0;ne<F.nodes.length;ne++)Xe.warn("Setting subgraph",F.nodes[ne],d.db.lookUpDomId(F.nodes[ne]),d.db.lookUpDomId(F.id)),R.setParent(d.db.lookUpDomId(F.nodes[ne]),d.db.lookUpDomId(F.id))}await zVe(W,R,s,y,T,d),await qVe(ee,R,d);const oe=new TQt;DQt.addToRender(oe),oe.arrows().none=function(se,de,X,pe){const xe=se.append("marker").attr("id",de).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");J4(xe,X[pe+"Style"])},oe.arrows().normal=function(se,de){se.append("marker").attr("id",de).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 be=y.select(`[id="${s}"]`),ge=y.select("#"+s+" g");for(oe(ge,R),ge.selectAll("g.node").attr("title",function(){return d.db.getTooltip(this.id)}),d.db.indexNodes("subGraph"+ie),ie=0;ie<j.length;ie++)if(F=j[ie],F.title!=="undefined"){const ne=T.querySelectorAll("#"+s+' [id="'+d.db.lookUpDomId(F.id)+'"] rect'),se=T.querySelectorAll("#"+s+' [id="'+d.db.lookUpDomId(F.id)+'"]'),de=ne[0].x.baseVal.value,X=ne[0].y.baseVal.value,pe=ne[0].width.baseVal.value,xe=Ir(se[0]).select(".label");xe.attr("transform",`translate(${de+pe/2}, ${X+14})`),xe.attr("id",s+"Text");for(let U=0;U<F.classes.length;U++)se[0].classList.add(F.classes[U])}if(!v.htmlLabels){const ne=T.querySelectorAll('[id="'+s+'"] .edgeLabel .label');for(const se of ne){const de=se.getBBox(),X=T.createElementNS("http://www.w3.org/2000/svg","rect");X.setAttribute("rx",0),X.setAttribute("ry",0),X.setAttribute("width",de.width),X.setAttribute("height",de.height),se.insertBefore(X,se.firstChild)}}w9(R,be,v.diagramPadding,v.useMaxWidth),Object.keys(W).forEach(function(ne){const se=W[ne];if(se.link){const de=y.select("#"+s+' [id="'+d.db.lookUpDomId(ne)+'"]');if(de){const X=T.createElementNS("http://www.w3.org/2000/svg","a");X.setAttributeNS("http://www.w3.org/2000/svg","class",se.classes.join(" ")),X.setAttributeNS("http://www.w3.org/2000/svg","href",se.link),X.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?X.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):se.linkTarget&&X.setAttributeNS("http://www.w3.org/2000/svg","target",se.linkTarget);const pe=de.insert(function(){return X},":first-child"),G=de.select(".label-container");G&&pe.append(function(){return G.node()});const xe=de.select(".label");xe&&pe.append(function(){return xe.node()})}}})}};function z7(i){var s={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:NQt(i),edges:PQt(i)};return Yf(i.graph())||(s.value=OHe(i.graph())),s}function NQt(i){return O0(i.nodes(),function(s){
|
|||
|
|
`;break}case-3:{b=`\r
|
|||
|
|
`;break}case-2:{b=s?" ":" ";break}case-1:{if(!s&&p)continue;b=" ";break}default:b=String.fromCharCode(v)}p=v===-2,d.push(b)}return d.join("")}const SZt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:AJt},disable:{null:[]},document:{42:H2,43:H2,45:H2,48:H2,49:H2,50:H2,51:H2,52:H2,53:H2,54:H2,55:H2,56:H2,57:H2,62:YVe},flow:{35:NJt,42:XQ,45:[aUe,XQ],60:RJt,61:aUe,95:XQ,96:eUe,126:eUe},flowInitial:{[-2]:Ime,[-1]:Ime,32:Ime},insideSpan:{null:[Mme,wZt]},string:{38:JVe,92:XVe},text:{[-5]:Nme,[-4]:Nme,[-3]:Nme,33:nZt,38:JVe,42:Mme,60:[sJt,UJt],91:iZt,92:[IJt,XVe],93:Ome,95:Mme,96:vJt}},Symbol.toStringTag,{value:"Module"}));function _Zt(i){const u=HQt([SZt,...(i||{}).extensions||[]]),d={defined:[],lazy:{},constructs:u,content:p(JQt),document:p(eJt),flow:p(mZt),string:p(yZt),text:p(xZt)};return d;function p(v){return b;function b(y){return EZt(d,v,y)}}}const uUe=/[\0\t\n\r]/g;function AZt(){let i=1,s="",u=!0,d;return p;function p(v,b,y){const T=[];let _,A,P,R,F;for(v=s+v.toString(b),P=0,s="",u&&(v.charCodeAt(0)===65279&&P++,u=void 0);P<v.length;){if(uUe.lastIndex=P,_=uUe.exec(v),R=_&&_.index!==void 0?_.index:v.length,F=v.charCodeAt(R),!_){s=v.slice(P);break}if(F===10&&P===R&&d)T.push(-3),d=void 0;else switch(d&&(T.push(-5),d=void 0),P<R&&(T.push(v.slice(P,R)),i+=R-P),F){case 0:{T.push(65533),i++;break}case 9:{for(A=Math.ceil(i/4)*4,T.push(-2);i++<A;)T.push(-1);break}case 10:{T.push(-4),i=1;break}default:d=!0,i=1}P=R+1}return y&&(d&&T.push(-5),s&&T.push(s),T.push(null)),T}}function LZt(i){for(;!tUe(i););return i}function lUe(i,s){const u=Number.parseInt(i,s);return u<9||u===11||u>13&&u<32||u>126&&u<160||u>55295&&u<57344||u>64975&&u<65008||(u&65535)===65535||(u&65535)===65534||u>1114111?"<22>":String.fromCharCode(u)}const MZt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DZt(i){return i.replace(MZt,IZt)}function IZt(i,s,u){if(s)return s;if(u.charCodeAt(0)===35){const p=u.charCodeAt(1),v=p===120||p===88;return lUe(u.slice(v?2:1),v?16:10)}return Dme(u)||i}function QQ(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?hUe(i.position):"start"in i||"end"in i?hUe(i):"line"in i||"column"in i?Pme(i):""}function Pme(i){return fUe(i&&i.line)+":"+fUe(i&&i.column)}function hUe(i){return Pme(i&&i.start)+"-"+Pme(i&&i.end)}function fUe(i){return i&&typeof i=="number"?i:1}const dUe={}.hasOwnProperty,gUe=function(i,s,u){return typeof s!="string"&&(u=s,s=void 0),OZt(u)(LZt(_Zt(u).document().write(AZt()(i,s,!0))))};function OZt(i){const s={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:y(Ba),autolinkProtocol:G,autolinkEmail:G,atxHeading:y(zr),blockQuote:y(Ze),characterEscape:G,characterReference:G,codeFenced:y(At),codeFencedFenceInfo:T,codeFencedFenceMeta:T,codeIndented:y(At,T),codeText:y(Tt,T),codeTextData:G,data:G,codeFlowValue:G,definition:y(On),definitionDestinationString:T,definitionLabelString:T,definitionTitleString:T,emphasis:y(ht),hardBreakEscape:y(yt),hardBreakTrailing:y(yt),htmlFlow:y(Fi,T),htmlFlowData:G,htmlText:y(Fi,T),htmlTextData:G,image:y(yi),label:T,link:y(Ba),listItem:y(Ro),listItemValue:j,listOrdered:y(na,F),listUnordered:y(na),paragraph:y(_r),reference:kt,referenceString:T,resourceDestinationString:T,resourceTitleString:T,setextHeading:y(zr),strong:y(Nn),thematicBreak:y(qn)},exit:{atxHeading:A(),atxHeadingSequence:se,autolink:A(),autolinkEmail:Pt,autolinkProtocol:xt,blockQuote:A(),characterEscapeValue:xe,characterReferenceMarkerHexadecimal:Gt,characterReferenceMarkerNumeric:Gt,characterReferenceValue:ln,codeFenced:A(oe),codeFencedFence:ie,codeFencedFenceInfo:W,codeFencedFenceMeta:ee,codeFlowValue:xe,codeIndented:A(be),codeText:A(Ie),codeTextData:xe,data:xe,definition:A(),definitionDestinationString:ne,definitionLabelString:ge,definitionTitleString:ae,emphasis:A(),hardBreakEscape:A(Be),hardBreakTrailing:A(Be),htmlFlow:A(Ne),htmlFlowData:xe,htmlText:A(je),htmlTextData:xe,image:A(Ce),label:Ke,labelText:ke,lineEnding:U,link:A(Se),listItem:A(),listOrdered:A(),listUnordered:A(),paragraph:
|
|||
|
|
`);return QM(s)}function BZt(i){const s=PZt(i),{children:u}=gUe(s),d=[[]];let p=0;function v(b,y="normal"){b.type==="text"?b.value.split(`
|
|||
|
|
`).forEach((_,A)=>{A!==0&&(p++,d.push([])),_.split(" ").forEach(P=>{P&&d[p].push({content:P,type:y})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(T=>{v(T,b.type)})}return u.forEach(b=>{b.type==="paragraph"&&b.children.forEach(y=>{v(y)})}),d}function FZt(i){const{children:s}=gUe(i);function u(d){return d.type==="text"?d.value.replace(/\n/g,"<br/>"):d.type==="strong"?`<strong>${d.children.map(u).join("")}</strong>`:d.type==="emphasis"?`<em>${d.children.map(u).join("")}</em>`:d.type==="paragraph"?`<p>${d.children.map(u).join("")}</p>`:`Unsupported markdown: ${d.type}`}return s.map(u).join("")}function RZt(i){return Intl.Segmenter?[...new Intl.Segmenter().segment(i)].map(s=>s.segment):[...i]}function jZt(i,s){const u=RZt(s.content);return mUe(i,[],u,s.type)}function mUe(i,s,u,d){if(u.length===0)return[{content:s.join(""),type:d},{content:"",type:d}];const[p,...v]=u,b=[...s,p];return i([{content:b.join(""),type:d}])?mUe(i,b,v,d):(s.length===0&&p&&(s.push(p),u.shift()),[{content:s.join(""),type:d},{content:u.join(""),type:d}])}function $Zt(i,s){if(i.some(({content:u})=>u.includes(`
|
|||
|
|
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bme(i,s)}function Bme(i,s,u=[],d=[]){if(i.length===0)return d.length>0&&u.push(d),u.length>0?u:[];let p="";i[0].content===" "&&(p=" ",i.shift());const v=i.shift()??{content:" ",type:"normal"},b=[...d];if(p!==""&&b.push({content:p,type:"normal"}),b.push(v),s(b))return Bme(i,s,u,b);if(d.length>0)u.push(d),i.unshift(v);else if(v.content){const[y,T]=jZt(s,v);u.push([y]),T.content&&i.unshift(T)}return Bme(i,s,u)}function zZt(i,s){s&&i.attr("style",s)}function qZt(i,s,u,d,p=!1){const v=i.append("foreignObject"),b=v.append("xhtml:div"),y=s.label,T=s.isNode?"nodeLabel":"edgeLabel";b.html(yh(`
|
|||
|
|
<span class="${T} ${d}" `+(s.labelStyle?'style="'+s.labelStyle+'"':"")+">"+y+"</span>",xh())),zZt(b,s.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",u+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),p&&b.attr("class","labelBkg");let _=b.node().getBoundingClientRect();return _.width===u&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",u+"px"),_=b.node().getBoundingClientRect()),v.style("width",_.width),v.style("height",_.height),v.node()}function Fme(i,s,u){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",s*u-.1+"em").attr("dy",u+"em")}function HZt(i,s,u){const d=i.append("text"),p=Fme(d,1,s);Rme(p,u);const v=p.node().getComputedTextLength();return d.remove(),v}function VZt(i,s,u){var b;const d=i.append("text"),p=Fme(d,1,s);Rme(p,[{content:u,type:"normal"}]);const v=(b=p.node())==null?void 0:b.getBoundingClientRect();return v&&d.remove(),v}function UZt(i,s,u,d=!1){const v=s.append("g"),b=v.insert("rect").attr("class","background"),y=v.append("text").attr("y","-10.1");let T=0;for(const _ of u){const A=R=>HZt(v,1.1,R)<=i,P=A(_)?[_]:$Zt(_,A);for(const R of P){const F=Fme(y,T,1.1);Rme(F,R),T++}}if(d){const _=y.node().getBBox(),A=2;return b.attr("x",-A).attr("y",-A).attr("width",_.width+2*A).attr("height",_.height+2*A),v.node()}else return y.node()}function Rme(i,s){i.text(""),s.forEach((u,d)=>{const p=i.append("tspan").attr("font-style",u.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",u.type==="strong"?"bold":"normal");d===0?p.text(u.content):p.text(" "+u.content)})}const JQ=(i,s="",{style:u="",isTitle:d=!1,classes:p="",useHtmlLabels:v=!0,isNode:b=!0,width:y=200,addSvgBackground:T=!1}={})=>{if(Xe.info("createText",s,u,d,p,v,b,T),v){const _=FZt(s),A={isNode:b,label:eR(_).replace(/fa[blrs]?:fa-[\w-]+/g,R=>`<i class='${R.replace(":"," ")}'></i>`),labelStyle:u.replace("fill:","color:")};return qZt(i,A,y,p,T)}else{const _=BZt(s);return UZt(y,i,_,T)}},h1=async(i,s,u,d)=>{let p;const v=s.useHtmlLabels||u1(qt().flowchart.htmlLabels);u?p=u:p="node default";const b=i.insert("g").attr("class",p).attr("id",s.domId||s.id),y=b.insert("g").attr("class","label").attr("style",s.labelStyle);let T;s.labelText===void 0?T="":T=typeof s.labelText=="string"?s.labelText:s.labelText[0];const _=y.node();let A;s.labelType==="markdown"?A=JQ(y,yh(eR(T),qt()),{useHtmlLabels:v,width:s.width||qt().flowchart.wrappingWidth,classes:"markdown-node-label"}):A=_.appendChild(z2(yh(eR(T),qt()),s.labelStyle,!1,d));let P=A.getBBox();const R=s.padding/2;if(u1(qt().flowchart.htmlLabels)){const F=A.children[0],j=Ir(A),W=F.getElementsByTagName("img");if(W){const ee=T.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...W].map(ie=>new Promise(oe=>{function be(){if(ie.style.display="flex",ie.style.flexDirection="column",ee){const ge=qt().fontSize?qt().fontSize:window.getComputedStyle(document.body).fontSize,ae=5,ne=parseInt(ge,10)*ae+"px";ie.style.minWidth=ne,ie.style.maxWidth=ne}else ie.style.width="100%";oe(ie)}setTimeout(()=>{ie.complete&&be()}),ie.addEventListener("error",be),ie.addEventListener("load",be)})))}P=F.getBoundingClientRect(),j.attr("width",P.width),j.attr("height",P.height)}return v?y.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"):y.attr("transform","translate(0, "+-P.height/2+")"),s.centerLabel&&y.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:b,bbox:P,halfPadding:R,label:y}},Wh=(i,s)=>{const u=s.node().getBBox();i.width=u.width,i.height=u.height};function n5(i,s,u,d){return i.insert("polygon",":first-child").attr("points",d.map(function(p){return p.x+","+p.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-s/2+","+u/2+")")}let _o={},V3={},vUe={};const GZt=()=>{V3={},vUe={},_o={}},ZQ=(i,s)=>(Xe.trace("In isDescendant",s," ",i," = ",V3[s].includes(i)),!!V3[s].includes(i)),KZt=(i,s)=>(Xe.info("Descendants of ",s," is ",V3[s]),Xe.info("Edge is ",i),i.v===s||i.w===s?!1:V3[s]?V3[s].includes(i
|
|||
|
|
outsidePoint: ${JSON.stringify(s)}
|
|||
|
|
insidePoint : ${JSON.stringify(u)}
|
|||
|
|
node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const d=i.x,p=i.y,v=Math.abs(d-u.x),b=i.width/2;let y=u.x<s.x?b-v:b+v;const T=i.height/2,_=Math.abs(s.y-u.y),A=Math.abs(s.x-u.x);if(Math.abs(p-s.y)*b>Math.abs(d-s.x)*T){let P=u.y<s.y?s.y-T-p:p-T-s.y;y=A*P/_;const R={x:u.x<s.x?u.x+y:u.x-A+y,y:u.y<s.y?u.y+_-P:u.y-_+P};return y===0&&(R.x=s.x,R.y=s.y),A===0&&(R.x=s.x),_===0&&(R.y=s.y),Xe.debug(`abc89 topp/bott calc, Q ${_}, q ${P}, R ${A}, r ${y}`,R),R}else{u.x<s.x?y=s.x-b-d:y=d-b-s.x;let P=_*y/A,R=u.x<s.x?u.x+A-y:u.x-A+y,F=u.y<s.y?u.y+P:u.y-P;return Xe.debug(`sides calc abc89, Q ${_}, q ${P}, R ${A}, r ${y}`,{_x:R,_y:F}),y===0&&(R=s.x,F=s.y),A===0&&(R=s.x),_===0&&(F=s.y),{x:R,y:F}}},NUe=(i,s)=>{Xe.debug("abc88 cutPathAtIntersect",i,s);let u=[],d=i[0],p=!1;return i.forEach(v=>{if(!Len(s,v)&&!p){const b=Men(s,d,v);let y=!1;u.forEach(T=>{y=y||T.x===b.x&&T.y===b.y}),u.some(T=>T.x===b.x&&T.y===b.y)||u.push(b),p=!0}else d=v,p||u.push(v)}),u},PUe=function(i,s,u,d,p,v,b){let y=u.points;Xe.debug("abc88 InsertEdge: edge=",u,"e=",s);let T=!1;const _=v.node(s.v);var A=v.node(s.w);A!=null&&A.intersect&&(_!=null&&_.intersect)&&(y=y.slice(1,u.points.length-1),y.unshift(_.intersect(y[0])),y.push(A.intersect(y[y.length-1]))),u.toCluster&&(Xe.debug("to cluster abc88",d[u.toCluster]),y=NUe(u.points,d[u.toCluster].node),T=!0),u.fromCluster&&(Xe.debug("from cluster abc88",d[u.fromCluster]),y=NUe(y.reverse(),d[u.fromCluster].node).reverse(),T=!0);const P=y.filter(ge=>!Number.isNaN(ge.y));let R=BF;u.curve&&(p==="graph"||p==="flowchart")&&(R=u.curve);const{x:F,y:j}=MUe(u),W=x7().x(F).y(j).curve(R);let ee;switch(u.thickness){case"normal":ee="edge-thickness-normal";break;case"thick":ee="edge-thickness-thick";break;case"invisible":ee="edge-thickness-thick";break;default:ee=""}switch(u.pattern){case"solid":ee+=" edge-pattern-solid";break;case"dotted":ee+=" edge-pattern-dotted";break;case"dashed":ee+=" edge-pattern-dashed";break}const ie=i.append("path").attr("d",W(P)).attr("id",u.id).attr("class"," "+ee+(u.classes?" "+u.classes:"")).attr("style",u.style);let oe="";(qt().flowchart.arrowMarkerAbsolute||qt().state.arrowMarkerAbsolute)&&(oe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,oe=oe.replace(/\(/g,"\\("),oe=oe.replace(/\)/g,"\\)")),DUe(ie,u,oe,b,p);let be={};return T&&(be.updatedPath=y),be.originalPath=u.points,be},BUe=async(i,s,u,d,p,v)=>{Xe.info("Graph in recursive render: XXX",z7(s),p);const b=s.graph().rankdir;Xe.trace("Dir in recursive render - dir:",b);const y=i.insert("g").attr("class","root");s.nodes()?Xe.info("Recursive render XXX",s.nodes()):Xe.info("No nodes found for",s),s.edges().length>0&&Xe.trace("Recursive edges",s.edge(s.edges()[0]));const T=y.insert("g").attr("class","clusters"),_=y.insert("g").attr("class","edgePaths"),A=y.insert("g").attr("class","edgeLabels"),P=y.insert("g").attr("class","nodes");await Promise.all(s.nodes().map(async function(j){const W=s.node(j);if(p!==void 0){const ee=JSON.parse(JSON.stringify(p.clusterData));Xe.info("Setting data for cluster XXX (",j,") ",ee,p),s.setNode(p.id,ee),s.parent(j)||(Xe.trace("Setting parent",j,p.id),s.setParent(j,p.id,ee))}if(Xe.info("(Insert) Node XXX"+j+": "+JSON.stringify(s.node(j))),W&&W.clusterNode){Xe.info("Cluster identified",j,W.width,s.node(j));const ee=await BUe(P,W.graph,u,d,s.node(j),v),ie=ee.elem;Wh(W,ie),W.diff=ee.diff||0,Xe.info("Node bounds (abc123)",j,W,W.width,W.x,W.y),ken(ie,W),Xe.warn("Recursive render complete ",ie,W)}else s.children(j).length>0?(Xe.info("Cluster - the non recursive path XXX",j,W.id,W,s),Xe.info(MR(W.id,s)),_o[W.id]={id:MR(W.id,s),node:W}):(Xe.info("Node - the non recursive path",j,W.id,W),await tJ(P,s.node(j),b))})),s.edges().forEach(function(j){const W=s.edge(j.v,j.w,j.name);Xe.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j)),Xe.info("Edge "+j.v+" -> "+j.w+": ",j," ",JSON.stringify(s.edge(j))),Xe.info("Fix",_o,"ids:",j.v,j.w,"Translating: ",_o[j.v],_o[j.w]),zme(A,W)}),s.edges().forEach(function(j){Xe.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j))}),Xe.info("##########
|
|||
|
|
`),qt()),y.style===void 0&&(R.style=R.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),R.labelStyle=R.labelStyle.replace("color:","fill:"),R.id=_,R.classes="flowchart-link "+A+" "+P,s.setEdge(y.start,y.end,R,d)}},Hme={setConf:Den,addVertices:RUe,addEdges:jUe,getClasses:function(i,s){return s.db.getClasses()},draw:async function(i,s,u,d){Xe.info("Drawing flowchart");let p=d.db.getDirection();p===void 0&&(p="TD");const{securityLevel:v,flowchart:b}=qt(),y=b.nodeSpacing||50,T=b.rankSpacing||50;let _;v==="sandbox"&&(_=Ir("#i"+s));const A=Ir(v==="sandbox"?_.nodes()[0].contentDocument.body:"body"),P=v==="sandbox"?_.nodes()[0].contentDocument:document,R=new N0({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:y,ranksep:T,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let F;const j=d.db.getSubGraphs();Xe.info("Subgraphs - ",j);for(let ae=j.length-1;ae>=0;ae--)F=j[ae],Xe.info("Subgraph - ",F),d.db.addVertex(F.id,{text:F.title,type:F.labelType},"group",void 0,F.classes,F.dir);const W=d.db.getVertices(),ee=d.db.getEdges();Xe.info("Edges",ee);let ie=0;for(ie=j.length-1;ie>=0;ie--){F=j[ie],_Be("cluster").append("text");for(let ae=0;ae<F.nodes.length;ae++)Xe.info("Setting up subgraphs",F.nodes[ae],F.id),R.setParent(F.nodes[ae],F.id)}await RUe(W,R,s,A,P,d),await jUe(ee,R);const oe=A.select(`[id="${s}"]`),be=A.select("#"+s+" g");if(await qme(be,R,["point","circle","cross"],"flowchart",s),So.insertTitle(oe,"flowchartTitleText",b.titleTopMargin,d.db.getDiagramTitle()),w9(R,oe,b.diagramPadding,b.useMaxWidth),d.db.indexNodes("subGraph"+ie),!b.htmlLabels){const ae=P.querySelectorAll('[id="'+s+'"] .edgeLabel .label');for(const ne of ae){const se=ne.getBBox(),de=P.createElementNS("http://www.w3.org/2000/svg","rect");de.setAttribute("rx",0),de.setAttribute("ry",0),de.setAttribute("width",se.width),de.setAttribute("height",se.height),ne.insertBefore(de,ne.firstChild)}}Object.keys(W).forEach(function(ae){const ne=W[ae];if(ne.link){const se=Ir("#"+s+' [id="'+ae+'"]');if(se){const de=P.createElementNS("http://www.w3.org/2000/svg","a");de.setAttributeNS("http://www.w3.org/2000/svg","class",ne.classes.join(" ")),de.setAttributeNS("http://www.w3.org/2000/svg","href",ne.link),de.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),v==="sandbox"?de.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ne.linkTarget&&de.setAttributeNS("http://www.w3.org/2000/svg","target",ne.linkTarget);const X=se.insert(function(){return de},":first-child"),pe=se.select(".label-container");pe&&X.append(function(){return pe.node()});const G=se.select(".label");G&&X.append(function(){return G.node()})}}})}},Ien=(i,s)=>{const u=MRe,d=u(i,"r"),p=u(i,"g"),v=u(i,"b");return CC(d,p,v,s)},$Ue=i=>`.label {
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label span,p {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.label text,span,p {
|
|||
|
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node rect,
|
|||
|
|
.node circle,
|
|||
|
|
.node ellipse,
|
|||
|
|
.node polygon,
|
|||
|
|
.node path {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
.flowchart-label text {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
}
|
|||
|
|
// .flowchart-label .text-outer-tspan {
|
|||
|
|
// text-anchor: middle;
|
|||
|
|
// }
|
|||
|
|
// .flowchart-label .text-inner-tspan {
|
|||
|
|
// text-anchor: start;
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
.node .katex path {
|
|||
|
|
fill: #000;
|
|||
|
|
stroke: #000;
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node .label {
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
.node.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.arrowheadPath {
|
|||
|
|
fill: ${i.arrowheadColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgePath .path {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 2.0px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchart-link {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeLabel {
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
rect {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
fill: ${i.edgeLabelBackground};
|
|||
|
|
}
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* For html labels only */
|
|||
|
|
.labelBkg {
|
|||
|
|
background-color: ${Ien(i.edgeLabelBackground,.5)};
|
|||
|
|
// background-color:
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster rect {
|
|||
|
|
fill: ${i.clusterBkg};
|
|||
|
|
stroke: ${i.clusterBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster span,p {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
/* .cluster div {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
} */
|
|||
|
|
|
|||
|
|
div.mermaidTooltip {
|
|||
|
|
position: absolute;
|
|||
|
|
text-align: center;
|
|||
|
|
max-width: 200px;
|
|||
|
|
padding: 2px;
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: 12px;
|
|||
|
|
background: ${i.tertiaryColor};
|
|||
|
|
border: 1px solid ${i.border2};
|
|||
|
|
border-radius: 2px;
|
|||
|
|
pointer-events: none;
|
|||
|
|
z-index: 100;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchartTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
`,Oen=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Gbe,db:qC,renderer:Hme,styles:$Ue,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,OQt.setConf(i.flowchart),qC.clear(),qC.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),Nen=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Gbe,db:qC,renderer:Hme,styles:$Ue,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,Ojt({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),Hme.setConf(i.flowchart),qC.clear(),qC.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var Vme=function(){var i=function(de,X,pe,G){for(pe=pe||{},G=de.length;G--;pe[de[G]]=X);return pe},s=[6,8,10,20,22,24,26,27,28],u=[1,10],d=[1,11],p=[1,12],v=[1,13],b=[1,14],y=[1,15],T=[1,21],_=[1,22],A=[1,23],P=[1,24],R=[1,25],F=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],j=[1,34],W=[27,28,46,47],ee=[41,42,43,44,45],ie=[17,34],oe=[1,54],be=[1,53],ge=[17,34,36,38],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(X,pe,G,xe,U,Be,Ne){var je=Be.length-1;switch(U){case 1:break;case 2:this.$=[];break;case 3:Be[je-1].push(Be[je]),this.$=Be[je-1];break;case 4:case 5:this.$=Be[je];break;case 6:case 7:this.$=[];break;case 8:xe.addEntity(Be[je-4]),xe.addEntity(Be[je-2]),xe.addRelationship(Be[je-4],Be[je],Be[je-2],Be[je-3]);break;case 9:xe.addEntity(Be[je-3]),xe.addAttributes(Be[je-3],Be[je-1]);break;case 10:xe.addEntity(Be[je-2]);break;case 11:xe.addEntity(Be[je]);break;case 12:xe.addEntity(Be[je-6],Be[je-4]),xe.addAttributes(Be[je-6],Be[je-1]);break;case 13:xe.addEntity(Be[je-5],Be[je-3]);break;case 14:xe.addEntity(Be[je-3],Be[je-1]);break;case 15:case 16:this.$=Be[je].trim(),xe.setAccTitle(this.$);break;case 17:case 18:this.$=Be[je].trim(),xe.setAccDescription(this.$);break;case 19:case 43:this.$=Be[je];break;case 20:case 41:case 42:this.$=Be[je].replace(/"/g,"");break;case 21:case 29:this.$=[Be[je]];break;case 22:Be[je].push(Be[je-1]),this.$=Be[je];break;case 23:this.$={attributeType:Be[je-1],attributeName:Be[je]};break;case 24:this.$={attributeType:Be[je-2],attributeName:Be[je-1],attributeKeyTypeList:Be[je]};break;case 25:this.$={attributeType:Be[je-2],attributeName:Be[je-1],attributeComment:Be[je]};break;case 26:this.$={attributeType:Be[je-3],attributeName:Be[je-2],attributeKeyTypeList:Be[je-1],attributeComment:Be[je]};break;case 27:case 28:case 31:this.$=Be[je];break;case 30:Be[je-2].push(Be[je]),this.$=Be[je-2];break;case 32:this.$=Be[je].replace(/"/g,"");break;case 33:this.$={cardA:Be[je],relType:Be[je-1],cardB:Be[je-2]};break;case 34:this.$=xe.Cardinality.ZER
|
|||
|
|
`+Ft.showPosition()+`
|
|||
|
|
Expecting `+zr.join(", ")+", got '"+(this.terminals_[ln]||ln)+"'":yt="Parse error on line "+(Ie+1)+": Unexpected "+(ln==ke?"end of input":"'"+(this.terminals_[ln]||ln)+"'"),this.parseError(yt,{text:Ft.match,token:this.terminals_[ln]||ln,line:Ft.yylineno,loc:kt,expected:zr})}if(Pt[0]instanceof Array&&Pt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+ln);switch(Pt[0]){case 1:G.push(ln),U.push(Ft.yytext),Be.push(Ft.yylloc),G.push(Pt[1]),ln=null,Se=Ft.yyleng,je=Ft.yytext,Ie=Ft.yylineno,kt=Ft.yylloc;break;case 2:if(On=this.productions_[Pt[1]][1],At.$=U[U.length-On],At._$={first_line:Be[Be.length-(On||1)].first_line,last_line:Be[Be.length-1].last_line,first_column:Be[Be.length-(On||1)].first_column,last_column:Be[Be.length-1].last_column},Et&&(At._$.range=[Be[Be.length-(On||1)].range[0],Be[Be.length-1].range[1]]),Ze=this.performAction.apply(At,[je,Se,Ie,Pe.yy,Pt[1],U,Be].concat(Ke)),typeof Ze<"u")return Ze;On&&(G=G.slice(0,-1*On*2),U=U.slice(0,-1*On),Be=Be.slice(0,-1*On)),G.push(this.productions_[Pt[1]][0]),U.push(At.$),Be.push(At._$),ht=Ne[G[G.length-2]][G[G.length-1]],G.push(ht);break;case 3:return!0}}return!0}},ne=function(){var de={EOF:1,parseError:function(pe,G){if(this.yy.parser)this.yy.parser.parseError(pe,G);else throw new Error(pe)},setInput:function(X,pe){return this.yy=pe||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 pe=X.match(/(?:\r\n?|\n).*/g);return pe?(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 pe=X.length,G=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var xe=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),G.length-1&&(this.yylineno-=G.length-1);var U=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:G?(G.length===xe.length?this.yylloc.first_column:0)+xe[xe.length-G.length].length-G[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-pe]),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(),pe=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
|
|||
|
|
`+pe+"^"},test_match:function(X,pe){var G,xe,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),xe=X[0].match(/(?:\r\n?|\n).*/g),xe&&(this.yylineno+=xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xe?xe[xe.length-1].length-xe[xe.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],G=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var Be in U)this[Be]=U[Be];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var X,pe,G,xe;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),Be=0;Be<U.length;Be++)if(G=this._input.match(this.rules[U[Be]]),G&&(!pe||G[0].length>pe[0].length)){if(pe=G,xe=Be,this.options.backtrack_lexer){if(X=this.test_match(G,U[Be]),X!==!1)return X;if(this._backtrack){pe=!1;continue}else return!1}else if(!this.options.flex)break}return pe?(X=this.test_match(pe,U[xe]),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 pe=this.next();return pe||this.lex()},begin:function(pe){this.conditionStack.push(pe)},popState:function(){var pe=this.conditionStack.length-1;return pe>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(pe){return pe=this.conditionStack.length-1-Math.abs(pe||0),pe>=0?this.conditionStack[pe]:"INITIAL"},pushState:function(pe){this.begin(pe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(pe,G,xe,U){switch(xe){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;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 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return G.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return G.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,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,53,54,55],inclusive:!0}}};return de}();ae.lexer=ne;function se(){this.yy={}}return se.prototype=ae,ae.Parser=se,new se}();Vme.parser=Vme;const Pen=Vme;let P9={},Ume=[];const Ben={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Fen={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},zUe=function(i,s=void 0){return P9[i]===void 0?(P9[i]={attributes:[],alias:s},Xe.info("Added new entity :",i)):P9[i]&&!P9[i].alias&&s&&(P9[i].alias=s,Xe.info(`Add alias '${s}' to entity '${i}'`)),P9[i]},Ren={Cardinality:Ben,Identification:Fen,getConfig:()=>qt().er,addEntity:zUe,addAttributes:function(i,s){let u=zUe(i),d;for(d=s.length-1;d>=0;d--)u.attributes.push(s[d]),Xe.debug("Added attribute ",s[d].attributeName)},getEntities
|
|||
|
|
.entityBox {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.attributeBoxOdd {
|
|||
|
|
fill: ${i.attributeBackgroundColorOdd};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.attributeBoxEven {
|
|||
|
|
fill: ${i.attributeBackgroundColorEven};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.relationshipLabelBox {
|
|||
|
|
fill: ${i.tertiaryColor};
|
|||
|
|
opacity: 0.7;
|
|||
|
|
background-color: ${i.tertiaryColor};
|
|||
|
|
rect {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.relationshipLine {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.entityTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
#MD_PARENT_START {
|
|||
|
|
fill: #f5f5f5 !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
#MD_PARENT_END {
|
|||
|
|
fill: #f5f5f5 !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var Kme=function(){var i=function(ae,ne,se,de){for(se=se||{},de=ae.length;de--;se[ae[de]]=ne);return se},s=[1,3],u=[1,6],d=[1,4],p=[1,5],v=[2,5],b=[1,12],y=[5,7,13,19,21,23,24,26,28,31,37,40,47],T=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],A=[7,13,47],P=[1,42],R=[1,41],F=[7,13,29,32,35,38,47],j=[1,55],W=[1,56],ee=[1,57],ie=[7,13,32,35,42,47],oe={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT: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,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(ne,se,de,X,pe,G,xe){var U=G.length-1;switch(pe){case 2:return G[U];case 3:return G[U-1];case 4:return X.setDirection(G[U-3]),G[U-1];case 6:X.setOptions(G[U-1]),this.$=G[U];break;case 7:G[U-1]+=G[U],this.$=G[U-1];break;case 9:this.$=[];break;case 10:G[U-1].push(G[U]),this.$=G[U-1];break;case 11:this.$=G[U-1];break;case 16:this.$=G[U].trim(),X.setAccTitle(this.$);break;case 17:case 18:this.$=G[U].trim(),X.setAccDescription(this.$);break;case 19:X.addSection(G[U].substr(8)),this.$=G[U].substr(8);break;case 21:X.checkout(G[U]);break;case 22:X.branch(G[U]);break;case 23:X.branch(G[U-2],G[U]);break;case 24:X.cherryPick(G[U],"",void 0);break;case 25:X.cherryPick(G[U-2],"",void 0,G[U]);break;case 26:X.cherryPick(G[U-2],"",G[U]);break;case 27:X.cherryPick(G[U-4],"",G[U],G[U-2]);break;case 28:X.cherryPick(G[U-4],"",G[U-2],G[U]);break;case 29:X.cherryPick(G[U],"",G[U-2]);break;case 30:X.cherryPick(G[U],"","");break;case 31:X.cherryPick(G[U-2],"","");break;case 32:X.cherryPick(G[U-4],"","",G[U-2]);break;case 33:X.cherryPick(G[U-4],"","",G[U]);break;case 34:X.cherryPick(G[U-2],"",G[U-4],G[U]);break;case 35:X.cherryPick(G[U-2],"","",G[U]);break;case 36:X.merge(G[U],"","","");break;case 37:X.merge(G[U-2],G[U],"","");break;case 38:X.merge(G[U-2],"",G[U],"");break;case 39:X.merge(G[U-2],"","",G[U]);break;case 40:X.merge(G[U-4],G[U],"",G[U-2]);break;case 41:X.merge(G[U-4],"",G[U],G[U-2]);break;case 42:X.merge(G[U-4],"",G[U-2],G[U]);break;case 43:X.merge(G[U-4],G[U-2],G[U],"");break;case 44:X.merge(G[U-4],G[U-2],"",G[U]);break;case 45:X.merge(G[U-4],G[U],G[U-2],"");break;case 46:X.merge(G[U-6],G[U-4],G[U-2],G[U]);break;case 47:X.merge(G[U-6],G[U],G[U-4],G[U-2]);break;case 48:X.merge(G[U-6],G[U-4],G[U],G[U-2]);break;case 49:X.mer
|
|||
|
|
`+Ce.showPosition()+`
|
|||
|
|
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[kt]||kt)+"'":On="Parse error on line "+(Be+1)+": Unexpected "+(kt==Ie?"end of input":"'"+(this.terminals_[kt]||kt)+"'"),this.parseError(On,{text:Ce.match,token:this.terminals_[kt]||kt,line:Ce.yylineno,loc:Ft,expected:Tt})}if(Gt[0]instanceof Array&&Gt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+kt);switch(Gt[0]){case 1:de.push(kt),pe.push(Ce.yytext),G.push(Ce.yylloc),de.push(Gt[1]),kt=null,Ne=Ce.yyleng,U=Ce.yytext,Be=Ce.yylineno,Ft=Ce.yylloc;break;case 2:if(Ze=this.productions_[Gt[1]][1],xt.$=pe[pe.length-Ze],xt._$={first_line:G[G.length-(Ze||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(Ze||1)].first_column,last_column:G[G.length-1].last_column},Pe&&(xt._$.range=[G[G.length-(Ze||1)].range[0],G[G.length-1].range[1]]),ln=this.performAction.apply(xt,[U,Ne,Be,ke.yy,Gt[1],pe,G].concat(Se)),typeof ln<"u")return ln;Ze&&(de=de.slice(0,-1*Ze*2),pe=pe.slice(0,-1*Ze),G=G.slice(0,-1*Ze)),de.push(this.productions_[Gt[1]][0]),pe.push(xt.$),G.push(xt._$),At=xe[de[de.length-2]][de[de.length-1]],de.push(At);break;case 3:return!0}}return!0}},be=function(){var ae={EOF:1,parseError:function(se,de){if(this.yy.parser)this.yy.parser.parseError(se,de);else throw new Error(se)},setInput:function(ne,se){return this.yy=se||this.yy||{},this._input=ne,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 ne=this._input[0];this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne;var se=ne.match(/(?:\r\n?|\n).*/g);return se?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ne},unput:function(ne){var se=ne.length,de=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var X=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),de.length-1&&(this.yylineno-=de.length-1);var pe=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:de?(de.length===X.length?this.yylloc.first_column:0)+X[X.length-de.length].length-de[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-se]),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(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),se=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
|
|||
|
|
`+se+"^"},test_match:function(ne,se){var de,X,pe;if(this.options.backtrack_lexer&&(pe={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&&(pe.yylloc.range=this.yylloc.range.slice(0))),X=ne[0].match(/(?:\r\n?|\n).*/g),X&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,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(ne[0].length),this.matched+=ne[0],de=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),de)return de;if(this._backtrack){for(var G in pe)this[G]=pe[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ne,se,de,X;this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),G=0;G<pe.length;G++)if(de=this._input.match(this.rules[pe[G]]),de&&(!se||de[0].length>se[0].length)){if(se=de,X=G,this.options.backtrack_lexer){if(ne=this.test_match(de,pe[G]),ne!==!1)return ne;if(this._backtrack){se=!1;continue}else return!1}else if(!this.options.flex)break}return se?(ne=this.test_match(se,pe[X]),ne!==!1?ne:!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 se=this.next();return se||this.lex()},begin:function(se){this.conditionStack.push(se)},popState:function(){var se=this.conditionStack.length-1;return se>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(se){return se=this.conditionStack.length-1-Math.abs(se||0),se>=0?this.conditionStack[se]:"INITIAL"},pushState:function(se){this.begin(se)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(se,de,X,pe){switch(X){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;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 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?: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,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\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:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return ae}();oe.lexer=be;function ge(){this.yy={}}return ge.prototype=oe,oe.Parser=ge,new ge}();Kme.parser=Kme;const otn=Kme;let oJ=qt().gitGraph.mainBranchName,ctn=qt().gitGraph.mainBranchOrder,d1={},Pp=null,OR={};OR[oJ]={name:oJ,order:ctn};let P0={};P0[oJ]=Pp;let nd=oJ,UUe="LR",WC=0;function Wme(){return wje({length:7})}function utn(i,s){const u=Object.create(null);return i.reduce((d,p)=>{const v=s(p);return u[v]||(u[v]=!0,d.push(p)),d},[])}const ltn=function(i){UUe=i};let GUe={};const htn=function(i){Xe.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{GUe=JSON.parse(i)}catch(s){Xe.error("error while parsing gitGraph options",s.message)}},ftn=function(){return GUe},dtn=function(i,s,u,d){Xe.debug("Entering commit:",i,s,u,d),s=ci.sanitizeText(s,qt()),i=ci.sanitizeText(i,qt()),d=ci.sanitizeText(d,qt());const p={id:s||WC+"-"+Wme(),message:i,seq:WC++,type:u||VD.NORMAL,tag:d||"",parents:Pp==null?[]:[Pp.id],branch:nd};Pp=p,d1[p.id]=p,P0[nd]=p.id,Xe.debug("in pushCommit "+p.id)},gtn=function(i,s){if(i=ci.sanitizeText(i,qt()),P0[i]===void 0)P0[i]=Pp!=null?Pp.id:null,OR[i]={name:i,order:s?parseInt(s,10):null},KUe(i),Xe.debug("in createBranch");else{let u=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw u.h
|
|||
|
|
${b-ne.width/2-4/2},${de+2}
|
|||
|
|
${b-ne.width/2-4/2},${de-2}
|
|||
|
|
${j-ne.width/2-4},${de-se-2}
|
|||
|
|
${j+ne.width/2+4},${de-se-2}
|
|||
|
|
${j+ne.width/2+4},${de+se+2}
|
|||
|
|
${j-ne.width/2-4},${de+se+2}`),ge.attr("cx",b-ne.width/2+4/2).attr("cy",de).attr("r",1.5).attr("class","tag-hole"),B0==="TB"&&(be.attr("class","tag-label-bkg").attr("points",`
|
|||
|
|
${ee},${b+2}
|
|||
|
|
${ee},${b-2}
|
|||
|
|
${ee+A},${b-se-2}
|
|||
|
|
${ee+A+ne.width+4},${b-se-2}
|
|||
|
|
${ee+A+ne.width+4},${b+se+2}
|
|||
|
|
${ee+A},${b+se+2}`).attr("transform","translate(12,12) rotate(45, "+ee+","+b+")"),ge.attr("cx",ee+4/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+ee+","+b+")"),ae.attr("x",ee+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+ee+","+b+")"))}}b+=P+A,b>PR&&(PR=b)})},Atn=(i,s,u,d,p)=>{const b=(B0==="TB"?u.x<d.x:u.y<d.y)?s.branch:i.branch,y=_=>_.branch===b,T=_=>_.seq>i.seq&&_.seq<s.seq;return Object.values(p).some(_=>T(_)&&y(_))},BR=(i,s,u=0)=>{const d=i+Math.abs(i-s)/2;if(u>5)return d;if(cJ.every(b=>Math.abs(b-d)>=10))return cJ.push(d),d;const v=Math.abs(i-s);return BR(i,s-v/5,u+1)},Ltn=(i,s,u,d)=>{const p=q7[s.id],v=q7[u.id],b=Atn(s,u,p,v,d);let y="",T="",_=0,A=0,P=V2[u.branch].index;u.type===rd.MERGE&&s.id!==u.parents[0]&&(P=V2[s.branch].index);let R;if(b){y="A 10 10, 0, 0, 0,",T="A 10 10, 0, 0, 1,",_=10,A=10;const F=p.y<v.y?BR(p.y,v.y):BR(v.y,p.y),j=p.x<v.x?BR(p.x,v.x):BR(v.x,p.x);B0==="TB"?p.x<v.x?R=`M ${p.x} ${p.y} L ${j-_} ${p.y} ${T} ${j} ${p.y+A} L ${j} ${v.y-_} ${y} ${j+A} ${v.y} L ${v.x} ${v.y}`:(P=V2[s.branch].index,R=`M ${p.x} ${p.y} L ${j+_} ${p.y} ${y} ${j} ${p.y+A} L ${j} ${v.y-_} ${T} ${j-A} ${v.y} L ${v.x} ${v.y}`):p.y<v.y?R=`M ${p.x} ${p.y} L ${p.x} ${F-_} ${y} ${p.x+A} ${F} L ${v.x-_} ${F} ${T} ${v.x} ${F+A} L ${v.x} ${v.y}`:(P=V2[s.branch].index,R=`M ${p.x} ${p.y} L ${p.x} ${F+_} ${T} ${p.x+A} ${F} L ${v.x-_} ${F} ${y} ${v.x} ${F-A} L ${v.x} ${v.y}`)}else y="A 20 20, 0, 0, 0,",T="A 20 20, 0, 0, 1,",_=20,A=20,B0==="TB"?(p.x<v.x&&(u.type===rd.MERGE&&s.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${y} ${p.x+A} ${v.y} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${T} ${v.x} ${p.y+A} L ${v.x} ${v.y}`),p.x>v.x&&(y="A 20 20, 0, 0, 0,",T="A 20 20, 0, 0, 1,",_=20,A=20,u.type===rd.MERGE&&s.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${T} ${p.x-A} ${v.y} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${v.x+_} ${p.y} ${y} ${v.x} ${p.y+A} L ${v.x} ${v.y}`),p.x===v.x&&(R=`M ${p.x} ${p.y} L ${v.x} ${v.y}`)):(p.y<v.y&&(u.type===rd.MERGE&&s.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${T} ${v.x} ${p.y+A} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${y} ${p.x+A} ${v.y} L ${v.x} ${v.y}`),p.y>v.y&&(u.type===rd.MERGE&&s.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${y} ${v.x} ${p.y-A} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${p.x} ${v.y+_} ${T} ${p.x+A} ${v.y} L ${v.x} ${v.y}`),p.y===v.y&&(R=`M ${p.x} ${p.y} L ${v.x} ${v.y}`));i.append("path").attr("d",R).attr("class","arrow arrow"+P%YC)},Mtn=(i,s)=>{const u=i.append("g").attr("class","commit-arrows");Object.keys(s).forEach(d=>{const p=s[d];p.parents&&p.parents.length>0&&p.parents.forEach(v=>{Ltn(u,s[v],p,s)})})},Dtn=(i,s)=>{const u=qt().gitGraph,d=i.append("g");s.forEach((p,v)=>{const b=v%YC,y=V2[p.name].pos,T=d.append("line");T.attr("x1",0),T.attr("y1",y),T.attr("x2",PR),T.attr("y2",y),T.attr("class","branch branch"+b),B0==="TB"&&(T.attr("y1",30),T.attr("x1",y),T.attr("y2",PR),T.attr("x2",y)),cJ.push(y);let _=p.name;const A=QUe(_),P=d.insert("rect"),F=d.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);F.node().appendChild(A);let j=A.getBBox();P.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-j.width-4-(u.rotateCommitLabel===!0?30:0)).attr("y",-j.height/2+8).attr("width",j.width+18).attr("height",j.height+4),F.attr("transform","translate("+(-j.width-14-(u.rotateCommitLabel===!0?30:0))+", "+(y-j.height/2-1)+")"),B0==="TB"&&(P.attr("x",y-j.width/2-10).attr("y",0),F.attr("transform","translate("+(y-j.width/2-5)+", 0)")),B0!=="TB"&&P.attr("transform","translate(-19, "+(y-j.height/2)+")")})},Itn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:otn,db:Ctn,renderer:{draw:function(i,s,u,d){Stn();const p=qt(),v=p.gitGraph;Xe.debug("in gitgraph renderer",i+`
|
|||
|
|
`,"id:",s,u),NR=d.db.getCommits();const b=d.db.getBranchesAsObjArray();B0=d.db.getDirection();const y=Ir(`[id="${s}"]`);let T=0;b.forEach((_,A)=>{const P=QUe(_.name),R=y.append("g"),F=R.insert("g").attr("class","branchLabel"),j=F.insert("g").attr("class","label branch-label");j.node().appendChild(P);let W=P.getBBox();V2[_.name]={pos:T,index:A},T+=50+(v.rotateCommitLabel?40:0)+(B0==="TB"?W.width/2:0),j.remove(),F.remove(),R.remove()}),JUe(y,NR,!1),v.showBranches&&Dtn(y,b),Mtn(y,NR),JUe(y,NR,!0),So.insertTitle(y,"gitTitleText",v.titleTopMargin,d.db.getDiagramTitle()),n$e(void 0,y,v.diagramPadding,v.useMaxWidth??p.useMaxWidth)}},styles:i=>`
|
|||
|
|
.commit-id,
|
|||
|
|
.commit-msg,
|
|||
|
|
.branch-label {
|
|||
|
|
fill: lightgrey;
|
|||
|
|
color: lightgrey;
|
|||
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
|
font-family: var(--mermaid-font-family);
|
|||
|
|
}
|
|||
|
|
${[0,1,2,3,4,5,6,7].map(s=>`
|
|||
|
|
.branch-label${s} { fill: ${i["gitBranchLabel"+s]}; }
|
|||
|
|
.commit${s} { stroke: ${i["git"+s]}; fill: ${i["git"+s]}; }
|
|||
|
|
.commit-highlight${s} { stroke: ${i["gitInv"+s]}; fill: ${i["gitInv"+s]}; }
|
|||
|
|
.label${s} { fill: ${i["git"+s]}; }
|
|||
|
|
.arrow${s} { stroke: ${i["git"+s]}; }
|
|||
|
|
`).join(`
|
|||
|
|
`)}
|
|||
|
|
|
|||
|
|
.branch {
|
|||
|
|
stroke-width: 1;
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-dasharray: 2;
|
|||
|
|
}
|
|||
|
|
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
|
|||
|
|
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
|
|||
|
|
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
|
|||
|
|
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
|
|||
|
|
.tag-hole { fill: ${i.textColor}; }
|
|||
|
|
|
|||
|
|
.commit-merge {
|
|||
|
|
stroke: ${i.primaryColor};
|
|||
|
|
fill: ${i.primaryColor};
|
|||
|
|
}
|
|||
|
|
.commit-reverse {
|
|||
|
|
stroke: ${i.primaryColor};
|
|||
|
|
fill: ${i.primaryColor};
|
|||
|
|
stroke-width: 3;
|
|||
|
|
}
|
|||
|
|
.commit-highlight-outer {
|
|||
|
|
}
|
|||
|
|
.commit-highlight-inner {
|
|||
|
|
stroke: ${i.primaryColor};
|
|||
|
|
fill: ${i.primaryColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|||
|
|
.gitTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var Yme=function(){var i=function(G,xe,U,Be){for(U=U||{},Be=G.length;Be--;U[G[Be]]=xe);return U},s=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],u=[1,25],d=[1,26],p=[1,27],v=[1,28],b=[1,29],y=[1,30],T=[1,31],_=[1,9],A=[1,10],P=[1,11],R=[1,12],F=[1,13],j=[1,14],W=[1,15],ee=[1,16],ie=[1,18],oe=[1,19],be=[1,20],ge=[1,21],ae=[1,22],ne=[1,24],se=[1,32],de={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(xe,U,Be,Ne,je,Ie,Se){var Ce=Ie.length-1;switch(je){case 1:return Ie[Ce-1];case 2:this.$=[];break;case 3:Ie[Ce-1].push(Ie[Ce]),this.$=Ie[Ce-1];break;case 4:case 5:this.$=Ie[Ce];break;case 6:case 7:this.$=[];break;case 8:Ne.setWeekday("monday");break;case 9:Ne.setWeekday("tuesday");break;case 10:Ne.setWeekday("wednesday");break;case 11:Ne.setWeekday("thursday");break;case 12:Ne.setWeekday("friday");break;case 13:Ne.setWeekday("saturday");break;case 14:Ne.setWeekday("sunday");break;case 15:Ne.setDateFormat(Ie[Ce].substr(11)),this.$=Ie[Ce].substr(11);break;case 16:Ne.enableInclusiveEndDates(),this.$=Ie[Ce].substr(18);break;case 17:Ne.TopAxis(),this.$=Ie[Ce].substr(8);break;case 18:Ne.setAxisFormat(Ie[Ce].substr(11)),this.$=Ie[Ce].substr(11);break;case 19:Ne.setTickInterval(Ie[Ce].substr(13)),this.$=Ie[Ce].substr(13);break;case 20:Ne.setExcludes(Ie[Ce].substr(9)),this.$=Ie[Ce].substr(9);break;case 21:Ne.setIncludes(Ie[Ce].substr(9)),this.$=Ie[Ce].substr(9);break;case 22:Ne.setTodayMarker(Ie[Ce].substr(12)),this.$=Ie[Ce].substr(12);break;case 24:Ne.setDiagramTitle(Ie[Ce].substr(6)),this.$=Ie[Ce].substr(6);break;case 25:this.$=Ie[Ce].trim(),Ne.setAccTitle(this.$);break;case 26:case 27:this.$=Ie[Ce].trim(),Ne.setAccDescription(this.$);break;case 28:Ne.addSection(Ie[Ce].substr(8)),this.$=Ie[Ce].substr(8);break;case 30:Ne.addTask(Ie[Ce-1],Ie[Ce]),this.$="task";break;case 31:this.$=Ie[Ce-1],Ne.setClickEvent(Ie[Ce-1],Ie[Ce],null);break;case 32:this.$=Ie[Ce-2],Ne.setClickEvent(Ie[Ce-2],Ie[Ce-1],Ie[Ce]);break;case 33:this.$=Ie[Ce-2],Ne.setClickEvent(Ie[Ce-2],Ie[Ce-1],null),Ne.setLink(Ie[Ce-2],Ie[Ce]);break;case 34:this.$=Ie[Ce-3],Ne.setClickEvent(Ie[Ce-3],Ie[Ce-2],Ie[Ce-1]),Ne.setLink(Ie[Ce-3],Ie[Ce]);break;case 35:this.$=Ie[Ce-2],Ne.setClickEvent(Ie[Ce-2],Ie[Ce],null),Ne.setLink(Ie[Ce-2],Ie[Ce-1]);break;case 36:this.$=Ie[Ce-3],Ne.setClickEvent(Ie[Ce-3],Ie[Ce-1],Ie[Ce]),Ne.setLink(Ie[Ce-3],Ie[Ce-2]);break;case 37:this.$=Ie[Ce-1],Ne.setLink(Ie[Ce-1],Ie[Ce]);break;case 38:case 44:this.$=Ie[Ce-1]+" "+Ie[Ce];break;case 39:case 40:case 42:this.$=Ie[Ce-2]+" "+Ie[Ce-1]+" "+Ie[Ce];break;case 41:case 43:this.$=Ie[Ce-3]+" "+Ie[Ce-2]+" "+Ie[Ce-1]+" "+Ie[Ce];break}},tabl
|
|||
|
|
`+kt.showPosition()+`
|
|||
|
|
Expecting `+yi.join(", ")+", got '"+(this.terminals_[Ze]||Ze)+"'":Ba="Parse error on line "+(ke+1)+": Unexpected "+(Ze==Pe?"end of input":"'"+(this.terminals_[Ze]||Ze)+"'"),this.parseError(Ba,{text:kt.match,token:this.terminals_[Ze]||Ze,line:kt.yylineno,loc:ln,expected:yi})}if(Tt[0]instanceof Array&&Tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+Ze);switch(Tt[0]){case 1:Be.push(Ze),je.push(kt.yytext),Ie.push(kt.yylloc),Be.push(Tt[1]),Ze=null,Ke=kt.yyleng,Ce=kt.yytext,ke=kt.yylineno,ln=kt.yylloc;break;case 2:if(yt=this.productions_[Tt[1]][1],ht.$=je[je.length-yt],ht._$={first_line:Ie[Ie.length-(yt||1)].first_line,last_line:Ie[Ie.length-1].last_line,first_column:Ie[Ie.length-(yt||1)].first_column,last_column:Ie[Ie.length-1].last_column},xt&&(ht._$.range=[Ie[Ie.length-(yt||1)].range[0],Ie[Ie.length-1].range[1]]),On=this.performAction.apply(ht,[Ce,Ke,ke,Et.yy,Tt[1],je,Ie].concat(gn)),typeof On<"u")return On;yt&&(Be=Be.slice(0,-1*yt*2),je=je.slice(0,-1*yt),Ie=Ie.slice(0,-1*yt)),Be.push(this.productions_[Tt[1]][0]),je.push(ht.$),Ie.push(ht._$),Fi=Se[Be[Be.length-2]][Be[Be.length-1]],Be.push(Fi);break;case 3:return!0}}return!0}},X=function(){var G={EOF:1,parseError:function(U,Be){if(this.yy.parser)this.yy.parser.parseError(U,Be);else throw new Error(U)},setInput:function(xe,U){return this.yy=U||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 U=xe.match(/(?:\r\n?|\n).*/g);return U?(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 U=xe.length,Be=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-U),this.offset-=U;var Ne=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 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:Be?(Be.length===Ne.length?this.yylloc.first_column:0)+Ne[Ne.length-Be.length].length-Be[0].length:this.yylloc.first_column-U},this.options.ranges&&(this.yylloc.range=[je[0],je[0]+this.yyleng-U]),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(),U=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+`
|
|||
|
|
`+U+"^"},test_match:function(xe,U){var Be,Ne,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))),Ne=xe[0].match(/(?:\r\n?|\n).*/g),Ne&&(this.yylineno+=Ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ne?Ne[Ne.length-1].length-Ne[Ne.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],Be=this.performAction.call(this,this.yy,this,U,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Be)return Be;if(this._backtrack){for(var Ie in je)this[Ie]=je[Ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var xe,U,Be,Ne;this._more||(this.yytext="",this.match="");for(var je=this._currentRules(),Ie=0;Ie<je.length;Ie++)if(Be=this._input.match(this.rules[je[Ie]]),Be&&(!U||Be[0].length>U[0].length)){if(U=Be,Ne=Ie,this.options.backtrack_lexer){if(xe=this.test_match(Be,je[Ie]),xe!==!1)return xe;if(this._backtrack){U=!1;continue}else return!1}else if(!this.options.flex)break}return U?(xe=this.test_match(U,je[Ne]),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 U=this.next();return U||this.lex()},begin:function(U){this.conditionStack.push(U)},popState:function(){var U=this.conditionStack.length-1;return U>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(U){return U=this.conditionStack.length-1-Math.abs(U||0),U>=0?this.conditionStack[U]:"INITIAL"},pushState:function(U){this.begin(U)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(U,Be,Ne,je){switch(Ne){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/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,/^(?: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,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,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],inclusive:!0}}};return G}();de.lexer=X;function pe(){this.yy={}}return pe.prototype=de,de.Parser=pe,new pe}();Yme.parser=Yme;const Otn=Yme;var ZUe={exports:{}};(function(i,s){(function(u,d){i.exports=d()})(_g,function(){var u="day";return function(d,p,v){var b=function(_){return _.add(4-_.isoWeekday(),u)},y=p.prototype;y.isoWeekYear=function(){return b(this).year()},y.isoWeek=function(_){if(!this.$utils().u(_))return this.add(7*(_-this.isoWeek()),u);var A,P,R,F,j=b(this),W=(A=this.isoWeekYear(),P=this.$u,R=(P?v.utc:v)().year(A).startOf("year"),F=4-R.isoWe
|
|||
|
|
.mermaid-main-font {
|
|||
|
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.exclude-range {
|
|||
|
|
fill: ${i.excludeBkgColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.section {
|
|||
|
|
stroke: none;
|
|||
|
|
opacity: 0.2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.section0 {
|
|||
|
|
fill: ${i.sectionBkgColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.section2 {
|
|||
|
|
fill: ${i.sectionBkgColor2};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.section1,
|
|||
|
|
.section3 {
|
|||
|
|
fill: ${i.altSectionBkgColor};
|
|||
|
|
opacity: 0.2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sectionTitle0 {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sectionTitle1 {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sectionTitle2 {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sectionTitle3 {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sectionTitle {
|
|||
|
|
text-anchor: start;
|
|||
|
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Grid and axis */
|
|||
|
|
|
|||
|
|
.grid .tick {
|
|||
|
|
stroke: ${i.gridColor};
|
|||
|
|
opacity: 0.8;
|
|||
|
|
shape-rendering: crispEdges;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.grid .tick text {
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.grid path {
|
|||
|
|
stroke-width: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Today line */
|
|||
|
|
|
|||
|
|
.today {
|
|||
|
|
fill: none;
|
|||
|
|
stroke: ${i.todayLineColor};
|
|||
|
|
stroke-width: 2px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Task styling */
|
|||
|
|
|
|||
|
|
/* Default task */
|
|||
|
|
|
|||
|
|
.task {
|
|||
|
|
stroke-width: 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutsideRight {
|
|||
|
|
fill: ${i.taskTextDarkColor};
|
|||
|
|
text-anchor: start;
|
|||
|
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutsideLeft {
|
|||
|
|
fill: ${i.taskTextDarkColor};
|
|||
|
|
text-anchor: end;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Special case clickable */
|
|||
|
|
|
|||
|
|
.task.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskText.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutsideLeft.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutsideRight.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Specific task settings for the sections*/
|
|||
|
|
|
|||
|
|
.taskText0,
|
|||
|
|
.taskText1,
|
|||
|
|
.taskText2,
|
|||
|
|
.taskText3 {
|
|||
|
|
fill: ${i.taskTextColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.task0,
|
|||
|
|
.task1,
|
|||
|
|
.task2,
|
|||
|
|
.task3 {
|
|||
|
|
fill: ${i.taskBkgColor};
|
|||
|
|
stroke: ${i.taskBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutside0,
|
|||
|
|
.taskTextOutside2
|
|||
|
|
{
|
|||
|
|
fill: ${i.taskTextOutsideColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.taskTextOutside1,
|
|||
|
|
.taskTextOutside3 {
|
|||
|
|
fill: ${i.taskTextOutsideColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Active task */
|
|||
|
|
|
|||
|
|
.active0,
|
|||
|
|
.active1,
|
|||
|
|
.active2,
|
|||
|
|
.active3 {
|
|||
|
|
fill: ${i.activeTaskBkgColor};
|
|||
|
|
stroke: ${i.activeTaskBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activeText0,
|
|||
|
|
.activeText1,
|
|||
|
|
.activeText2,
|
|||
|
|
.activeText3 {
|
|||
|
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Completed task */
|
|||
|
|
|
|||
|
|
.done0,
|
|||
|
|
.done1,
|
|||
|
|
.done2,
|
|||
|
|
.done3 {
|
|||
|
|
stroke: ${i.doneTaskBorderColor};
|
|||
|
|
fill: ${i.doneTaskBkgColor};
|
|||
|
|
stroke-width: 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.doneText0,
|
|||
|
|
.doneText1,
|
|||
|
|
.doneText2,
|
|||
|
|
.doneText3 {
|
|||
|
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* Tasks on the critical line */
|
|||
|
|
|
|||
|
|
.crit0,
|
|||
|
|
.crit1,
|
|||
|
|
.crit2,
|
|||
|
|
.crit3 {
|
|||
|
|
stroke: ${i.critBorderColor};
|
|||
|
|
fill: ${i.critBkgColor};
|
|||
|
|
stroke-width: 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activeCrit0,
|
|||
|
|
.activeCrit1,
|
|||
|
|
.activeCrit2,
|
|||
|
|
.activeCrit3 {
|
|||
|
|
stroke: ${i.critBorderColor};
|
|||
|
|
fill: ${i.activeTaskBkgColor};
|
|||
|
|
stroke-width: 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.doneCrit0,
|
|||
|
|
.doneCrit1,
|
|||
|
|
.doneCrit2,
|
|||
|
|
.doneCrit3 {
|
|||
|
|
stroke: ${i.critBorderColor};
|
|||
|
|
fill: ${i.doneTaskBkgColor};
|
|||
|
|
stroke-width: 2;
|
|||
|
|
cursor: pointer;
|
|||
|
|
shape-rendering: crispEdges;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.milestone {
|
|||
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.milestoneText {
|
|||
|
|
font-style: italic;
|
|||
|
|
}
|
|||
|
|
.doneCritText0,
|
|||
|
|
.doneCritText1,
|
|||
|
|
.doneCritText2,
|
|||
|
|
.doneCritText3 {
|
|||
|
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activeCritText0,
|
|||
|
|
.activeCritText1,
|
|||
|
|
.activeCritText2,
|
|||
|
|
.activeCritText3 {
|
|||
|
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.titleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.titleColor||i.textColor};
|
|||
|
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
|
}
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var cve=function(){var i=function(v,b,y,T){for(y=y||{},T=v.length;T--;y[v[T]]=b);return y},s=[6,9,10],u={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,y,T,_,A,P,R){switch(P.length-1,A){case 1:return _;case 4:break;case 6:_.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(s,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(s,[2,3]),i(s,[2,4]),i(s,[2,5]),i(s,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,y){if(y.recoverable)this.trace(b);else{var T=new Error(b);throw T.hash=y,T}},parse:function(b){var y=this,T=[0],_=[],A=[null],P=[],R=this.table,F="",j=0,W=0,ee=2,ie=1,oe=P.slice.call(arguments,1),be=Object.create(this.lexer),ge={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ge.yy[ae]=this.yy[ae]);be.setInput(b,ge.yy),ge.yy.lexer=be,ge.yy.parser=this,typeof be.yylloc>"u"&&(be.yylloc={});var ne=be.yylloc;P.push(ne);var se=be.options&&be.options.ranges;typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(){var Ce;return Ce=_.pop()||be.lex()||ie,typeof Ce!="number"&&(Ce instanceof Array&&(_=Ce,Ce=_.pop()),Ce=y.symbols_[Ce]||Ce),Ce}for(var X,pe,G,xe,U={},Be,Ne,je,Ie;;){if(pe=T[T.length-1],this.defaultActions[pe]?G=this.defaultActions[pe]:((X===null||typeof X>"u")&&(X=de()),G=R[pe]&&R[pe][X]),typeof G>"u"||!G.length||!G[0]){var Se="";Ie=[];for(Be in R[pe])this.terminals_[Be]&&Be>ee&&Ie.push("'"+this.terminals_[Be]+"'");be.showPosition?Se="Parse error on line "+(j+1)+`:
|
|||
|
|
`+be.showPosition()+`
|
|||
|
|
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Se="Parse error on line "+(j+1)+": Unexpected "+(X==ie?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Se,{text:be.match,token:this.terminals_[X]||X,line:be.yylineno,loc:ne,expected:Ie})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+X);switch(G[0]){case 1:T.push(X),A.push(be.yytext),P.push(be.yylloc),T.push(G[1]),X=null,W=be.yyleng,F=be.yytext,j=be.yylineno,ne=be.yylloc;break;case 2:if(Ne=this.productions_[G[1]][1],U.$=A[A.length-Ne],U._$={first_line:P[P.length-(Ne||1)].first_line,last_line:P[P.length-1].last_line,first_column:P[P.length-(Ne||1)].first_column,last_column:P[P.length-1].last_column},se&&(U._$.range=[P[P.length-(Ne||1)].range[0],P[P.length-1].range[1]]),xe=this.performAction.apply(U,[F,W,j,ge.yy,G[1],A,P].concat(oe)),typeof xe<"u")return xe;Ne&&(T=T.slice(0,-1*Ne*2),A=A.slice(0,-1*Ne),P=P.slice(0,-1*Ne)),T.push(this.productions_[G[1]][0]),A.push(U.$),P.push(U._$),je=R[T[T.length-2]][T[T.length-1]],T.push(je);break;case 3:return!0}}return!0}},d=function(){var v={EOF:1,parseError:function(y,T){if(this.yy.parser)this.yy.parser.parseError(y,T);else throw new Error(y)},setInput:function(b,y){return this.yy=y||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 y=b.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),b},unput:function(b){var y=b.length,T=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var _=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),T.length-1&&(this.yylineno-=T.length-1);var A=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:T?(T.length===_.length?this.yylloc.first_column:0)+_[_.length-T.length].length-T[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[A[0],A[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(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(),y=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|||
|
|
`+y+"^"},test_match:function(b,y){var T,_,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),_=b[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.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],T=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var P in A)this[P]=A[P];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,y,T,_;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),P=0;P<A.length;P++)if(T=this._input.match(this.rules[A[P]]),T&&(!y||T[0].length>y[0].length)){if(y=T,_=P,this.options.backtrack_lexer){if(b=this.test_match(T,A[P]),b!==!1)return b;if(this._backtrack){y=!1;continue}else return!1}else if(!this.options.flex)break}return y?(b=this.test_match(y,A[_]),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 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,T,_,A){switch(_){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 v}();u.lexer=d;function p(){this.yy={}}return p.prototype=u,u.Parser=p,new p}();cve.parser=cve;const knn=cve,dGe={info:!1};let uve=dGe.info;const Enn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:knn,db:{clear:()=>{uve=dGe.info},setInfo:i=>{uve=i},getInfo:()=>uve},renderer:{draw:(i,s,u)=>{Xe.debug(`rendering info diagram
|
|||
|
|
`+i);const d=iR(s);Og(d,100,400,!0),d.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${u}`)}}}},Symbol.toStringTag,{value:"Module"}));var lve=function(){var i=function(be,ge,ae,ne){for(ae=ae||{},ne=be.length;ne--;ae[be[ne]]=ge);return ae},s=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[1,10,12,14,16,18,19,20,21,22],b=[2,4],y=[1,5,10,12,14,16,18,19,20,21,22],T=[20,21,22],_=[2,7],A=[1,12],P=[1,13],R=[1,14],F=[1,15],j=[1,16],W=[1,17],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",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:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(ge,ae,ne,se,de,X,pe){var G=X.length-1;switch(de){case 3:se.setShowData(!0);break;case 6:this.$=X[G-1];break;case 8:se.addSection(X[G-1],se.cleanupValue(X[G]));break;case 9:this.$=X[G].trim(),se.setDiagramTitle(this.$);break;case 10:this.$=X[G].trim(),se.setAccTitle(this.$);break;case 11:case 12:this.$=X[G].trim(),se.setAccDescription(this.$);break;case 13:se.addSection(X[G].substr(8)),this.$=X[G].substr(8);break}},table:[{3:1,4:2,5:s,20:u,21:d,22:p},{1:[3]},{3:7,4:2,5:s,20:u,21:d,22:p},i(v,b,{6:8,7:[1,9]}),i(y,[2,14]),i(y,[2,15]),i(y,[2,16]),{1:[2,1]},i(T,_,{8:10,9:11,1:[2,2],10:A,12:P,14:R,16:F,18:j,19:W}),i(v,b,{6:18}),i(v,[2,5]),{4:19,20:u,21:d,22:p},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(T,[2,12]),i(T,[2,13]),i(T,_,{8:10,9:11,1:[2,3],10:A,12:P,14:R,16:F,18:j,19:W}),i(v,[2,6]),i(T,[2,8]),i(T,[2,9]),i(T,[2,10]),i(T,[2,11])],defaultActions:{7:[2,1]},parseError:function(ge,ae){if(ae.recoverable)this.trace(ge);else{var ne=new Error(ge);throw ne.hash=ae,ne}},parse:function(ge){var ae=this,ne=[0],se=[],de=[null],X=[],pe=this.table,G="",xe=0,U=0,Be=2,Ne=1,je=X.slice.call(arguments,1),Ie=Object.create(this.lexer),Se={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(Se.yy[Ce]=this.yy[Ce]);Ie.setInput(ge,Se.yy),Se.yy.lexer=Ie,Se.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var ke=Ie.yylloc;X.push(ke);var Ke=Ie.options&&Ie.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ft(){var Tt;return Tt=se.pop()||Ie.lex()||Ne,typeof Tt!="number"&&(Tt instanceof Array&&(se=Tt,Tt=se.pop()),Tt=ae.symbols_[Tt]||Tt),Tt}for(var Pe,gn,kt,Et,Gt={},ln,xt,Pt,Ze;;){if(gn=ne[ne.length-1],this.defaultActions[gn]?kt=this.defaultActions[gn]:((Pe===null||typeof Pe>"u")&&(Pe=Ft()),kt=pe[gn]&&pe[gn][Pe]),typeof kt>"u"||!kt.length||!kt[0]){var At="";Ze=[];for(ln in pe[gn])this.terminals_[ln]&&ln>Be&&Ze.push("'"+this.terminals_[ln]+"'");Ie.showPosition?At="Parse error on line "+(xe+1)+`:
|
|||
|
|
`+Ie.showPosition()+`
|
|||
|
|
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":At="Parse error on line "+(xe+1)+": Unexpected "+(Pe==Ne?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(At,{text:Ie.match,token:this.terminals_[Pe]||Pe,line:Ie.yylineno,loc:ke,expected:Ze})}if(kt[0]instanceof Array&&kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gn+", token: "+Pe);switch(kt[0]){case 1:ne.push(Pe),de.push(Ie.yytext),X.push(Ie.yylloc),ne.push(kt[1]),Pe=null,U=Ie.yyleng,G=Ie.yytext,xe=Ie.yylineno,ke=Ie.yylloc;break;case 2:if(xt=this.productions_[kt[1]][1],Gt.$=de[de.length-xt],Gt._$={first_line:X[X.length-(xt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(xt||1)].first_column,last_column:X[X.length-1].last_column},Ke&&(Gt._$.range=[X[X.length-(xt||1)].range[0],X[X.length-1].range[1]]),Et=this.performAction.apply(Gt,[G,U,xe,Se.yy,kt[1],de,X].concat(je)),typeof Et<"u")return Et;xt&&(ne=ne.slice(0,-1*xt*2),de=de.slice(0,-1*xt),X=X.slice(0,-1*xt)),ne.push(this.productions_[kt[1]][0]),de.push(Gt.$),X.push(Gt._$),Pt=pe[ne[ne.length-2]][ne[ne.length-1]],ne.push(Pt);break;case 3:return!0}}return!0}},ie=function(){var be={EOF:1,parseError:function(ae,ne){if(this.yy.parser)this.yy.parser.parseError(ae,ne);else throw new Error(ae)},setInput:function(ge,ae){return this.yy=ae||this.yy||{},this._input=ge,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 ge=this._input[0];this.yytext+=ge,this.yyleng++,this.offset++,this.match+=ge,this.matched+=ge;var ae=ge.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),ge},unput:function(ge){var ae=ge.length,ne=ge.split(/(?:\r\n?|\n)/g);this._input=ge+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var de=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:ne?(ne.length===se.length?this.yylloc.first_column:0)+se[se.length-ne.length].length-ne[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[de[0],de[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(ge){this.unput(this.match.slice(ge))},pastInput:function(){var ge=this.matched.substr(0,this.matched.length-this.match.length);return(ge.length>20?"...":"")+ge.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ge=this.match;return ge.length<20&&(ge+=this._input.substr(0,20-ge.length)),(ge.substr(0,20)+(ge.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ge=this.pastInput(),ae=new Array(ge.length+1).join("-");return ge+this.upcomingInput()+`
|
|||
|
|
`+ae+"^"},test_match:function(ge,ae){var ne,se,de;if(this.options.backtrack_lexer&&(de={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&&(de.yylloc.range=this.yylloc.range.slice(0))),se=ge[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ge[0].length},this.yytext+=ge[0],this.match+=ge[0],this.matches=ge,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(ge[0].length),this.matched+=ge[0],ne=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var X in de)this[X]=de[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ge,ae,ne,se;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),X=0;X<de.length;X++)if(ne=this._input.match(this.rules[de[X]]),ne&&(!ae||ne[0].length>ae[0].length)){if(ae=ne,se=X,this.options.backtrack_lexer){if(ge=this.test_match(ne,de[X]),ge!==!1)return ge;if(this._backtrack){ae=!1;continue}else return!1}else if(!this.options.flex)break}return ae?(ge=this.test_match(ae,de[se]),ge!==!1?ge:!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,ne,se,de){switch(se){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;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"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\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:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return be}();ee.lexer=ie;function oe(){this.yy={}}return oe.prototype=ee,ee.Parser=oe,new oe}();lve.parser=lve;const Tnn=lve,gGe=sh.pie,fJ={sections:{},showData:!1,config:gGe};let dJ=fJ.sections,hve=fJ.showData;const Cnn=structuredClone(gGe),Snn={getConfig:()=>structuredClone(Cnn),clear:()=>{dJ=structuredClone(fJ.sections),hve=fJ.showData,Ng()},setDiagramTitle:om,getDiagramTitle:Lp,setAccTitle:Pg,getAccTitle:Sp,setAccDescription:_p,getAccDescription:Ap,addSection:(i,s)=>{i=yh(i,qt()),dJ[i]===void 0&&(dJ[i]=s,Xe.debug(`added new section: ${i}, with value: ${s}`))},getSections:()=>dJ,cleanupValue:i=>(i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())),setShowData:i=>{hve=i},getShowData:()=>hve},_nn=i=>`
|
|||
|
|
.pieCircle{
|
|||
|
|
stroke: ${i.pieStrokeColor};
|
|||
|
|
stroke-width : ${i.pieStrokeWidth};
|
|||
|
|
opacity : ${i.pieOpacity};
|
|||
|
|
}
|
|||
|
|
.pieOuterCircle{
|
|||
|
|
stroke: ${i.pieOuterStrokeColor};
|
|||
|
|
stroke-width: ${i.pieOuterStrokeWidth};
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
.pieTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: ${i.pieTitleTextSize};
|
|||
|
|
fill: ${i.pieTitleTextColor};
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
}
|
|||
|
|
.slice {
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
fill: ${i.pieSectionTextColor};
|
|||
|
|
font-size:${i.pieSectionTextSize};
|
|||
|
|
// fill: white;
|
|||
|
|
}
|
|||
|
|
.legend text {
|
|||
|
|
fill: ${i.pieLegendTextColor};
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: ${i.pieLegendTextSize};
|
|||
|
|
}
|
|||
|
|
`,Ann=i=>{const s=Object.entries(i).map(d=>({label:d[0],value:d[1]})).sort((d,p)=>p.value-d.value);return LNt().value(d=>d.value)(s)},Lnn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Tnn,db:Snn,renderer:{draw:(i,s,u,d)=>{Xe.debug(`rendering pie chart
|
|||
|
|
`+i);const p=d.db,v=qt(),b=ZF(p.getConfig(),v.pie),y=40,T=18,_=4,A=450,P=A,R=iR(s),F=R.append("g"),j=p.getSections();F.attr("transform","translate("+P/2+","+A/2+")");const{themeVariables:W}=v;let[ee]=OC(W.pieOuterStrokeWidth);ee??(ee=2);const ie=b.textPosition,oe=Math.min(P,A)/2-y,be=uD().innerRadius(0).outerRadius(oe),ge=uD().innerRadius(oe*ie).outerRadius(oe*ie);F.append("circle").attr("cx",0).attr("cy",0).attr("r",oe+ee/2).attr("class","pieOuterCircle");const ae=Ann(j),ne=[W.pie1,W.pie2,W.pie3,W.pie4,W.pie5,W.pie6,W.pie7,W.pie8,W.pie9,W.pie10,W.pie11,W.pie12],se=SF(ne);F.selectAll("mySlices").data(ae).enter().append("path").attr("d",be).attr("fill",xe=>se(xe.data.label)).attr("class","pieCircle");let de=0;Object.keys(j).forEach(xe=>{de+=j[xe]}),F.selectAll("mySlices").data(ae).enter().append("text").text(xe=>(xe.data.value/de*100).toFixed(0)+"%").attr("transform",xe=>"translate("+ge.centroid(xe)+")").style("text-anchor","middle").attr("class","slice"),F.append("text").text(p.getDiagramTitle()).attr("x",0).attr("y",-(A-50)/2).attr("class","pieTitleText");const X=F.selectAll(".legend").data(se.domain()).enter().append("g").attr("class","legend").attr("transform",(xe,U)=>{const Be=T+_,Ne=Be*se.domain().length/2,je=12*T,Ie=U*Be-Ne;return"translate("+je+","+Ie+")"});X.append("rect").attr("width",T).attr("height",T).style("fill",se).style("stroke",se),X.data(ae).append("text").attr("x",T+_).attr("y",T-_).text(xe=>{const{label:U,value:Be}=xe.data;return p.getShowData()?`${U} [${Be}]`:U});const pe=Math.max(...X.selectAll("text").nodes().map(xe=>(xe==null?void 0:xe.getBoundingClientRect().width)??0)),G=P+y+T+_+pe;R.attr("viewBox",`0 0 ${G} ${A}`),Og(R,A,G,b.useMaxWidth)}},styles:_nn}},Symbol.toStringTag,{value:"Module"}));var fve=function(){var i=function(kt,Et,Gt,ln){for(Gt=Gt||{},ln=kt.length;ln--;Gt[kt[ln]]=Et);return Gt},s=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[1,7],b=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],y=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],T=[32,33,34],_=[2,7],A=[1,13],P=[1,17],R=[1,18],F=[1,19],j=[1,20],W=[1,21],ee=[1,22],ie=[1,23],oe=[1,24],be=[1,25],ge=[1,26],ae=[1,27],ne=[1,30],se=[1,31],de=[1,32],X=[1,33],pe=[1,34],G=[1,35],xe=[1,36],U=[1,37],Be=[1,38],Ne=[1,39],je=[1,40],Ie=[1,41],Se=[1,42],Ce=[1,57],ke=[1,58],Ke=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],Ft={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points: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,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",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",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(Et,Gt,ln,xt,Pt,Ze,At){var Tt=Ze.length-1;switch(Pt){case 12:this.$=Ze[Tt].trim(),xt.setDiagramTitle(this.$);break;case 13:this.
|
|||
|
|
`+yi.showPosition()+`
|
|||
|
|
Expecting `+Io.join(", ")+", got '"+(this.terminals_[$n]||$n)+"'":Xa="Parse error on line "+(On+1)+": Unexpected "+($n==yt?"end of input":"'"+(this.terminals_[$n]||$n)+"'"),this.parseError(Xa,{text:yi.match,token:this.terminals_[$n]||$n,line:yi.yylineno,loc:Ro,expected:Io})}if(Lt[0]instanceof Array&&Lt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qn+", token: "+$n);switch(Lt[0]){case 1:ln.push($n),Pt.push(yi.yytext),Ze.push(yi.yylloc),ln.push(Lt[1]),$n=null,ht=yi.yyleng,Tt=yi.yytext,On=yi.yylineno,Ro=yi.yylloc;break;case 2:if(Mn=this.productions_[Lt[1]][1],cn.$=Pt[Pt.length-Mn],cn._$={first_line:Ze[Ze.length-(Mn||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(Mn||1)].first_column,last_column:Ze[Ze.length-1].last_column},_r&&(cn._$.range=[Ze[Ze.length-(Mn||1)].range[0],Ze[Ze.length-1].range[1]]),wt=this.performAction.apply(cn,[Tt,ht,On,Ba.yy,Lt[1],Pt,Ze].concat(Fi)),typeof wt<"u")return wt;Mn&&(ln=ln.slice(0,-1*Mn*2),Pt=Pt.slice(0,-1*Mn),Ze=Ze.slice(0,-1*Mn)),ln.push(this.productions_[Lt[1]][0]),Pt.push(cn.$),Ze.push(cn._$),mo=At[ln[ln.length-2]][ln[ln.length-1]],ln.push(mo);break;case 3:return!0}}return!0}},Pe=function(){var kt={EOF:1,parseError:function(Gt,ln){if(this.yy.parser)this.yy.parser.parseError(Gt,ln);else throw new Error(Gt)},setInput:function(Et,Gt){return this.yy=Gt||this.yy||{},this._input=Et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var Gt=Et.match(/(?:\r\n?|\n).*/g);return Gt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},unput:function(Et){var Gt=Et.length,ln=Et.split(/(?:\r\n?|\n)/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var xt=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),ln.length-1&&(this.yylineno-=ln.length-1);var Pt=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:ln?(ln.length===xt.length?this.yylloc.first_column:0)+xt[xt.length-ln.length].length-ln[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[Pt[0],Pt[0]+this.yyleng-Gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Et){this.unput(this.match.slice(Et))},pastInput:function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Et=this.pastInput(),Gt=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+`
|
|||
|
|
`+Gt+"^"},test_match:function(Et,Gt){var ln,xt,Pt;if(this.options.backtrack_lexer&&(Pt={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&&(Pt.yylloc.range=this.yylloc.range.slice(0))),xt=Et[0].match(/(?:\r\n?|\n).*/g),xt&&(this.yylineno+=xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xt?xt[xt.length-1].length-xt[xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Et[0].length),this.matched+=Et[0],ln=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ln)return ln;if(this._backtrack){for(var Ze in Pt)this[Ze]=Pt[Ze];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,Gt,ln,xt;this._more||(this.yytext="",this.match="");for(var Pt=this._currentRules(),Ze=0;Ze<Pt.length;Ze++)if(ln=this._input.match(this.rules[Pt[Ze]]),ln&&(!Gt||ln[0].length>Gt[0].length)){if(Gt=ln,xt=Ze,this.options.backtrack_lexer){if(Et=this.test_match(ln,Pt[Ze]),Et!==!1)return Et;if(this._backtrack){Gt=!1;continue}else return!1}else if(!this.options.flex)break}return Gt?(Et=this.test_match(Gt,Pt[xt]),Et!==!1?Et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Gt=this.next();return Gt||this.lex()},begin:function(Gt){this.conditionStack.push(Gt)},popState:function(){var Gt=this.conditionStack.length-1;return Gt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Gt){return Gt=this.conditionStack.length-1-Math.abs(Gt||0),Gt>=0?this.conditionStack[Gt]:"INITIAL"},pushState:function(Gt){this.begin(Gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Gt,ln,xt,Pt){switch(xt){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;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 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return kt}();Ft.lexer=Pe;function gn(){this.yy={}}return gn.prototype=Ft,Ft.Parser=gn,new gn}();fve.parser=fve;const Mnn=fve,Bp=f2e();class Dnn{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,u,d,p,v,b,y,T,_,A,P,R,F,j,W,ee,ie,oe;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=sh.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((u=sh.quadrantChart)==null?void 0:u.chartHeight)||500,titlePadding:(
|
|||
|
|
`+i);const T=y.securityLevel;let _;T==="sandbox"&&(_=Ir("#i"+s));const P=Ir(T==="sandbox"?_.nodes()[0].contentDocument.body:"body").select(`[id="${s}"]`),R=P.append("g").attr("class","main"),F=((de=y.quadrantChart)==null?void 0:de.chartWidth)||500,j=((X=y.quadrantChart)==null?void 0:X.chartHeight)||500;Og(P,j,F,((pe=y.quadrantChart)==null?void 0:pe.useMaxWidth)||!0),P.attr("viewBox","0 0 "+F+" "+j),d.db.setHeight(j),d.db.setWidth(F);const W=d.db.getQuadrantData(),ee=R.append("g").attr("class","quadrants"),ie=R.append("g").attr("class","border"),oe=R.append("g").attr("class","data-points"),be=R.append("g").attr("class","labels"),ge=R.append("g").attr("class","title");W.title&&ge.append("text").attr("x",0).attr("y",0).attr("fill",W.title.fill).attr("font-size",W.title.fontSize).attr("dominant-baseline",p(W.title.horizontalPos)).attr("text-anchor",v(W.title.verticalPos)).attr("transform",b(W.title)).text(W.title.text),W.borderLines&&ie.selectAll("line").data(W.borderLines).enter().append("line").attr("x1",G=>G.x1).attr("y1",G=>G.y1).attr("x2",G=>G.x2).attr("y2",G=>G.y2).style("stroke",G=>G.strokeFill).style("stroke-width",G=>G.strokeWidth);const ae=ee.selectAll("g.quadrant").data(W.quadrants).enter().append("g").attr("class","quadrant");ae.append("rect").attr("x",G=>G.x).attr("y",G=>G.y).attr("width",G=>G.width).attr("height",G=>G.height).attr("fill",G=>G.fill),ae.append("text").attr("x",0).attr("y",0).attr("fill",G=>G.text.fill).attr("font-size",G=>G.text.fontSize).attr("dominant-baseline",G=>p(G.text.horizontalPos)).attr("text-anchor",G=>v(G.text.verticalPos)).attr("transform",G=>b(G.text)).text(G=>G.text.text),be.selectAll("g.label").data(W.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(G=>G.text).attr("fill",G=>G.fill).attr("font-size",G=>G.fontSize).attr("dominant-baseline",G=>p(G.horizontalPos)).attr("text-anchor",G=>v(G.verticalPos)).attr("transform",G=>b(G));const se=oe.selectAll("g.data-point").data(W.points).enter().append("g").attr("class","data-point");se.append("circle").attr("cx",G=>G.x).attr("cy",G=>G.y).attr("r",G=>G.radius).attr("fill",G=>G.fill),se.append("text").attr("x",0).attr("y",0).text(G=>G.text.text).attr("fill",G=>G.text.fill).attr("font-size",G=>G.text.fontSize).attr("dominant-baseline",G=>p(G.text.horizontalPos)).attr("text-anchor",G=>v(G.text.verticalPos)).attr("transform",G=>b(G.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var dve=function(){var i=function(Ne,je,Ie,Se){for(Ie=Ie||{},Se=Ne.length;Se--;Ie[Ne[Se]]=je);return Ie},s=[1,10,12,14,16,18,19,21,23],u=[2,6],d=[1,3],p=[1,5],v=[1,6],b=[1,7],y=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],_=[1,26],A=[1,28],P=[1,29],R=[1,30],F=[1,31],j=[1,32],W=[1,33],ee=[1,34],ie=[1,35],oe=[1,36],be=[1,37],ge=[1,43],ae=[1,42],ne=[1,47],se=[1,50],de=[1,10,12,14,16,18,19,21,23,34,35,36],X=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],pe=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],G=[1,64],xe={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:
|
|||
|
|
`+xt.showPosition()+`
|
|||
|
|
Expecting `+_r.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":Nn="Parse error on line "+(gn+1)+": Unexpected "+(ht==Gt?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(Nn,{text:xt.match,token:this.terminals_[ht]||ht,line:xt.yylineno,loc:At,expected:_r})}if(yt[0]instanceof Array&&yt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zr+", token: "+ht);switch(yt[0]){case 1:Se.push(ht),ke.push(xt.yytext),Ke.push(xt.yylloc),Se.push(yt[1]),ht=null,kt=xt.yyleng,Pe=xt.yytext,gn=xt.yylineno,At=xt.yylloc;break;case 2:if(na=this.productions_[yt[1]][1],yi.$=ke[ke.length-na],yi._$={first_line:Ke[Ke.length-(na||1)].first_line,last_line:Ke[Ke.length-1].last_line,first_column:Ke[Ke.length-(na||1)].first_column,last_column:Ke[Ke.length-1].last_column},Tt&&(yi._$.range=[Ke[Ke.length-(na||1)].range[0],Ke[Ke.length-1].range[1]]),Fi=this.performAction.apply(yi,[Pe,kt,gn,Pt.yy,yt[1],ke,Ke].concat(ln)),typeof Fi<"u")return Fi;na&&(Se=Se.slice(0,-1*na*2),ke=ke.slice(0,-1*na),Ke=Ke.slice(0,-1*na)),Se.push(this.productions_[yt[1]][0]),ke.push(yi.$),Ke.push(yi._$),Ro=Ft[Se[Se.length-2]][Se[Se.length-1]],Se.push(Ro);break;case 3:return!0}}return!0}},U=function(){var Ne={EOF:1,parseError:function(Ie,Se){if(this.yy.parser)this.yy.parser.parseError(Ie,Se);else throw new Error(Ie)},setInput:function(je,Ie){return this.yy=Ie||this.yy||{},this._input=je,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 je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var Ie=je.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),je},unput:function(je){var Ie=je.length,Se=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Ce=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),Se.length-1&&(this.yylineno-=Se.length-1);var ke=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:Se?(Se.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-Se.length].length-Se[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[ke[0],ke[0]+this.yyleng-Ie]),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(je){this.unput(this.match.slice(je))},pastInput:function(){var je=this.matched.substr(0,this.matched.length-this.match.length);return(je.length>20?"...":"")+je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var je=this.match;return je.length<20&&(je+=this._input.substr(0,20-je.length)),(je.substr(0,20)+(je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var je=this.pastInput(),Ie=new Array(je.length+1).join("-");return je+this.upcomingInput()+`
|
|||
|
|
`+Ie+"^"},test_match:function(je,Ie){var Se,Ce,ke;if(this.options.backtrack_lexer&&(ke={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&&(ke.yylloc.range=this.yylloc.range.slice(0))),Ce=je[0].match(/(?:\r\n?|\n).*/g),Ce&&(this.yylineno+=Ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+je[0].length},this.yytext+=je[0],this.match+=je[0],this.matches=je,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(je[0].length),this.matched+=je[0],Se=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Se)return Se;if(this._backtrack){for(var Ke in ke)this[Ke]=ke[Ke];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,Ie,Se,Ce;this._more||(this.yytext="",this.match="");for(var ke=this._currentRules(),Ke=0;Ke<ke.length;Ke++)if(Se=this._input.match(this.rules[ke[Ke]]),Se&&(!Ie||Se[0].length>Ie[0].length)){if(Ie=Se,Ce=Ke,this.options.backtrack_lexer){if(je=this.test_match(Se,ke[Ke]),je!==!1)return je;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(je=this.test_match(Ie,ke[Ce]),je!==!1?je:!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 Ie=this.next();return Ie||this.lex()},begin:function(Ie){this.conditionStack.push(Ie)},popState:function(){var Ie=this.conditionStack.length-1;return Ie>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(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},pushState:function(Ie){this.begin(Ie)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ie,Se,Ce,ke){switch(Ce){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return Ne}();xe.lexer=U;function Be(){this.yy={}}return Be.prototype=xe,xe.Parser=Be,new Be}();dve.parser=dve;const Gnn=dve;function pGe(i){return i.type==="bar"}function bGe(i){return i.type==="band"}function $R(i){return i.type==="linear"}class mGe{construc
|
|||
|
|
`+i);const A=iR(s),P=A.append("g").attr("class","main"),R=P.append("rect").attr("width",b.width).attr("height",b.height).attr("class","background");Og(A,b.height,b.width,!0),A.attr("viewBox",`0 0 ${b.width} ${b.height}`),R.attr("fill",v.backgroundColor),p.setTmpSVGG(A.append("g").attr("class","mermaid-tmp-group"));const F=p.getDrawableElem(),j={};function W(ee){let ie=P,oe="";for(const[be]of ee.entries()){let ge=P;be>0&&j[oe]&&(ge=j[oe]),oe+=ee[be],ie=j[oe],ie||(ie=j[oe]=ge.append("g").attr("class",ee[be]))}return ie}for(const ee of F){if(ee.data.length===0)continue;const ie=W(ee.groupTexts);switch(ee.type){case"rect":ie.selectAll("rect").data(ee.data).enter().append("rect").attr("x",oe=>oe.x).attr("y",oe=>oe.y).attr("width",oe=>oe.width).attr("height",oe=>oe.height).attr("fill",oe=>oe.fill).attr("stroke",oe=>oe.strokeFill).attr("stroke-width",oe=>oe.strokeWidth);break;case"text":ie.selectAll("text").data(ee.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",oe=>oe.fill).attr("font-size",oe=>oe.fontSize).attr("dominant-baseline",oe=>y(oe.verticalPos)).attr("text-anchor",oe=>T(oe.horizontalPos)).attr("transform",oe=>_(oe)).text(oe=>oe.text);break;case"path":ie.selectAll("path").data(ee.data).enter().append("path").attr("d",oe=>oe.path).attr("fill",oe=>oe.fill?oe.fill:"none").attr("stroke",oe=>oe.strokeFill).attr("stroke-width",oe=>oe.strokeWidth);break}}}}}},Symbol.toStringTag,{value:"Module"}));var mve=function(){var i=function(kt,Et,Gt,ln){for(Gt=Gt||{},ln=kt.length;ln--;Gt[kt[ln]]=Et);return Gt},s=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],b=[1,18],y=[2,7],T=[1,22],_=[1,23],A=[1,24],P=[1,25],R=[1,26],F=[1,27],j=[1,20],W=[1,28],ee=[1,29],ie=[62,63],oe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],be=[1,47],ge=[1,48],ae=[1,49],ne=[1,50],se=[1,51],de=[1,52],X=[1,53],pe=[53,54],G=[1,64],xe=[1,60],U=[1,61],Be=[1,62],Ne=[1,63],je=[1,65],Ie=[1,69],Se=[1,70],Ce=[1,67],ke=[1,68],Ke=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],Ft={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(Et,Gt,ln,xt,Pt,Ze,A
|
|||
|
|
`+yi.showPosition()+`
|
|||
|
|
Expecting `+Io.join(", ")+", got '"+(this.terminals_[$n]||$n)+"'":Xa="Parse error on line "+(On+1)+": Unexpected "+($n==yt?"end of input":"'"+(this.terminals_[$n]||$n)+"'"),this.parseError(Xa,{text:yi.match,token:this.terminals_[$n]||$n,line:yi.yylineno,loc:Ro,expected:Io})}if(Lt[0]instanceof Array&&Lt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qn+", token: "+$n);switch(Lt[0]){case 1:ln.push($n),Pt.push(yi.yytext),Ze.push(yi.yylloc),ln.push(Lt[1]),$n=null,ht=yi.yyleng,Tt=yi.yytext,On=yi.yylineno,Ro=yi.yylloc;break;case 2:if(Mn=this.productions_[Lt[1]][1],cn.$=Pt[Pt.length-Mn],cn._$={first_line:Ze[Ze.length-(Mn||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(Mn||1)].first_column,last_column:Ze[Ze.length-1].last_column},_r&&(cn._$.range=[Ze[Ze.length-(Mn||1)].range[0],Ze[Ze.length-1].range[1]]),wt=this.performAction.apply(cn,[Tt,ht,On,Ba.yy,Lt[1],Pt,Ze].concat(Fi)),typeof wt<"u")return wt;Mn&&(ln=ln.slice(0,-1*Mn*2),Pt=Pt.slice(0,-1*Mn),Ze=Ze.slice(0,-1*Mn)),ln.push(this.productions_[Lt[1]][0]),Pt.push(cn.$),Ze.push(cn._$),mo=At[ln[ln.length-2]][ln[ln.length-1]],ln.push(mo);break;case 3:return!0}}return!0}},Pe=function(){var kt={EOF:1,parseError:function(Gt,ln){if(this.yy.parser)this.yy.parser.parseError(Gt,ln);else throw new Error(Gt)},setInput:function(Et,Gt){return this.yy=Gt||this.yy||{},this._input=Et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var Gt=Et.match(/(?:\r\n?|\n).*/g);return Gt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},unput:function(Et){var Gt=Et.length,ln=Et.split(/(?:\r\n?|\n)/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var xt=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),ln.length-1&&(this.yylineno-=ln.length-1);var Pt=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:ln?(ln.length===xt.length?this.yylloc.first_column:0)+xt[xt.length-ln.length].length-ln[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[Pt[0],Pt[0]+this.yyleng-Gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Et){this.unput(this.match.slice(Et))},pastInput:function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Et=this.pastInput(),Gt=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+`
|
|||
|
|
`+Gt+"^"},test_match:function(Et,Gt){var ln,xt,Pt;if(this.options.backtrack_lexer&&(Pt={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&&(Pt.yylloc.range=this.yylloc.range.slice(0))),xt=Et[0].match(/(?:\r\n?|\n).*/g),xt&&(this.yylineno+=xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xt?xt[xt.length-1].length-xt[xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Et[0].length),this.matched+=Et[0],ln=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ln)return ln;if(this._backtrack){for(var Ze in Pt)this[Ze]=Pt[Ze];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,Gt,ln,xt;this._more||(this.yytext="",this.match="");for(var Pt=this._currentRules(),Ze=0;Ze<Pt.length;Ze++)if(ln=this._input.match(this.rules[Pt[Ze]]),ln&&(!Gt||ln[0].length>Gt[0].length)){if(Gt=ln,xt=Ze,this.options.backtrack_lexer){if(Et=this.test_match(ln,Pt[Ze]),Et!==!1)return Et;if(this._backtrack){Gt=!1;continue}else return!1}else if(!this.options.flex)break}return Gt?(Et=this.test_match(Gt,Pt[xt]),Et!==!1?Et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Gt=this.next();return Gt||this.lex()},begin:function(Gt){this.conditionStack.push(Gt)},popState:function(){var Gt=this.conditionStack.length-1;return Gt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Gt){return Gt=this.conditionStack.length-1-Math.abs(Gt||0),Gt>=0?this.conditionStack[Gt]:"INITIAL"},pushState:function(Gt){this.begin(Gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Gt,ln,xt,Pt){switch(xt){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return ln.yytext=ln.yytext.trim(),62}},rules:[/^(?: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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,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,50],inclusive:!0}}};return kt}();Ft.lexer=Pe;function gn(){this.yy={}}return gn.prototype=Ft,Ft.Parser=gn,new gn}();mve.parser=mve;const brn=mve;let vve=[],U2={},VR={},B9={},UR={};const mrn={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>qt().req,addRequireme
|
|||
|
|
|
|||
|
|
marker {
|
|||
|
|
fill: ${i.relationColor};
|
|||
|
|
stroke: ${i.relationColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
marker.cross {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
svg {
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: ${i.fontSize};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.reqBox {
|
|||
|
|
fill: ${i.requirementBackground};
|
|||
|
|
fill-opacity: 1.0;
|
|||
|
|
stroke: ${i.requirementBorderColor};
|
|||
|
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.reqTitle, .reqLabel{
|
|||
|
|
fill: ${i.requirementTextColor};
|
|||
|
|
}
|
|||
|
|
.reqLabelBox {
|
|||
|
|
fill: ${i.relationLabelBackground};
|
|||
|
|
fill-opacity: 1.0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.req-title-line {
|
|||
|
|
stroke: ${i.requirementBorderColor};
|
|||
|
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
|
}
|
|||
|
|
.relationshipLine {
|
|||
|
|
stroke: ${i.relationColor};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
.relationshipLabel {
|
|||
|
|
fill: ${i.relationLabelColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
`,wve={CONTAINS:"contains",ARROW:"arrow"},LGe={ReqMarkers:wve,insertLineEndings:(i,s)=>{let u=i.append("defs").append("marker").attr("id",wve.CONTAINS+"_line_ending").attr("refX",0).attr("refY",s.line_height/2).attr("markerWidth",s.line_height).attr("markerHeight",s.line_height).attr("orient","auto").append("g");u.append("circle").attr("cx",s.line_height/2).attr("cy",s.line_height/2).attr("r",s.line_height/2).attr("fill","none"),u.append("line").attr("x1",0).attr("x2",s.line_height).attr("y1",s.line_height/2).attr("y2",s.line_height/2).attr("stroke-width",1),u.append("line").attr("y1",0).attr("y2",s.line_height).attr("x1",s.line_height/2).attr("x2",s.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",wve.ARROW+"_line_ending").attr("refX",s.line_height).attr("refY",.5*s.line_height).attr("markerWidth",s.line_height).attr("markerHeight",s.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|||
|
|
L${s.line_height},${s.line_height/2}
|
|||
|
|
M${s.line_height},${s.line_height/2}
|
|||
|
|
L0,${s.line_height}`).attr("stroke-width",1)}};let Ef={},MGe=0;const DGe=(i,s)=>i.insert("rect","#"+s).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Ef.rect_min_width+"px").attr("height",Ef.rect_min_height+"px"),IGe=(i,s,u)=>{let d=Ef.rect_min_width/2,p=i.append("text").attr("class","req reqLabel reqTitle").attr("id",s).attr("x",d).attr("y",Ef.rect_padding).attr("dominant-baseline","hanging"),v=0;u.forEach(_=>{v==0?p.append("tspan").attr("text-anchor","middle").attr("x",Ef.rect_min_width/2).attr("dy",0).text(_):p.append("tspan").attr("text-anchor","middle").attr("x",Ef.rect_min_width/2).attr("dy",Ef.line_height*.75).text(_),v++});let b=1.5*Ef.rect_padding,y=v*Ef.line_height*.75,T=b+y;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Ef.rect_min_width).attr("y1",T).attr("y2",T),{titleNode:p,y:T}},OGe=(i,s,u,d)=>{let p=i.append("text").attr("class","req reqLabel").attr("id",s).attr("x",Ef.rect_padding).attr("y",d).attr("dominant-baseline","hanging"),v=0;const b=30;let y=[];return u.forEach(T=>{let _=T.length;for(;_>b&&v<3;){let A=T.substring(0,b);T=T.substring(b,T.length),_=T.length,y[y.length]=A,v++}if(v==3){let A=y[y.length-1];y[y.length-1]=A.substring(0,A.length-4)+"..."}else y[y.length]=T;v=0}),y.forEach(T=>{p.append("tspan").attr("x",Ef.rect_padding).attr("dy",Ef.line_height).text(T)}),p},wrn=(i,s,u,d)=>{const p=s.node().getTotalLength(),v=s.node().getPointAtLength(p*.5),b="rel"+MGe;MGe++;const T=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",v.x).attr("y",v.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",v.x-T.width/2).attr("y",v.y-T.height/2).attr("width",T.width).attr("height",T.height).attr("fill","white").attr("fill-opacity","85%")},yrn=function(i,s,u,d,p){const v=u.edge(KD(s.src),KD(s.dst)),b=x7().x(function(T){return T.x}).y(function(T){return T.y}),y=i.insert("path","#"+d).attr("class","er relationshipLine").attr("d",b(v.points)).attr("fill","none");s.type==p.db.Relationships.CONTAINS?y.attr("marker-start","url("+ci.getUrl(Ef.arrowMarkerAbsolute)+"#"+s.type+"_line_ending)"):(y.attr("stroke-dasharray","10,7"),y.attr("marker-end","url("+ci.getUrl(Ef.arrowMarkerAbsolute)+"#"+LGe.ReqMarkers.ARROW+"_line_ending)")),wrn(i,y,Ef,`<<${s.type}>>`)},xrn=(i,s,u)=>{Object.keys(i).forEach(d=>{let p=i[d];d=KD(d),Xe.info("Added new requirement: ",d);const v=u.append("g").attr("id",d),b="req-"+d,y=DGe(v,b);let T=IGe(v,d+"_title",[`<<${p.type}>>`,`${p.name}`]);OGe(v,d+"_body",[`Id: ${p.id}`,`Text: ${p.text}`,`Risk: ${p.risk}`,`Verification: ${p.verifyMethod}`],T.y);const _=y.node().getBBox();s.setNode(d,{width:_.width,height:_.height,shape:"rect",id:d})})},krn=(i,s,u)=>{Object.keys(i).forEach(d=>{let p=i[d];const v=KD(d),b=u.append("g").attr("id",v),y="element-"+v,T=DGe(b,y);let _=IGe(b,y+"_title",["<<Element>>",`${d}`]);OGe(b,y+"_body",[`Type: ${p.type||"Not Specified"}`,`Doc Ref: ${p.docRef||"None"}`],_.y);const A=T.node().getBBox();s.setNode(v,{width:A.width,height:A.height,shape:"rect",id:v})})},Ern=(i,s)=>(i.forEach(function(u){let d=KD(u.src),p=KD(u.dst);s.setEdge(d,p,{relationship:u})}),i),Trn=function(i,s){s.nodes().forEach(function(u){u!==void 0&&s.node(u)!==void 0&&(i.select("#"+u),i.select("#"+u).attr("transform","translate("+(s.node(u).x-s.node(u).width/2)+","+(s.node(u).y-s.node(u).height/2)+" )"))})},KD=i=>i.replace(/\s/g,"").replace(/\./g,"_"),Crn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:brn,db:mrn,renderer:{draw:(i,s,u,d)=>{Ef=qt().requirement;const p=Ef.securityLevel;let v;p==="sandbox"&&(v=Ir("#i"+s));const y=Ir(p==="sandbox"?v.nodes()[0].contentDocument.body:"body").select(`[id='${s}']`);LGe.insertLineEndings(y,Ef);const T=new N0({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Ef.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let _=d.db.getRequirements(),A=d.db.getElements(),P=d.db.getRelationships();xrn(_,T,y),k
|
|||
|
|
`+_r.showPosition()+`
|
|||
|
|
Expecting `+Ts.join(", ")+", got '"+(this.terminals_[cn]||cn)+"'":nl="Parse error on line "+(Fi+1)+": Unexpected "+(cn==na?"end of input":"'"+(this.terminals_[cn]||cn)+"'"),this.parseError(nl,{text:_r.match,token:this.terminals_[cn]||cn,line:_r.yylineno,loc:qn,expected:Ts})}if(Mn[0]instanceof Array&&Mn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fn+", token: "+cn);switch(Mn[0]){case 1:At.push(cn),On.push(_r.yytext),ht.push(_r.yylloc),At.push(Mn[1]),cn=null,yi=_r.yyleng,yt=_r.yytext,Fi=_r.yylineno,qn=_r.yylloc;break;case 2:if(ua=this.productions_[Mn[1]][1],Io.$=On[On.length-ua],Io._$={first_line:ht[ht.length-(ua||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(ua||1)].first_column,last_column:ht[ht.length-1].last_column},Lt&&(Io._$.range=[ht[ht.length-(ua||1)].range[0],ht[ht.length-1].range[1]]),mo=this.performAction.apply(Io,[yt,yi,Fi,Nn.yy,Mn[1],On,ht].concat(Ro)),typeof mo<"u")return mo;ua&&(At=At.slice(0,-1*ua*2),On=On.slice(0,-1*ua),ht=ht.slice(0,-1*ua)),At.push(this.productions_[Mn[1]][0]),On.push(Io.$),ht.push(Io._$),Oo=zr[At[At.length-2]][At[At.length-1]],At.push(Oo);break;case 3:return!0}}return!0}},Gt=function(){var xt={EOF:1,parseError:function(Ze,At){if(this.yy.parser)this.yy.parser.parseError(Ze,At);else throw new Error(Ze)},setInput:function(Pt,Ze){return this.yy=Ze||this.yy||{},this._input=Pt,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 Pt=this._input[0];this.yytext+=Pt,this.yyleng++,this.offset++,this.match+=Pt,this.matched+=Pt;var Ze=Pt.match(/(?:\r\n?|\n).*/g);return Ze?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Pt},unput:function(Pt){var Ze=Pt.length,At=Pt.split(/(?:\r\n?|\n)/g);this._input=Pt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ze),this.offset-=Ze;var Tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),At.length-1&&(this.yylineno-=At.length-1);var On=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:At?(At.length===Tt.length?this.yylloc.first_column:0)+Tt[Tt.length-At.length].length-At[0].length:this.yylloc.first_column-Ze},this.options.ranges&&(this.yylloc.range=[On[0],On[0]+this.yyleng-Ze]),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(Pt){this.unput(this.match.slice(Pt))},pastInput:function(){var Pt=this.matched.substr(0,this.matched.length-this.match.length);return(Pt.length>20?"...":"")+Pt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Pt=this.match;return Pt.length<20&&(Pt+=this._input.substr(0,20-Pt.length)),(Pt.substr(0,20)+(Pt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Pt=this.pastInput(),Ze=new Array(Pt.length+1).join("-");return Pt+this.upcomingInput()+`
|
|||
|
|
`+Ze+"^"},test_match:function(Pt,Ze){var At,Tt,On;if(this.options.backtrack_lexer&&(On={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&&(On.yylloc.range=this.yylloc.range.slice(0))),Tt=Pt[0].match(/(?:\r\n?|\n).*/g),Tt&&(this.yylineno+=Tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Tt?Tt[Tt.length-1].length-Tt[Tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pt[0].length},this.yytext+=Pt[0],this.match+=Pt[0],this.matches=Pt,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(Pt[0].length),this.matched+=Pt[0],At=this.performAction.call(this,this.yy,this,Ze,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),At)return At;if(this._backtrack){for(var ht in On)this[ht]=On[ht];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Pt,Ze,At,Tt;this._more||(this.yytext="",this.match="");for(var On=this._currentRules(),ht=0;ht<On.length;ht++)if(At=this._input.match(this.rules[On[ht]]),At&&(!Ze||At[0].length>Ze[0].length)){if(Ze=At,Tt=ht,this.options.backtrack_lexer){if(Pt=this.test_match(At,On[ht]),Pt!==!1)return Pt;if(this._backtrack){Ze=!1;continue}else return!1}else if(!this.options.flex)break}return Ze?(Pt=this.test_match(Ze,On[Tt]),Pt!==!1?Pt:!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 Ze=this.next();return Ze||this.lex()},begin:function(Ze){this.conditionStack.push(Ze)},popState:function(){var Ze=this.conditionStack.length-1;return Ze>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(Ze){return Ze=this.conditionStack.length-1-Math.abs(Ze||0),Ze>=0?this.conditionStack[Ze]:"INITIAL"},pushState:function(Ze){this.begin(Ze)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ze,At,Tt,On){switch(Tt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return At.yytext=At.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return At.yytext=At.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\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,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2
|
|||
|
|
stroke: ${i.actorBorder};
|
|||
|
|
fill: ${i.actorBkg};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
text.actor > tspan {
|
|||
|
|
fill: ${i.actorTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.actor-line {
|
|||
|
|
stroke: ${i.actorLineColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.messageLine0 {
|
|||
|
|
stroke-width: 1.5;
|
|||
|
|
stroke-dasharray: none;
|
|||
|
|
stroke: ${i.signalColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.messageLine1 {
|
|||
|
|
stroke-width: 1.5;
|
|||
|
|
stroke-dasharray: 2, 2;
|
|||
|
|
stroke: ${i.signalColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#arrowhead path {
|
|||
|
|
fill: ${i.signalColor};
|
|||
|
|
stroke: ${i.signalColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.sequenceNumber {
|
|||
|
|
fill: ${i.sequenceNumberColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#sequencenumber {
|
|||
|
|
fill: ${i.signalColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#crosshead path {
|
|||
|
|
fill: ${i.signalColor};
|
|||
|
|
stroke: ${i.signalColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.messageText {
|
|||
|
|
fill: ${i.signalTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.labelBox {
|
|||
|
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
|
fill: ${i.labelBoxBkgColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.labelText, .labelText > tspan {
|
|||
|
|
fill: ${i.labelTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.loopText, .loopText > tspan {
|
|||
|
|
fill: ${i.loopTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.loopLine {
|
|||
|
|
stroke-width: 2px;
|
|||
|
|
stroke-dasharray: 2, 2;
|
|||
|
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
|
fill: ${i.labelBoxBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.note {
|
|||
|
|
//stroke: #decc93;
|
|||
|
|
stroke: ${i.noteBorderColor};
|
|||
|
|
fill: ${i.noteBkgColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.noteText, .noteText > tspan {
|
|||
|
|
fill: ${i.noteTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activation0 {
|
|||
|
|
fill: ${i.activationBkgColor};
|
|||
|
|
stroke: ${i.activationBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activation1 {
|
|||
|
|
fill: ${i.activationBkgColor};
|
|||
|
|
stroke: ${i.activationBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.activation2 {
|
|||
|
|
fill: ${i.activationBkgColor};
|
|||
|
|
stroke: ${i.activationBorderColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.actorPopupMenu {
|
|||
|
|
position: absolute;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.actorPopupMenuPanel {
|
|||
|
|
position: absolute;
|
|||
|
|
fill: ${i.actorBkg};
|
|||
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|||
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|||
|
|
}
|
|||
|
|
.actor-man line {
|
|||
|
|
stroke: ${i.actorBorder};
|
|||
|
|
fill: ${i.actorBkg};
|
|||
|
|
}
|
|||
|
|
.actor-man circle, line {
|
|||
|
|
stroke: ${i.actorBorder};
|
|||
|
|
fill: ${i.actorBkg};
|
|||
|
|
stroke-width: 2px;
|
|||
|
|
}
|
|||
|
|
`,JC=18*2,zGe="actor-top",qGe="actor-bottom",Eve=function(i,s){return AQ(i,s)},Jrn=function(i,s,u,d,p){if(s.links===void 0||s.links===null||Object.keys(s.links).length===0)return{height:0,width:0};const v=s.links,b=s.actorCnt,y=s.rectData;var T="none";p&&(T="block !important");const _=i.append("g");_.attr("id","actor"+b+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",T);var A="";y.class!==void 0&&(A=" "+y.class);let P=y.width>u?y.width:u;const R=_.append("rect");if(R.attr("class","actorPopupMenuPanel"+A),R.attr("x",y.x),R.attr("y",y.height),R.attr("fill",y.fill),R.attr("stroke",y.stroke),R.attr("width",P),R.attr("height",y.height),R.attr("rx",y.rx),R.attr("ry",y.ry),v!=null){var F=20;for(let ee in v){var j=_.append("a"),W=g9.sanitizeUrl(v[ee]);j.attr("xlink:href",W),j.attr("target","_blank"),pin(d)(ee,j,y.x+10,y.height+F,P,20,{class:"actor"},d),F+=30}}return R.attr("height",F),{height:y.height+F,width:P}},Zrn=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},pJ=async function(i,s,u=null){let d=i.append("foreignObject");const p=await TC(s.text,xh()),b=d.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(p).node().getBoundingClientRect();if(d.attr("height",Math.round(b.height)).attr("width",Math.round(b.width)),s.class==="noteText"){const y=i.node().firstChild;y.setAttribute("height",b.height+2*s.textMargin);const T=y.getBBox();d.attr("x",Math.round(T.x+T.width/2-b.width/2)).attr("y",Math.round(T.y+T.height/2-b.height/2))}else if(u){let{startx:y,stopx:T,starty:_}=u;if(y>T){const A=y;y=T,T=A}d.attr("x",Math.round(y+Math.abs(y-T)/2-b.width/2)),s.class==="loopText"?d.attr("y",Math.round(_)):d.attr("y",Math.round(_-b.height))}return[d]},WD=function(i,s){let u=0,d=0;const p=s.text.split(ci.lineBreakRegex),[v,b]=OC(s.fontSize);let y=[],T=0,_=()=>s.y;if(s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0)switch(s.valign){case"top":case"start":_=()=>Math.round(s.y+s.textMargin);break;case"middle":case"center":_=()=>Math.round(s.y+(u+d+s.textMargin)/2);break;case"bottom":case"end":_=()=>Math.round(s.y+(u+d+2*s.textMargin)-s.textMargin);break}if(s.anchor!==void 0&&s.textMargin!==void 0&&s.width!==void 0)switch(s.anchor){case"left":case"start":s.x=Math.round(s.x+s.textMargin),s.anchor="start",s.dominantBaseline="middle",s.alignmentBaseline="middle";break;case"middle":case"center":s.x=Math.round(s.x+s.width/2),s.anchor="middle",s.dominantBaseline="middle",s.alignmentBaseline="middle";break;case"right":case"end":s.x=Math.round(s.x+s.width-s.textMargin),s.anchor="end",s.dominantBaseline="middle",s.alignmentBaseline="middle";break}for(let[A,P]of p.entries()){s.textMargin!==void 0&&s.textMargin===0&&v!==void 0&&(T=A*v);const R=i.append("text");R.attr("x",s.x),R.attr("y",_()),s.anchor!==void 0&&R.attr("text-anchor",s.anchor).attr("dominant-baseline",s.dominantBaseline).attr("alignment-baseline",s.alignmentBaseline),s.fontFamily!==void 0&&R.style("font-family",s.fontFamily),b!==void 0&&R.style("font-size",b),s.fontWeight!==void 0&&R.style("font-weight",s.fontWeight),s.fill!==void 0&&R.attr("fill",s.fill),s.class!==void 0&&R.attr("class",s.class),s.dy!==void 0?R.attr("dy",s.dy):T!==0&&R.attr("dy",T);const F=P||dje;if(s.tspan){const j=R.append("tspan");j.attr("x",s.x),s.fill!==void 0&&j.attr("fill",s.fill),j.text(F)}else R.text(F);s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0&&(d+=(R._groups||R)[0][0].getBBox().height,u=d),y.push(R)}return y},HGe=function(i,s){function u(p,v,b,y,T){return p+","+v+" "+(p+b)+","+v+" "+(p+b)+","+(v+y-T)+" "+(p+b-T*1.2)+","+(v+y)+" "+p+","+(v+y)}const d=i.append("polygon");return d.attr("points",u(s.x,s.y,s.width,s.height,7)),d.attr("class","labelBox"),s.y=s.y+s.height/2,WD(i,s),d};let i5=-1;const VGe=(i,s,u,d)=>{i.select&&u.forEach(p=>{const v=s[p],b=i.select("#actor"+v.actorCnt);!d.mirrorActors&&v.stopy?b.attr("y2",v.stopy+v.height/2):d.mirrorActors&&b.attr("y2",v.stopy)})},ein=async function(i,s,u,d){const p=d?s.stopy:s.starty,v
|
|||
|
|
`+Oo.showPosition()+`
|
|||
|
|
Expecting `+Qa.join(", ")+", got '"+(this.terminals_[qu]||qu)+"'":ja="Parse error on line "+(Mn+1)+": Unexpected "+(qu==Xa?"end of input":"'"+(this.terminals_[qu]||qu)+"'"),this.parseError(ja,{text:Oo.match,token:this.terminals_[qu]||qu,line:Oo.yylineno,loc:Zo,expected:Qa})}if(Xc[0]instanceof Array&&Xc.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lu+", token: "+qu);switch(Xc[0]){case 1:$n.push(qu),Lt.push(Oo.yytext),wt.push(Oo.yylloc),$n.push(Xc[1]),qu=null,mo=Oo.yyleng,fn=Oo.yytext,Mn=Oo.yylineno,Zo=Oo.yylloc;break;case 2:if(No=this.productions_[Xc[1]][1],Bc.$=Lt[Lt.length-No],Bc._$={first_line:wt[wt.length-(No||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(No||1)].first_column,last_column:wt[wt.length-1].last_column},id&&(Bc._$.range=[wt[wt.length-(No||1)].range[0],wt[wt.length-1].range[1]]),Cs=this.performAction.apply(Bc,[fn,mo,Mn,Ts.yy,Xc[1],Lt,wt].concat(ua)),typeof Cs<"u")return Cs;No&&($n=$n.slice(0,-1*No*2),Lt=Lt.slice(0,-1*No),wt=wt.slice(0,-1*No)),$n.push(this.productions_[Xc[1]][0]),Lt.push(Bc.$),wt.push(Bc._$),vc=cn[$n[$n.length-2]][$n[$n.length-1]],$n.push(vc);break;case 3:return!0}}return!0}},Ba=function(){var Ro={EOF:1,parseError:function(Nn,$n){if(this.yy.parser)this.yy.parser.parseError(Nn,$n);else throw new Error(Nn)},setInput:function(_r,Nn){return this.yy=Nn||this.yy||{},this._input=_r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _r=this._input[0];this.yytext+=_r,this.yyleng++,this.offset++,this.match+=_r,this.matched+=_r;var Nn=_r.match(/(?:\r\n?|\n).*/g);return Nn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_r},unput:function(_r){var Nn=_r.length,$n=_r.split(/(?:\r\n?|\n)/g);this._input=_r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Nn),this.offset-=Nn;var qn=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),$n.length-1&&(this.yylineno-=$n.length-1);var Lt=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:$n?($n.length===qn.length?this.yylloc.first_column:0)+qn[qn.length-$n.length].length-$n[0].length:this.yylloc.first_column-Nn},this.options.ranges&&(this.yylloc.range=[Lt[0],Lt[0]+this.yyleng-Nn]),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(_r){this.unput(this.match.slice(_r))},pastInput:function(){var _r=this.matched.substr(0,this.matched.length-this.match.length);return(_r.length>20?"...":"")+_r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _r=this.match;return _r.length<20&&(_r+=this._input.substr(0,20-_r.length)),(_r.substr(0,20)+(_r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _r=this.pastInput(),Nn=new Array(_r.length+1).join("-");return _r+this.upcomingInput()+`
|
|||
|
|
`+Nn+"^"},test_match:function(_r,Nn){var $n,qn,Lt;if(this.options.backtrack_lexer&&(Lt={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&&(Lt.yylloc.range=this.yylloc.range.slice(0))),qn=_r[0].match(/(?:\r\n?|\n).*/g),qn&&(this.yylineno+=qn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qn?qn[qn.length-1].length-qn[qn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_r[0].length},this.yytext+=_r[0],this.match+=_r[0],this.matches=_r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_r[0].length),this.matched+=_r[0],$n=this.performAction.call(this,this.yy,this,Nn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$n)return $n;if(this._backtrack){for(var wt in Lt)this[wt]=Lt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _r,Nn,$n,qn;this._more||(this.yytext="",this.match="");for(var Lt=this._currentRules(),wt=0;wt<Lt.length;wt++)if($n=this._input.match(this.rules[Lt[wt]]),$n&&(!Nn||$n[0].length>Nn[0].length)){if(Nn=$n,qn=wt,this.options.backtrack_lexer){if(_r=this.test_match($n,Lt[wt]),_r!==!1)return _r;if(this._backtrack){Nn=!1;continue}else return!1}else if(!this.options.flex)break}return Nn?(_r=this.test_match(Nn,Lt[qn]),_r!==!1?_r:!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 Nn=this.next();return Nn||this.lex()},begin:function(Nn){this.conditionStack.push(Nn)},popState:function(){var Nn=this.conditionStack.length-1;return Nn>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(Nn){return Nn=this.conditionStack.length-1-Math.abs(Nn||0),Nn>=0?this.conditionStack[Nn]:"INITIAL"},pushState:function(Nn){this.begin(Nn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Nn,$n,qn,Lt){switch(qn){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;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 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/
|
|||
|
|
fill: ${i.nodeBorder||i.classText};
|
|||
|
|
stroke: none;
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: 10px;
|
|||
|
|
|
|||
|
|
.title {
|
|||
|
|
font-weight: bolder;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.nodeLabel, .edgeLabel {
|
|||
|
|
color: ${i.classText};
|
|||
|
|
}
|
|||
|
|
.edgeLabel .label rect {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
}
|
|||
|
|
.label text {
|
|||
|
|
fill: ${i.classText};
|
|||
|
|
}
|
|||
|
|
.edgeLabel .label span {
|
|||
|
|
background: ${i.mainBkg};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.classTitle {
|
|||
|
|
font-weight: bolder;
|
|||
|
|
}
|
|||
|
|
.node rect,
|
|||
|
|
.node circle,
|
|||
|
|
.node ellipse,
|
|||
|
|
.node polygon,
|
|||
|
|
.node path {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.divider {
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
g.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
g.classGroup rect {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
g.classGroup line {
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.classLabel .box {
|
|||
|
|
stroke: none;
|
|||
|
|
stroke-width: 0;
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
opacity: 0.5;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.classLabel .label {
|
|||
|
|
fill: ${i.nodeBorder};
|
|||
|
|
font-size: 10px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.relation {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.dashed-line{
|
|||
|
|
stroke-dasharray: 3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.dotted-line{
|
|||
|
|
stroke-dasharray: 1 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#compositionStart, .composition {
|
|||
|
|
fill: ${i.lineColor} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#compositionEnd, .composition {
|
|||
|
|
fill: ${i.lineColor} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#dependencyStart, .dependency {
|
|||
|
|
fill: ${i.lineColor} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#dependencyStart, .dependency {
|
|||
|
|
fill: ${i.lineColor} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#extensionStart, .extension {
|
|||
|
|
fill: transparent !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#extensionEnd, .extension {
|
|||
|
|
fill: transparent !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#aggregationStart, .aggregation {
|
|||
|
|
fill: transparent !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#aggregationEnd, .aggregation {
|
|||
|
|
fill: transparent !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#lollipopStart, .lollipop {
|
|||
|
|
fill: ${i.mainBkg} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#lollipopEnd, .lollipop {
|
|||
|
|
fill: ${i.mainBkg} !important;
|
|||
|
|
stroke: ${i.lineColor} !important;
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeTerminals {
|
|||
|
|
font-size: 11px;
|
|||
|
|
line-height: initial;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.classTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
`;let sKe=0;const Win=function(i,s,u,d,p){const v=function(oe){switch(oe){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};s.points=s.points.filter(oe=>!Number.isNaN(oe.y));const b=s.points,y=x7().x(function(oe){return oe.x}).y(function(oe){return oe.y}).curve(BF),T=i.append("path").attr("d",y(b)).attr("id","edge"+sKe).attr("class","relation");let _="";d.arrowMarkerAbsolute&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),u.relation.lineType==1&&T.attr("class","relation dashed-line"),u.relation.lineType==10&&T.attr("class","relation dotted-line"),u.relation.type1!=="none"&&T.attr("marker-start","url("+_+"#"+v(u.relation.type1)+"Start)"),u.relation.type2!=="none"&&T.attr("marker-end","url("+_+"#"+v(u.relation.type2)+"End)");let A,P;const R=s.points.length;let F=So.calcLabelPosition(s.points);A=F.x,P=F.y;let j,W,ee,ie;if(R%2!==0&&R>1){let oe=So.calcCardinalityPosition(u.relation.type1!=="none",s.points,s.points[0]),be=So.calcCardinalityPosition(u.relation.type2!=="none",s.points,s.points[R-1]);Xe.debug("cardinality_1_point "+JSON.stringify(oe)),Xe.debug("cardinality_2_point "+JSON.stringify(be)),j=oe.x,W=oe.y,ee=be.x,ie=be.y}if(u.title!==void 0){const oe=i.append("g").attr("class","classLabel"),be=oe.append("text").attr("class","label").attr("x",A).attr("y",P).attr("fill","red").attr("text-anchor","middle").text(u.title);window.label=be;const ge=be.node().getBBox();oe.insert("rect",":first-child").attr("class","box").attr("x",ge.x-d.padding/2).attr("y",ge.y-d.padding/2).attr("width",ge.width+d.padding).attr("height",ge.height+d.padding)}Xe.info("Rendering relation "+JSON.stringify(u)),u.relationTitle1!==void 0&&u.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",j).attr("y",W).attr("fill","black").attr("font-size","6").text(u.relationTitle1),u.relationTitle2!==void 0&&u.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",ee).attr("y",ie).attr("fill","black").attr("font-size","6").text(u.relationTitle2),sKe++},Yin=function(i,s,u,d){Xe.debug("Rendering class ",s,u);const p=s.id,v={id:p,label:s.id,width:0,height:0},b=i.append("g").attr("id",d.db.lookUpDomId(p)).attr("class","classGroup");let y;s.link?y=b.append("svg:a").attr("xlink:href",s.link).attr("target",s.linkTarget).append("text").attr("y",u.textHeight+u.padding).attr("x",0):y=b.append("text").attr("y",u.textHeight+u.padding).attr("x",0);let T=!0;s.annotations.forEach(function(be){const ge=y.append("tspan").text("«"+be+"»");T||ge.attr("dy",u.textHeight),T=!1});let _=aKe(s);const A=y.append("tspan").text(_).attr("class","title");T||A.attr("dy",u.textHeight);const P=y.node().getBBox().height;let R,F,j;if(s.members.length>0){R=b.append("line").attr("x1",0).attr("y1",u.padding+P+u.dividerMargin/2).attr("y2",u.padding+P+u.dividerMargin/2);const be=b.append("text").attr("x",u.padding).attr("y",P+u.dividerMargin+u.textHeight).attr("fill","white").attr("class","classText");T=!0,s.members.forEach(function(ge){oKe(be,ge,T,u),T=!1}),F=be.node().getBBox()}if(s.methods.length>0){j=b.append("line").attr("x1",0).attr("y1",u.padding+P+u.dividerMargin+F.height).attr("y2",u.padding+P+u.dividerMargin+F.height);const be=b.append("text").attr("x",u.padding).attr("y",P+2*u.dividerMargin+F.height+u.textHeight).attr("fill","white").attr("class","classText");T=!0,s.methods.forEach(function(ge){oKe(be,ge,T,u),T=!1})}const W=b.node().getBBox();var ee=" ";s.cssClasses.length>0&&(ee=ee+s.cssClasses.join(" "));const oe=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",W.width+2*u.padding).attr("height",W.height+u.padding+.5*u.dividerMargin).attr("class",ee).node().getBBox().width;return y.node().childNodes.forEach(function(be){be.setAttribu
|
|||
|
|
`);T.forEach(function(R){Xe.debug(`Adding line: ${R}`),y.append("tspan").text(R).attr("class","title").attr("dy",u.textHeight)});const _=b.node().getBBox(),P=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",_.width+2*u.padding).attr("height",_.height+T.length*u.textHeight+u.padding+.5*u.dividerMargin).node().getBBox().width;return y.node().childNodes.forEach(function(R){R.setAttribute("x",(P-R.getBBox().width)/2)}),v.width=P,v.height=_.height+T.length*u.textHeight+u.padding+.5*u.dividerMargin,v},oKe=function(i,s,u,d){const{displayText:p,cssStyle:v}=s.getDisplayDetails(),b=i.append("tspan").attr("x",d.padding).text(p);v!==""&&b.attr("style",s.cssStyle),u||b.attr("dy",d.textHeight)},Dve={getClassTitleString:aKe,drawClass:Yin,drawEdge:Win,drawNote:Xin};let xJ={};const kJ=20,YR=function(i){const s=Object.entries(xJ).find(u=>u[1].label===i);if(s)return s[0]},Qin=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Jin=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:XGe,db:yJ,renderer:{draw:function(i,s,u,d){const p=qt().class;xJ={},Xe.info("Rendering diagram "+i);const v=qt().securityLevel;let b;v==="sandbox"&&(b=Ir("#i"+s));const y=Ir(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),T=y.select(`[id='${s}']`);Qin(T);const _=new N0({multigraph:!0});_.setGraph({isMultiGraph:!0}),_.setDefaultEdgeLabel(function(){return{}});const A=d.db.getClasses(),P=Object.keys(A);for(const oe of P){const be=A[oe],ge=Dve.drawClass(T,be,p,d);xJ[ge.id]=ge,_.setNode(ge.id,ge),Xe.info("Org height: "+ge.height)}d.db.getRelations().forEach(function(oe){Xe.info("tjoho"+YR(oe.id1)+YR(oe.id2)+JSON.stringify(oe)),_.setEdge(YR(oe.id1),YR(oe.id2),{relation:oe},oe.title||"DEFAULT")}),d.db.getNotes().forEach(function(oe){Xe.debug(`Adding note: ${JSON.stringify(oe)}`);const be=Dve.drawNote(T,oe,p,d);xJ[be.id]=be,_.setNode(be.id,be),oe.class&&oe.class in A&&_.setEdge(oe.id,YR(oe.class),{relation:{id1:oe.id,id2:oe.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),zD(_),_.nodes().forEach(function(oe){oe!==void 0&&_.node(oe)!==void 0&&(Xe.debug("Node "+oe+": "+JSON.stringify(_.node(oe))),y.select("#"+(d.db.lookUpDomId(oe)||oe)).attr("transform","translate("+(_.node(oe).x-_.node(oe).width/2)+","+(_.node(oe).y-_.node(oe).height/2)+" )"))}),_.edges().forEach(funct
|
|||
|
|
`),p.style===void 0&&(v.style=v.style||"stroke: #333; stroke-width: 1.5px;fill:none"),v.labelStyle=v.labelStyle.replace("color:","fill:"))),s.setEdge(p.id1,p.id2,v,d)})},nsn=function(i){Ove={...Ove,...i}},rsn=async function(i,s,u,d){Xe.info("Drawing class - ",s);const p=qt().flowchart??qt().class,v=qt().securityLevel;Xe.info("config:",p);const b=(p==null?void 0:p.nodeSpacing)??50,y=(p==null?void 0:p.rankSpacing)??50,T=new N0({multigraph:!0,compound:!0}).setGraph({rankdir:d.db.getDirection(),nodesep:b,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),_=d.db.getNamespaces(),A=d.db.getClasses(),P=d.db.getRelations(),R=d.db.getNotes();Xe.info(P),Zin(_,T,s,d),cKe(A,T,s,d),tsn(P,T),esn(R,T,P.length+1,A);let F;v==="sandbox"&&(F=Ir("#i"+s));const j=Ir(v==="sandbox"?F.nodes()[0].contentDocument.body:"body"),W=j.select(`[id="${s}"]`),ee=j.select("#"+s+" g");if(await qme(ee,T,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",s),So.insertTitle(W,"classTitleText",(p==null?void 0:p.titleTopMargin)??5,d.db.getDiagramTitle()),w9(T,W,p==null?void 0:p.diagramPadding,p==null?void 0:p.useMaxWidth),!(p!=null&&p.htmlLabels)){const ie=v==="sandbox"?F.nodes()[0].contentDocument:document,oe=ie.querySelectorAll('[id="'+s+'"] .edgeLabel .label');for(const be of oe){const ge=be.getBBox(),ae=ie.createElementNS("http://www.w3.org/2000/svg","rect");ae.setAttribute("rx",0),ae.setAttribute("ry",0),ae.setAttribute("width",ge.width),ae.setAttribute("height",ge.height),be.insertBefore(ae,be.firstChild)}}};function uKe(i){let s;switch(i){case 0:s="aggregation";break;case 1:s="extension";break;case 2:s="composition";break;case 3:s="dependency";break;case 4:s="lollipop";break;default:s="none"}return s}const isn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:XGe,db:yJ,renderer:{setConf:nsn,draw:rsn},styles:iKe,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,yJ.clear()}}},Symbol.toStringTag,{value:"Module"}));var Nve=function(){var i=function(Ie,Se,Ce,ke){for(Ce=Ce||{},ke=Ie.length;ke--;Ce[Ie[ke]]=Se);return Ce},s=[1,2],u=[1,3],d=[1,4],p=[2,4],v=[1,9],b=[1,11],y=[1,15],T=[1,16],_=[1,17],A=[1,18],P=[1,30],R=[1,19],F=[1,20],j=[1,21],W=[1,22],ee=[1,23],ie=[1,25],oe=[1,26],be=[1,27],ge=[1,28],ae=[1,29],ne=[1,32],se=[1,33],de=[1,34],X=[1,35],pe=[1,31],G=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xe=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],U=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Be={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4]
|
|||
|
|
`+Ze.showPosition()+`
|
|||
|
|
Expecting `+$n.join(", ")+", got '"+(this.terminals_[yt]||yt)+"'":qn="Parse error on line "+(Et+1)+": Unexpected "+(yt==xt?"end of input":"'"+(this.terminals_[yt]||yt)+"'"),this.parseError(qn,{text:Ze.match,token:this.terminals_[yt]||yt,line:Ze.yylineno,loc:On,expected:$n})}if(yi[0]instanceof Array&&yi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fi+", token: "+yt);switch(yi[0]){case 1:ke.push(yt),Ft.push(Ze.yytext),Pe.push(Ze.yylloc),ke.push(yi[1]),yt=null,Gt=Ze.yyleng,kt=Ze.yytext,Et=Ze.yylineno,On=Ze.yylloc;break;case 2:if(_r=this.productions_[yi[1]][1],na.$=Ft[Ft.length-_r],na._$={first_line:Pe[Pe.length-(_r||1)].first_line,last_line:Pe[Pe.length-1].last_line,first_column:Pe[Pe.length-(_r||1)].first_column,last_column:Pe[Pe.length-1].last_column},ht&&(na._$.range=[Pe[Pe.length-(_r||1)].range[0],Pe[Pe.length-1].range[1]]),Ba=this.performAction.apply(na,[kt,Gt,Et,At.yy,yi[1],Ft,Pe].concat(Pt)),typeof Ba<"u")return Ba;_r&&(ke=ke.slice(0,-1*_r*2),Ft=Ft.slice(0,-1*_r),Pe=Pe.slice(0,-1*_r)),ke.push(this.productions_[yi[1]][0]),Ft.push(na.$),Pe.push(na._$),Nn=gn[ke[ke.length-2]][ke[ke.length-1]],ke.push(Nn);break;case 3:return!0}}return!0}},Ne=function(){var Ie={EOF:1,parseError:function(Ce,ke){if(this.yy.parser)this.yy.parser.parseError(Ce,ke);else throw new Error(Ce)},setInput:function(Se,Ce){return this.yy=Ce||this.yy||{},this._input=Se,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 Se=this._input[0];this.yytext+=Se,this.yyleng++,this.offset++,this.match+=Se,this.matched+=Se;var Ce=Se.match(/(?:\r\n?|\n).*/g);return Ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Se},unput:function(Se){var Ce=Se.length,ke=Se.split(/(?:\r\n?|\n)/g);this._input=Se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ce),this.offset-=Ce;var Ke=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ke.length-1&&(this.yylineno-=ke.length-1);var Ft=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ke?(ke.length===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-ke.length].length-ke[0].length:this.yylloc.first_column-Ce},this.options.ranges&&(this.yylloc.range=[Ft[0],Ft[0]+this.yyleng-Ce]),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(Se){this.unput(this.match.slice(Se))},pastInput:function(){var Se=this.matched.substr(0,this.matched.length-this.match.length);return(Se.length>20?"...":"")+Se.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Se=this.match;return Se.length<20&&(Se+=this._input.substr(0,20-Se.length)),(Se.substr(0,20)+(Se.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Se=this.pastInput(),Ce=new Array(Se.length+1).join("-");return Se+this.upcomingInput()+`
|
|||
|
|
`+Ce+"^"},test_match:function(Se,Ce){var ke,Ke,Ft;if(this.options.backtrack_lexer&&(Ft={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&&(Ft.yylloc.range=this.yylloc.range.slice(0))),Ke=Se[0].match(/(?:\r\n?|\n).*/g),Ke&&(this.yylineno+=Ke.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Se[0].length},this.yytext+=Se[0],this.match+=Se[0],this.matches=Se,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(Se[0].length),this.matched+=Se[0],ke=this.performAction.call(this,this.yy,this,Ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var Pe in Ft)this[Pe]=Ft[Pe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Se,Ce,ke,Ke;this._more||(this.yytext="",this.match="");for(var Ft=this._currentRules(),Pe=0;Pe<Ft.length;Pe++)if(ke=this._input.match(this.rules[Ft[Pe]]),ke&&(!Ce||ke[0].length>Ce[0].length)){if(Ce=ke,Ke=Pe,this.options.backtrack_lexer){if(Se=this.test_match(ke,Ft[Pe]),Se!==!1)return Se;if(this._backtrack){Ce=!1;continue}else return!1}else if(!this.options.flex)break}return Ce?(Se=this.test_match(Ce,Ft[Ke]),Se!==!1?Se:!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 Ce=this.next();return Ce||this.lex()},begin:function(Ce){this.conditionStack.push(Ce)},popState:function(){var Ce=this.conditionStack.length-1;return Ce>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(Ce){return Ce=this.conditionStack.length-1-Math.abs(Ce||0),Ce>=0?this.conditionStack[Ce]:"INITIAL"},pushState:function(Ce){this.begin(Ce)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ce,ke,Ke,Ft){switch(Ke){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),ke.yytext=ke.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),ke.yytext=ke.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),ke.yytext=ke.yytext.substr(2).trim(),30;case 64:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return ke.yytext=ke.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75: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,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:
|
|||
|
|
defs #statediagram-barbEnd {
|
|||
|
|
fill: ${i.transitionColor};
|
|||
|
|
stroke: ${i.transitionColor};
|
|||
|
|
}
|
|||
|
|
g.stateGroup text {
|
|||
|
|
fill: ${i.nodeBorder};
|
|||
|
|
stroke: none;
|
|||
|
|
font-size: 10px;
|
|||
|
|
}
|
|||
|
|
g.stateGroup text {
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
stroke: none;
|
|||
|
|
font-size: 10px;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
g.stateGroup .state-title {
|
|||
|
|
font-weight: bolder;
|
|||
|
|
fill: ${i.stateLabelColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
g.stateGroup rect {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
g.stateGroup line {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.transition {
|
|||
|
|
stroke: ${i.transitionColor};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.stateGroup .composit {
|
|||
|
|
fill: ${i.background};
|
|||
|
|
border-bottom: 1px
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.stateGroup .alt-composit {
|
|||
|
|
fill: #e0e0e0;
|
|||
|
|
border-bottom: 1px
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.state-note {
|
|||
|
|
stroke: ${i.noteBorderColor};
|
|||
|
|
fill: ${i.noteBkgColor};
|
|||
|
|
|
|||
|
|
text {
|
|||
|
|
fill: ${i.noteTextColor};
|
|||
|
|
stroke: none;
|
|||
|
|
font-size: 10px;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.stateLabel .box {
|
|||
|
|
stroke: none;
|
|||
|
|
stroke-width: 0;
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
opacity: 0.5;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeLabel .label rect {
|
|||
|
|
fill: ${i.labelBackgroundColor};
|
|||
|
|
opacity: 0.5;
|
|||
|
|
}
|
|||
|
|
.edgeLabel .label text {
|
|||
|
|
fill: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
|
}
|
|||
|
|
.label div .edgeLabel {
|
|||
|
|
color: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.stateLabel text {
|
|||
|
|
fill: ${i.stateLabelColor};
|
|||
|
|
font-size: 10px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node circle.state-start {
|
|||
|
|
fill: ${i.specialStateColor};
|
|||
|
|
stroke: ${i.specialStateColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node .fork-join {
|
|||
|
|
fill: ${i.specialStateColor};
|
|||
|
|
stroke: ${i.specialStateColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node circle.state-end {
|
|||
|
|
fill: ${i.innerEndBackground};
|
|||
|
|
stroke: ${i.background};
|
|||
|
|
stroke-width: 1.5
|
|||
|
|
}
|
|||
|
|
.end-state-inner {
|
|||
|
|
fill: ${i.compositeBackground||i.background};
|
|||
|
|
// stroke: ${i.background};
|
|||
|
|
stroke-width: 1.5
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node rect {
|
|||
|
|
fill: ${i.stateBkg||i.mainBkg};
|
|||
|
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
.node polygon {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.stateBorder||i.nodeBorder};;
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
#statediagram-barbEnd {
|
|||
|
|
fill: ${i.lineColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-cluster rect {
|
|||
|
|
fill: ${i.compositeTitleBackground};
|
|||
|
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster-label, .nodeLabel {
|
|||
|
|
color: ${i.stateLabelColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-cluster rect.outer {
|
|||
|
|
rx: 5px;
|
|||
|
|
ry: 5px;
|
|||
|
|
}
|
|||
|
|
.statediagram-state .divider {
|
|||
|
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-state .title-state {
|
|||
|
|
rx: 5px;
|
|||
|
|
ry: 5px;
|
|||
|
|
}
|
|||
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|||
|
|
fill: ${i.compositeBackground||i.background};
|
|||
|
|
}
|
|||
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|||
|
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-cluster .inner {
|
|||
|
|
rx:0;
|
|||
|
|
ry:0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-state rect.basic {
|
|||
|
|
rx: 5px;
|
|||
|
|
ry: 5px;
|
|||
|
|
}
|
|||
|
|
.statediagram-state rect.divider {
|
|||
|
|
stroke-dasharray: 10,10;
|
|||
|
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.note-edge {
|
|||
|
|
stroke-dasharray: 5;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-note rect {
|
|||
|
|
fill: ${i.noteBkgColor};
|
|||
|
|
stroke: ${i.noteBorderColor};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
rx: 0;
|
|||
|
|
ry: 0;
|
|||
|
|
}
|
|||
|
|
.statediagram-note rect {
|
|||
|
|
fill: ${i.noteBkgColor};
|
|||
|
|
stroke: ${i.noteBorderColor};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
rx: 0;
|
|||
|
|
ry: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-note text {
|
|||
|
|
fill: ${i.noteTextColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagram-note .nodeLabel {
|
|||
|
|
color: ${i.noteTextColor};
|
|||
|
|
}
|
|||
|
|
.statediagram .edgeLabel {
|
|||
|
|
color: red; // ${i.noteTextColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#dependencyStart, #dependencyEnd {
|
|||
|
|
fill: ${i.lineColor};
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.statediagramTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
`,zve={},Asn=(i,s)=>{zve[i]=s},Lsn=i=>zve[i],CKe=()=>Object.keys(zve),Msn={get:Lsn,set:Asn,keys:CKe,size:()=>CKe().length},Dsn=i=>i.append("circle").attr("class","start-state").attr("r",qt().state.sizeUnit).attr("cx",qt().state.padding+qt().state.sizeUnit).attr("cy",qt().state.padding+qt().state.sizeUnit),Isn=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",qt().state.textHeight).attr("class","divider").attr("x2",qt().state.textHeight*2).attr("y1",0).attr("y2",0),Osn=(i,s)=>{const u=i.append("text").attr("x",2*qt().state.padding).attr("y",qt().state.textHeight+2*qt().state.padding).attr("font-size",qt().state.fontSize).attr("class","state-title").text(s.id),d=u.node().getBBox();return i.insert("rect",":first-child").attr("x",qt().state.padding).attr("y",qt().state.padding).attr("width",d.width+2*qt().state.padding).attr("height",d.height+2*qt().state.padding).attr("rx",qt().state.radius),u},Nsn=(i,s)=>{const u=function(R,F,j){const W=R.append("tspan").attr("x",2*qt().state.padding).text(F);j||W.attr("dy",qt().state.textHeight)},p=i.append("text").attr("x",2*qt().state.padding).attr("y",qt().state.textHeight+1.3*qt().state.padding).attr("font-size",qt().state.fontSize).attr("class","state-title").text(s.descriptions[0]).node().getBBox(),v=p.height,b=i.append("text").attr("x",qt().state.padding).attr("y",v+qt().state.padding*.4+qt().state.dividerMargin+qt().state.textHeight).attr("class","state-description");let y=!0,T=!0;s.descriptions.forEach(function(R){y||(u(b,R,T),T=!1),y=!1});const _=i.append("line").attr("x1",qt().state.padding).attr("y1",qt().state.padding+v+qt().state.dividerMargin/2).attr("y2",qt().state.padding+v+qt().state.dividerMargin/2).attr("class","descr-divider"),A=b.node().getBBox(),P=Math.max(A.width,p.width);return _.attr("x2",P+3*qt().state.padding),i.insert("rect",":first-child").attr("x",qt().state.padding).attr("y",qt().state.padding).attr("width",P+2*qt().state.padding).attr("height",A.height+v+2*qt().state.padding).attr("rx",qt().state.radius),i},Psn=(i,s,u)=>{const d=qt().state.padding,p=2*qt().state.padding,v=i.node().getBBox(),b=v.width,y=v.x,T=i.append("text").attr("x",0).attr("y",qt().state.titleShift).attr("font-size",qt().state.fontSize).attr("class","state-title").text(s.id),A=T.node().getBBox().width+p;let P=Math.max(A,b);P===b&&(P=P+p);let R;const F=i.node().getBBox();s.doc,R=y-d,A>b&&(R=(b-P)/2+d),Math.abs(y-F.x)<d&&A>b&&(R=y-(A-b)/2);const j=1-qt().state.textHeight;return i.insert("rect",":first-child").attr("x",R).attr("y",j).attr("class",u?"alt-composit":"composit").attr("width",P).attr("height",F.height+qt().state.textHeight+qt().state.titleShift+1).attr("rx","0"),T.attr("x",R+d),A<=b&&T.attr("x",y+(P-p)/2-A/2+d),i.insert("rect",":first-child").attr("x",R).attr("y",qt().state.titleShift-qt().state.textHeight-qt().state.padding).attr("width",P).attr("height",qt().state.textHeight*3).attr("rx",qt().state.radius),i.insert("rect",":first-child").attr("x",R).attr("y",qt().state.titleShift-qt().state.textHeight-qt().state.padding).attr("width",P).attr("height",F.height+3+2*qt().state.textHeight).attr("rx",qt().state.radius),i},Bsn=i=>(i.append("circle").attr("class","end-state-outer").attr("r",qt().state.sizeUnit+qt().state.miniPadding).attr("cx",qt().state.padding+qt().state.sizeUnit+qt().state.miniPadding).attr("cy",qt().state.padding+qt().state.sizeUnit+qt().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",qt().state.sizeUnit).attr("cx",qt().state.padding+qt().state.sizeUnit+2).attr("cy",qt().state.padding+qt().state.sizeUnit+2)),Fsn=(i,s)=>{let u=qt().state.forkWidth,d=qt().state.forkHeight;if(s.parentId){let p=u;u=d,d=p}return i.append("rect").style("stroke","black").style("fill","black").attr("width",u).attr("height",d).attr("x",qt().state.padding).attr("y",qt().state.padding)},Rsn=(i,s,u,d)=>{let p=0;const v=d.append("text");v.style("text-anchor","start"),v.attr("class","noteText");let b=i.replace(/\r\n/g,"<br/>");b=b.replace(/\n/g,"<br/>");const y=b.split(ci.lineBreakRegex);let T=1.25*qt().state.noteMargin;for(const
|
|||
|
|
`+X.showPosition()+`
|
|||
|
|
Expecting `+Pe.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":gn="Parse error on line "+(ge+1)+": Unexpected "+(Ne==se?"end of input":"'"+(this.terminals_[Ne]||Ne)+"'"),this.parseError(gn,{text:X.match,token:this.terminals_[Ne]||Ne,line:X.yylineno,loc:xe,expected:Pe})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+je+", token: "+Ne);switch(Ie[0]){case 1:j.push(Ne),ee.push(X.yytext),ie.push(X.yylloc),j.push(Ie[1]),Ne=null,ae=X.yyleng,be=X.yytext,ge=X.yylineno,xe=X.yylloc;break;case 2:if(Ke=this.productions_[Ie[1]][1],Ce.$=ee[ee.length-Ke],Ce._$={first_line:ie[ie.length-(Ke||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(Ke||1)].first_column,last_column:ie[ie.length-1].last_column},U&&(Ce._$.range=[ie[ie.length-(Ke||1)].range[0],ie[ie.length-1].range[1]]),Se=this.performAction.apply(Ce,[be,ae,ge,pe.yy,Ie[1],ee,ie].concat(de)),typeof Se<"u")return Se;Ke&&(j=j.slice(0,-1*Ke*2),ee=ee.slice(0,-1*Ke),ie=ie.slice(0,-1*Ke)),j.push(this.productions_[Ie[1]][0]),ee.push(Ce.$),ie.push(Ce._$),Ft=oe[j[j.length-2]][j[j.length-1]],j.push(Ft);break;case 3:return!0}}return!0}},_=function(){var P={EOF:1,parseError:function(F,j){if(this.yy.parser)this.yy.parser.parseError(F,j);else throw new Error(F)},setInput:function(R,F){return this.yy=F||this.yy||{},this._input=R,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var R=this._input[0];this.yytext+=R,this.yyleng++,this.offset++,this.match+=R,this.matched+=R;var F=R.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),R},unput:function(R){var F=R.length,j=R.split(/(?:\r\n?|\n)/g);this._input=R+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;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),j.length-1&&(this.yylineno-=j.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:j?(j.length===W.length?this.yylloc.first_column:0)+W[W.length-j.length].length-j[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[ee[0],ee[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(R){this.unput(this.match.slice(R))},pastInput:function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var R=this.pastInput(),F=new Array(R.length+1).join("-");return R+this.upcomingInput()+`
|
|||
|
|
`+F+"^"},test_match:function(R,F){var j,W,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))),W=R[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+R[0].length},this.yytext+=R[0],this.match+=R[0],this.matches=R,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(R[0].length),this.matched+=R[0],j=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ie in ee)this[ie]=ee[ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,F,j,W;this._more||(this.yytext="",this.match="");for(var ee=this._currentRules(),ie=0;ie<ee.length;ie++)if(j=this._input.match(this.rules[ee[ie]]),j&&(!F||j[0].length>F[0].length)){if(F=j,W=ie,this.options.backtrack_lexer){if(R=this.test_match(j,ee[ie]),R!==!1)return R;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(R=this.test_match(F,ee[W]),R!==!1?R:!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,j,W,ee){switch(W){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\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:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return P}();T.lexer=_;function A(){this.yy={}}return A.prototype=T,T.Parser=A,new A}();Kve.parser=Kve;const han=Kve;let QD="";const Wve=[],tj=[],nj=[],fan=function(){Wve.length=0,tj.length=0,QD="",nj.length=0,Ng()},dan=function(i){QD=i,Wve.push(i)},gan=function(){return Wve},pan=function(){let i=RKe();const s=100;let u=0;for(;!i&&u<s;)i=RKe(),u++;return tj.push(...nj),tj},ban=function(){const i=[];return tj.forEach(u=>{u.people&&i.push(...u.people)}),[...new Set(i)].sort()},man=function(i,s){const u=s.substr(1).split(":");let d=0,p=[];u.length===1?(d=Number(u[0]),p=[]):(d=Number(u[0]),p=u[1].split(","));const v=p.map(y=>y.trim()),b={section:QD,type:QD,people:v,task:i,score:d};nj.push(b)},van=function(i){const s={section:QD,type:QD,description:i,task:i,classes:[]};tj.push(s)},RKe=function(){const i=function(u){return nj[u].processed};let s=!0;for(const[u,d]of nj.entries())i(u),s=s&&d.processed;return s},jKe={getConfig:()=>qt().journey,clear:fan,setDiagramTitle:om,getDiagramTitle:Lp,setAccTitle:Pg,getAccTitle:Sp,setAccDescription:_p,getAccDescription:Ap,addSection:dan,getSections:gan,getTasks:pan,addTask:man,addTaskOrg:van,getActors:function(){return ban()}},wan=i=>`.label {
|
|||
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
|
font-family: var(--mermaid-font-family);
|
|||
|
|
color: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
.mouth {
|
|||
|
|
stroke: #666;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
line {
|
|||
|
|
stroke: ${i.textColor}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.legend {
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.label text {
|
|||
|
|
fill: #333;
|
|||
|
|
}
|
|||
|
|
.label {
|
|||
|
|
color: ${i.textColor}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.face {
|
|||
|
|
${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"};
|
|||
|
|
stroke: #999;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node rect,
|
|||
|
|
.node circle,
|
|||
|
|
.node ellipse,
|
|||
|
|
.node polygon,
|
|||
|
|
.node path {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node .label {
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
.node.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.arrowheadPath {
|
|||
|
|
fill: ${i.arrowheadColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgePath .path {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 1.5px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchart-link {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeLabel {
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
rect {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
}
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster rect {
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
div.mermaidTooltip {
|
|||
|
|
position: absolute;
|
|||
|
|
text-align: center;
|
|||
|
|
max-width: 200px;
|
|||
|
|
padding: 2px;
|
|||
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
|
font-family: var(--mermaid-font-family);
|
|||
|
|
font-size: 12px;
|
|||
|
|
background: ${i.tertiaryColor};
|
|||
|
|
border: 1px solid ${i.border2};
|
|||
|
|
border-radius: 2px;
|
|||
|
|
pointer-events: none;
|
|||
|
|
z-index: 100;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.task-type-0, .section-type-0 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType0}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-1, .section-type-1 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType1}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-2, .section-type-2 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType2}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-3, .section-type-3 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType3}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-4, .section-type-4 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType4}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-5, .section-type-5 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType5}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-6, .section-type-6 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType6}`:""};
|
|||
|
|
}
|
|||
|
|
.task-type-7, .section-type-7 {
|
|||
|
|
${i.fillType0?`fill: ${i.fillType7}`:""};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.actor-0 {
|
|||
|
|
${i.actor0?`fill: ${i.actor0}`:""};
|
|||
|
|
}
|
|||
|
|
.actor-1 {
|
|||
|
|
${i.actor1?`fill: ${i.actor1}`:""};
|
|||
|
|
}
|
|||
|
|
.actor-2 {
|
|||
|
|
${i.actor2?`fill: ${i.actor2}`:""};
|
|||
|
|
}
|
|||
|
|
.actor-3 {
|
|||
|
|
${i.actor3?`fill: ${i.actor3}`:""};
|
|||
|
|
}
|
|||
|
|
.actor-4 {
|
|||
|
|
${i.actor4?`fill: ${i.actor4}`:""};
|
|||
|
|
}
|
|||
|
|
.actor-5 {
|
|||
|
|
${i.actor5?`fill: ${i.actor5}`:""};
|
|||
|
|
}
|
|||
|
|
`,Yve=function(i,s){return AQ(i,s)},yan=function(i,s){const d=i.append("circle").attr("cx",s.cx).attr("cy",s.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),p=i.append("g");p.append("circle").attr("cx",s.cx-15/3).attr("cy",s.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",s.cx+15/3).attr("cy",s.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(T){const _=uD().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);T.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+s.cx+","+(s.cy+2)+")")}function b(T){const _=uD().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);T.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+s.cx+","+(s.cy+7)+")")}function y(T){T.append("line").attr("class","mouth").attr("stroke",2).attr("x1",s.cx-5).attr("y1",s.cy+7).attr("x2",s.cx+5).attr("y2",s.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s.score>3?v(p):s.score<3?b(p):y(p),d},$Ke=function(i,s){const u=i.append("circle");return u.attr("cx",s.cx),u.attr("cy",s.cy),u.attr("class","actor-"+s.pos),u.attr("fill",s.fill),u.attr("stroke",s.stroke),u.attr("r",s.r),u.class!==void 0&&u.attr("class",u.class),s.title!==void 0&&u.append("title").text(s.title),u},zKe=function(i,s){return oUt(i,s)},xan=function(i,s){function u(p,v,b,y,T){return p+","+v+" "+(p+b)+","+v+" "+(p+b)+","+(v+y-T)+" "+(p+b-T*1.2)+","+(v+y)+" "+p+","+(v+y)}const d=i.append("polygon");d.attr("points",u(s.x,s.y,50,20,7)),d.attr("class","labelBox"),s.y=s.y+s.labelMargin,s.x=s.x+.5*s.labelMargin,zKe(i,s)},kan=function(i,s,u){const d=i.append("g"),p=zC();p.x=s.x,p.y=s.y,p.fill=s.fill,p.width=u.width*s.taskCount+u.diagramMarginX*(s.taskCount-1),p.height=u.height,p.class="journey-section section-type-"+s.num,p.rx=3,p.ry=3,Yve(d,p),HKe(u)(s.text,d,p.x,p.y,p.width,p.height,{class:"journey-section section-type-"+s.num},u,s.colour)};let qKe=-1;const Ean=function(i,s,u){const d=s.x+u.width/2,p=i.append("g");qKe++;const v=300+5*30;p.append("line").attr("id","task"+qKe).attr("x1",d).attr("y1",s.y).attr("x2",d).attr("y2",v).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),yan(p,{cx:d,cy:300+(5-s.score)*30,score:s.score});const b=zC();b.x=s.x,b.y=s.y,b.fill=s.fill,b.width=u.width,b.height=u.height,b.class="task task-type-"+s.num,b.rx=3,b.ry=3,Yve(p,b);let y=s.x+14;s.people.forEach(T=>{const _=s.actors[T].color,A={cx:y,cy:s.y,r:7,fill:_,stroke:"#000",title:T,pos:s.actors[T].position};$Ke(p,A),y+=10}),HKe(u)(s.task,p,b.x,b.y,b.width,b.height,{class:"task"},u,s.colour)},Tan=function(i,s){Sqe(i,s)},HKe=function(){function i(p,v,b,y,T,_,A,P){const R=v.append("text").attr("x",b+T/2).attr("y",y+_/2+5).style("font-color",P).style("text-anchor","middle").text(p);d(R,A)}function s(p,v,b,y,T,_,A,P,R){const{taskFontSize:F,taskFontFamily:j}=P,W=p.split(/<br\s*\/?>/gi);for(let ee=0;ee<W.length;ee++){const ie=ee*F-F*(W.length-1)/2,oe=v.append("text").attr("x",b+T/2).attr("y",y).attr("fill",R).style("text-anchor","middle").style("font-size",F).style("font-family",j);oe.append("tspan").attr("x",b+T/2).attr("dy",ie).text(W[ee]),oe.attr("y",y+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(oe,A)}}function u(p,v,b,y,T,_,A,P){const R=v.append("switch"),j=R.append("foreignObject").attr("x",b).attr("y",y).attr("width",T).attr("height",_).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");j.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(p),s(p,R,b,y,T,_,A,P),d(j,A)}function d(p,v){for(const b in v)b in v&&p.attr(b,v[b])}return function(p){return p.textPlacement==="fo"?u:p.textPlacement==="old"?i:s}}(),rj={drawRect:Yve,drawCircle:$Ke,drawSection:kan,drawTex
|
|||
|
|
`,ul(ao(e,t[0])))>=0;)++t[0]}function iwn(e,t){Gu(e,t==null||Gq((nr(t),t))||isNaN((nr(t),t))?0:(nr(t),t))}function swn(e,t){Ku(e,t==null||Gq((nr(t),t))||isNaN((nr(t),t))?0:(nr(t),t))}function awn(e,t){Iw(e,t==null||Gq((nr(t),t))||isNaN((nr(t),t))?0:(nr(t),t))}function own(e,t){Dw(e,t==null||Gq((nr(t),t))||isNaN((nr(t),t))?0:(nr(t),t))}function cwn(e,t,n){return $8(new lt(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(nr(t),t)}function uwn(e,t){return De(t,102)&&l(t,19).Bb&Lo?new Use(t,e):new bE(t,e)}function lwn(e,t){return De(t,102)&&l(t,19).Bb&Lo?new Use(t,e):new bE(t,e)}function dN(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function iht(e,t){return t==(gae(),gae(),M6t)?e.toLocaleLowerCase():e.toLowerCase()}function sht(e){if(!e.e)throw ue(new _c);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function G6e(e){if(!e.c)throw ue(new _c);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function aht(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function hwn(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=bpt(t,n);while(e.a);e.a=n}}function fwn(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=bpt(t,n);while(e.b);e.b=n}}function dwn(e,t){var n;for(n=0;e.e!=e.i.gc();)Fdn(t,gr(e),pt(n)),n!=Oi&&++n}function gwn(e,t){var n;return n=Rw(e.e.c,t.e.c),n==0?Yi(e.e.d,t.e.d):n}function pwn(e,t){var n,r;for(r=t.c,n=r+1;n<=t.f;n++)e.a[n]>e.a[r]&&(r=n);return r}function oht(e){var t;return t=l(Q(e,(ft(),u3)),313),t?t.a==e:!1}function cht(e){var t;return t=l(Q(e,(ft(),u3)),313),t?t.i==e:!1}function uht(){uht=U,T8t=Kr((oo(),he(le(gAe,1),it,367,0,[v0,mg,mu,Lu,bc])))}function lht(){lht=U,oxt=Kr((Ry(),he(le(axt,1),it,375,0,[pB,KK,WK,GK,UK])))}function hht(){hht=U,vxt=Kr((h2(),he(le(mLe,1),it,348,0,[A1e,bLe,L1e,PT,NT])))}function fht(){fht=U,iEt=Kr((IA(),he(le(wDe,1),it,323,0,[vDe,vde,wde,nM,rM])))}function dht(){dht=U,Dxt=Kr((lf(),he(le(WLe,1),it,171,0,[kB,WL,zb,YL,d4])))}function ght(){ght=U,GTt=Kr((bU(),he(le(UTt,1),it,368,0,[Yde,Gde,Xde,Kde,Wde])))}function pht(){pht=U,GCt=Kr((HA(),he(le(UCt,1),it,373,0,[X6,Zx,yM,wM,$B])))}function bht(){bht=U,JCt=Kr((YN(),he(le(TOe,1),it,324,0,[xOe,wge,EOe,yge,kOe])))}function mht(){mht=U,YSt=Kr((Js(),he(le(AM,1),it,88,0,[Y1,mc,cc,W1,vf])))}function vht(){vht=U,xSt=Kr((e1(),he(le(yg,1),it,170,0,[Bn,da,Rd,wv,_2])))}function wht(){wht=U,i_t=Kr((e6(),he(le(IM,1),it,256,0,[Wb,eF,XNe,DM,QNe])))}function yht(){yht=U,o_t=Kr((St(),he(le(Mo,1),au,64,0,[Pc,Qn,ar,Dr,er])))}function aV(){aV=U,E_e=new A3e("BY_SIZE",0),$0e=new A3e("BY_SIZE_AND_SHAPE",1)}function oV(){oV=U,Q0e=new D3e("EADES",0),yK=new D3e("FRUCHTERMAN_REINGOLD",1)}function gN(){gN=U,XK=new P3e("READING_DIRECTION",0),vLe=new P3e("ROTATION",1)}function lA(){lA=U,I8t=new tI,O8t=new $J,M8t=new mm,D8t=new fu,N8t=new zJ}function xht(e){this.b=new bt,this.a=new bt,this.c=new bt,this.d=new bt,this.e=e}function kht(e){this.g=e,this.f=new bt,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function Eht(e,t,n){Vq.call(this),Y6e(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function bwn(e,t,n){var r,a;for(a=new K(n);a.a<a.c.c.length;)r=re(a),Oxe(e,t,r)}function Q0(e,t,n){var r;if(t==null)throw ue(new C8);return r=Kg(e,t),Lmn(e,t,n),r}function Woe(e,t){var n;return n=l(cr(e.a,t),137),n||(n=new ls,Ei(e.a,t,n)),n}function Ln(e,t){var n;return n=(e.i==null&&Ed(e),e.i),t>=0&&t<n.length?n[t]:null}function mwn(e,t){var n;return n=t>0?t-1:t,nZe(Hun(Kht(B4e(new A8,n),e.n),e.j),e.k)}function ic(e){var t,n;n=(t=new qie,t),qr((!e.q&&(e.q=new nt(Vf,e,11,10)),e.q),n)}function K6e(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(Ug(e),e.o)}function cV(e){return iu(e,Oi)>0?Oi:iu(e,co)<0?co:Yr(e)}function Ay(e){return e<3?(Ih(e,Rwt),e+1):e<nL?ha(e/.75+1):Oi}function Tht(e,t){return nr(t),i5e(e),e.d.Ob()?(t.Cd(e.d.Pb()),!0):!1}function vwn(e,t){var n,r;return n=l(Oy(e.d,t),16),n?(r=t,e.e.pc(r,n)):null}function wwn(e,t,n,r){var a;e.j=-1,E9e(e,t9e(e,t,n),(Bo(),a=l(t,69).vk(),a.xl(r)))}function ywn(e,t){return cx(),-ru(l(Q(e,(Hc(),K6)),17).a,l(Q(t,K6),17).a)}function Cht(e,t){return!!gA(e,t,Yr(po(hg,rg(Yr(po(t==null?0:Zi(t),fg)),15))))}function xwn(){return qE(),he(le(xY,1),it,2
|
|||
|
|
`)}return t&&(t.stack||n(e[jle]))}function _8e(e,t){switch(t){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return _7e(e,t)}function S1t(e){switch(e.g){case 0:return new kne;case 1:return new Pu;default:throw ue(new Yn(Fhe+(e.f!=null?e.f:""+e.g)))}}function y5n(e){switch(e.g){case 0:return new CS;case 1:return new Rc;default:throw ue(new Yn(Efe+(e.f!=null?e.f:""+e.g)))}}function x5n(e){switch(e.g){case 1:return new bne;case 2:return new frt;default:throw ue(new Yn(Efe+(e.f!=null?e.f:""+e.g)))}}function _1t(e){switch(e.g){case 0:return new Hwe;case 1:return new aJe;default:throw ue(new Yn(FG+(e.f!=null?e.f:""+e.g)))}}function Uce(){Rxe();var e,t,n;n=vOn+++Date.now(),e=ha(b.Math.floor(n*LP))&ZU,t=ha(n-e*cEe),this.a=e^1502,this.b=t^hhe}function lf(){lf=U,kB=new uO(Ld,0),WL=new uO("FIRST",1),zb=new uO(W3t,2),YL=new uO("LAST",3),d4=new uO(Y3t,4)}function VV(){VV=U,Kge=new Tq(cCe,0),sPe=new Tq("GROUP_DEC",1),oPe=new Tq("GROUP_MIXED",2),aPe=new Tq("GROUP_INC",3)}function k5n(e,t){var n,r,a,o;t&&(a=tp(t,"x"),n=new rQe(e),aE(n.a,(nr(a),a)),o=tp(t,"y"),r=new sQe(e),cE(r.a,(nr(o),o)))}function E5n(e,t){var n,r,a,o;t&&(a=tp(t,"x"),n=new oQe(e),sE(n.a,(nr(a),a)),o=tp(t,"y"),r=new cQe(e),oE(r.a,(nr(o),o)))}function T5n(e,t){var n,r,a,o;for(a=new Bu(t.gc()),r=t.Kc();r.Ob();)n=r.Pb(),o=cle(e,l(n,58)),o&&zn(a.c,o);return a}function Ny(e,t,n){var r,a;for(a=e.Kc();a.Ob();)if(r=a.Pb(),qe(t)===qe(r)||t!=null&&Bi(t,r))return n&&a.Qb(),!0;return!1}function A1t(e){var t,n,r;return n=e.jh(),n?(t=e.Eh(),De(t,167)&&(r=A1t(l(t,167)),r!=null)?r+"."+n:n):null}function C5n(e){var t,n,r;return e.e==0?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&(r=Oft(e),r==e.d-1&&(--n,n=n|0)),t-=nP(n),t)}function S5n(e){var t,n,r;return e<lK.length?lK[e]:(n=e>>5,t=e&31,r=We(Vr,gi,28,n+1,15,1),r[n]=1<<t,new Dm(1,n+1,r))}function L1t(e,t){var n,r;if(t){for(n=0;n<e.i;++n)if(r=l(e.g[n],378),r.mj(t))return!1;return qr(e,t)}else return!1}function A8e(e,t,n){var r,a;if(++e.j,n.dc())return!1;for(a=n.Kc();a.Ob();)r=a.Pb(),e.qj(t,e.Zi(t,r)),++t;return!0}function _5n(e,t,n,r){var a,o;if(o=n-t,o<3)for(;o<3;)e*=10,++o;else{for(a=1;o>3;)a*=10,--o;e=(e+(a>>1))/a|0}return r.i=e,!0}function vs(e,t){var n,r,a;if(n=(e.i==null&&Ed(e),e.i),r=t.Lj(),r!=-1){for(a=n.length;r<a;++r)if(n[r]==t)return r}return-1}function A5n(e){var t,n,r,a,o;for(n=l(e.g,689),r=e.i-1;r>=0;--r)for(t=n[r],a=0;a<r;++a)if(o=n[a],Pmt(e,t,o)){mx(e,r);break}}function L8e(e){var t,n,r,a;for(t=new zp,a=new vo(e.b.Kc());a.b.Ob();)r=l(a.b.Pb(),701),n=V9n(r),Mgn(t,t.a.length,n);return t.a}function M8e(e){var t;return!e.c&&(e.c=new wu),Vs(e.d,new a5),_Sn(e),t=vSn(e),Ns(new mn(null,new kn(e.d,16)),new Iie(e)),t}function L5n(e,t){t.Ug("End label post-processing",1),Ns(Ri(Dc(new mn(null,new kn(e.b,16)),new eZ),new tZ),new nZ),t.Vg()}function D8e(e){Gce(),this.c=M1(he(le(FOn,1),Rn,845,0,[Zkt])),this.b=new Pr,this.a=e,Ei(this.b,TW,1),Uu(eEt,new PXe(this))}function M1t(e,t,n){Uht(),tJe.call(this),this.a=Am(Y6t,[dt,wEe],[603,217],0,[gK,q0e],2),this.c=new j8,this.g=e,this.f=t,this.d=n}function I8e(e,t){this.n=Am(rm,[dt,ahe],[376,28],14,[t,ha(b.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function M5n(e){ZH(),l(e.of((bi(),Gb)),181).Hc((Zl(),hY))&&(l(e.of(S4),181).Fc((Rl(),s9)),l(e.of(Gb),181).Mc(hY))}function D1t(e){var t,n;t=e.d==(wx(),DT),n=Lxe(e),t&&!n||!t&&n?rt(e.a,(Nt(),Pd),(ag(),HB)):rt(e.a,(Nt(),Pd),(ag(),qB))}function Gce(){Gce=U,tq(),TW=(Nt(),v3),eEt=M1(he(le(Cge,1),oCe,149,0,[CB,w0,q6,m3,y4,cde,UT,GT,ude,eM,z6,mv,H6]))}function D5n(e,t){var n;return n=l(yc(e,Pl(new zr,new ht,new Nn,he(le(ac,1),it,108,0,[(Fl(),Ec)]))),15),n.Qc(Jit(n.gc()))}function I1t(e,t){var n,r;if(r=new ma(e.a.ad(t,!0)),r.a.gc()<=1)throw ue(new C8);return n=r.a.ec().Kc(),n.Pb(),l(n.Pb(),40)}function I5n(e,t,n){var r,a;return r=ze(e.p[t.i.p])+ze(e.d[t.i.p])+t.n.b+t.a.b,a=ze(e.p[n.i.p])+ze(e.d[n.i.p])+n.n.b+n.a.b,a-r}function O8e(e,t){var n;return e.i>0&&(t.length<e.i&&(n=pN(mh(t).c,e.i),t=n),bu(e.g,0,t,0,e.i)),t.length>e.i&&_s(t,e.i,null),t}function UV(e){var t;return e.Db&64?TA(e):(t=new _f(TA(e)),t.a+=" (
|
|||
|
|
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
|
|||
|
|
`)}return[]}function A7n(e){var t;return t=(eft(),v6t),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 Zdt(e){var t,n,r;e.b==e.c&&(r=e.a.length,n=P7e(b.Math.max(8,r))<<1,e.b!=0?(t=a0(e.a,n),pft(e,t,r),e.a=t,e.b=0):ay(e.a,n),e.c=r)}function L7n(e,t){var n;return n=e.b,n.pf((bi(),rh))?n.ag()==(St(),er)?-n.Mf().a-ze(Ge(n.of(rh))):t+ze(Ge(n.of(rh))):n.ag()==(St(),er)?-n.Mf().a:t}function qN(e){var t;return e.b.c.length!=0&&l(jt(e.b,0),72).a?l(jt(e.b,0),72).a:(t=Qae(e),t??""+(e.c?dc(e.c.a,e,0):-1))}function fU(e){var t;return e.f.c.length!=0&&l(jt(e.f,0),72).a?l(jt(e.f,0),72).a:(t=Qae(e),t??""+(e.i?dc(e.i.j,e,0):-1))}function M7n(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(r=l(e.Xb(n),131),n==e.gc()-1||!r.o)return new la(pt(n),r);return null}function D7n(e,t,n){var r,a,o,f,g;for(o=e.c,g=n?t:e,r=n?e:t,a=g.p+1;a<r.p;++a)if(f=l(jt(o.a,a),10),!(f.k==(Zn(),V1)||s8n(f)))return!1;return!0}function ixe(e){var t,n,r,a,o;for(o=0,a=sa,r=0,n=new K(e.a);n.a<n.c.c.length;)t=l(re(n),172),o+=t.r+(r>0?e.c:0),a=b.Math.max(a,t.d),++r;e.e=o,e.b=a}function I7n(e){var t,n;if(!e.b)for(e.b=$H(l(e.f,123).kh().i),n=new or(l(e.f,123).kh());n.e!=n.i.gc();)t=l(gr(n),135),vt(e.b,new Yie(t));return e.b}function O7n(e,t){var n,r,a;if(t.dc())return Bk(),Bk(),hF;for(n=new Brt(e,t.gc()),a=new or(e);a.e!=a.i.gc();)r=gr(a),t.Hc(r)&&qr(n,r);return n}function sxe(e,t,n,r){return t==0?r?(!e.o&&(e.o=new El((su(),Tg),M2,e,0)),e.o):(!e.o&&(e.o=new El((su(),Tg),M2,e,0)),rN(e.o)):rU(e,t,n,r)}function yue(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)CO(Oe(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)CO(Oe(e.vb,t));G_((Cl(),io),e),e.Bb|=1}function is(e,t,n,r,a,o,f,g,w,E,C,L,B,z){return Ipt(e,t,r,null,a,o,f,g,w,E,B,!0,z),m8e(e,C),De(e.Cb,90)&&zy(Yl(l(e.Cb,90)),2),n&&b7e(e,n),v8e(e,L),e}function N7n(e){var t,n;if(e==null)return null;n=0;try{n=Ph(e,co,Oi)&Zs}catch(r){if(r=ms(r),De(r,130))t=iV(e),n=t[0];else throw ue(r)}return vN(n)}function P7n(e){var t,n;if(e==null)return null;n=0;try{n=Ph(e,co,Oi)&Zs}catch(r){if(r=ms(r),De(r,130))t=iV(e),n=t[0];else throw ue(r)}return vN(n)}function B7n(e,t){var n,r,a;return a=e.h-t.h,a<0||(n=e.l-t.l,r=e.m-t.m+(n>>22),a+=r>>22,a<0)?!1:(e.l=n&eh,e.m=r&eh,e.h=a&lp,!0)}function xue(e,t,n,r,a,o,f){var g,w;return!(t.Te()&&(w=e.a.Ne(n,r),w<0||!a&&w==0)||t.Ue()&&(g=e.a.Ne(n,o),g>0||!f&&g==0))}function F7n(e,t){EE();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return zce(t,cLe)-zce(e,cLe);case 4:return zce(e,oLe)-zce(t,oLe)}return 0}function R7n(e){switch(e.g){case 0:return D1e;case 1:return I1e;case 2:return O1e;case 3:return N1e;case 4:return QK;case 5:return P1e;default:return null}}function sc(e,t,n){var r,a;return r=(a=new Hie,Um(a,t),Fu(a,n),qr((!e.c&&(e.c=new nt(E3,e,12,10)),e.c),a),a),s2(r,0),My(r,1),l2(r,!0),u2(r,!0),r}function mx(e,t){var n,r;if(t>=e.i)throw ue(new Vse(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&bu(e.g,t+1,e.g,t,r),_s(e.g,--e.i,null),e.Qi(t,n),e.Ni(),n}function egt(e,t){var n,r;return e.Db>>16==17?e.Cb.Th(e,21,Hf,t):(r=Fo(l(Ln((n=l(Kn(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function j7n(e){var t,n,r,a;for(Cn(),Vs(e.c,e.a),a=new K(e.c);a.a<a.c.c.length;)for(r=re(a),n=new K(e.b);n.a<n.c.c.length;)t=l(re(n),693),t.bf(r)}function $7n(e){var t,n,r,a;for(Cn(),Vs(e.c,e.a),a=new K(e.c);a.a<a.c.c.length;)for(r=re(a),n=new K(e.b);n.a<n.c.c.length;)t=l(re(n),382),t.bf(r)}function z7n(e){var t,n,r,a,o;for(a=Oi,o=null,r=new K(e.d);r.a<r.c.c.length;)n=l(re(r),218),n.d.j^n.e.j&&(t=n.e.e-n.d.e-n.a,t<a&&(a=t,o=n));return o}function axe(){axe=U,d8t=new bn(PEe,(Vn(),!1)),l8t=new bn(BEe,100),aAe=(uA(),t1e),h8t=new bn(FEe,aAe),f8t=new bn(REe,Ad),g8t=new bn(jEe,pt(Oi))}function tgt(e,t,n){var r,a,o,f,g,w,E,C;for(E=0,a=e.a[t],o=0,f=a.length;o<f;++o)for(r=a[o],C=EA(r,n),w=C.Kc();w.Ob();)g=l(w.Pb(),12),Ei(e.f,g,pt(E++))}function q7n(e,t,n){var r,a,o,f;if(n)for(a=n.a.length,r=new Mm(a),f=(r.b-r.a)*r.c<0?(ab(),nm):new ub(r);f.Ob();)o=l(f.Pb(),17),xn(e,t,yx(_y(n,o.a)))}function H7n(e,t,n){var r,a,o,f;if(n)for(a=n.a.length,r=
|
|||
|
|
\r\f]+`);try{RM=he(le(zOn,1),Rn,2114,0,[new GI((iye(),KV("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",LO((zz(),zz(),OL))))),new GI(KV("yyyy-MM-dd'T'HH:mm:ss'.'SSS",LO(OL))),new GI(KV("yyyy-MM-dd'T'HH:mm:ss",LO(OL))),new GI(KV("yyyy-MM-dd'T'HH:mm",LO(OL))),new GI(KV("yyyy-MM-dd",LO(OL)))])}catch(e){if(e=ms(e),!De(e,82))throw ue(e)}}function oLn(e,t){var n,r,a,o;if(a=Jl(e.d,1)!=0,r=cke(e,t),r==0&&Rt(Bt(Q(t.j,(ft(),$b)))))return 0;!Rt(Bt(Q(t.j,(ft(),$b))))&&!Rt(Bt(Q(t.j,R6)))||qe(Q(t.j,(Nt(),wg)))===qe((yd(),T2))?t.c.mg(t.e,a):a=Rt(Bt(Q(t.j,$b))),oP(e,t,a,!0),Rt(Bt(Q(t.j,R6)))&&rt(t.j,R6,(Vn(),!1)),Rt(Bt(Q(t.j,$b)))&&(rt(t.j,$b,(Vn(),!1)),rt(t.j,R6,!0)),n=cke(e,t);do{if(w7e(e),n==0)return 0;a=!a,o=n,oP(e,t,a,!1),n=cke(e,t)}while(o>n);return o}function tvt(e,t){var n,r,a,o;if(a=Jl(e.d,1)!=0,r=xU(e,t),r==0&&Rt(Bt(Q(t.j,(ft(),$b)))))return 0;!Rt(Bt(Q(t.j,(ft(),$b))))&&!Rt(Bt(Q(t.j,R6)))||qe(Q(t.j,(Nt(),wg)))===qe((yd(),T2))?t.c.mg(t.e,a):a=Rt(Bt(Q(t.j,$b))),oP(e,t,a,!0),Rt(Bt(Q(t.j,R6)))&&rt(t.j,R6,(Vn(),!1)),Rt(Bt(Q(t.j,$b)))&&(rt(t.j,$b,(Vn(),!1)),rt(t.j,R6,!0)),n=xU(e,t);do{if(w7e(e),n==0)return 0;a=!a,o=n,oP(e,t,a,!1),n=xU(e,t)}while(o>n);return o}function Lke(e,t,n,r){var a,o,f,g,w,E,C,L,B;return w=va(new lt(n.a,n.b),e),E=w.a*t.b-w.b*t.a,C=t.a*r.b-t.b*r.a,L=(w.a*r.b-w.b*r.a)/C,B=E/C,C==0?E==0?(a=Ni(new lt(n.a,n.b),gd(new lt(r.a,r.b),.5)),o=bb(e,a),f=bb(Ni(new lt(e.a,e.b),t),a),g=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o<f&&o<=g?new lt(e.a,e.b):f<=g?Ni(new lt(e.a,e.b),t):null):null:L>=0&&L<=1&&B>=0&&B<=1?Ni(new lt(e.a,e.b),gd(new lt(t.a,t.b),L)):null}function cLn(e,t,n){var r,a,o,f,g;if(r=l(Q(e,(Nt(),J1e)),21),n.a>t.a&&(r.Hc((Wm(),kM))?e.c.a+=(n.a-t.a)/2:r.Hc(EM)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((Wm(),CM))?e.c.b+=(n.b-t.b)/2:r.Hc(TM)&&(e.c.b+=n.b-t.b)),l(Q(e,(ft(),Du)),21).Hc((zo(),mf))&&(n.a>t.a||n.b>t.b))for(g=new K(e.a);g.a<g.c.c.length;)f=l(re(g),10),f.k==(Zn(),Us)&&(a=l(Q(f,Wc),64),a==(St(),ar)?f.n.a+=n.a-t.a:a==Dr&&(f.n.b+=n.b-t.b));o=e.d,e.f.a=n.a-o.b-o.c,e.f.b=n.b-o.d-o.a}function uLn(e,t,n){var r,a,o,f,g;if(r=l(Q(e,(Nt(),J1e)),21),n.a>t.a&&(r.Hc((Wm(),kM))?e.c.a+=(n.a-t.a)/2:r.Hc(EM)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((Wm(),CM))?e.c.b+=(n.b-t.b)/2:r.Hc(TM)&&(e.c.b+=n.b-t.b)),l(Q(e,(ft(),Du)),21).Hc((zo(),mf))&&(n.a>t.a||n.b>t.b))for(f=new K(e.a);f.a<f.c.c.length;)o=l(re(f),10),o.k==(Zn(),Us)&&(a=l(Q(o,Wc),64),a==(St(),ar)?o.n.a+=n.a-t.a:a==Dr&&(o.n.b+=n.b-t.b));g=e.d,e.f.a=n.a-g.b-g.c,e.f.b=n.b-g.d-g.a}function lLn(e){var t,n,r,a,o,f,g,w,E,C,L,B;for(t=p2t(e),C=(g=new br(t).a.vc().Kc(),new Di(g));C.a.Ob();){for(E=(a=l(C.a.Pb(),44),l(a.ld(),10)),L=0,B=0,L=E.d.d,B=E.o.b+E.d.a,e.d[E.p]=0,n=E;(o=e.a[n.p])!=E;)r=s6n(n,o),w=0,e.c==(vd(),C2)?w=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:w=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,f=ze(e.d[n.p])+w,e.d[o.p]=f,L=b.Math.max(L,o.d.d-f),B=b.Math.max(B,f+o.o.b+o.d.a),n=o;n=E;do e.d[n.p]=ze(e.d[n.p])+L,n=e.a[n.p];while(n!=E);e.b[E.p]=L+B}}function JA(e,t,n){var r,a,o,f,g,w,E,C,L,B;for(o=0,f=e.t,a=0,r=0,w=0,B=0,L=0,n&&(e.n.c.length=0,vt(e.n,new PH(e.s,e.t,e.i))),g=0,C=new K(e.b);C.a<C.c.c.length;)E=l(re(C),27),o+E.g+(g>0?e.i:0)>t&&w>0&&(o=0,f+=w+e.i,a=b.Math.max(a,B),r+=w+e.i,w=0,B=0,n&&(++L,vt(e.n,new PH(e.s,f,e.i))),g=0),B+=E.g+(g>0?e.i:0),w=b.Math.max(w,E.f),n&&exe(l(jt(e.n,L),209),E),o+=E.g+(g>0?e.i:0),++g;return a=b.Math.max(a,B),r+=w,n&&(e.r=a,e.d=r,ixe(e.j)),new Zh(e.s,e.t,a,r)}function gle(e){var t,n,r,a,o,f,g,w,E,C,L,B;for(e.b=!1,L=gs,w=sa,B=gs,E=sa,r=e.e.a.ec().Kc();r.Ob();)for(n=l(r.Pb(),272),a=n.a,L=b.Math.min(L,a.c),w=b.Math.max(w,a.c+a.b),B=b.Math.min(B,a.d),E=b.Math.max(E,a.d+a.a),f=new K(n.c);f.a<f.c.c.length;)o=l(re(f),407),t=o.a,t.a?(C=a.d+o.b.b,g=C+o.c,B=b.Math.min(B,C),E=b.Math.max(E,g)):(C=a.c+o.b.a,g=C+o.c,L=b.Math.min(L,C),w=b.Math.max(w,g));e.a=new lt(w-L,E-B),e.c=new lt(L+e.d.a,B+e.d.b)}function f6(e){var t,n,r,a,o,f,g,w;if(!e.a){if(e.o=null,w=new yQe(e),t=new MS,n=zM,g=n.a.zc(e,n),g==null){for(f=new or(fc(e));f.e!=f.i.gc();)o=l(gr(f),29),Ms(w,f6(o));n.a.Bc(e)!=null,n.a.gc()==0}for(a=(!e.s&&(e.s=new nt(gl,e,21,17)),new or(e.s));a.e!=a.i.gc();)r=l(gr(a),179),De(r,331)&&qr(t,l(r,35));Iy(t),e.k=new Ui
|
|||
|
|
\r\r `),nc(u7,f0e,r),nc(oC,f0e,Uy(r)),r=new Lh(4),RN(r,X5t),nc(u7,IL,r),nc(oC,IL,Uy(r)),r=new Lh(4),RN(r,X5t),nc(u7,IL,r),nc(oC,IL,Uy(r)),r=new Lh(4),RN(r,Q5t),Ky(r,l(Eu(u7,IL),122)),nc(u7,h0e,r),nc(oC,h0e,Uy(r)),r=new Lh(4),RN(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),nc(u7,d0e,r),nc(oC,d0e,Uy(r)),r=new Lh(4),RN(r,Q5t),Cu(r,95,95),Cu(r,58,58),nc(u7,g0e,r),nc(oC,g0e,Uy(r))),n=l(Eu(t?u7:oC,e),138),n}function _wt(e){aw(e,new Ym(a3e(Uz(rw(ew(nw(tw(new v1,sr),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Ree),sr),ns((qE(),Jge),he(le(xY,1),it,245,0,[wY,yY,vY,Qge,mY,bY]))))),gt(e,sr,LTe,It(ode)),gt(e,sr,MTe,It(tDe)),gt(e,sr,_he,It(CB)),gt(e,sr,DTe,It(w0)),gt(e,sr,Ohe,It(q6)),gt(e,sr,dfe,It(m3)),gt(e,sr,ITe,It(y4)),gt(e,sr,OTe,It(UT)),gt(e,sr,NTe,It(GT)),gt(e,sr,PTe,It(cde)),gt(e,sr,Jy,It(v3)),gt(e,sr,BTe,It(ude)),gt(e,sr,FTe,It(eM)),gt(e,sr,RTe,It(kW)),gt(e,sr,lTe,It(TB)),gt(e,sr,fTe,It(z6)),gt(e,sr,hTe,It(mv)),gt(e,sr,dTe,It(H6)),gt(e,sr,OP,pt(0)),gt(e,sr,gTe,It(VT)),gt(e,sr,pTe,It(eDe)),gt(e,sr,bTe,It(Qx)),gt(e,sr,hp,It(lDe)),gt(e,sr,vG,It(rDe)),gt(e,sr,wG,It(iDe)),gt(e,sr,pL,It(hde)),gt(e,sr,sfe,It(sDe)),gt(e,sr,afe,It(aDe)),gt(e,sr,yG,It(EW)),gt(e,sr,xG,It(fde)),gt(e,sr,kG,It(cDe)),gt(e,sr,EG,It(oDe)),gt(e,sr,ofe,It(uDe)),gt(e,sr,Zhe,It(p3)),gt(e,sr,efe,It(ZL)),gt(e,sr,pG,It(rde)),gt(e,sr,bG,It(OMe)),gt(e,sr,NP,It(Qkt)),gt(e,sr,PP,It(Jkt)),gt(e,sr,BP,It(Xkt)),gt(e,sr,FP,It(Ykt)),gt(e,sr,Jw,nDe),gt(e,sr,Qw,YMe),gt(e,sr,qP,MMe),gt(e,sr,jTe,0),gt(e,sr,oG,pt(1)),gt(e,sr,Ix,uT),gt(e,sr,$Te,It(bv)),gt(e,sr,Nhe,It(Is)),gt(e,sr,zTe,It(HT)),gt(e,sr,HP,It(jkt)),gt(e,sr,qTe,It(Pd)),gt(e,sr,CG,It(p4)),gt(e,sr,uL,(Vn(),!0)),gt(e,sr,HTe,It(b4)),gt(e,sr,VTe,It(dv)),gt(e,sr,y6,It(pv)),gt(e,sr,Ox,It(xW)),gt(e,sr,lT,It(ade)),gt(e,sr,gfe,LMe),gt(e,sr,hT,It(g3)),gt(e,sr,UTe,It(wW)),gt(e,sr,fT,It(v4)),gt(e,sr,GTe,It(Ukt)),gt(e,sr,KTe,It(JMe)),gt(e,sr,WTe,QMe),gt(e,sr,YTe,It(qkt)),gt(e,sr,XTe,It(Hkt)),gt(e,sr,QTe,It(Vkt)),gt(e,sr,JTe,It(zkt)),gt(e,sr,QEe,It(lde)),gt(e,sr,zP,It(gv)),gt(e,sr,Vhe,It(qb
|
|||
|
|
`,F3t=`)]}"' \r
|
|||
|
|
`,R3t="The given string contains parts that cannot be parsed as numbers.",jP="org.eclipse.elk.core.math",j3t={3:1,4:1,140:1,214:1,423:1},$3t={3:1,4:1,107:1,214:1,423:1},w2="org.eclipse.elk.alg.layered.graph.transform",z3t="ElkGraphImporter",q3t="ElkGraphImporter/lambda$1$Type",H3t="ElkGraphImporter/lambda$2$Type",V3t="ElkGraphImporter/lambda$4$Type",rr="org.eclipse.elk.alg.layered.intermediate",U3t="Node margin calculation",G3t="ONE_SIDED_GREEDY_SWITCH",K3t="TWO_SIDED_GREEDY_SWITCH",Fhe="No implementation is available for the layout processor ",Rhe="IntermediateProcessorStrategy",jhe="Node '",W3t="FIRST_SEPARATE",Y3t="LAST_SEPARATE",X3t="Odd port side processing",oa="org.eclipse.elk.alg.layered.intermediate.compaction",dL="org.eclipse.elk.alg.layered.intermediate.greedyswitch",pg="org.eclipse.elk.alg.layered.p3order.counting",$P={230:1},Bx="org.eclipse.elk.alg.layered.intermediate.loops",Rh="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Ib="org.eclipse.elk.alg.layered.intermediate.loops.routing",qEe="org.eclipse.elk.alg.layered.intermediate.preserveorder",Md="org.eclipse.elk.alg.layered.intermediate.wrapping",ou="org.eclipse.elk.alg.layered.options",$he="INTERACTIVE",HEe="GREEDY",Q3t="DEPTH_FIRST",J3t="EDGE_LENGTH",Z3t="SELF_LOOPS",eyt="firstTryWithInitialOrder",VEe="org.eclipse.elk.layered.directionCongruency",UEe="org.eclipse.elk.layered.feedbackEdges",fG="org.eclipse.elk.layered.interactiveReferencePoint",GEe="org.eclipse.elk.layered.mergeEdges",KEe="org.eclipse.elk.layered.mergeHierarchyEdges",WEe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",YEe="org.eclipse.elk.layered.portSortingStrategy",XEe="org.eclipse.elk.layered.thoroughness",QEe="org.eclipse.elk.layered.unnecessaryBendpoints",JEe="org.eclipse.elk.layered.generatePositionAndLayerIds",zhe="org.eclipse.elk.layered.cycleBreaking.strategy",zP="org.eclipse.elk.layered.layering.strategy",ZEe="org.eclipse.elk.layered.layering.layerConstraint",eTe="org.eclipse.elk.layered.layering.layerChoiceConstraint",tTe="org.eclipse.elk.layered.layering.layerId",qhe="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Hhe="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Vhe="org.eclipse.elk.layered.layering.nodePromotion.strategy",Uhe="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Ghe="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",gL="org.eclipse.elk.layered.crossingMinimization.strategy",nTe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Khe="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Whe="org.eclipse.elk.layered.crossingMinimization.semiInteractive",rTe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",iTe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",sTe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",aTe="org.eclipse.elk.layered.crossingMinimization.positionId",oTe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Yhe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",dG="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",x6="org.eclipse.elk.layered.nodePlacement.strategy",gG="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Xhe="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Qhe="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Jhe="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Zhe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",efe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",cTe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",uTe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",pG="org.eclipse.elk.layered.edgeRouting.splines.mode",bG="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",tfe="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",lTe="org.eclipse.elk.layered.spacing.baseValue",hTe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",fTe="org.ecli
|
|||
|
|
`,t=pt(0),f=0;f<this.p;f++){for(r+=""+t.a,t=pt(Art(t.a)),a=0;a<this.o;a++)n=nce(this,a,f),iu(n,0)==0?r+="_":iu(n,1)==0?r+="X":r+="0";r+=`
|
|||
|
|
`}return ef(r,0,r.length-1)},h.o=0,h.p=0,I(rG,"TwoBitGrid",1317),D(330,1317,{330:1},I8e),h.j=0,h.k=0,I(rG,"PlanarGrid",330),D(176,330,{330:1,176:1}),h.g=0,h.i=0,I(rG,"Polyomino",176);var COn=Es(DP,y3t);D(137,1,EEe,ls),h.qf=function(t,n){return SN(this,t,n)},h.nf=function(){return lst(this)},h.of=function(t){return Q(this,t)},h.pf=function(t){return ts(this,t)},I(DP,"MapPropertyHolder",137),D(1318,137,EEe,dbt),I(rG,"Polyominoes",1318);var A7t=!1,FL,H_e;D(1828,1,fr,Da),h.Cd=function(t){pvt(l(t,225))},I(Dx,"DepthFirstCompaction/0methodref$compactTree$Type",1828),D(825,1,fr,Mz),h.Cd=function(t){Qgn(this.a,l(t,225))},I(Dx,"DepthFirstCompaction/lambda$1$Type",825),D(1829,1,fr,wit),h.Cd=function(t){e6n(this.a,this.b,this.c,l(t,225))},I(Dx,"DepthFirstCompaction/lambda$2$Type",1829);var RL,V_e;D(68,1,{68:1},Cot),I(Dx,"Node",68),D(1214,1,{},Tnt),I(Dx,"ScanlineOverlapCheck",1214),D(1215,1,{693:1},Zat),h.bf=function(t){Lfn(this,l(t,451))},I(Dx,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),D(1216,1,ii,ui),h.Ne=function(t,n){return F4n(l(t,68),l(n,68))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Dx,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),D(451,1,{451:1},M3e),h.a=!1,I(Dx,"ScanlineOverlapCheck/Timestamp",451),D(1217,1,ii,nu),h.Ne=function(t,n){return m8n(l(t,451),l(n,451))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Dx,"ScanlineOverlapCheck/lambda$0$Type",1217),D(557,1,{},Ot),I(x3t,"SVGImage",557),D(334,1,{334:1},m4e),h.Ib=function(){return"("+this.a+Eo+this.b+Eo+this.c+")"},I(x3t,"UniqueTriple",334),D(205,1,ev),I(m6,"AbstractLayoutProvider",205),D(1114,205,ev,W3),h.rf=function(t,n){var r,a,o,f;switch(n.Ug(k3t,1),this.a=ze(Ge(at(t,(DA(),X_e)))),I1(t,K0e)&&(o=ei(at(t,K0e)),r=ile(lE(),o),r&&(a=l(UO(r.f),205),a.rf(t,n.eh(1)))),f=new Uct(this.a),this.b=fDn(f,t),l(at(t,(Lce(),G_e)),489).g){case 0:AEn(new Kt,this.b),Hi(t,vK,Q(this.b,vK));break;default:Hg()}_Dn(f),Hi(t,W_e,this.b),n.Vg()},h.a=0,I(E3t,"DisCoLayoutProvider",1114),D(1208,1,{},Kt),h.c=!1,h.e=0,h.f=0,I(E3t,"DisCoPolyominoCompactor",1208),D(567,1,{567:1},cst),h.b=!0,I(sG,"DCComponent",567),D(406,22,{3:1,34:1,22:1,406:1},hq),h.a=!1;var bK,cB,mK,uB,L7t=Fr(sG,"DCDirection",406,Hr,emn,w0n),M7t;D(272,137,{3:1,272:1,96:1,137:1},Gue),I(sG,"DCElement",272),D(407,1,{407:1},nxe),h.c=0,I(sG,"DCExtension",407),D(762,137,EEe,YJe),I(sG,"DCGraph",762),D(489,22,{3:1,34:1,22:1,489:1},mrt);var G0e,U_e=Fr(She,TEe,489,Hr,cpn,y0n),D7t;D(865,1,Nf,tz),h.hf=function(t){sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,CEe),T3t),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),K_e),(p2(),ps)),U_e),un((e1(),Bn))))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,SEe),T3t),"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."),Q6),zt),un(Bn)))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,_Ee),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),K1),ya),un(Bn)))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,AEe),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),K1),ya),un(Bn)))),evt((new nz,t))};var I7t,G_e,K_e,O7t,N7t;I(She,"DisCoMetaDataProvider",865),D(1010,1,Nf,nz),h.hf=function(t){evt(t)};var P7t,K0e,B7t,W_e,vK,W0e,Y_e,F7t,R7t,j7t,$7t,X_e;I(She,"DisCoOptions",1010),D(1011,1,{},R0),h.sf=function(){var t;return t=new W3,t},h.tf=function(t){},I(She,"DisCoOptions/DiscoFactory",1011),D(568,176,{330:1,176:1,568:1},Y2t),h.a=0,h.b=0,h.c=0,h.d=0,I("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var Y0e,X0e,wK;D(1286,1,ti,Fp),h.Mb=function(t){return sye(t)},I(v6,"ElkGraphComponentsProcessor/lambda$0$Type",1286),D(1287,1,{},Y3),h.Kb=function(t){return ex(),og(l(t,74))},I(v6,"ElkGraphComponentsProcessor/lambda$1$Type",1287),D(1288,1,ti,j9),h.Mb=function(t){return _dn(l(t,74))},I(v6,"ElkGrap
|
|||
|
|
start=`,xu(t,this.i),t.a+=`
|
|||
|
|
end=`,xu(t,this.a),t.a+=`
|
|||
|
|
nodeStartEdge=`,xu(t,this.e),t.a+=`
|
|||
|
|
startEndEdge=`,xu(t,this.j),t.a+=`
|
|||
|
|
originalEdge=`,xu(t,this.f),t.a+=`
|
|||
|
|
startInLayerDummy=`,xu(t,this.k),t.a+=`
|
|||
|
|
startInLayerEdge=`,xu(t,this.n),t.a+=`
|
|||
|
|
endInLayerDummy=`,xu(t,this.b),t.a+=`
|
|||
|
|
endInLayerEdge=`,xu(t,this.c),t.a},I(Md,"BreakingPointInserter/BPInfo",313),D(661,1,{661:1},jYe),h.a=!1,h.b=0,h.c=0,I(Md,"BreakingPointInserter/Cut",661),D(1545,1,es,Dee),h.Kf=function(t,n){BTn(l(t,36),n)},I(Md,"BreakingPointProcessor",1545),D(1546,1,ti,Iee),h.Mb=function(t){return oht(l(t,10))},I(Md,"BreakingPointProcessor/0methodref$isEnd$Type",1546),D(1547,1,ti,Oee),h.Mb=function(t){return cht(l(t,10))},I(Md,"BreakingPointProcessor/1methodref$isStart$Type",1547),D(1548,1,es,Nee),h.Kf=function(t,n){iCn(this,l(t,36),n)},I(Md,"BreakingPointRemover",1548),D(1549,1,fr,Pee),h.Cd=function(t){l(t,131).k=!0},I(Md,"BreakingPointRemover/lambda$0$Type",1549),D(811,1,{},M9e),h.b=0,h.e=0,h.f=0,h.j=0,I(Md,"GraphStats",811),D(812,1,{},Gj),h.Ve=function(t,n){return b.Math.max(ze(Ge(t)),ze(Ge(n)))},I(Md,"GraphStats/0methodref$max$Type",812),D(813,1,{},Kj),h.Ve=function(t,n){return b.Math.max(ze(Ge(t)),ze(Ge(n)))},I(Md,"GraphStats/2methodref$max$Type",813),D(1726,1,{},Bee),h.Ve=function(t,n){return sdn(Ge(t),Ge(n))},I(Md,"GraphStats/lambda$1$Type",1726),D(1727,1,{},MYe),h.Kb=function(t){return ddt(this.a,l(t,30))},I(Md,"GraphStats/lambda$2$Type",1727),D(1728,1,{},DYe),h.Kb=function(t){return ibt(this.a,l(t,30))},I(Md,"GraphStats/lambda$6$Type",1728),D(814,1,{},Wj),h.og=function(t,n){var r;return r=l(Q(t,(Nt(),sDe)),15),r||(Cn(),Cn(),Co)},h.pg=function(){return!1},I(Md,"ICutIndexCalculator/ManualCutIndexCalculator",814),D(816,1,{},Yj),h.og=function(t,n){var r,a,o,f,g,w,E,C,L,B,z,V,J,te,fe,Te,Me,$e,Je;for(Je=(n.n==null&&zdt(n),n.n),E=(n.d==null&&zdt(n),n.d),$e=We(Pa,Qo,28,Je.length,15,1),$e[0]=Je[0],Te=Je[0],C=1;C<Je.length;C++)$e[C]=$e[C-1]+Je[C],Te+=Je[C];for(o=opt(n)-1,g=l(Q(t,(Nt(),aDe)),17).a,a=sa,r=new bt,z=b.Math.max(0,o-g);z<=b.Math.min(n.f-1,o+g);z++){if(te=Te/(z+1),fe=0,L=1,f=new bt,Me=sa,B=0,w=0,J=E[0],z==0)Me=Te,w=(n.g==null&&(n.g=Sft(n,new Kj)),ze(n.g));else{for(;L<n.f;)$e[L-1]-fe>=te&&(vt(f,pt(L)),Me=b.Math.max(Me,$e[L-1]-B),w+=J,fe+=$e[L-1]-fe,B=$e[L-1],J=E[L]),J=b.Math.max(J,E[L]),++L;w+=J}V=b.Math.min(1/Me,1/n.b/w),V>a&&(a=V,r=f)}return r},h.pg=function(){return!1},I(Md,"MSDCutIndexHeuristic",816),D(1683,1,es,Fee),h.Kf=function(t,n){GAn(l(t,36),n)},I(Md,"SingleEdgeGraphWrapper",1683),D(232,22,{3:1,34:1,22:1,232:1},k_);var I6,DT,IT,h4,zL,O6,OT=Fr(ou,"CenterEdgeLabelPlacementStrategy",232,Hr,Dvn,O0n),gxt;D(431,22,{3:1,34:1,22:1,431:1},N3e);var lLe,S1e,hLe=Fr(ou,"ConstraintCalculationStrategy",431,Hr,Qpn,N0n),pxt;D(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},wse),h.dg=function(){return Hpt(this)},h.qg=function(){return Hpt(this)};var bB,qL,fLe,dLe=Fr(ou,"CrossingMinimizationStrategy",322,Hr,U2n,P0n),bxt;D(351,22,{3:1,34:1,22:1,351:1},yse);var gLe,_1e,YK,pLe=Fr(ou,"CuttingStrategy",351,Hr,G2n,B0n),mxt;D(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},cO),h.dg=function(){return O2t(this)},h.qg=function(){return O2t(this)};var bLe,A1e,NT,L1e,PT,mLe=Fr(ou,"CycleBreakingStrategy",348,Hr,Ymn,F0n),vxt;D(428,22,{3:1,34:1,22:1,428:1},P3e);var XK,vLe,wLe=Fr(ou,"DirectionCongruency",428,Hr,Xpn,R0n),wxt;D(460,22,{3:1,34:1,22:1,460:1},xse);var BT,M1e,N6,yxt=Fr(ou,"EdgeConstraint",460,Hr,K2n,U0n),xxt;D(283,22,{3:1,34:1,22:1,283:1},E_);var D1e,I1e,O1e,N1e,QK,P1e,yLe=Fr(ou,"EdgeLabelSideSelection",283,Hr,Avn,G0n),kxt;D(488,22,{3:1,34:1,22:1,488:1},B3e);var JK,xLe,kLe=Fr(ou,"EdgeStraighteningStrategy",488,Hr,i2n,K0n),Ext;D(281,22,{3:1,34:1,22:1,281:1},T_);var B1e,ELe,TLe,ZK,CLe,SLe,_Le=Fr(ou,"FixedAlignment",281,Hr,Lvn,V0n),Txt;D(282,22,{3:1,34:1,22:1,282:1},C_);var ALe,LLe,MLe,DLe,HL,ILe,OLe=Fr(ou,"GraphCompactionStrategy",282,Hr,Mvn,j0n),Cxt;D(259,22,{3:1,34:1,22:1,259:1},uy);var FT,eW,RT,mf,VL,tW,jT,P6,nW,UL,F1e=Fr(ou,"GraphProperties",259,Hr,g3n,$0n),Sxt;D(299,22,{3:1,34:1,22:1,299:1},kse);var mB,R1e,j1e,$1e=Fr(ou,"GreedySwitchType",299,Hr,W2n,z0n),_xt;D(311,22,{3:1,34:1,22:1,311:1},Ese);var Vx,vB,B6,Axt=Fr(ou,"InLayerConstraint",311,Hr,Y2n,q0n),Lxt;D(429,22,{3:1,34:1,22:1,429:1},F3e);var z1e,NLe,PLe=Fr(ou,"InteractiveReferencePoint",429,Hr,Ypn,H0n),Mxt,BLe,Ux,u3,rW,FLe,RLe,iW,jLe,wB,sW,GL,Gx,gp,q1e,aW,Wc,$Le,$b,Du,H1e,V1e,yB,lv,l3,Kx,zLe,Wx,xB,
|
|||
|
|
`;for(n=Rr(this.a,0);n.b!=n.d.c;)t=l(Br(n),65),o+=(t.b&&t.c?Pm(t.b)+"->"+Pm(t.c):"e_"+Zi(t))+`
|
|||
|
|
`;return o};var OOn=I(mL,"TGraph",121);D(643,508,{3:1,508:1,643:1,96:1,137:1}),I(mL,"TShape",643),D(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},xce),h.Ib=function(){return Pm(this)};var PW=I(mL,"TNode",40);D(236,1,lg,qg),h.Jc=function(t){to(this,t)},h.Kc=function(){var t;return t=Rr(this.a.d,0),new T5(t)},I(mL,"TNode/2",236),D(329,1,Na,T5),h.Nb=function(t){Za(this,t)},h.Pb=function(){return l(Br(this.a),65).c},h.Ob=function(){return XI(this.a)},h.Qb=function(){Yoe(this.a)},I(mL,"TNode/2/1",329),D(1923,1,es,Bte),h.Kf=function(t,n){KIn(this,l(t,121),n)},I(Au,"CompactionProcessor",1923),D(1924,1,ii,dXe),h.Ne=function(t,n){return N3n(this.a,l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$0$Type",1924),D(1925,1,ti,itt),h.Mb=function(t){return $pn(this.b,this.a,l(t,42))},h.a=0,h.b=0,I(Au,"CompactionProcessor/lambda$1$Type",1925),D(1934,1,ii,a8),h.Ne=function(t,n){return Dgn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$10$Type",1934),D(1935,1,ii,Zj),h.Ne=function(t,n){return Uhn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$11$Type",1935),D(1936,1,ii,Fte),h.Ne=function(t,n){return Ign(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$12$Type",1936),D(1926,1,ti,gXe),h.Mb=function(t){return Ahn(this.a,l(t,42))},h.a=0,I(Au,"CompactionProcessor/lambda$2$Type",1926),D(1927,1,ti,pXe),h.Mb=function(t){return Lhn(this.a,l(t,42))},h.a=0,I(Au,"CompactionProcessor/lambda$3$Type",1927),D(1928,1,ti,gI),h.Mb=function(t){return l(t,40).c.indexOf(DG)==-1},I(Au,"CompactionProcessor/lambda$4$Type",1928),D(1929,1,{},bXe),h.Kb=function(t){return qbn(this.a,l(t,40))},h.a=0,I(Au,"CompactionProcessor/lambda$5$Type",1929),D(1930,1,{},mXe),h.Kb=function(t){return Xvn(this.a,l(t,40))},h.a=0,I(Au,"CompactionProcessor/lambda$6$Type",1930),D(1931,1,ii,vXe),h.Ne=function(t,n){return ovn(this.a,l(t,240),l(n,240))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$7$Type",1931),D(1932,1,ii,wXe),h.Ne=function(t,n){return cvn(this.a,l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$8$Type",1932),D(1933,1,ii,Rte),h.Ne=function(t,n){return Ghn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Vt(this)},I(Au,"CompactionProcessor/lambda$9$Type",1933),D(1921,1,es,jte),h.Kf=function(t,n){HSn(l(t,121),n)},I(Au,"DirectionProcessor",1921),D(1913,1,es,Urt),h.Kf=function(t,n){fAn(this,l(t,121),n)},I(Au,"FanProcessor",1913),D(1937,1,es,$te),h.Kf=function(t,n){DSn(l(t,121),n)},I(Au,"GraphBoundsProcessor",1937),D(1938,1,{},zte),h.Ye=function(t){return l(t,40).e.a},I(Au,"GraphBoundsProcessor/lambda$0$Type",1938),D(1939,1,{},qte),h.Ye=function(t){return l(t,40).e.b},I(Au,"GraphBoundsProcessor/lambda$1$Type",1939),D(1940,1,{},Hte),h.Ye=function(t){return hln(l(t,40))},I(Au,"GraphBoundsProcessor/lambda$2$Type",1940),D(1941,1,{},Vte),h.Ye=function(t){return lln(l(t,40))},I(Au,"GraphBoundsProcessor/lambda$3$Type",1941),D(262,22,{3:1,34:1,22:1,262:1,196:1},cw),h.dg=function(){switch(this.g){case 0:return new wJe;case 1:return new Urt;case 2:return new vJe;case 3:return new n$;case 4:return new Ute;case 8:return new e$;case 5:return new jte;case 6:return new i$;case 7:return new Bte;case 9:return new $te;case 10:return new Kte;default:throw ue(new Yn(Fhe+(this.f!=null?this.f:""+this.g)))}};var HDe,VDe,UDe,GDe,KDe,WDe,YDe,XDe,QDe,JDe,Dde,NOn=Fr(Au,Rhe,262,Hr,jft,p1n),gTt;D(1920,1,es,e$),h.Kf=function(t,n){VDn(l(t,121),n)},I(Au,"LevelCoordinatesProcessor",1920),D(1918,1,es,Ute),h.Kf=function(t,n){hCn(this,l(t,121),n)},h.a=0,I(Au,"LevelHeightProcessor",1918),D(1919,1,lg,t$),h.Jc=function(t){to(this,t)},h.Kc=function(){return Cn(),Lk(),_T},I(Au,"LevelHeightProcessor/1",1919),D(1914,1,es,vJe),h.Kf=function(t,n){CSn(this,l(t,121),n)},I(Au,"Level
|
|||
|
|
`),o.length!=2)throw ue(new Yn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=jy($y(o[0])),this.b=jy($y(o[1]))}catch(f){throw f=ms(f),De(f,130)?(r=f,ue(new Yn(R3t+r))):ue(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var Ta=I(jP,"KVector",8);D(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},vl,Gz,prt),h.Pc=function(){return jyn(this)},h.cg=function(t){var n,r,a,o,f,g;a=Gy(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|||
|
|
`),_h(this);try{for(r=0,f=0,o=0,g=0;r<a.length;)a[r]!=null&&$y(a[r]).length>0&&(f%2==0?o=jy(a[r]):g=jy(a[r]),f>0&&f%2!=0&&li(this,new lt(o,g)),++f),++r}catch(w){throw w=ms(w),De(w,130)?(n=w,ue(new Yn("The given string does not match the expected format for vectors."+n))):ue(w)}},h.Ib=function(){var t,n,r;for(t=new Sh("("),n=Rr(this,0);n.b!=n.d.c;)r=l(Br(n),8),fi(t,r.a+","+r.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var GOe=I(jP,"KVectorChain",75);D(255,22,{3:1,34:1,22:1,255:1},S_);var Sge,eY,tY,qB,HB,nY,KOe=Fr(nh,"Alignment",255,Hr,Bvn,H1n),TSt;D(991,1,Nf,fie),h.hf=function(t){Tmt(t)};var WOe,_ge,CSt,YOe,XOe,SSt,QOe,_St,ASt,JOe,ZOe,LSt;I(nh,"BoxLayouterOptions",991),D(992,1,{},Z9),h.sf=function(){var t;return t=new jne,t},h.tf=function(t){},I(nh,"BoxLayouterOptions/BoxFactory",992),D(298,22,{3:1,34:1,22:1,298:1},__);var kM,Age,EM,TM,CM,Lge,Mge=Fr(nh,"ContentAlignment",298,Hr,Fvn,V1n),MSt;D(699,1,Nf,uz),h.hf=function(t){sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,jyt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(p2(),Q6)),zt),un((e1(),Bn))))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,$yt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),K1),ROn),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,qTe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),eNe),ps),KOe),un(da)))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,Ix),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),lo),ta),un(Bn)))),sn(t,new Xt(nn(tn(rn(Qt(en(Jt(Zt(new Ut,tSe),""),"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."),K1),GOe),un(Rd)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,SG),""),"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."),nNe),e9),Mge),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,HP),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Vn(),!1)),xa),Bs),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,gfe),""),kEe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),rNe),ps),AM),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,qP),""),"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."),aNe),ps),Vge),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,ZCe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),xa),Bs),un(Bn)))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,CG),""),"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`."),uNe),ps),YNe),ns(Bn,he(le(yg,1),it,170,0,[da]))))),sn(t,new Xt(nn(tn(rn(yn(Qt(en(Jt(Zt(new Ut,Qw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output
|
|||
|
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|||
|
|
... Falling back to non-web worker version.`);if(!F.workerFactory){var ee=u("./elk-worker.min.js"),ie=ee.Worker;F.workerFactory=function(oe){return new ie(oe)}}return b(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,F))}return P}(T);Object.defineProperty(d.exports,"__esModule",{value:!0}),d.exports=_,_.default=_},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(u,d,p){d.exports=Worker},{}]},{},[3])(3)})})(GKe);var Dan=GKe.exports;const Ian=lC(Dan),KKe=new Ian;let Vv={};const Oan={};let K7={};const Nan=async function(i,s,u,d,p,v,b){const T=u.select(`[id="${s}"]`).insert("g").attr("class","nodes"),_=Object.keys(i);return await Promise.all(_.map(async function(A){const P=i[A];let R="default";P.classes.length>0&&(R=P.classes.join(" ")),R=R+" flowchart-label";const F=am(P.styles);let j=P.text!==void 0?P.text:P.id;const W={width:0,height:0},ee=[{id:P.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:P.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:P.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:P.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let ie=0,oe="",be={};switch(P.type){case"round":ie=5,oe="rect";break;case"square":oe="rect";break;case"diamond":oe="question",be={portConstraints:"FIXED_SIDE"};break;case"hexagon":oe="hexagon";break;case"odd":oe="rect_left_inv_arrow";break;case"lean_right":oe="lean_right";break;case"lean_left":oe="lean_left";break;case"trapezoid":oe="trapezoid";break;case"inv_trapezoid":oe="inv_trapezoid";break;case"odd_right":oe="rect_left_inv_arrow";break;case"circle":oe="circle";break;case"ellipse":oe="ellipse";break;case"stadium":oe="stadium";break;case"subroutine":oe="subroutine";break;case"cylinder":oe="cylinder";break;case"group":oe="rect";break;case"doublecircle":oe="doublecircle";break;default:oe="rect"}const ge={labelStyle:F.labelStyle,shape:oe,labelText:j,labelType:P.labelType,rx:ie,ry:ie,class:R,style:F.style,id:P.id,link:P.link,linkTarget:P.linkTarget,tooltip:p.db.getTooltip(P.id)||"",domId:p.db.lookUpDomId(P.id),haveCallback:P.haveCallback,width:P.type==="group"?500:void 0,dir:P.dir,type:P.type,props:P.props,padding:xh().flowchart.padding};let ae,ne;if(ge.type!=="group")ne=await tJ(T,ge,P.dir),ae=ne.node().getBBox();else{d.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:de,bbox:X}=await h1(T,ge,void 0,!0);W.width=X.width,W.wrappingWidth=xh().flowchart.wrappingWidth,W.height=X.height,W.labelNode=de.node(),ge.labelData=W}const se={id:P.id,ports:P.type==="diamond"?ee:[],layoutOptions:be,labelText:j,labelData:W,domId:p.db.lookUpDomId(P.id),width:ae==null?void 0:ae.width,height:ae==null?void 0:ae.height,type:P.type,el:ne,parent:v.parentById[P.id]};K7[ge.id]=se})),b},WKe=(i,s,u)=>{const d={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 d.TD=d.TB,d[u][s][i]},YKe=(i,s,u)=>{if(Xe.info("getNextPort",{node:i,edgeDirection:s,graphDirection:u}),!Vv[i])switch(u){case"TB":case"TD":Vv[i]={inPosition:"north",outPosition:"south"};break;case"BT":Vv[i]={inPosition:"south",outPosition:"north"};break;case"RL":Vv[i]={inPosition:"east",outPosition:"west"};break;case"LR":Vv[i]={inPosition:"west",outPosition:"east"};break}const d=s==="in"?Vv[i].inPosition:Vv[i].outPosition;return s==="in"?Vv[i].inPosition=WKe(Vv[i].inPosition,s,u):Vv[i].outPosition=WKe(Vv[i].outPosition,s,u),d},Pan=(i,s)=>{let u=i.start,d=i.end;const p=u,v=d,b=K7[u],y=K7[d];return!b||!y?{source:u,target:d}:(b.type==="diamond"&&(u=`${u}-${YKe(u,"out",s)}`),y.type==="diamond"&&(d=`${d}-${YKe(d,"in",s)}`),{source:u,target:d,sourceId:p,targetId:v})},Ban=function(i,s,u,d){Xe.info("abc78 edges = ",i);const p=d.insert("g").attr("class","edgeLabels");let v={},b=s.db.getDirection(),y,T;if(i.defaultStyle!==void 0){const _=am(i.defaultStyle);y=_.style,T=_.labelStyle}return i.forEach(function(_){const A="L-"+_.start+"-"+_.end;v[A]===void 0?(v[A]=0,Xe.info("abc78 new en
|
|||
|
|
`),_.style===void 0&&(j.style=j.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),j.labelStyle=j.labelStyle.replace("color:","fill:"),j.id=P,j.classes="flowchart-link "+R+" "+F;const ie=zme(p,j),{source:oe,target:be,sourceId:ge,targetId:ae}=Pan(_,b);Xe.debug("abc78 source and target",oe,be),u.edges.push({id:"e"+_.start+_.end,sources:[oe],targets:[be],sourceId:ge,targetId:ae,labelEl:ie,labels:[{width:j.width,height:j.height,orgWidth:j.width,orgHeight:j.height,text:j.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:j})}),u},Fan=function(i,s,u,d,p){let v="";d&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),DUe(i,s,v,p,u)},Ran=function(i,s){return Xe.info("Extracting classes"),s.db.getClasses()},jan=function(i){const s={parentById:{},childrenById:{}},u=i.getSubGraphs();return Xe.info("Subgraphs - ",u),u.forEach(function(d){d.nodes.forEach(function(p){s.parentById[p]=d.id,s.childrenById[d.id]===void 0&&(s.childrenById[d.id]=[]),s.childrenById[d.id].push(p)})}),u.forEach(function(d){d.id,s.parentById[d.id]!==void 0&&s.parentById[d.id]}),s},$an=function(i,s,u){const d=Man(i,s,u);if(d===void 0||d==="root")return{x:0,y:0};const p=K7[d].offset;return{x:p.posX,y:p.posY}},zan=function(i,s,u,d,p,v){const b=$an(s.sourceId,s.targetId,p),y=s.sections[0].startPoint,T=s.sections[0].endPoint,A=(s.sections[0].bendPoints?s.sections[0].bendPoints:[]).map(be=>[be.x+b.x,be.y+b.y]),P=[[y.x+b.x,y.y+b.y],...A,[T.x+b.x,T.y+b.y]],{x:R,y:F}=MUe(s.edgeData),j=x7().x(R).y(F).curve(xp),W=i.insert("path").attr("d",j(P)).attr("class","path "+u.classes).attr("fill","none"),ee=i.insert("g").attr("class","edgeLabel"),ie=Ir(ee.node().appendChild(s.labelEl)),oe=ie.node().firstChild.getBoundingClientRect();ie.attr("width",oe.width),ie.attr("height",oe.height),ee.attr("transform",`translate(${s.labels[0].x+b.x}, ${s.labels[0].y+b.y})`),Fan(W,u,d.type,d.arrowMarkerAbsolute,v)},XKe=(i,s)=>{i.forEach(u=>{u.children||(u.children=[]);const d=s.childrenById[u.id];d&&d.forEach(p=>{u.children.push(K7[p])}),XKe(u.children,s)})},qan=async function(i,s,u,d){var se;d.db.clear(),K7={},Vv={},d.db.setGen("gen-2"),d.parser.parse(i);const p=Ir("body").append("div").attr("style","height:400px").attr("id","cy");let v={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(Xe.info("Drawing flowchart using v3 renderer",KKe),d.db.getDirection()){case"BT":v.layoutOptions["elk.direction"]="UP";break;case"TB":v.layoutOptions["elk.direction"]="DOWN";break;case"LR":v.layoutOptions["elk.direction"]="RIGHT";break;case"RL":v.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:y,flowchart:T}=xh();let _;y==="sandbox"&&(_=Ir("#i"+s));const A=Ir(y==="sandbox"?_.nodes()[0].contentDocument.body:"body"),P=y==="sandbox"?_.nodes()[0].contentDocument:document,R=A.select(`[id="${s}"]`);Sme(R,["point","circle","cross"],d.type,s);const j=d.db.getVertices();let W;const ee=d.db.getSubGraphs();Xe.info("Subgraphs - ",ee);for(let de=ee.length-1;de>=0;de--)W=ee[de],d.db.addVertex(W.id,{text:W.title,type:W.labelType},"group",void 0,W.classes,W.dir);const ie=R.insert("g").attr("class","subgraphs"),oe=jan(d.db);v=await Nan(j,s,A,P,d,oe,v);const be=R.insert("g").attr("class","edges edgePath"),ge=d.db.getEdges();v=Ban(ge,d,v,R),Object.keys(K7).forEach(de=>{const X=K7[de];X.parent||v.children.push(X),oe.childrenById[de]!==void 0&&(X.labels=[{text:X.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:X.labelData.width,height:X.labelData.height}],delete X.x,delete X.y,delete X.width,delete X.height)}),XKe(v.children,oe),Xe.info("after layout",JSON.stringify(v,null,2));const ne=await KKe.layout(v);QKe(0,0,ne.children,R,ie,d,0),Xe.info("after layout",ne),(se=ne.edges)==null||se.map(de=>{zan(be,de,de.edgeData,d,oe,s)}),w9({},R,T.diagramPadding,
|
|||
|
|
.subgraph-lvl-${u} {
|
|||
|
|
fill: ${i[`surface${u}`]};
|
|||
|
|
stroke: ${i[`surfacePeer${u}`]};
|
|||
|
|
}
|
|||
|
|
`;return s},Uan=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:OUt,renderer:Han,parser:Gbe,styles:i=>`.label {
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label span {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.label text,span {
|
|||
|
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node rect,
|
|||
|
|
.node circle,
|
|||
|
|
.node ellipse,
|
|||
|
|
.node polygon,
|
|||
|
|
.node path {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node .label {
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
.node.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.arrowheadPath {
|
|||
|
|
fill: ${i.arrowheadColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgePath .path {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 2.0px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchart-link {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeLabel {
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
rect {
|
|||
|
|
opacity: 0.85;
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
fill: ${i.edgeLabelBackground};
|
|||
|
|
}
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster rect {
|
|||
|
|
fill: ${i.clusterBkg};
|
|||
|
|
stroke: ${i.clusterBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster span {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
/* .cluster div {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
} */
|
|||
|
|
|
|||
|
|
div.mermaidTooltip {
|
|||
|
|
position: absolute;
|
|||
|
|
text-align: center;
|
|||
|
|
max-width: 200px;
|
|||
|
|
padding: 2px;
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: 12px;
|
|||
|
|
background: ${i.tertiaryColor};
|
|||
|
|
border: 1px solid ${i.border2};
|
|||
|
|
border-radius: 2px;
|
|||
|
|
pointer-events: none;
|
|||
|
|
z-index: 100;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchartTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
.subgraph {
|
|||
|
|
stroke-width:2;
|
|||
|
|
rx:3;
|
|||
|
|
}
|
|||
|
|
// .subgraph-lvl-1 {
|
|||
|
|
// fill:#ccc;
|
|||
|
|
// // stroke:black;
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
.flowchart-label text {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
${Van(i)}
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var Qve=function(){var i=function(R,F,j,W){for(j=j||{},W=R.length;W--;j[R[W]]=F);return j},s=[6,8,10,11,12,14,16,17,20,21],u=[1,9],d=[1,10],p=[1,11],v=[1,12],b=[1,13],y=[1,16],T=[1,17],_={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(F,j,W,ee,ie,oe,be){var ge=oe.length-1;switch(ie){case 1:return oe[ge-1];case 2:this.$=[];break;case 3:oe[ge-1].push(oe[ge]),this.$=oe[ge-1];break;case 4:case 5:this.$=oe[ge];break;case 6:case 7:this.$=[];break;case 8:ee.getCommonDb().setDiagramTitle(oe[ge].substr(6)),this.$=oe[ge].substr(6);break;case 9:this.$=oe[ge].trim(),ee.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=oe[ge].trim(),ee.getCommonDb().setAccDescription(this.$);break;case 12:ee.addSection(oe[ge].substr(8)),this.$=oe[ge].substr(8);break;case 15:ee.addTask(oe[ge],0,""),this.$=oe[ge];break;case 16:ee.addEvent(oe[ge].substr(2)),this.$=oe[ge];break}},table:[{3:1,4:[1,2]},{1:[3]},i(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:u,12:d,14:p,16:v,17:b,18:14,19:15,20:y,21:T},i(s,[2,7],{1:[2,1]}),i(s,[2,3]),{9:18,11:u,12:d,14:p,16:v,17:b,18:14,19:15,20:y,21:T},i(s,[2,5]),i(s,[2,6]),i(s,[2,8]),{13:[1,19]},{15:[1,20]},i(s,[2,11]),i(s,[2,12]),i(s,[2,13]),i(s,[2,14]),i(s,[2,15]),i(s,[2,16]),i(s,[2,4]),i(s,[2,9]),i(s,[2,10])],defaultActions:{},parseError:function(F,j){if(j.recoverable)this.trace(F);else{var W=new Error(F);throw W.hash=j,W}},parse:function(F){var j=this,W=[0],ee=[],ie=[null],oe=[],be=this.table,ge="",ae=0,ne=0,se=2,de=1,X=oe.slice.call(arguments,1),pe=Object.create(this.lexer),G={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(G.yy[xe]=this.yy[xe]);pe.setInput(F,G.yy),G.yy.lexer=pe,G.yy.parser=this,typeof pe.yylloc>"u"&&(pe.yylloc={});var U=pe.yylloc;oe.push(U);var Be=pe.options&&pe.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(){var Et;return Et=ee.pop()||pe.lex()||de,typeof Et!="number"&&(Et instanceof Array&&(ee=Et,Et=ee.pop()),Et=j.symbols_[Et]||Et),Et}for(var je,Ie,Se,Ce,ke={},Ke,Ft,Pe,gn;;){if(Ie=W[W.length-1],this.defaultActions[Ie]?Se=this.defaultActions[Ie]:((je===null||typeof je>"u")&&(je=Ne()),Se=be[Ie]&&be[Ie][je]),typeof Se>"u"||!Se.length||!Se[0]){var kt="";gn=[];for(Ke in be[Ie])this.terminals_[Ke]&&Ke>se&&gn.push("'"+this.terminals_[Ke]+"'");pe.showPosition?kt="Parse error on line "+(ae+1)+`:
|
|||
|
|
`+pe.showPosition()+`
|
|||
|
|
Expecting `+gn.join(", ")+", got '"+(this.terminals_[je]||je)+"'":kt="Parse error on line "+(ae+1)+": Unexpected "+(je==de?"end of input":"'"+(this.terminals_[je]||je)+"'"),this.parseError(kt,{text:pe.match,token:this.terminals_[je]||je,line:pe.yylineno,loc:U,expected:gn})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+je);switch(Se[0]){case 1:W.push(je),ie.push(pe.yytext),oe.push(pe.yylloc),W.push(Se[1]),je=null,ne=pe.yyleng,ge=pe.yytext,ae=pe.yylineno,U=pe.yylloc;break;case 2:if(Ft=this.productions_[Se[1]][1],ke.$=ie[ie.length-Ft],ke._$={first_line:oe[oe.length-(Ft||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(Ft||1)].first_column,last_column:oe[oe.length-1].last_column},Be&&(ke._$.range=[oe[oe.length-(Ft||1)].range[0],oe[oe.length-1].range[1]]),Ce=this.performAction.apply(ke,[ge,ne,ae,G.yy,Se[1],ie,oe].concat(X)),typeof Ce<"u")return Ce;Ft&&(W=W.slice(0,-1*Ft*2),ie=ie.slice(0,-1*Ft),oe=oe.slice(0,-1*Ft)),W.push(this.productions_[Se[1]][0]),ie.push(ke.$),oe.push(ke._$),Pe=be[W[W.length-2]][W[W.length-1]],W.push(Pe);break;case 3:return!0}}return!0}},A=function(){var R={EOF:1,parseError:function(j,W){if(this.yy.parser)this.yy.parser.parseError(j,W);else throw new Error(j)},setInput:function(F,j){return this.yy=j||this.yy||{},this._input=F,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 F=this._input[0];this.yytext+=F,this.yyleng++,this.offset++,this.match+=F,this.matched+=F;var j=F.match(/(?:\r\n?|\n).*/g);return j?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),F},unput:function(F){var j=F.length,W=F.split(/(?:\r\n?|\n)/g);this._input=F+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j),this.offset-=j;var ee=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),W.length-1&&(this.yylineno-=W.length-1);var ie=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:W?(W.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-W.length].length-W[0].length:this.yylloc.first_column-j},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-j]),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(F){this.unput(this.match.slice(F))},pastInput:function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var F=this.match;return F.length<20&&(F+=this._input.substr(0,20-F.length)),(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var F=this.pastInput(),j=new Array(F.length+1).join("-");return F+this.upcomingInput()+`
|
|||
|
|
`+j+"^"},test_match:function(F,j){var W,ee,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),ee=F[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length},this.yytext+=F[0],this.match+=F[0],this.matches=F,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(F[0].length),this.matched+=F[0],W=this.performAction.call(this,this.yy,this,j,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),W)return W;if(this._backtrack){for(var oe in ie)this[oe]=ie[oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var F,j,W,ee;this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),oe=0;oe<ie.length;oe++)if(W=this._input.match(this.rules[ie[oe]]),W&&(!j||W[0].length>j[0].length)){if(j=W,ee=oe,this.options.backtrack_lexer){if(F=this.test_match(W,ie[oe]),F!==!1)return F;if(this._backtrack){j=!1;continue}else return!1}else if(!this.options.flex)break}return j?(F=this.test_match(j,ie[ee]),F!==!1?F:!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 j=this.next();return j||this.lex()},begin:function(j){this.conditionStack.push(j)},popState:function(){var j=this.conditionStack.length-1;return j>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(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},pushState:function(j){this.begin(j)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(j,W,ee,ie){switch(ee){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return R}();_.lexer=A;function P(){this.yy={}}return P.prototype=_,_.Parser=P,new P}();Qve.parser=Qve;const Gan=Qve;let JD="",JKe=0;const Jve=[],IJ=[],ZD=[],ZKe=()=>e$e,eWe=function(){Jve.length=0,IJ.length=0,JD="",ZD.length=0,Ng()},tWe=function(i){JD=i,Jve.push(i)},nWe=function(){return Jve},rWe=function(){let i=oWe();const s=100;let u=0;for(;!i&&u<s;)i=oWe(),u++;return IJ.push(...ZD),IJ},iWe=function(i,s,u){const d={id:JKe++,section:JD,type:JD,task:i,score:s||0,events:u?[u]:[]};ZD.push(d)},sWe=function(i){ZD.find(u=>u.id===JKe-1).events.push(i)},aWe=function(i){const s={section:JD,type:JD,description:i,task:i,classes:[]};IJ.push(s)},oWe=function(){const i=function(u){return ZD[u].processed};let s=!0;for(const[u,d]of ZD.entries())i(u),s=s&&d.processed;return s},Kan=Object.freeze(Object.defineProperty({__proto__:null,addEvent:sWe,addSection:tWe,addTask:iWe,addTaskOrg:aWe,clear:eWe,default:{clear:eWe,getCommonDb:ZKe,addSection:tWe,getSections:nWe,getTasks:rWe,addTask:iWe,addTaskOrg:aWe,addEvent:sWe},getCommonDb:ZKe,getSections:nWe,getTasks:rWe},Symbol.toStringTag,{value:"Module"})),Wan=12,OJ=function(i,s){const u=i.append("rect");return u.attr("x",s.x),u.attr("y",s.y),u.attr("fill",s.fill),u.attr("stroke",s.stroke),u.attr("width",s.width),u.attr("height",s.height),u.attr("rx",s.rx),u.attr("ry",s.ry),s.class!==void 0&&u.attr("class",s.class),u},Yan=function(i,s){const d=i.append("circle").attr("cx",s.cx).attr("cy",s.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),p=i.append("g");p.append("circle").attr("cx",s.cx-15/3).attr("cy",s.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",s.cx+15/3).attr("cy",s.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(T){const _=uD().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);T.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+s.cx+","+(s.cy+2)+")")}function b(T){const _=uD().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);T.append("path").attr("class","mouth").attr("d",_).attr("transform",
|
|||
|
|
.section-${u-1} rect, .section-${u-1} path, .section-${u-1} circle, .section-${u-1} path {
|
|||
|
|
fill: ${i["cScale"+u]};
|
|||
|
|
}
|
|||
|
|
.section-${u-1} text {
|
|||
|
|
fill: ${i["cScaleLabel"+u]};
|
|||
|
|
}
|
|||
|
|
.node-icon-${u-1} {
|
|||
|
|
font-size: 40px;
|
|||
|
|
color: ${i["cScaleLabel"+u]};
|
|||
|
|
}
|
|||
|
|
.section-edge-${u-1}{
|
|||
|
|
stroke: ${i["cScale"+u]};
|
|||
|
|
}
|
|||
|
|
.edge-depth-${u-1}{
|
|||
|
|
stroke-width: ${d};
|
|||
|
|
}
|
|||
|
|
.section-${u-1} line {
|
|||
|
|
stroke: ${i["cScaleInv"+u]} ;
|
|||
|
|
stroke-width: 3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.lineWrapper line{
|
|||
|
|
stroke: ${i["cScaleLabel"+u]} ;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.disabled, .disabled circle, .disabled text {
|
|||
|
|
fill: lightgray;
|
|||
|
|
}
|
|||
|
|
.disabled text {
|
|||
|
|
fill: #efefef;
|
|||
|
|
}
|
|||
|
|
`}return s},lon=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:Kan,renderer:con,parser:Gan,styles:i=>`
|
|||
|
|
.edge {
|
|||
|
|
stroke-width: 3;
|
|||
|
|
}
|
|||
|
|
${uon(i)}
|
|||
|
|
.section-root rect, .section-root path, .section-root circle {
|
|||
|
|
fill: ${i.git0};
|
|||
|
|
}
|
|||
|
|
.section-root text {
|
|||
|
|
fill: ${i.gitBranchLabel0};
|
|||
|
|
}
|
|||
|
|
.icon-container {
|
|||
|
|
height:100%;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: center;
|
|||
|
|
align-items: center;
|
|||
|
|
}
|
|||
|
|
.edge {
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
.eventWrapper {
|
|||
|
|
filter: brightness(120%);
|
|||
|
|
}
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var ewe=function(){var i=function(ge,ae,ne,se){for(ne=ne||{},se=ge.length;se--;ne[ge[se]]=ae);return ne},s=[1,4],u=[1,13],d=[1,12],p=[1,15],v=[1,16],b=[1,20],y=[1,19],T=[6,7,8],_=[1,26],A=[1,24],P=[1,25],R=[6,7,11],F=[1,6,13,15,16,19,22],j=[1,33],W=[1,34],ee=[1,6,7,11,13,15,16,19,22],ie={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(ae,ne,se,de,X,pe,G){var xe=pe.length-1;switch(X){case 6:case 7:return de;case 8:de.getLogger().trace("Stop NL ");break;case 9:de.getLogger().trace("Stop EOF ");break;case 11:de.getLogger().trace("Stop NL2 ");break;case 12:de.getLogger().trace("Stop EOF2 ");break;case 15:de.getLogger().info("Node: ",pe[xe].id),de.addNode(pe[xe-1].length,pe[xe].id,pe[xe].descr,pe[xe].type);break;case 16:de.getLogger().trace("Icon: ",pe[xe]),de.decorateNode({icon:pe[xe]});break;case 17:case 21:de.decorateNode({class:pe[xe]});break;case 18:de.getLogger().trace("SPACELIST");break;case 19:de.getLogger().trace("Node: ",pe[xe].id),de.addNode(0,pe[xe].id,pe[xe].descr,pe[xe].type);break;case 20:de.decorateNode({icon:pe[xe]});break;case 25:de.getLogger().trace("node found ..",pe[xe-2]),this.$={id:pe[xe-1],descr:pe[xe-1],type:de.getType(pe[xe-2],pe[xe])};break;case 26:this.$={id:pe[xe],descr:pe[xe],type:de.nodeType.DEFAULT};break;case 27:de.getLogger().trace("node found ..",pe[xe-3]),this.$={id:pe[xe-3],descr:pe[xe-1],type:de.getType(pe[xe-2],pe[xe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:u,7:[1,10],9:9,12:11,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},i(T,[2,3]),{1:[2,2]},i(T,[2,4]),i(T,[2,5]),{1:[2,6],6:u,12:21,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},{6:u,9:22,12:11,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},{6:_,7:A,10:23,11:P},i(R,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:y}),i(R,[2,18]),i(R,[2,19]),i(R,[2,20]),i(R,[2,21]),i(R,[2,23]),i(R,[2,24]),i(R,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:A,10:32,11:P},{1:[2,7],6:u,12:21,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},i(F,[2,14],{7:j,11:W}),i(ee,[2,8]),i(ee,[2,9]),i(ee,[2,10]),i(R,[2,15]),i(R,[2,16]),i(R,[2,17]),{20:[1,35]},{21:[1,36]},i(F,[2,13],{7:j,11:W}),i(ee,[2,11]),i(ee,[2,12]),{21:[1,37]},i(R,[2,25]),i(R,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(ae,ne){if(ne.recoverable)this.trace(ae);else{var se=new Error(ae);throw se.hash=ne,se}},parse:function(ae){var ne=this,se=[0],de=[],X=[null],pe=[],G=this.table,xe="",U=0,Be=0,Ne=2,je=1,Ie=pe.slice.call(arguments,1),Se=Object.create(this.lexer),Ce={yy:{}};for(var ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ke)&&(Ce.yy[ke]=this.yy[ke]);Se.setInput(ae,Ce.yy),Ce.yy.lexer=Se,Ce.yy.parser=this,typeof Se.yylloc>"u"&&(Se.yylloc={});var Ke=Se.yylloc;pe.push(Ke);var Ft=Se.options&&Se.options.ranges;typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(){var On;return On=de.pop()||Se.lex()||je,typeof On!="number"&&(On instanceof Array&&(de=On,On=de.pop()),On=ne.symbols_[On]||On),On}for(var gn,kt,Et,Gt,ln={},xt,Pt,Ze,At;;){if(kt=se[se.length-1],this.defaultActions[kt]?Et=this.defaultActions[kt]:((gn===null||typeof gn>"u")&&(gn=Pe()),Et=G[kt]&&G[kt][gn]),typeof Et>"u"||!Et.length||!Et[0]){var Tt="";At=[];for(xt in G[kt])this.terminals_[xt]&&xt>Ne&&At.push("'"+this.terminals_[xt]+"'");Se.showPosition?Tt="Parse error on line "+(U+1)+`:
|
|||
|
|
`+Se.showPosition()+`
|
|||
|
|
Expecting `+At.join(", ")+", got '"+(this.terminals_[gn]||gn)+"'":Tt="Parse error on line "+(U+1)+": Unexpected "+(gn==je?"end of input":"'"+(this.terminals_[gn]||gn)+"'"),this.parseError(Tt,{text:Se.match,token:this.terminals_[gn]||gn,line:Se.yylineno,loc:Ke,expected:At})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+gn);switch(Et[0]){case 1:se.push(gn),X.push(Se.yytext),pe.push(Se.yylloc),se.push(Et[1]),gn=null,Be=Se.yyleng,xe=Se.yytext,U=Se.yylineno,Ke=Se.yylloc;break;case 2:if(Pt=this.productions_[Et[1]][1],ln.$=X[X.length-Pt],ln._$={first_line:pe[pe.length-(Pt||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(Pt||1)].first_column,last_column:pe[pe.length-1].last_column},Ft&&(ln._$.range=[pe[pe.length-(Pt||1)].range[0],pe[pe.length-1].range[1]]),Gt=this.performAction.apply(ln,[xe,Be,U,Ce.yy,Et[1],X,pe].concat(Ie)),typeof Gt<"u")return Gt;Pt&&(se=se.slice(0,-1*Pt*2),X=X.slice(0,-1*Pt),pe=pe.slice(0,-1*Pt)),se.push(this.productions_[Et[1]][0]),X.push(ln.$),pe.push(ln._$),Ze=G[se[se.length-2]][se[se.length-1]],se.push(Ze);break;case 3:return!0}}return!0}},oe=function(){var ge={EOF:1,parseError:function(ne,se){if(this.yy.parser)this.yy.parser.parseError(ne,se);else throw new Error(ne)},setInput:function(ae,ne){return this.yy=ne||this.yy||{},this._input=ae,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 ae=this._input[0];this.yytext+=ae,this.yyleng++,this.offset++,this.match+=ae,this.matched+=ae;var ne=ae.match(/(?:\r\n?|\n).*/g);return ne?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ae},unput:function(ae){var ne=ae.length,se=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ne),this.offset-=ne;var de=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),se.length-1&&(this.yylineno-=se.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:se?(se.length===de.length?this.yylloc.first_column:0)+de[de.length-se.length].length-se[0].length:this.yylloc.first_column-ne},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-ne]),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(ae){this.unput(this.match.slice(ae))},pastInput:function(){var ae=this.matched.substr(0,this.matched.length-this.match.length);return(ae.length>20?"...":"")+ae.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ae=this.match;return ae.length<20&&(ae+=this._input.substr(0,20-ae.length)),(ae.substr(0,20)+(ae.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ae=this.pastInput(),ne=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+`
|
|||
|
|
`+ne+"^"},test_match:function(ae,ne){var se,de,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))),de=ae[0].match(/(?:\r\n?|\n).*/g),de&&(this.yylineno+=de.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:de?de[de.length-1].length-de[de.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ae[0].length},this.yytext+=ae[0],this.match+=ae[0],this.matches=ae,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(ae[0].length),this.matched+=ae[0],se=this.performAction.call(this,this.yy,this,ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var pe in X)this[pe]=X[pe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ae,ne,se,de;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),pe=0;pe<X.length;pe++)if(se=this._input.match(this.rules[X[pe]]),se&&(!ne||se[0].length>ne[0].length)){if(ne=se,de=pe,this.options.backtrack_lexer){if(ae=this.test_match(se,X[pe]),ae!==!1)return ae;if(this._backtrack){ne=!1;continue}else return!1}else if(!this.options.flex)break}return ne?(ae=this.test_match(ne,X[de]),ae!==!1?ae:!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 ne=this.next();return ne||this.lex()},begin:function(ne){this.conditionStack.push(ne)},popState:function(){var ne=this.conditionStack.length-1;return ne>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(ne){return ne=this.conditionStack.length-1-Math.abs(ne||0),ne>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,se,de,X){switch(de){case 0:return ne.getLogger().trace("Found comment",se.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:ne.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return ne.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:ne.getLogger().trace("end icon"),this.popState();break;case 10:return ne.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return ne.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return ne.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return ne.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:ne.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return ne.getLogger().trace("description:",se.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),ne.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),ne.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),ne.getLogger().trace("node end ...",se.yytext),"NODE_DEND";case 30:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),ne.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),ne.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 35:return ne.getLogger().trace("Long description:",se.yytext),20;case 36:return ne.getLogger().trace("Long description:",se.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return ge}();ie.lexer=oe;function be(){this.yy={}}return be.prototype=ie,ie.Parser=be,new be}();ewe.parser=ewe;const hon=ewe;let K3=[],dWe=0,twe={};const fon=()=>{K3=[],dWe=0,twe={}},don=function(i){for(let s=K3.length-1;s>=0;s--)if(K3[s].level<i)return K3[s];return null},gon=()=>K3.length>0?K3[0]:null,pon=(i,s,u,d)=>{var T,_;Xe.info("addNode",i,s,u,d);const p=qt();let v=((T=p.mindmap)==null?void 0:T.padding)??sh.mindmap.padding;switch(d){case p1.ROUNDED_RECT:case p1.RECT:case p1.HEXAGON:v*=2}const b={id:dWe++,nodeId:yh(s,p),level:i,descr:yh(u,p),type
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var F=typeof window>"u"?null:window,j=F?F.navigator:null;F&&F.document;var W=u(""),ee=u({}),ie=u(function(){}),oe=typeof HTMLElement>"u"?"undefined":u(HTMLElement),be=function(m){return m&&m.instanceString&&ae(m.instanceString)?m.instanceString():null},ge=function(m){return m!=null&&u(m)==W},ae=function(m){return m!=null&&u(m)===ie},ne=function(m){return!xe(m)&&(Array.isArray?Array.isArray(m):m!=null&&m instanceof Array)},se=function(m){return m!=null&&u(m)===ee&&!ne(m)&&m.constructor===Object},de=function(m){return m!=null&&u(m)===ee},X=function(m){return m!=null&&u(m)===u(1)&&!isNaN(m)},pe=function(m){return X(m)&&Math.floor(m)===m},G=function(m){if(oe!=="undefined")return m!=null&&m instanceof HTMLElement},xe=function(m){return U(m)||Be(m)},U=function(m){return be(m)==="collection"&&m._private.single},Be=function(m){return be(m)==="collection"&&!m._private.single},Ne=function(m){return be(m)==="core"},je=function(m){return be(m)==="stylesheet"},Ie=function(m){return be(m)==="event"},Se=function(m){return m==null?!0:!!(m===""||m.match(/^\s+$/))},Ce=function(m){return typeof HTMLElement>"u"?!1:m instanceof HTMLElement},ke=function(m){return se(m)&&X(m.x1)&&X(m.x2)&&X(m.y1)&&X(m.y2)},Ke=function(m){return de(m)&&ae(m.then)},Ft=function(){return j&&j.userAgent.match(/msie|trident|edge/i)},Pe=function(m,k){k||(k=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var O=[],N=0;N<arguments.length;N++)O.push(arguments[N]);return O.join("$")});var S=function M(){var O=this,N=arguments,$,H=k.apply(O,N),q=M.cache;return($=q[H])||($=q[H]=m.apply(O,N)),$};return S.cache={},S},gn=Pe(function(x){return x.replace(/([A-Z])/g,function(m){return"-"+m.toLowerCase()})}),kt=Pe(function(x){return x.replace(/(-\w)/g,function(m){return m[1].toUpperCase()})}),Et=Pe(function(x,m){return x+m[0].toUpperCase()+m.substring(1)},function(x,m){return x+"$"+m}),Gt=function(m){return Se(m)?m:m.charAt(0).toUpperCase()+m.substring(1)},ln="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",xt="rgb[a]?\\(("+ln+"[%]?)\\s*,\\s*("+ln+"[%]?)\\s*,\\s*("+ln+"[%]?)(?:\\s*,\\s*("+ln+"))?\\)",Pt="rgb[a]?\\((?:"+ln+"[%]?)\\s*,\\s*(?:"+ln+"[%]?)\\s*,\\s*(?:"+ln+"[%]?)(?:\\s*,\\s*(?:"+ln+"))?\\)",Ze="hsl[a]?\\(("+ln+")\\s*,\\s*("+ln+"[%])\\s*,\\s*("+ln+"[%])(?:\\s*,\\s*("+ln+"))?\\)",At="hsl[a]?\\((?:"+ln+")\\s*,\\s*(?:"+ln+"[%])\\s*,\\s*(?:"+ln+"[%])(?:\\s*,\\s*(?:"+ln+"))?\\)",Tt="\\#[0-9a-fA-F]{3}",On="\\#[0-9a-fA-F]{6}",ht=function(m,k){return m<k?-1:m>k?1:0},zr=function(m,k){return-1*ht(m,k)},yt=Object.assign!=null?Object.assign.bind(Object):function(x){for(var m=arguments,k=1;k<m.length;k++){var S=m[k];if(S!=null)for(var M=Object.keys(S),O=0;O<M.length;O++){var N=M[O];x[N]=S[N]}}return x},Fi=function(m){if(!(!(m.length===4||m.length===7)||m[0]!=="#")){var k=m.length===4,S,M,O,N=16;return k?(S=parseInt(m[1]+m[1],N),M=parseInt(m[2]+m[2],N),O=parseInt(m[3]+m[3],N)):(S=parseInt(m[1]+m[2],N),M=parseInt(m[3]+m[4],N),O=parseInt(m[5]+m[6],N)),[S,M,O]}},yi=function(m){var k,S,M,O,N,$,H,q;function Y(me,Le,_e){return _e<0&&(_e+=1),_e>1&&(_e-=1),_e<1/6?me+(Le-me)*6*_e:_e<1/2?Le:_e<2/3?me+(Le-me)*(2/3-_e)*6:me}var Z=new RegExp("^"+Ze+"$").exec(m);if(Z){if(S=parseInt(Z[1]),S<0?S=(360- -1*S%360)%360:S>360&&(S=S%360),S/=360,M=parseFloat(Z[2]),M<0||M>100||(M=M/100,O=parseFloat(Z[3]),O<0||O>100)||(O=O/100,N=Z[4],N!==void 0&&(N=parseFloat(N),N<0||N>1)))return;if(M===0)$=H=q=Math.round(O*255);else{var ce=O<.5?O*(1+M):O+M-O*M,ve=2*O-ce;$=Math.round(255*Y(ve,ce,S+1/3)),H=Math.round(255*Y(ve,ce,S)),q=Math.round(255*Y(ve,ce,S-1/3))}k=[$,H,q,N]}return k},Ba=function(m){var k,S=new RegExp("^"+xt+"$").exec(m);if(S){k=[];for(var M=[],O=1;O<=3;O++){var N=S[O];if(N[N.length-1]==="%"&&(M[O]=!0),N=parseFloat(N),M[O]&&(N=N/100*255),N<0||N>255)return;k.push(Math.floor(N))}var $=M[1]||M[2]||M[3],H=M[1]&&M[2]&&M[3];if($&&!H)return;var q=S[4];if(q!==void 0){if(q=parseFloat(q),q<0||q>1)return;k.push(q)}}return k},na=function(m){return _r[m.toLowerCase()]},Ro=functio
|
|||
|
|
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 Fj=0,Rj=1,jj=2,Kv=function x(m){if(!(this instanceof x))return new x(m);this.id="Thenable/1.0.7",this.state=Fj,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof m=="function"&&m.call(this,this.fulfill.bind(this),this.reject.bind(this))};Kv.prototype={fulfill:function(m){return $j(this,Rj,"fulfillValue",m)},reject:function(m){return $j(this,jj,"rejectReason",m)},then:function(m,k){var S=this,M=new Kv;return S.onFulfilled.push(Hj(m,M,"fulfill")),S.onRejected.push(Hj(k,M,"reject")),zj(S),M.proxy}};var $j=function(m,k,S,M){return m.state===Fj&&(m.state=k,m[S]=M,zj(m)),m},zj=function(m){m.state===Rj?qj(m,"onFulfilled",m.fulfillValue):m.state===jj&&qj(m,"onRejected",m.rejectReason)},qj=function(m,k,S){if(m[k].length!==0){var M=m[k];m[k]=[];var O=function(){for(var $=0;$<M.length;$++)M[$](S)};typeof setImmediate=="function"?setImmediate(O):setTimeout(O,0)}},Hj=function(m,k,S){return function(M){if(typeof m!="function")k[S].call(k,M);else{var O;try{O=m(M)}catch(N){k.reject(N);return}vee(k,O)}}},vee=function x(m,k){if(m===k||m.proxy===k){m.reject(new TypeError("cannot resolve promise with itself"));return}var S;if(u(k)==="object"&&k!==null||typeof k=="function")try{S=k.then}catch(O){m.reject(O);return}if(typeof S=="function"){var M=!1;try{S.call(k,function(O){M||(M=!0,O===k?m.reject(new TypeError("circular thenable chain")):x(m,O))},function(O){M||(M=!0,m.reject(O))})}catch(O){M||m.reject(O)}return}m.fulfill(k)};Kv.all=function(x){return new Kv(function(m,k){for(var S=new Array(x.length),M=0,O=function(H,q){S[H]=q,M++,M===x.length&&m(S)},N=0;N<x.length;N++)(function($){var H=x[$],q=H!=null&&H.then!=null;if(q)H.then(function(Z){O($,Z)},function(Z){k(Z)});else{var Y=H;O($,Y)}})(N)})},Kv.resolve=function(x){return new Kv(function(m,k){m(x)})},Kv.reject=function(x){return new Kv(function(m,k){k(x)})};var r8=typeof Promise<"u"?Promise:Kv,fI=function(m,k,S){var M=Ne(m),O=!M,N=this._private=yt({duration:1e3},k,S);if(N.target=m,N.style=N.style||N.css,N.started=!1,N.playing=!1,N.hooked=!1,N.applying=!1,N.progress=0,N.completes=[],N.frames=[],N.complete&&ae(N.complete)&&N.completes.push(N.complete),O){var $=m.position();N.startPosition=N.startPosition||{x:$.x,y:$.y},N.startStyle=N.startStyle||m.cy().style().getAnimationStartStyle(m,N.style)}if(M){var H=m.pan();N.startPan={x:H.x,y:H.y},N.startZoom=m.zoom()}this.length=1,this[0]=this},d5=fI.prototype;yt(d5,{instanceString:function(){return"animation"},hook:function(){var m=this._private;if(!m.hooked){var k,S=m.target._private.animation;m.queue?k=S.queue:k=S.current,k.push(this),xe(m.target)&&m.target.cy().addToAnimationPool(m.target),m.hooked=!0}return this},play:function(){var m=this._private;return m.progress===1&&(m.progress=0),m.playing=!0,m.started=!1,m.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var m=this._private;return m.applying=!0,m.started=!1,m.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var m=this._private;return m.playing=!1,m.started=!1,this},stop:function(){var m=this._private;return m.playing=!1,m.started=!1,m.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(m){var k=this._private;return m===void 0?k.progress*k.duration:this.progress(m/k.duration)},progress:function(m){var k=this._private,S=k.playing;return m===void 0?k.progress:(S&&this.pause(),k.progress=m,k.started=!1,S&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var m=this._private,k=m.playing;k&&this.pause(),m.progress=1-m.progress,m.started=!1;var S=function(q,Y){var Z=m[q];Z!=null&&(m[q]=m[Y],m[Y]=Z)};if(S("zoom","startZoom"),S("pan","startPan"),S("position","startPosition"),m.style)for(var M=0;M<m.style.length;M++){var O=m.style[M],N=O.name,$=m.startStyle[N];m.startStyle[N]=O,m.style[M]=$}return k&&this.play(),this},promise:function(m){var k=this._private,S;switch(m){case"frame":S=k.frames;break;default
|
|||
|
|
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 nk=function(m,k){this.recycle(m,k)};function rk(){return!1}function ik(){return!0}nk.prototype={instanceString:function(){return"event"},recycle:function(m,k){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=rk,m!=null&&m.preventDefault?(this.type=m.type,this.isDefaultPrevented=m.defaultPrevented?ik:rk):m!=null&&m.type?k=m:this.type=m,k!=null&&(this.originalEvent=k.originalEvent,this.type=k.type!=null?k.type:this.type,this.cy=k.cy,this.target=k.target,this.position=k.position,this.renderedPosition=k.renderedPosition,this.namespace=k.namespace,this.layout=k.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var S=this.position,M=this.cy.zoom(),O=this.cy.pan();this.renderedPosition={x:S.x*M+O.x,y:S.y*M+O.y}}this.timeStamp=m&&m.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=ik;var m=this.originalEvent;m&&m.preventDefault&&m.preventDefault()},stopPropagation:function(){this.isPropagationStopped=ik;var m=this.originalEvent;m&&m.stopPropagation&&m.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ik,this.stopPropagation()},isDefaultPrevented:rk,isPropagationStopped:rk,isImmediatePropagationStopped:rk};var k$=/^([^.]+)(\.(?:[^.]+))?$/,Yne=".*",E$={qualifierCompare:function(m,k){return m===k},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(m){return m},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},T$=Object.keys(E$),Xne={};function AS(){for(var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xne,m=arguments.length>1?arguments[1]:void 0,k=0;k<T$.length;k++){var S=T$[k];this[S]=x[S]||E$[S]}this.context=m||this.context,this.listeners=[],this.emitting=0}var Q2=AS.prototype,C$=function(m,k,S,M,O,N,$){ae(M)&&(O=M,M=null),$&&(N==null?N=$:N=yt({},N,$));for(var H=ne(S)?S:S.split(/\s+/),q=0;q<H.length;q++){var Y=H[q];if(!Se(Y)){var Z=Y.match(k$);if(Z){var ce=Z[1],ve=Z[2]?Z[2]:null,me=k(m,Y,ce,ve,M,O,N);if(me===!1)break}}}},S$=function(m,k){return m.addEventFields(m.context,k),new nk(k.type,k)},LS=function(m,k,S){if(Ie(S)){k(m,S);return}else if(se(S)){k(m,S$(m,S));return}for(var M=ne(S)?S:S.split(/\s+/),O=0;O<M.length;O++){var N=M[O];if(!Se(N)){var $=N.match(k$);if($){var H=$[1],q=$[2]?$[2]:null,Y=S$(m,{type:H,namespace:q,target:m.context});k(m,Y)}}}};Q2.on=Q2.addListener=function(x,m,k,S,M){return C$(this,function(O,N,$,H,q,Y,Z){ae(Y)&&O.listeners.push({event:N,callback:Y,type:$,namespace:H,qualifier:q,conf:Z})},x,m,k,S,M),this},Q2.one=function(x,m,k,S){return this.on(x,m,k,S,{one:!0})},Q2.removeListener=Q2.off=function(x,m,k,S){var M=this;this.emitting!==0&&(this.listeners=zJ(this.listeners));for(var O=this.listeners,N=function(q){var Y=O[q];C$(M,function(Z,ce,ve,me,Le,_e){if((Y.type===ve||x==="*")&&(!me&&Y.namespace!==".*"||Y.namespace===me)&&(!Le||Z.qualifierCompare(Y.qualifier,Le))&&(!_e||Y.callback===_e))return O.splice(q,1),!1},x,m,k,S)},$=O.length-1;$>=0;$--)N($);return this},Q2.removeAllListeners=function(){return this.removeListener("*")},Q2.emit=Q2.trigger=function(x,m,k){var S=this.listeners,M=S.length;return this.emitting++,ne(m)||(m=[m]),LS(this,function(O,N){k!=null&&(S=[{event:N.event,type:N.type,namespace:N.namespace,callback:k}],M=S.length);for(var $=function(Y){var Z=S[Y];if(Z.type===N.type&&(!Z.namespace||Z.namespace===N.namespace||Z.namespace===Yne)&&O.eventMatches(O.context,Z,N)){var ce=[N];m!=null&&uj(ce,m),O.beforeEmit(O.context,Z,N),Z.conf&&Z.conf.one&&(O.listeners=O.listeners.filter(function(Le){return Le!==Z}));var ve=O.callbackContext(O.context,Z,N),me=Z.callback.apply(ve,ce);O.afterEmit(O.context,Z,N),me===!1&&(N.stopPropagation(),N.preventDefault())}},H=0;H<M;H++)$(H);O.bubble(O.context)&&!N.isPropagationStopped()&&O.parent(O.context).emit(N,m)},x),this.emitting--,this};var Qne={qualifierCompare:function(m,k){return m==null||k==null?m==null&&k==null:m.sameText(k)},eventMatches:function(m,k,S){var M=k.qualifier;return M!=null?m!==S.target&&U(S.target)&&
|
|||
|
|
`),Z=x.pstyle("text-max-width").pfValue,ce=x.pstyle("text-overflow-wrap").value,ve=ce==="anywhere",me=[],Le=/[\s\u200b]+/,_e=ve?"":" ",Ee=0;Ee<Y.length;Ee++){var Fe=Y[Ee],Re=this.calculateLabelDimensions(x,Fe),Ve=Re.width;if(ve){var ct=Fe.split("").join(q);Fe=ct}if(Ve>Z){for(var st=Fe.split(Le),Ye="",mt=0;mt<st.length;mt++){var Qe=st[mt],Mt=Ye.length===0?Qe:Ye+_e+Qe,Dt=this.calculateLabelDimensions(x,Mt),ut=Dt.width;ut<=Z?Ye+=Qe+_e:(Ye&&me.push(Ye),Ye=Qe+_e)}Ye.match(/^[\s\u200b]+$/)||me.push(Ye)}else me.push(Fe)}N("labelWrapCachedLines",me),M=N("labelWrapCachedText",me.join(`
|
|||
|
|
`)),N("labelWrapKey",H)}else if($==="ellipsis"){var Wt=x.pstyle("text-max-width").pfValue,Ct="",_n="…",hn=!1;if(this.calculateLabelDimensions(x,M).width<Wt)return M;for(var Yt=0;Yt<M.length;Yt++){var Dn=this.calculateLabelDimensions(x,Ct+M[Yt]+_n).width;if(Dn>Wt)break;Ct+=M[Yt],Yt===M.length-1&&(hn=!0)}return hn||(Ct+=_n),Ct}return M},xm.getLabelJustification=function(x){var m=x.pstyle("text-justification").strValue,k=x.pstyle("text-halign").strValue;if(m==="auto")if(x.isNode())switch(k){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return m},xm.calculateLabelDimensions=function(x,m){var k=this,S=ad(m,x._private.labelDimsKey),M=k.labelDimCache||(k.labelDimCache=[]),O=M[S];if(O!=null)return O;var N=0,$=x.pstyle("font-style").strValue,H=x.pstyle("font-size").pfValue,q=x.pstyle("font-family").strValue,Y=x.pstyle("font-weight").strValue,Z=this.labelCalcCanvas,ce=this.labelCalcCanvasContext;if(!Z){Z=this.labelCalcCanvas=document.createElement("canvas"),ce=this.labelCalcCanvasContext=Z.getContext("2d");var ve=Z.style;ve.position="absolute",ve.left="-9999px",ve.top="-9999px",ve.zIndex="-1",ve.visibility="hidden",ve.pointerEvents="none"}ce.font="".concat($," ").concat(Y," ").concat(H,"px ").concat(q);for(var me=0,Le=0,_e=m.split(`
|
|||
|
|
`),Ee=0;Ee<_e.length;Ee++){var Fe=_e[Ee],Re=ce.measureText(Fe),Ve=Math.ceil(Re.width),ct=H;me=Math.max(Ve,me),Le+=ct}return me+=N,Le+=N,M[S]={width:me,height:Le}},xm.calculateLabelAngle=function(x,m){var k=x._private,S=k.rscratch,M=x.isEdge(),O=m?m+"-":"",N=x.pstyle(O+"text-rotation"),$=N.strValue;return $==="none"?0:M&&$==="autorotate"?S.labelAutoAngle:$==="autorotate"?0:N.pfValue},xm.calculateLabelAngles=function(x){var m=this,k=x.isEdge(),S=x._private,M=S.rscratch;M.labelAngle=m.calculateLabelAngle(x),k&&(M.sourceLabelAngle=m.calculateLabelAngle(x,"source"),M.targetLabelAngle=m.calculateLabelAngle(x,"target"))};var ez={},tz=28,nz=!1;ez.getNodeShape=function(x){var m=this,k=x.pstyle("shape").value;if(k==="cutrectangle"&&(x.width()<tz||x.height()<tz))return nz||(fu("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),nz=!0),"rectangle";if(x.isParent())return k==="rectangle"||k==="roundrectangle"||k==="round-rectangle"||k==="cutrectangle"||k==="cut-rectangle"||k==="barrel"?k:"rectangle";if(k==="polygon"){var S=x.pstyle("shape-polygon-points").value;return m.nodeShapes.makePolygon(S).name}return k};var GS={};GS.registerCalculationListeners=function(){var x=this.cy,m=x.collection(),k=this,S=function(N){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(m.merge(N),$)for(var H=0;H<N.length;H++){var q=N[H],Y=q._private,Z=Y.rstyle;Z.clean=!1,Z.cleanConnected=!1}};k.binder(x).on("bounds.* dirty.*",function(N){var $=N.target;S($)}).on("style.* background.*",function(N){var $=N.target;S($,!1)});var M=function(N){if(N){var $=k.onUpdateEleCalcsFns;m.cleanStyle();for(var H=0;H<m.length;H++){var q=m[H],Y=q._private.rstyle;q.isNode()&&!Y.cleanConnected&&(S(q.connectedEdges()),Y.cleanConnected=!0)}if($)for(var Z=0;Z<$.length;Z++){var ce=$[Z];ce(N,m)}k.recalculateRenderedStyle(m),m=x.collection()}};k.flushRenderedStyleQueue=function(){M(!0)},k.beforeRender(M,k.beforeRenderPriorities.eleCalcs)},GS.onUpdateEleCalcs=function(x){var m=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];m.push(x)},GS.recalculateRenderedStyle=function(x,m){var k=function(Ve){return Ve._private.rstyle.cleanConnected},S=[],M=[];if(!this.destroyed){m===void 0&&(m=!0);for(var O=0;O<x.length;O++){var N=x[O],$=N._private,H=$.rstyle;N.isEdge()&&(!k(N.source())||!k(N.target()))&&(H.clean=!1),!(m&&H.clean||N.removed())&&N.pstyle("display").value!=="none"&&($.group==="nodes"?M.push(N):S.push(N),H.clean=!0)}for(var q=0;q<M.length;q++){var Y=M[q],Z=Y._private,ce=Z.rstyle,ve=Y.position();this.recalculateNodeLabelProjection(Y),ce.nodeX=ve.x,ce.nodeY=ve.y,ce.nodeW=Y.pstyle("width").pfValue,ce.nodeH=Y.pstyle("height").pfValue}this.recalculateEdgeProjections(S);for(var me=0;me<S.length;me++){var Le=S[me],_e=Le._private,Ee=_e.rstyle,Fe=_e.rscratch;Ee.srcX=Fe.arrowStartX,Ee.srcY=Fe.arrowStartY,Ee.tgtX=Fe.arrowEndX,Ee.tgtY=Fe.arrowEndY,Ee.midX=Fe.midX,Ee.midY=Fe.midY,Ee.labelAngle=Fe.labelAngle,Ee.sourceLabelAngle=Fe.sourceLabelAngle,Ee.targetLabelAngle=Fe.targetLabelAngle}}};var KS={};KS.updateCachedGrabbedEles=function(){var x=this.cachedZSortedEles;if(x){x.drag=[],x.nondrag=[];for(var m=[],k=0;k<x.length;k++){var S=x[k],M=S._private.rscratch;S.grabbed()&&!S.isParent()?m.push(S):M.inDragLayer?x.drag.push(S):x.nondrag.push(S)}for(var k=0;k<m.length;k++){var S=m[k];x.drag.push(S)}}},KS.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},KS.getCachedZSortedEles=function(x){if(x||!this.cachedZSortedEles){var m=this.cy.mutableElements().toArray();m.sort(SI),m.interactive=m.filter(function(k){return k.interactive()}),this.cachedZSortedEles=m,this.updateCachedGrabbedEles()}else m=this.cachedZSortedEles;return m};var rz={};[v5,VS,E1,lk,BI,xm,ez,GS,KS].forEach(function(x){yt(rz,x)});var iz={};iz.getCachedImage=function(x,m,k){var S=this,M=S.imageCache=S.imageCache||{},O=M[x];if(O)return O.image.complete||O.image.addEventListener("load",k),O.image;O=M[x]=M[x]||{};var N=O.image=new Image;N.addEventListener("load",k),N.addEventListener("error",function(){N.error=!0});var $="data:",H=x.substring(0,$.length).toLowe
|
|||
|
|
a${y},${y} 1 0,1 ${d*.4},${-1*d*.1}
|
|||
|
|
a${b},${b} 1 0,1 ${d*.35},${1*d*.2}
|
|||
|
|
|
|||
|
|
a${v},${v} 1 0,1 ${d*.15},${1*p*.35}
|
|||
|
|
a${T},${T} 1 0,1 ${-1*d*.15},${1*p*.65}
|
|||
|
|
|
|||
|
|
a${b},${v} 1 0,1 ${-1*d*.25},${d*.15}
|
|||
|
|
a${y},${y} 1 0,1 ${-1*d*.5},0
|
|||
|
|
a${v},${v} 1 0,1 ${-1*d*.25},${-1*d*.15}
|
|||
|
|
|
|||
|
|
a${v},${v} 1 0,1 ${-1*d*.1},${-1*p*.35}
|
|||
|
|
a${T},${T} 1 0,1 ${d*.1},${-1*p*.65}
|
|||
|
|
|
|||
|
|
H0 V0 Z`)},Son=function(i,s,u){const d=u.width,p=u.height,v=.15*d;s.append("path").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("d",`M0 0 a${v},${v} 1 0,0 ${d*.25},${-1*p*.1}
|
|||
|
|
a${v},${v} 1 0,0 ${d*.25},0
|
|||
|
|
a${v},${v} 1 0,0 ${d*.25},0
|
|||
|
|
a${v},${v} 1 0,0 ${d*.25},${1*p*.1}
|
|||
|
|
|
|||
|
|
a${v},${v} 1 0,0 ${d*.15},${1*p*.33}
|
|||
|
|
a${v*.8},${v*.8} 1 0,0 0,${1*p*.34}
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.15},${1*p*.33}
|
|||
|
|
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.25},${p*.15}
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.25},0
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.25},0
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.25},${-1*p*.15}
|
|||
|
|
|
|||
|
|
a${v},${v} 1 0,0 ${-1*d*.1},${-1*p*.33}
|
|||
|
|
a${v*.8},${v*.8} 1 0,0 0,${-1*p*.34}
|
|||
|
|
a${v},${v} 1 0,0 ${d*.1},${-1*p*.33}
|
|||
|
|
|
|||
|
|
H0 V0 Z`)},_on=function(i,s,u){s.append("circle").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("r",u.width/2)};function Aon(i,s,u,d,p){return i.insert("polygon",":first-child").attr("points",d.map(function(v){return v.x+","+v.y}).join(" ")).attr("transform","translate("+(p.width-s)/2+", "+u+")")}const Lon=function(i,s,u){const d=u.height,v=d/4,b=u.width-u.padding+2*v,y=[{x:v,y:0},{x:b-v,y:0},{x:b,y:-d/2},{x:b-v,y:-d},{x:v,y:-d},{x:0,y:-d/2}];Aon(s,b,d,y,u)},Mon=function(i,s,u){s.append("rect").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("height",u.height).attr("rx",u.padding).attr("ry",u.padding).attr("width",u.width)},Don=function(i,s,u,d,p){const v=p.htmlLabels,b=d%(kon-1),y=s.append("g");u.section=b;let T="section-"+b;b<0&&(T+=" section-root"),y.attr("class",(u.class?u.class+" ":"")+"mindmap-node "+T);const _=y.append("g"),A=y.append("g"),P=u.descr.replace(/(<br\/*>)/g,`
|
|||
|
|
`);JQ(A,P,{useHtmlLabels:v,width:u.width,classes:"mindmap-node-label"}),v||A.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const R=A.node().getBBox(),[F]=OC(p.fontSize);if(u.height=R.height+F*1.1*.5+u.padding,u.width=R.width+2*u.padding,u.icon)if(u.type===i.nodeType.CIRCLE)u.height+=50,u.width+=50,y.append("foreignObject").attr("height","50px").attr("width",u.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+b+" "+u.icon),A.attr("transform","translate("+u.width/2+", "+(u.height/2-1.5*u.padding)+")");else{u.width+=50;const j=u.height;u.height=Math.max(j,60);const W=Math.abs(u.height-j);y.append("foreignObject").attr("width","60px").attr("height",u.height).attr("style","text-align: center;margin-top:"+W/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+b+" "+u.icon),A.attr("transform","translate("+(25+u.width/2)+", "+(W/2+u.padding/2)+")")}else if(v){const j=(u.width-R.width)/2,W=(u.height-R.height)/2;A.attr("transform","translate("+j+", "+W+")")}else{const j=u.width/2,W=u.padding/2;A.attr("transform","translate("+j+", "+W+")")}switch(u.type){case i.nodeType.DEFAULT:Eon(i,_,u,b);break;case i.nodeType.ROUNDED_RECT:Mon(i,_,u);break;case i.nodeType.RECT:Ton(i,_,u);break;case i.nodeType.CIRCLE:_.attr("transform","translate("+u.width/2+", "+ +u.height/2+")"),_on(i,_,u);break;case i.nodeType.CLOUD:Con(i,_,u);break;case i.nodeType.BANG:Son(i,_,u);break;case i.nodeType.HEXAGON:Lon(i,_,u);break}return i.setElementForId(u.id,y),u.height},Ion=function(i,s){const u=i.getElementById(s.id),d=s.x||0,p=s.y||0;u.attr("transform","translate("+d+","+p+")")};pWe.use(xon);function wWe(i,s,u,d,p){Don(i,s,u,d,p),u.children&&u.children.forEach((v,b)=>{wWe(i,s,v,d<0?b:d,p)})}function Oon(i,s){s.edges().map((u,d)=>{const p=u.data();if(u[0]._private.bodyBounds){const v=u[0]._private.rscratch;Xe.trace("Edge: ",d,p),i.insert("path").attr("d",`M ${v.startX},${v.startY} L ${v.midX},${v.midY} L${v.endX},${v.endY} `).attr("class","edge section-edge-"+p.section+" edge-depth-"+p.depth)}})}function yWe(i,s,u,d){s.add({group:"nodes",data:{id:i.id.toString(),labelText:i.descr,height:i.height,width:i.width,level:d,nodeId:i.id,padding:i.padding,type:i.type},position:{x:i.x,y:i.y}}),i.children&&i.children.forEach(p=>{yWe(p,s,u,d+1),s.add({group:"edges",data:{id:`${i.id}_${p.id}`,source:i.id,target:p.id,depth:d,section:p.section}})})}function Non(i,s){return new Promise(u=>{const d=Ir("body").append("div").attr("id","cy").attr("style","display:none"),p=pWe({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});d.remove(),yWe(i,p,s,0),p.nodes().forEach(function(v){v.layoutDimensions=()=>{const b=v.data();return{w:b.width,h:b.height}}}),p.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),p.ready(v=>{Xe.info("Ready",v),u(p)})})}function Pon(i,s){s.nodes().map((u,d)=>{const p=u.data();p.x=u.position().x,p.y=u.position().y,Ion(i,p);const v=i.getElementById(p.nodeId);Xe.info("Id:",d,"Position: (",u.position().x,", ",u.position().y,")",p),v.attr("transform",`translate(${u.position().x-p.width/2}, ${u.position().y-p.height/2})`),v.attr("attr",`apa-${d})`)})}const Bon={draw:async(i,s,u,d)=>{var P,R;Xe.debug(`Rendering mindmap diagram
|
|||
|
|
`+i);const p=d.db,v=p.getMindmap();if(!v)return;const b=qt();b.htmlLabels=!1;const y=iR(s),T=y.append("g");T.attr("class","mindmap-edges");const _=y.append("g");_.attr("class","mindmap-nodes"),wWe(p,_,v,-1,b);const A=await Non(v,b);Oon(T,A),Pon(p,A),w9(void 0,y,((P=b.mindmap)==null?void 0:P.padding)??sh.mindmap.padding,((R=b.mindmap)==null?void 0:R.useMaxWidth)??sh.mindmap.useMaxWidth)}},Fon=i=>{let s="";for(let u=0;u<i.THEME_COLOR_LIMIT;u++)i["lineColor"+u]=i["lineColor"+u]||i["cScaleInv"+u],SC(i["lineColor"+u])?i["lineColor"+u]=Gs(i["lineColor"+u],20):i["lineColor"+u]=ga(i["lineColor"+u],20);for(let u=0;u<i.THEME_COLOR_LIMIT;u++){const d=""+(17-3*u);s+=`
|
|||
|
|
.section-${u-1} rect, .section-${u-1} path, .section-${u-1} circle, .section-${u-1} polygon, .section-${u-1} path {
|
|||
|
|
fill: ${i["cScale"+u]};
|
|||
|
|
}
|
|||
|
|
.section-${u-1} text {
|
|||
|
|
fill: ${i["cScaleLabel"+u]};
|
|||
|
|
}
|
|||
|
|
.node-icon-${u-1} {
|
|||
|
|
font-size: 40px;
|
|||
|
|
color: ${i["cScaleLabel"+u]};
|
|||
|
|
}
|
|||
|
|
.section-edge-${u-1}{
|
|||
|
|
stroke: ${i["cScale"+u]};
|
|||
|
|
}
|
|||
|
|
.edge-depth-${u-1}{
|
|||
|
|
stroke-width: ${d};
|
|||
|
|
}
|
|||
|
|
.section-${u-1} line {
|
|||
|
|
stroke: ${i["cScaleInv"+u]} ;
|
|||
|
|
stroke-width: 3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.disabled, .disabled circle, .disabled text {
|
|||
|
|
fill: lightgray;
|
|||
|
|
}
|
|||
|
|
.disabled text {
|
|||
|
|
fill: #efefef;
|
|||
|
|
}
|
|||
|
|
`}return s},Ron=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:bon,renderer:Bon,parser:hon,styles:i=>`
|
|||
|
|
.edge {
|
|||
|
|
stroke-width: 3;
|
|||
|
|
}
|
|||
|
|
${Fon(i)}
|
|||
|
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|||
|
|
fill: ${i.git0};
|
|||
|
|
}
|
|||
|
|
.section-root text {
|
|||
|
|
fill: ${i.gitBranchLabel0};
|
|||
|
|
}
|
|||
|
|
.icon-container {
|
|||
|
|
height:100%;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: center;
|
|||
|
|
align-items: center;
|
|||
|
|
}
|
|||
|
|
.edge {
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
.mindmap-node-label {
|
|||
|
|
dy: 1em;
|
|||
|
|
alignment-baseline: middle;
|
|||
|
|
text-anchor: middle;
|
|||
|
|
dominant-baseline: middle;
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
`}},Symbol.toStringTag,{value:"Module"}));var iwe=function(){var i=function(y,T,_,A){for(_=_||{},A=y.length;A--;_[y[A]]=T);return _},s=[1,9],u=[1,10],d=[1,5,10,12],p={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(T,_,A,P,R,F,j){var W=F.length-1;switch(R){case 7:const ee=P.findOrCreateNode(F[W-4].trim().replaceAll('""','"')),ie=P.findOrCreateNode(F[W-2].trim().replaceAll('""','"')),oe=parseFloat(F[W].trim());P.addLink(ee,ie,oe);break;case 8:case 9:case 11:this.$=F[W];break;case 10:this.$=F[W-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:s,20:u},{1:[2,6],7:11,10:[1,12]},i(u,[2,4],{9:13,5:[1,14]}),{12:[1,15]},i(d,[2,8]),i(d,[2,9]),{19:[1,16]},i(d,[2,11]),{1:[2,1]},{1:[2,5]},i(u,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:s,20:u},{15:18,16:7,17:8,18:s,20:u},{18:[1,19]},i(u,[2,3]),{12:[1,20]},i(d,[2,10]),{15:21,16:7,17:8,18:s,20:u},i([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(T,_){if(_.recoverable)this.trace(T);else{var A=new Error(T);throw A.hash=_,A}},parse:function(T){var _=this,A=[0],P=[],R=[null],F=[],j=this.table,W="",ee=0,ie=0,oe=2,be=1,ge=F.slice.call(arguments,1),ae=Object.create(this.lexer),ne={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(ne.yy[se]=this.yy[se]);ae.setInput(T,ne.yy),ne.yy.lexer=ae,ne.yy.parser=this,typeof ae.yylloc>"u"&&(ae.yylloc={});var de=ae.yylloc;F.push(de);var X=ae.options&&ae.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(){var Ke;return Ke=P.pop()||ae.lex()||be,typeof Ke!="number"&&(Ke instanceof Array&&(P=Ke,Ke=P.pop()),Ke=_.symbols_[Ke]||Ke),Ke}for(var G,xe,U,Be,Ne={},je,Ie,Se,Ce;;){if(xe=A[A.length-1],this.defaultActions[xe]?U=this.defaultActions[xe]:((G===null||typeof G>"u")&&(G=pe()),U=j[xe]&&j[xe][G]),typeof U>"u"||!U.length||!U[0]){var ke="";Ce=[];for(je in j[xe])this.terminals_[je]&&je>oe&&Ce.push("'"+this.terminals_[je]+"'");ae.showPosition?ke="Parse error on line "+(ee+1)+`:
|
|||
|
|
`+ae.showPosition()+`
|
|||
|
|
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ke="Parse error on line "+(ee+1)+": Unexpected "+(G==be?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ke,{text:ae.match,token:this.terminals_[G]||G,line:ae.yylineno,loc:de,expected:Ce})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+G);switch(U[0]){case 1:A.push(G),R.push(ae.yytext),F.push(ae.yylloc),A.push(U[1]),G=null,ie=ae.yyleng,W=ae.yytext,ee=ae.yylineno,de=ae.yylloc;break;case 2:if(Ie=this.productions_[U[1]][1],Ne.$=R[R.length-Ie],Ne._$={first_line:F[F.length-(Ie||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Ie||1)].first_column,last_column:F[F.length-1].last_column},X&&(Ne._$.range=[F[F.length-(Ie||1)].range[0],F[F.length-1].range[1]]),Be=this.performAction.apply(Ne,[W,ie,ee,ne.yy,U[1],R,F].concat(ge)),typeof Be<"u")return Be;Ie&&(A=A.slice(0,-1*Ie*2),R=R.slice(0,-1*Ie),F=F.slice(0,-1*Ie)),A.push(this.productions_[U[1]][0]),R.push(Ne.$),F.push(Ne._$),Se=j[A[A.length-2]][A[A.length-1]],A.push(Se);break;case 3:return!0}}return!0}},v=function(){var y={EOF:1,parseError:function(_,A){if(this.yy.parser)this.yy.parser.parseError(_,A);else throw new Error(_)},setInput:function(T,_){return this.yy=_||this.yy||{},this._input=T,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 T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var _=T.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},unput:function(T){var _=T.length,A=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===P.length?this.yylloc.first_column:0)+P[P.length-A.length].length-A[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-_]),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(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),_=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
|
|||
|
|
`+_+"^"},test_match:function(T,_){var A,P,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),P=T[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,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(T[0].length),this.matched+=T[0],A=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var F in R)this[F]=R[F];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var T,_,A,P;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),F=0;F<R.length;F++)if(A=this._input.match(this.rules[R[F]]),A&&(!_||A[0].length>_[0].length)){if(_=A,P=F,this.options.backtrack_lexer){if(T=this.test_match(A,R[F]),T!==!1)return T;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(T=this.test_match(_,R[P]),T!==!1?T:!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 _=this.next();return _||this.lex()},begin:function(_){this.conditionStack.push(_)},popState:function(){var _=this.conditionStack.length-1;return _>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(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},pushState:function(_){this.begin(_)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_,A,P,R){switch(P){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return y}();p.lexer=v;function b(){this.yy={}}return b.prototype=p,p.Parser=b,new b}();iwe.parser=iwe;const NJ=iwe;let PJ=[],BJ=[],eI={};const jon=()=>{PJ=[],BJ=[],eI={},Ng()};class $on{constructor(s,u,d=0){this.source=s,this.target=u,this.value=d}}const zon=(i,s,u)=>{PJ.push(new $on(i,s,u))};class qon{constructor(s){this.ID=s}}const Hon={nodesMap:eI,getConfig:()=>qt().sankey,getNodes:()=>BJ,getLinks:()=>PJ,getGraph:()=>({nodes:BJ.map(i=>({id:i.ID})),links:PJ.map(i=>({source:i.source.ID,target:i.target.ID,value:i.value}))}),addLink:zon,findOrCreateNode:i=>(i=ci.sanitizeText(i,qt()),eI[i]||(eI[i]=new qon(i),BJ.push(eI[i])),eI[i]),getAccTitle:Sp,setAccTitle:Pg,getAccDescription:Ap,setAccDescription:_p,getDiagramTitle:Lp,setDiagramTitle:om,clear:jon};function xWe(i,s){let u;if(s===void 0)for(const d of i)d!=null&&(u<d||u===void 0&&d>=d)&&(u=d);else{let d=-1;for(let p of i)(p=s(p,++d,i))!=null&&(u<p||u===void 0&&p>=p)&&(u=p)}return u}function kWe(i,s){let u;if(s===void 0)for(const d of i)d!=null&&(u>d||u===void 0&&d>=d)&&(u=d);else{let d=-1;for(let p of i)(p=s(p,++d,i))!=null&&(u>p||u===void 0&&p>=p)&&(u=p)}return u}function swe(i,s){let u=0;if(s===void 0)for(let d of i)(d=+d)&&(u+=d);else{let d=-1;for(let p of i)(p=+s(p,++d,i))&&(u+=p)}return u}function Von(i){return i.target.depth}function Uon(i){return i.depth}function Gon(i,s){return s-1-i.height}function EWe(i,s){return i.sourceLinks.length?i.depth:s-1}function Kon(i){return i.targetLinks.length?i.depth:i.sourceLinks.length?kWe(i.sourceLinks,Von)-1:0}function FJ(i){return function(){return i}}function TWe(i,s){return RJ(i.source,s.source)||i.index-s.index}function CWe(i,s){return RJ(i.target,s.target)||i.index-s.index}function RJ(i,s){return i.y0-s.y0}function awe(i){return i.value}function Won(i){return i.index}function Yon(i){return i.nodes}function Xon(i){return i.links}function SWe(i,s){const u=i.get(s);if(!u)throw new Error("missing: "+s);return u}function _We({nodes:i}){for(const s of i){let u=s.y0,d=u;for(const p of s.sourceLinks)p.y0=u+p.width/2,u+=p.width;for(const p of s.targetLinks)p.y1=d+p.width/2,d+=p.width}}function Qon(){let i=0,s=0,u=1,d=1,p=24,v=8,b,y=Won,T=EWe,_,A,P=Yon,R=Xon,F=6;function j(){const Ne={nodes:P.apply(null,arguments),links:R.apply(null,arguments)};return W(Ne),ee(Ne),ie(Ne),oe(Ne),ae(Ne),_We(Ne),Ne}j.update=function(Ne){return _We(Ne),Ne},j.nodeId=function(Ne){return arguments.length?(y=typeof Ne=="function"?Ne:FJ(Ne),j):y},j.nodeAlign=function(Ne){return arguments.length?(T=typeof Ne=="function"?Ne:FJ(Ne),j):T},j.nodeSort=function(Ne){return arguments.length?(_=Ne,j):_},j.nodeWidth=function(Ne){return arguments.length?(p=+Ne,j):p},j
|
|||
|
|
${j}${Math.round(G*100)/100}${W}`:pe;_.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(ie.nodes).join("text").attr("x",pe=>pe.x0<A/2?pe.x1+6:pe.x0-6).attr("y",pe=>(pe.y1+pe.y0)/2).attr("dy",`${ee?"0":"0.35"}em`).attr("text-anchor",pe=>pe.x0<A/2?"start":"end").text(ne);const se=_.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(ie.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),de=(v==null?void 0:v.linkColor)||"gradient";if(de==="gradient"){const pe=se.append("linearGradient").attr("id",G=>(G.uid=DWe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",G=>G.source.x1).attr("x2",G=>G.target.x0);pe.append("stop").attr("offset","0%").attr("stop-color",G=>ae(G.source.id)),pe.append("stop").attr("offset","100%").attr("stop-color",G=>ae(G.target.id))}let X;switch(de){case"gradient":X=pe=>pe.uid;break;case"source":X=pe=>ae(pe.source.id);break;case"target":X=pe=>ae(pe.target.id);break;default:X=de}se.append("path").attr("d",ucn()).attr("stroke",X).attr("stroke-width",pe=>Math.max(1,pe.width)),w9(void 0,_,0,R)}},fcn=i=>i.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|||
|
|
`).trim(),dcn=NJ.parse.bind(NJ);NJ.parse=i=>dcn(fcn(i));const gcn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:NJ,db:Hon,renderer:hcn}},Symbol.toStringTag,{value:"Module"}));var lwe=function(){var i=function(be,ge,ae,ne){for(ae=ae||{},ne=be.length;ne--;ae[be[ne]]=ge);return ae},s=[1,7],u=[1,13],d=[1,14],p=[1,15],v=[1,19],b=[1,16],y=[1,17],T=[1,18],_=[8,30],A=[8,21,28,29,30,31,32,40,44,47],P=[1,23],R=[1,24],F=[8,15,16,21,28,29,30,31,32,40,44,47],j=[8,15,16,21,27,28,29,30,31,32,40,44,47],W=[1,49],ee={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(ge,ae,ne,se,de,X,pe){var G=X.length-1;switch(de){case 4:se.getLogger().debug("Rule: separator (NL) ");break;case 5:se.getLogger().debug("Rule: separator (Space) ");break;case 6:se.getLogger().debug("Rule: separator (EOF) ");break;case 7:se.getLogger().debug("Rule: hierarchy: ",X[G-1]),se.setHierarchy(X[G-1]);break;case 8:se.getLogger().debug("Stop NL ");break;case 9:se.getLogger().debug("Stop EOF ");break;case 10:se.getLogger().debug("Stop NL2 ");break;case 11:se.getLogger().debug("Stop EOF2 ");break;case 12:se.getLogger().debug("Rule: statement: ",X[G]),typeof X[G].length=="number"?this.$=X[G]:this.$=[X[G]];break;case 13:se.getLogger().debug("Rule: statement #2: ",X[G-1]),this.$=[X[G-1]].concat(X[G]);break;case 14:se.getLogger().debug("Rule: link: ",X[G],ge),this.$={edgeTypeStr:X[G],label:""};break;case 15:se.getLogger().debug("Rule: LABEL link: ",X[G-3],X[G-1],X[G]),this.$={edgeTypeStr:X[G],label:X[G-1]};break;case 18:const xe=parseInt(X[G]),U=se.generateId();this.$={id:U,type:"space",label:"",width:xe,children:[]};break;case 23:se.getLogger().debug("Rule: (nodeStatement link node) ",X[G-2],X[G-1],X[G]," typestr: ",X[G-1].edgeTypeStr);const Be=se.edgeStrToEdgeData(X[G-1].edgeTypeStr);this.$=[{id:X[G-2].id,label:X[G-2].label,type:X[G-2].type,directions:X[G-2].directions},{id:X[G-2].id+"-"+X[G].id,start:X[G-2].id,end:X[G].id,label:X[G-1].label,type:"edge",directions:X[G].directions,arrowTypeEnd:Be,arrowTypeStart:"arrow_open"},{id:X[G].id,label:X[G].label,type:se.typeStr2Type(X[G].typeStr),directions:X[G].directions}];break;case 24:se.getLogger().debug("Rule: nodeStatement (abc88 node size) ",X[G-1],X[G]),this.$={id:X[G-1].id,label:X[G-1].label,type:se.typeStr2Type(X[G-1].typeStr),directions:X[G-1].directions,widthInColumns:parseInt(X[G],10)};break;case 25:se.getLogger().debug("Rule: nodeStatement (node) ",X[G]),this.$={id:X[G].id,label:X[G].label,type:se.typeStr2Type(X[G].typeStr),directions:X[G].directions,widthInColumns:1};break;case 26:se.getLogger().debug("APA123",this?this:"na"),se.getLogger().debug("COLUMNS: ",X[G]),this.$={type:"column-setting",columns:
|
|||
|
|
`+Ie.showPosition()+`
|
|||
|
|
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":At="Parse error on line "+(xe+1)+": Unexpected "+(Pe==Ne?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(At,{text:Ie.match,token:this.terminals_[Pe]||Pe,line:Ie.yylineno,loc:ke,expected:Ze})}if(kt[0]instanceof Array&&kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gn+", token: "+Pe);switch(kt[0]){case 1:ne.push(Pe),de.push(Ie.yytext),X.push(Ie.yylloc),ne.push(kt[1]),Pe=null,U=Ie.yyleng,G=Ie.yytext,xe=Ie.yylineno,ke=Ie.yylloc;break;case 2:if(xt=this.productions_[kt[1]][1],Gt.$=de[de.length-xt],Gt._$={first_line:X[X.length-(xt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(xt||1)].first_column,last_column:X[X.length-1].last_column},Ke&&(Gt._$.range=[X[X.length-(xt||1)].range[0],X[X.length-1].range[1]]),Et=this.performAction.apply(Gt,[G,U,xe,Se.yy,kt[1],de,X].concat(je)),typeof Et<"u")return Et;xt&&(ne=ne.slice(0,-1*xt*2),de=de.slice(0,-1*xt),X=X.slice(0,-1*xt)),ne.push(this.productions_[kt[1]][0]),de.push(Gt.$),X.push(Gt._$),Pt=pe[ne[ne.length-2]][ne[ne.length-1]],ne.push(Pt);break;case 3:return!0}}return!0}},ie=function(){var be={EOF:1,parseError:function(ae,ne){if(this.yy.parser)this.yy.parser.parseError(ae,ne);else throw new Error(ae)},setInput:function(ge,ae){return this.yy=ae||this.yy||{},this._input=ge,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 ge=this._input[0];this.yytext+=ge,this.yyleng++,this.offset++,this.match+=ge,this.matched+=ge;var ae=ge.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),ge},unput:function(ge){var ae=ge.length,ne=ge.split(/(?:\r\n?|\n)/g);this._input=ge+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var de=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:ne?(ne.length===se.length?this.yylloc.first_column:0)+se[se.length-ne.length].length-ne[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[de[0],de[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(ge){this.unput(this.match.slice(ge))},pastInput:function(){var ge=this.matched.substr(0,this.matched.length-this.match.length);return(ge.length>20?"...":"")+ge.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ge=this.match;return ge.length<20&&(ge+=this._input.substr(0,20-ge.length)),(ge.substr(0,20)+(ge.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ge=this.pastInput(),ae=new Array(ge.length+1).join("-");return ge+this.upcomingInput()+`
|
|||
|
|
`+ae+"^"},test_match:function(ge,ae){var ne,se,de;if(this.options.backtrack_lexer&&(de={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&&(de.yylloc.range=this.yylloc.range.slice(0))),se=ge[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ge[0].length},this.yytext+=ge[0],this.match+=ge[0],this.matches=ge,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(ge[0].length),this.matched+=ge[0],ne=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var X in de)this[X]=de[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ge,ae,ne,se;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),X=0;X<de.length;X++)if(ne=this._input.match(this.rules[de[X]]),ne&&(!ae||ne[0].length>ae[0].length)){if(ae=ne,se=X,this.options.backtrack_lexer){if(ge=this.test_match(ne,de[X]),ge!==!1)return ge;if(this._backtrack){ae=!1;continue}else return!1}else if(!this.options.flex)break}return ae?(ge=this.test_match(ae,de[se]),ge!==!1?ge:!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,ne,se,de){switch(se){case 0:return 10;case 1:return ae.getLogger().debug("Found space-block"),31;case 2:return ae.getLogger().debug("Found nl-block"),31;case 3:return ae.getLogger().debug("Found space-block"),29;case 4:ae.getLogger().debug(".",ne.yytext);break;case 5:ae.getLogger().debug("_",ne.yytext);break;case 6:return 5;case 7:return ne.yytext=-1,28;case 8:return ne.yytext=ne.yytext.replace(/columns\s+/,""),ae.getLogger().debug("COLUMNS (LEX)",ne.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:ae.getLogger().debug("LEX: POPPING STR:",ne.yytext),this.popState();break;case 14:return ae.getLogger().debug("LEX: STR end:",ne.yytext),"STR";case 15:return ne.yytext=ne.yytext.replace(/space\:/,""),ae.getLogger().debug("SPACE NUM (LEX)",ne.yytext),21;case 16:return ne.yytext="1",ae.getLogger().debug("COLUMNS (LEX)",ne.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),ae.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),ae.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),ae.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),ae.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),ae.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),ae.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),ae.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),ae.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),ae.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),ae.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),ae.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),ae.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return ae.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return ae.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return ae.getLogger().debug("Lexa
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
.cluster-label span,p {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
.label text,span,p {
|
|||
|
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node rect,
|
|||
|
|
.node circle,
|
|||
|
|
.node ellipse,
|
|||
|
|
.node polygon,
|
|||
|
|
.node path {
|
|||
|
|
fill: ${i.mainBkg};
|
|||
|
|
stroke: ${i.nodeBorder};
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
.flowchart-label text {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
}
|
|||
|
|
// .flowchart-label .text-outer-tspan {
|
|||
|
|
// text-anchor: middle;
|
|||
|
|
// }
|
|||
|
|
// .flowchart-label .text-inner-tspan {
|
|||
|
|
// text-anchor: start;
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
.node .label {
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
.node.clickable {
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.arrowheadPath {
|
|||
|
|
fill: ${i.arrowheadColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgePath .path {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
stroke-width: 2.0px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchart-link {
|
|||
|
|
stroke: ${i.lineColor};
|
|||
|
|
fill: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.edgeLabel {
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
rect {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
background-color: ${i.edgeLabelBackground};
|
|||
|
|
fill: ${i.edgeLabelBackground};
|
|||
|
|
}
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* For html labels only */
|
|||
|
|
.labelBkg {
|
|||
|
|
background-color: ${jJ(i.edgeLabelBackground,.5)};
|
|||
|
|
// background-color:
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.node .cluster {
|
|||
|
|
// fill: ${jJ(i.mainBkg,.5)};
|
|||
|
|
fill: ${jJ(i.clusterBkg,.5)};
|
|||
|
|
stroke: ${jJ(i.clusterBorder,.2)};
|
|||
|
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|||
|
|
stroke-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster text {
|
|||
|
|
fill: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.cluster span,p {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
}
|
|||
|
|
/* .cluster div {
|
|||
|
|
color: ${i.titleColor};
|
|||
|
|
} */
|
|||
|
|
|
|||
|
|
div.mermaidTooltip {
|
|||
|
|
position: absolute;
|
|||
|
|
text-align: center;
|
|||
|
|
max-width: 200px;
|
|||
|
|
padding: 2px;
|
|||
|
|
font-family: ${i.fontFamily};
|
|||
|
|
font-size: 12px;
|
|||
|
|
background: ${i.tertiaryColor};
|
|||
|
|
border: 1px solid ${i.border2};
|
|||
|
|
border-radius: 2px;
|
|||
|
|
pointer-events: none;
|
|||
|
|
z-index: 100;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.flowchartTitleText {
|
|||
|
|
text-anchor: middle;
|
|||
|
|
font-size: 18px;
|
|||
|
|
fill: ${i.textColor};
|
|||
|
|
}
|
|||
|
|
`;function FWe(i,s,u=!1){var R,F,j;const d=i;let p="default";(((R=d==null?void 0:d.classes)==null?void 0:R.length)||0)>0&&(p=((d==null?void 0:d.classes)||[]).join(" ")),p=p+" flowchart-label";let v=0,b="",y;switch(d.type){case"round":v=5,b="rect";break;case"composite":v=0,b="composite",y=0;break;case"square":b="rect";break;case"diamond":b="question";break;case"hexagon":b="hexagon";break;case"block_arrow":b="block_arrow";break;case"odd":b="rect_left_inv_arrow";break;case"lean_right":b="lean_right";break;case"lean_left":b="lean_left";break;case"trapezoid":b="trapezoid";break;case"inv_trapezoid":b="inv_trapezoid";break;case"rect_left_inv_arrow":b="rect_left_inv_arrow";break;case"circle":b="circle";break;case"ellipse":b="ellipse";break;case"stadium":b="stadium";break;case"subroutine":b="subroutine";break;case"cylinder":b="cylinder";break;case"group":b="rect";break;case"doublecircle":b="doublecircle";break;default:b="rect"}const T=am((d==null?void 0:d.styles)||[]),_=d.label,A=d.size||{width:0,height:0,x:0,y:0};return{labelStyle:T.labelStyle,shape:b,labelText:_,rx:v,ry:v,class:p,style:T.style,id:d.id,directions:d.directions,width:A.width,height:A.height,x:A.x,y:A.y,positioned:u,intersect:void 0,type:d.type,padding:y??(((j=(F=xh())==null?void 0:F.block)==null?void 0:j.padding)||0)}}async function Acn(i,s,u){const d=FWe(s,u,!1);if(d.type==="group")return;const p=await tJ(i,d),v=p.node().getBBox(),b=u.getBlock(d.id);b.size={width:v.width,height:v.height,x:0,y:0,node:p},u.setBlock(b),p.remove()}async function Lcn(i,s,u){const d=FWe(s,u,!0);u.getBlock(d.id).type!=="space"&&(await tJ(i,d),s.intersect=d==null?void 0:d.intersect,$me(d))}async function dwe(i,s,u,d){for(const p of s)await d(i,p,u),p.children&&await dwe(i,p.children,u,d)}async function Mcn(i,s,u){await dwe(i,s,u,Acn)}async function Dcn(i,s,u){await dwe(i,s,u,Lcn)}async function Icn(i,s,u,d,p){const v=new N0({multigraph:!0,compound:!0});v.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const b of u)b.size&&v.setNode(b.id,{width:b.size.width,height:b.size.height,intersect:b.intersect});for(const b of s)if(b.start&&b.end){const y=d.getBlock(b.start),T=d.getBlock(b.end);if(y!=null&&y.size&&(T!=null&&T.size)){const _=y.size,A=T.size,P=[{x:_.x,y:_.y},{x:_.x+(A.x-_.x)/2,y:_.y+(A.y-_.y)/2},{x:A.x,y:A.y}];await PUe(i,{v:b.start,w:b.end,name:b.id},{...b,arrowTypeEnd:b.arrowTypeEnd,arrowTypeStart:b.arrowTypeStart,points:P,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",v,p),b.label&&(await zme(i,{...b,label:b.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:b.arrowTypeEnd,arrowTypeStart:b.arrowTypeStart,points:P,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await OUe({...b,x:P[1].x,y:P[1].y},{originalPath:P}))}}}const Jf=((zWe=($We=qt())==null?void 0:$We.block)==null?void 0:zWe.padding)||8;function Ocn(i,s){if(i===0||!Number.isInteger(i))throw new Error("Columns must be an integer !== 0.");if(s<0||!Number.isInteger(s))throw new Error("Position must be a non-negative integer."+s);if(i<0)return{px:s,py:0};if(i===1)return{px:0,py:s};const u=s%i,d=Math.floor(s/i);return{px:u,py:d}}const Ncn=i=>{let s=0,u=0;for(const d of i.children){const{width:p,height:v,x:b,y}=d.size||{width:0,height:0,x:0,y:0};Xe.debug("getMaxChildSize abc95 child:",d.id,"width:",p,"height:",v,"x:",b,"y:",y,d.type),d.type!=="space"&&(p>s&&(s=p/(i.widthInColumns||1)),v>u&&(u=v))}return{width:s,height:u}};function gwe(i,s,u=0,d=0){var b,y,T,_,A,P,R,F,j,W,ee;Xe.debug("setBlockSizes abc95 (start)",i.id,(b=i==null?void 0:i.size)==null?void 0:b.x,"block width =",i==null?void 0:i.size,"sieblingWidth",u),(y=i==null?void 0:i.size)!=null&&y.width||(i.size={width:u,height:d,x:0,y:0});let p=0,v=0;if(((T=i.children)==null?void 0:T.length)>0){for(const de of i.children)gwe(de,s);const ie=Ncn(i);p=ie.width,v=ie.height,Xe.debug("setBlockSizes abc95 maxWidth of",i.id,":s children is ",p,v);for(const de of i.children)de.size&&(Xe.debug(`abc95 Setting size of children of ${i.id} id=${de.id} ${p} ${v} ${de
|