Обновление mermaid до v11.6.0

This commit is contained in:
alex committed 2025-03-26 16:25:12 +07:00
1 parent ebe30e375b
commit e3b1d7dc89
1 file changed
+259 -217
+259 -217
View File
@@ -1,16 +1,16 @@
var __esbuild_esm_mermaid=(()=>{var s,w,R,k,T,_,C,S,A,N,I,M,B,F=Object.create,$=Object.defineProperty,z=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyNames,G=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty,me=(t,e)=>$(t,"name",{value:e,configurable:!0}),t=(t,e)=>()=>e=t?t(t=0):e,W=(e,r,i,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let t of U(r))q.call(e,t)||t===i||$(e,t,{get:()=>r[t],enumerable:!(n=z(r,t))||n.enumerable});return e},H=(t,e,r)=>(W(t,e,"default"),r&&W(r,e,"default")),tt=(t,e,r)=>(r=null!=t?F(G(t)):{},W(!e&&t&&t.__esModule?r:$(r,"default",{value:t,enumerable:!0}),t)),et=(hOt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports))((t,e)=>{function r(){var n="millisecond",u="second",d="minute",p="hour",g="day",f="week",m="month",y="year",v="date",e="Invalid Date",s=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,t={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:me(function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"},"ordinal")},i=me(function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},"m"),r={s:i,z:me(function(t){var t=-t.utcOffset(),e=Math.abs(t),r=Math.floor(e/60),e=e%60;return(t<=0?"+":"-")+i(r,2,"0")+":"+i(e,2,"0")},"z"),m:me(function t(e,r){var i,n,a;return e.date()<r.date()?-t(r,e):(i=12*(r.year()-e.year())+(r.month()-e.month()),a=r-(n=e.clone().add(i,m))<0,e=e.clone().add(i+(a?-1:1),m),+(-(i+(r-n)/(a?n-e:e-n))||0))},"t"),a:me(function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},"a"),p:me(function(t){return{M:m,y:y,w:f,d:g,D:v,h:p,m:d,s:u,ms:n,Q:"quarter"}[t]||String(t||"").toLowerCase().replace(/s$/,"")},"p"),u:me(function(t){return void 0===t},"u")},o="en",l={},a=(l[o]=t,"$isDayjsObject"),c=me(function(t){return t instanceof k||!(!t||!t[a])},"S"),h=me(function t(e,r,i){var n;if(!e)return o;if("string"==typeof e){var a=e.toLowerCase(),r=(l[a]&&(n=a),r&&(l[a]=r,n=a),e.split("-"));if(!n&&1<r.length)return t(r[0])}else a=e.name,l[a]=e,n=a;return!i&&n&&(o=n),n||!i&&o},"t"),x=me(function(t,e){return c(t)?t.clone():((e="object"==typeof e?e:{}).date=t,e.args=arguments,new k(e))},"O"),w=r,k=(w.l=h,w.i=c,w.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},me(E,"M"),(t=E.prototype).parse=function(a){this.$d=(()=>{var t=a.date,e=a.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(!(t instanceof Date||"string"!=typeof t||/Z$/i.test(t))){var r,i,n=t.match(s);if(n)return r=n[2]-1||0,i=(n[7]||"0").substring(0,3),e?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}return new Date(t)})(),this.init()},t.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},t.$utils=function(){return w},t.isValid=function(){return this.$d.toString()!==e},t.isSame=function(t,e){return t=x(t),this.startOf(e)<=t&&t<=this.endOf(e)},t.isAfter=function(t,e){return x(t)<this.startOf(e)},t.isBefore=function(t,e){return this.endOf(e)<x(t)},t.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(t,e){var r=this,i=!!w.u(e)||e,e=w.p(t),n=me(function(t,e){return e=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r),i?e:e.endOf(g)},"l"),a=me(function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},"$"),s=this.$W,o=this.$M,l=this.$D,c="set"+(this.$u?"UTC":"");switch(e){case y:return i?n(1,0):n(31,11);case m:return i?n(1,o):n(0,o+1);case f:var h=(s<(h=this.$locale().weekStart||0)?s+7:s)-h;return n(i?l-h:l+(6-h),o);case g:case v:return a(c+"Hours",0);case p:return a(c+"Minutes",1);case d:return a(c+"Seconds",2);case u:return a(c+"Milliseconds",3);default:return this.clone()}},t.endOf=function(t){return this.startOf(t,!1)},t.$set=function(t,e){var t=w.p(t),r="set"+(this.$u?"UTC":""),r=((i={}).day=r+"Date",i.date=r+"Date",i[m]=r+"Month",i.year=r+"FullYear",i.hour=r+"Hours",i[d]=r+"Minutes",i[u]=r+"Seconds",i[n]=r+"Milliseconds",i[t]),i=t===g?this.$D+(e-this.$W):e;return t===m||t===y?((e=this.clone().set(v,1)).$d[r](i),e.init(),this.$d=e.set(v,Math.min(this.$D,e.daysInMonth())).$d):r&&this.$d[r](i),this.init(),this},t.set=function(t,e){return this.clone().$set(t,e)},t.get=function(t){return this[w.p(t)]()},t.add=function(r,t){var i=this,t=(r=Number(r),w.p(t)),e=me(function(t){var e=x(i);return w.w(e.date(e.date()+Math.round(t*r)),i)},"y");return t===m?this.set(m,this.$M+r):t===y?this.set(y,this.$y+r):t===g?e(1):t===f?e(7):(e={minute:Line truncated var __esbuild_esm_mermaid=(()=>{var w,k,M,T,C,_,S,A,N,I,R,B,F,$=Object.create,z=Object.defineProperty,G=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyNames,q=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,me=(t,e)=>z(t,"name",{value:e,configurable:!0}),t=(t,e)=>()=>e=t?t(t=0):e,Y=(e,r,i,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let t of U(r))W.call(e,t)||t===i||z(e,t,{get:()=>r[t],enumerable:!(n=G(r,t))||n.enumerable});return e},H=(t,e,r)=>(Y(t,e,"default"),r&&Y(r,e,"default")),tt=(t,e,r)=>(r=null!=t?$(q(t)):{},Y(!e&&t&&t.__esModule?r:z(r,"default",{value:t,enumerable:!0}),t)),et=(iPt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports))((t,e)=>{function r(){var n="millisecond",u="second",d="minute",p="hour",g="day",f="week",m="month",y="year",v="date",e="Invalid Date",s=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,t={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:me(function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"},"ordinal")},i=me(function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},"m"),r={s:i,z:me(function(t){var t=-t.utcOffset(),e=Math.abs(t),r=Math.floor(e/60),e=e%60;return(t<=0?"+":"-")+i(r,2,"0")+":"+i(e,2,"0")},"z"),m:me(function t(e,r){var i,n,a;return e.date()<r.date()?-t(r,e):(i=12*(r.year()-e.year())+(r.month()-e.month()),a=r-(n=e.clone().add(i,m))<0,e=e.clone().add(i+(a?-1:1),m),+(-(i+(r-n)/(a?n-e:e-n))||0))},"t"),a:me(function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},"a"),p:me(function(t){return{M:m,y:y,w:f,d:g,D:v,h:p,m:d,s:u,ms:n,Q:"quarter"}[t]||String(t||"").toLowerCase().replace(/s$/,"")},"p"),u:me(function(t){return void 0===t},"u")},o="en",l={},a=(l[o]=t,"$isDayjsObject"),c=me(function(t){return t instanceof k||!(!t||!t[a])},"S"),h=me(function t(e,r,i){var n;if(!e)return o;if("string"==typeof e){var a=e.toLowerCase(),r=(l[a]&&(n=a),r&&(l[a]=r,n=a),e.split("-"));if(!n&&1<r.length)return t(r[0])}else a=e.name,l[a]=e,n=a;return!i&&n&&(o=n),n||!i&&o},"t"),b=me(function(t,e){return c(t)?t.clone():((e="object"==typeof e?e:{}).date=t,e.args=arguments,new k(e))},"O"),w=r,k=(w.l=h,w.i=c,w.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},me(E,"M"),(t=E.prototype).parse=function(a){this.$d=(()=>{var t=a.date,e=a.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(!(t instanceof Date||"string"!=typeof t||/Z$/i.test(t))){var r,i,n=t.match(s);if(n)return r=n[2]-1||0,i=(n[7]||"0").substring(0,3),e?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}return new Date(t)})(),this.init()},t.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},t.$utils=function(){return w},t.isValid=function(){return this.$d.toString()!==e},t.isSame=function(t,e){return t=b(t),this.startOf(e)<=t&&t<=this.endOf(e)},t.isAfter=function(t,e){return b(t)<this.startOf(e)},t.isBefore=function(t,e){return this.endOf(e)<b(t)},t.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(t,e){var r=this,i=!!w.u(e)||e,e=w.p(t),n=me(function(t,e){return e=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r),i?e:e.endOf(g)},"l"),a=me(function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},"$"),s=this.$W,o=this.$M,l=this.$D,c="set"+(this.$u?"UTC":"");switch(e){case y:return i?n(1,0):n(31,11);case m:return i?n(1,o):n(0,o+1);case f:var h=(s<(h=this.$locale().weekStart||0)?s+7:s)-h;return n(i?l-h:l+(6-h),o);case g:case v:return a(c+"Hours",0);case p:return a(c+"Minutes",1);case d:return a(c+"Seconds",2);case u:return a(c+"Milliseconds",3);default:return this.clone()}},t.endOf=function(t){return this.startOf(t,!1)},t.$set=function(t,e){var t=w.p(t),r="set"+(this.$u?"UTC":""),r=((i={}).day=r+"Date",i.date=r+"Date",i[m]=r+"Month",i.year=r+"FullYear",i.hour=r+"Hours",i[d]=r+"Minutes",i[u]=r+"Seconds",i[n]=r+"Milliseconds",i[t]),i=t===g?this.$D+(e-this.$W):e;return t===m||t===y?((e=this.clone().set(v,1)).$d[r](i),e.init(),this.$d=e.set(v,Math.min(this.$D,e.daysInMonth())).$d):r&&this.$d[r](i),this.init(),this},t.set=function(t,e){return this.clone().$set(t,e)},t.get=function(t){return this[w.p(t)]()},t.add=function(r,t){var i=this,t=(r=Number(r),w.p(t)),e=me(function(t){var e=b(i);return w.w(e.date(e.date()+Math.round(t*r)),i)},"y");return t===m?this.set(m,this.$M+r):t===y?this.set(y,this.$y+r):t===g?e(1):t===f?e(7):(e={minute:Line truncated
[ ]{`+Math.min.apply(Math,t)+"}","g"),n=n.map(function(t){return t.replace(i,` [ ]{`+Math.min.apply(Math,t)+"}","g"),n=n.map(function(t){return t.replace(i,`
`)})),n[0]=n[0].replace(/^\r?\n/,""),n[0]);return e.forEach(function(t,e){var r=(i=a.match(/(?:^|\n)( *)$/))?i[1]:"",i=t;"string"==typeof t&&t.includes(` `)})),n[0]=n[0].replace(/^\r?\n/,""),n[0]);return e.forEach(function(t,e){var r=(i=a.match(/(?:^|\n)( *)$/))?i[1]:"",i=t;"string"==typeof t&&t.includes(`
`)&&(i=String(t).split(` `)&&(i=String(t).split(`
`).map(function(t,e){return 0===e?t:""+r+t}).join(` `).map(function(t,e){return 0===e?t:""+r+t}).join(`
`)),a+=i+n[e+1]}),a}var Yt,Wt,Ht,Vt,Xt,Kt,Zt,Qt,Jt,te,ee,re,ie,ne,ae,se,oe,le,ce,he,ue,de,pe,ge,fe,ve,be,xe,we,ke,Te,Ee,_e,Ce,Se,Ae,Le,Ne,Ie,Me,Re,De,Oe,Pe,Be,Fe,$e,ze,Ue,Ge,qe,je,Ye,a,We,He,Ve,r,Xe,Ke,Ze,i,Qe,Je,tr,er,rr,ir,nr,ar,sr,or,lr,cr,hr,ur,dr,pr,gr,fr,mr,yr,vr,br,xr,wr,kr,Tr,Er,_r,Cr,Sr,Ar,Lr,Nr,Ir,Mr,Rr,Dr,Or,Pr,Br,Fr=t(()=>{me(jt,"dedent")}),$r=t(()=>{Yt=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Wt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ht=/\s*%%.*\n/gm}),zr=t(()=>{Vt=class extends Error{static{me(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}}),Ur=t(()=>{e(),$r(),zr(),Xt={},Kt=me(function(t,e){t=t.replace(Yt,"").replace(Wt,"").replace(Ht,` `)),a+=i+n[e+1]}),a}var Wt,Yt,Ht,Vt,Xt,Kt,Zt,Qt,Jt,te,ee,re,ie,ne,ae,se,oe,le,ce,he,ue,de,pe,ge,fe,ve,xe,be,we,ke,Te,Ee,Ce,_e,Se,Ae,Le,Ne,Ie,Re,Me,De,Oe,Pe,Be,Fe,$e,ze,Ge,Ue,qe,je,We,a,Ye,He,Ve,r,Xe,Ke,Ze,i,Qe,Je,tr,er,rr,ir,nr,ar,sr,or,lr,cr,hr,ur,dr,pr,gr,fr,mr,yr,vr,xr,br,wr,kr,Tr,Er,Cr,_r,Sr,Ar,Lr,Nr,Ir,Rr,Mr,Dr,Or,Pr,Br,Fr=t(()=>{me(jt,"dedent")}),$r=t(()=>{Wt=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Yt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ht=/\s*%%.*\n/gm}),zr=t(()=>{Vt=class extends Error{static{me(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}}),Gr=t(()=>{e(),$r(),zr(),Xt={},Kt=me(function(t,e){t=t.replace(Wt,"").replace(Yt,"").replace(Ht,`
`);for(var[r,{detector:i}]of Object.entries(Xt))if(i(t,e))return r;throw new Vt("No diagram type detected matching given configuration for text: "+t)},"detectType"),Zt=me((...t)=>{for(var{id:e,detector:r,loader:i}of t)Qt(e,r,i)},"registerLazyLoadedDiagrams"),Qt=me((t,e,r)=>{Xt[t]&&R.warn(`Detector with key ${t} already exists. Overwriting.`),Xt[t]={detector:e,loader:r},R.debug(`Detector with key ${t} added`+(r?" with loader":""))},"addDetector"),Jt=me(t=>Xt[t].loader,"getDiagramLoader")}),Gr=t(()=>{function B(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,24],r=[1,25],F=[1,26],$=[1,27],z=[1,28],i=[1,63],n=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],b=[1,37],x=[1,38],w=[1,39],k=[1,40],T=[1,41],E=[1,42],_=[1,43],C=[1,44],S=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],U=[1,51],G=[1,52],q=[1,53],j=[1,54],Y=[1,55],W=[1,56],H=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[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],J=[12,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],M=[1,82],R=[1,83],D=[1,84],O=[1,85],P=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],rt=[12,33],it=[34,36,37,38,39,40,41,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],e={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(a[o-3]);break;case 19:i.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 20:i.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 21:this.$=a[o].trim(),i.setTitle(this.$);break;case 22:case 23:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 28:a[o].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 2 Line truncated `);for(var[r,{detector:i}]of Object.entries(Xt))if(i(t,e))return r;throw new Vt("No diagram type detected matching given configuration for text: "+t)},"detectType"),Zt=me((...t)=>{for(var{id:e,detector:r,loader:i}of t)Qt(e,r,i)},"registerLazyLoadedDiagrams"),Qt=me((t,e,r)=>{Xt[t]&&M.warn(`Detector with key ${t} already exists. Overwriting.`),Xt[t]={detector:e,loader:r},M.debug(`Detector with key ${t} added`+(r?" with loader":""))},"addDetector"),Jt=me(t=>Xt[t].loader,"getDiagramLoader")}),Ur=t(()=>{function B(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,24],r=[1,25],F=[1,26],$=[1,27],z=[1,28],i=[1,63],n=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],b=[1,38],w=[1,39],k=[1,40],T=[1,41],E=[1,42],C=[1,43],_=[1,44],S=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],G=[1,51],U=[1,52],q=[1,53],j=[1,54],W=[1,55],Y=[1,56],H=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[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],J=[12,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],R=[1,82],M=[1,83],D=[1,84],O=[1,85],P=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],rt=[12,33],it=[34,36,37,38,39,40,41,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],e={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(a[o-3]);break;case 19:i.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 20:i.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 21:this.$=a[o].trim(),i.setTitle(this.$);break;case 22:case 23:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 28:a[o].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 2 Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){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: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:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58: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}},"anonymous"),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*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\ Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){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: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:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58: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}},"anonymous"),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*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\ Line truncated
`+l),v&&Yi([J,tt,et],t=>{l=Ji(l,t," ")}),p&&k?p.createHTML(l):l},u.setConfig=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Rt(t),mt=!0},u.clearConfig=function(){I=null,mt=!1},u.isValidAttribute=function(t,e,r){return I||Rt({}),t=N(t),e=N(e),Gt(t,e,r)},u.addHook=function(t,e){"function"==typeof e&&Vi(g[t],e)},u.removeHook=function(t,e){return void 0!==e?-1===(e=Wi(g[t],e))?void 0:Xi(g[t],e,1)[0]:Hi(g[t])},u.removeHooks=function(t){g[t]=[]},u.removeAllHooks=function(){g=In()},u}var Pi,Bi,Fi,$i,zi,Ui,Gi,qi,ji,Yi,Wi,Hi,Vi,Xi,Ki,Zi,Qi,Ji,tn,en,rn,nn,an,sn,on,ln,cn,hn,un,dn,pn,gn,fn,mn,yn,vn,bn,xn,wn,kn,Tn,En,_n,Cn,Sn,An,Ln,Nn,In,Mn,Rn=t(()=>{({entries:Pi,setPrototypeOf:Bi,isFrozen:Fi,getPrototypeOf:$i,getOwnPropertyDescriptor:zi}=Object),{freeze:Ui,seal:Cn,create:Gi}=Object,{apply:qi,construct:ji}=typeof Reflect<"u"&&Reflect,Ui=Ui||me(function(t){return t},"freeze"),Cn=Cn||me(function(t){return t},"seal"),qi=qi||me(function(t,e,r){return t.apply(e,r)},"apply"),ji=ji||me(function(t,e){return new t(...e)},"construct"),Yi=Li(Array.prototype.forEach),Wi=Li(Array.prototype.lastIndexOf),Hi=Li(Array.prototype.pop),Vi=Li(Array.prototype.push),Xi=Li(Array.prototype.splice),Ki=Li(String.prototype.toLowerCase),Zi=Li(String.prototype.toString),Qi=Li(String.prototype.match),Ji=Li(String.prototype.replace),tn=Li(String.prototype.indexOf),en=Li(String.prototype.trim),rn=Li(Object.prototype.hasOwnProperty),nn=Li(RegExp.prototype.test),an=Ni(TypeError),me(Li,"unapply"),me(Ni,"unconstruct"),me(Ii,"addToSet"),me(Mi,"cleanArray"),me(Ri,"clone"),me(Di,"lookupGetter"),sn=Ui(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),on=Ui(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ln=Ui(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=Ui(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hn=Ui(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=Ui(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dn=Ui(["#text"]),pn=Ui(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src"," Line truncated `+l),v&&Wi([J,tt,et],t=>{l=Ji(l,t," ")}),p&&k?p.createHTML(l):l},u.setConfig=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Mt(t),mt=!0},u.clearConfig=function(){I=null,mt=!1},u.isValidAttribute=function(t,e,r){return I||Mt({}),t=N(t),e=N(e),Ut(t,e,r)},u.addHook=function(t,e){"function"==typeof e&&Vi(g[t],e)},u.removeHook=function(t,e){return void 0!==e?-1===(e=Yi(g[t],e))?void 0:Xi(g[t],e,1)[0]:Hi(g[t])},u.removeHooks=function(t){g[t]=[]},u.removeAllHooks=function(){g=In()},u}var Pi,Bi,Fi,$i,zi,Gi,Ui,qi,ji,Wi,Yi,Hi,Vi,Xi,Ki,Zi,Qi,Ji,tn,en,rn,nn,an,sn,on,ln,cn,hn,un,dn,pn,gn,fn,mn,yn,vn,xn,bn,wn,kn,Tn,En,Cn,_n,Sn,An,Ln,Nn,In,Rn,Mn=t(()=>{({entries:Pi,setPrototypeOf:Bi,isFrozen:Fi,getPrototypeOf:$i,getOwnPropertyDescriptor:zi}=Object),{freeze:Gi,seal:_n,create:Ui}=Object,{apply:qi,construct:ji}=typeof Reflect<"u"&&Reflect,Gi=Gi||me(function(t){return t},"freeze"),_n=_n||me(function(t){return t},"seal"),qi=qi||me(function(t,e,r){return t.apply(e,r)},"apply"),ji=ji||me(function(t,e){return new t(...e)},"construct"),Wi=Li(Array.prototype.forEach),Yi=Li(Array.prototype.lastIndexOf),Hi=Li(Array.prototype.pop),Vi=Li(Array.prototype.push),Xi=Li(Array.prototype.splice),Ki=Li(String.prototype.toLowerCase),Zi=Li(String.prototype.toString),Qi=Li(String.prototype.match),Ji=Li(String.prototype.replace),tn=Li(String.prototype.indexOf),en=Li(String.prototype.trim),rn=Li(Object.prototype.hasOwnProperty),nn=Li(RegExp.prototype.test),an=Ni(TypeError),me(Li,"unapply"),me(Ni,"unconstruct"),me(Ii,"addToSet"),me(Ri,"cleanArray"),me(Mi,"clone"),me(Di,"lookupGetter"),sn=Gi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),on=Gi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ln=Gi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=Gi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hn=Gi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=Gi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dn=Gi(["#text"]),pn=Gi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src"," Line truncated
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 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 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 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
@@ -31,7 +31,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
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 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 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 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},"sqrtSize1"),Ma=me(function(t,e){return"M983 "+(10+t+e)+` M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},"sqrtSize1"),Ra=me(function(t,e){return"M983 "+(10+t+e)+`
l`+t/3.13+" -"+t+` l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
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 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
@@ -40,7 +40,7 @@ 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 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 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 c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},"sqrtSize2"),Ra=me(function(t,e){return"M424,"+(2398+t+e)+` M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},"sqrtSize2"),Ma=me(function(t,e){return"M424,"+(2398+t+e)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 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 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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
@@ -61,7 +61,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1
H742v`+(r-54-e-t)+`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 H742v`+(r-54-e-t)+`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 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 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+e+"H400000v"+(40+t)+"H742z"},"sqrtTall"),Ba=me(function(t,e,r){e*=1e3;var i="";switch(t){case"sqrtMain":i=Na(e,80);break;case"sqrtSize1":i=Ia(e,80);break;case"sqrtSize2":i=Ma(e,80);break;case"sqrtSize3":i=Ra(e,80);break;case"sqrtSize4":i=Da(e,80);break;case"sqrtTall":i=Pa(e,80,r)}return i},"sqrtPath"),Fa=me(function(t,e){switch(t){case"⎜":return"M291 0 H417 V"+e+" H291z M291 0 H417 V"+e+" H291z";case"∣":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z";case"∥":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145zM367 0 H410 V"+e+" H367z M367 0 H410 V"+e+" H367z";case"⎟":return"M457 0 H583 V"+e+" H457z M457 0 H583 V"+e+" H457z";case"⎢":return"M319 0 H403 V"+e+" H319z M319 0 H403 V"+e+" H319z";case"⎥":return"M263 0 H347 V"+e+" H263z M263 0 H347 V"+e+" H263z";case"⎪":return"M384 0 H504 V"+e+" H384z M384 0 H504 V"+e+" H384z";case"⏐":return"M312 0 H355 V"+e+" H312z M312 0 H355 V"+e+" H312z";case"‖":return"M257 0 H300 V"+e+" H257z M257 0 H300 V"+e+" H257zM478 0 H521 V"+e+" H478z M478 0 H521 V"+e+" H478z";default:return""}},"innerPath"),$a={doubleleftarrow:`M262 157 219 661 l218 661zM702 `+e+"H400000v"+(40+t)+"H742z"},"sqrtTall"),Ba=me(function(t,e,r){e*=1e3;var i="";switch(t){case"sqrtMain":i=Na(e,80);break;case"sqrtSize1":i=Ia(e,80);break;case"sqrtSize2":i=Ra(e,80);break;case"sqrtSize3":i=Ma(e,80);break;case"sqrtSize4":i=Da(e,80);break;case"sqrtTall":i=Pa(e,80,r)}return i},"sqrtPath"),Fa=me(function(t,e){switch(t){case"⎜":return"M291 0 H417 V"+e+" H291z M291 0 H417 V"+e+" H291z";case"∣":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z";case"∥":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145zM367 0 H410 V"+e+" H367z M367 0 H410 V"+e+" H367z";case"⎟":return"M457 0 H583 V"+e+" H457z M457 0 H583 V"+e+" H457z";case"⎢":return"M319 0 H403 V"+e+" H319z M319 0 H403 V"+e+" H319z";case"⎥":return"M263 0 H347 V"+e+" H263z M263 0 H347 V"+e+" H263z";case"⎪":return"M384 0 H504 V"+e+" H384z M384 0 H504 V"+e+" H384z";case"⏐":return"M312 0 H355 V"+e+" H312z M312 0 H355 V"+e+" H312z";case"‖":return"M257 0 H300 V"+e+" H257z M257 0 H300 V"+e+" H257zM478 0 H521 V"+e+" H478z M478 0 H521 V"+e+" H478z";default:return""}},"innerPath"),$a={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 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 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 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
@@ -264,10 +264,10 @@ 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
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 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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, l0,-`+(e+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.")}},"tallDelim"),Ua=class{static{me(this,"DocumentFragment")}constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ya.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){for(var t="",e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t}toText(){var t=me(t=>t.toText(),"toText");return this.children.map(t).join("")}},Ga={"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,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872: Line truncated -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.")}},"tallDelim"),Ga=class{static{me(this,"DocumentFragment")}constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ya.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){for(var t="",e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t}toText(){var t=me(t=>t.toText(),"toText");return this.children.map(t).join("")}},Ua={"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,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872: Line truncated
`+h+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var p=0;p<h;p++){var g=new hs(s[p]),g=new cs([g],{width:"400em",height:K(c),viewBox:"0 0 "+r+" "+l,preserveAspectRatio:d[p]+" slice"}),g=Z.makeSvgSpan([u[p]],[g],m);if(1===h)return{span:g,minWidth:o,height:c};g.style.height=K(c),n.push(g)}return{span:Z.makeSpan(["stretchy"],n,m),minWidth:o,height:c}}me(t,"buildSvgSpan_");var{span:e,minWidth:r,height:i}=t();return e.height=i,e.style.height=K(i),0<r&&(e.style.minWidth=K(r)),e},"svgSpan"),Ol=me(function(t,e,r,i,n){var a,t=t.height+t.depth+r+i;return/fbox|color|angl/.test(e)?(a=Z.makeSpan(["stretchy",e],[],n),"fbox"===e&&(r=n.color&&n.getColor())&&(a.style.borderColor=r)):(i=[],/^[bx]cancel$/.test(e)&&i.push(new us({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&i.push(new us({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),r=new cs(i,{width:"100%",height:K(t)}),a=Z.makeSvgSpan([],[r],n)),a.height=t,a.style.height=K(t),a},"encloseSpan"),No={encloseSpan:Ol,mathMLnode:f,svgSpan:nc},me(Xn,"assertNodeType"),me(Kn,"assertSymbolNodeType"),me(Zn,"checkSymbolNodeType"),Io=me((t,e)=>{t&&"supsub"===t.type?(o=(r=Xn(t.base,"accent")).base,t.base=o,i=qn(go(t,e)),t.base=r):o=(r=Xn(t,"accent")).base;var r,i,n,a,t=go(o,e.havingCrampedStyle()),s=0,o=(r.isShifty&&ya.isCharacterBox(o)&&(o=ya.getBaseElem(o),s=Gn(go(o,e.havingCrampedStyle())).skew),"\\c"===r.label),l=o?t.height+t.depth:Math.min(t.height,e.fontMetrics().xHeight),c=r.isStretchy?(c=No.svgSpan(r,e),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<s?{width:"calc(100% - "+K(2*s)+")",marginLeft:K(2*s)}:void 0}]},e)):("\\vec"===r.label?(a=Z.staticSvg("vec",e),n=Z.svgData.vec[1]):((a=Gn(a=Z.makeOrd({mode:r.mode,text:r.label},e,"textord"))).italic=0,n=a.width,o&&(l+=a.depth)),c=Z.makeSpan(["accent-body"],[a]),(o="\\textcircled"===r.label)&&(c.classes.push("accent-full"),l=t.height),a=s,o||(a-=n/2),c.style.left=K(a),"\\textcircled"===r.label&&(c.style.top=".2em"),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:-l},{type:"elem",elem:c}]},e)),s=Z.makeSpan(["mord","accent"],[c],e);return i?(i.children[0]=s,i.height=Math.max(s.height,i.height),i.classes[0]="mord",i):s},"htmlBuilder$a"),Bl=me((t,e)=>{var r=t.isStretchy?No.mathMLnode(t.label):new E.MathNode("mo",[yo(t.label,t.mode)]);return(t=new E.MathNode("mover",[ko(t.base,e),r])).setAttribute("accent","true"),t},"mathmlBuilder$9"),Mo=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|")),l({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:me((t,e)=>{var e=to(e[0]),r=!Mo.test(t.funcName),i=!r||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:e}},"handler"),htmlBuilder:Io,mathmlBuilder:Bl}),l({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:me((t,e)=>{var e=e[0],r=t.parser.mode;return"math"===r&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:e}},"handler"),htmlBuilder:Io,mathmlBuilder:Bl}),l({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:me((t,e)=>{var{parser:t,funcName:r}=t,e=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:e}},"handler"),htmlBuilder:me((t,e)=>{var r=go(t.base,e),i=No.svgSpan(t,e),t="\\utilde"===t.label?.12:0,i=Z.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:t},{type:"elem",elem:r}]},e);return Z.makeSpan(["mord","accentunder"],[i],e)},"htmlBuilder"),mathmlBuilder:me((t,e)=>{var r=No.mathMLnode(t.label);return(t=new E.MathNode("munder",[ko(t.base,e),r])).setAttribute("accentunder","true"),t},"mathmlBuilder")}),Ro=me(t=>((t=new E.MathNode("mpadded",t?[t]:[])).setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t),"paddedNode"),l({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleLine truncated `+h+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var p=0;p<h;p++){var g=new hs(s[p]),g=new cs([g],{width:"400em",height:K(c),viewBox:"0 0 "+r+" "+l,preserveAspectRatio:d[p]+" slice"}),g=Z.makeSvgSpan([u[p]],[g],m);if(1===h)return{span:g,minWidth:o,height:c};g.style.height=K(c),n.push(g)}return{span:Z.makeSpan(["stretchy"],n,m),minWidth:o,height:c}}me(t,"buildSvgSpan_");var{span:e,minWidth:r,height:i}=t();return e.height=i,e.style.height=K(i),0<r&&(e.style.minWidth=K(r)),e},"svgSpan"),Ol=me(function(t,e,r,i,n){var a,t=t.height+t.depth+r+i;return/fbox|color|angl/.test(e)?(a=Z.makeSpan(["stretchy",e],[],n),"fbox"===e&&(r=n.color&&n.getColor())&&(a.style.borderColor=r)):(i=[],/^[bx]cancel$/.test(e)&&i.push(new us({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&i.push(new us({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),r=new cs(i,{width:"100%",height:K(t)}),a=Z.makeSvgSpan([],[r],n)),a.height=t,a.style.height=K(t),a},"encloseSpan"),No={encloseSpan:Ol,mathMLnode:f,svgSpan:nc},me(Xn,"assertNodeType"),me(Kn,"assertSymbolNodeType"),me(Zn,"checkSymbolNodeType"),Io=me((t,e)=>{t&&"supsub"===t.type?(o=(r=Xn(t.base,"accent")).base,t.base=o,i=qn(go(t,e)),t.base=r):o=(r=Xn(t,"accent")).base;var r,i,n,a,t=go(o,e.havingCrampedStyle()),s=0,o=(r.isShifty&&ya.isCharacterBox(o)&&(o=ya.getBaseElem(o),s=Un(go(o,e.havingCrampedStyle())).skew),"\\c"===r.label),l=o?t.height+t.depth:Math.min(t.height,e.fontMetrics().xHeight),c=r.isStretchy?(c=No.svgSpan(r,e),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<s?{width:"calc(100% - "+K(2*s)+")",marginLeft:K(2*s)}:void 0}]},e)):("\\vec"===r.label?(a=Z.staticSvg("vec",e),n=Z.svgData.vec[1]):((a=Un(a=Z.makeOrd({mode:r.mode,text:r.label},e,"textord"))).italic=0,n=a.width,o&&(l+=a.depth)),c=Z.makeSpan(["accent-body"],[a]),(o="\\textcircled"===r.label)&&(c.classes.push("accent-full"),l=t.height),a=s,o||(a-=n/2),c.style.left=K(a),"\\textcircled"===r.label&&(c.style.top=".2em"),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:-l},{type:"elem",elem:c}]},e)),s=Z.makeSpan(["mord","accent"],[c],e);return i?(i.children[0]=s,i.height=Math.max(s.height,i.height),i.classes[0]="mord",i):s},"htmlBuilder$a"),Bl=me((t,e)=>{var r=t.isStretchy?No.mathMLnode(t.label):new E.MathNode("mo",[yo(t.label,t.mode)]);return(t=new E.MathNode("mover",[ko(t.base,e),r])).setAttribute("accent","true"),t},"mathmlBuilder$9"),Ro=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|")),l({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:me((t,e)=>{var e=to(e[0]),r=!Ro.test(t.funcName),i=!r||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:e}},"handler"),htmlBuilder:Io,mathmlBuilder:Bl}),l({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:me((t,e)=>{var e=e[0],r=t.parser.mode;return"math"===r&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:e}},"handler"),htmlBuilder:Io,mathmlBuilder:Bl}),l({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:me((t,e)=>{var{parser:t,funcName:r}=t,e=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:e}},"handler"),htmlBuilder:me((t,e)=>{var r=go(t.base,e),i=No.svgSpan(t,e),t="\\utilde"===t.label?.12:0,i=Z.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:t},{type:"elem",elem:r}]},e);return Z.makeSpan(["mord","accentunder"],[i],e)},"htmlBuilder"),mathmlBuilder:me((t,e)=>{var r=No.mathMLnode(t.label);return(t=new E.MathNode("munder",[ko(t.base,e),r])).setAttribute("accentunder","true"),t},"mathmlBuilder")}),Mo=me(t=>((t=new E.MathNode("mpadded",t?[t]:[])).setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t),"paddedNode"),l({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleLine truncated
`,this.tokenRegex.lastIndex))?(this.tokenRegex.lastIndex=t.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=r+1,this.lex()):new ua(i,new ha(this,e,this.tokenRegex.lastIndex))}},Ql=class{static{me(this,"Namespace")}constructor(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=e,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t,e=this.undefStack.pop();for(t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return(this.current.hasOwnProperty(t)?this.current:this.builtins)[t]}set(t,e,r){if(r=void 0!==r&&r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][t]=e)}else(r=this.undefStack[this.undefStack.length-1])&&!r.hasOwnProperty(t)&&(r[t]=this.current[t]);null==e?delete this.current[t]:this.current[t]=e}},Jl=yl,h("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),h("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),h("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),h("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),h("\\@ifnextchar",function(t){var e=t.consumeArgs(3),t=(t.consumeSpaces(),t.future());return 1===e[0].length&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),h("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}),tc={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},h("\\char",function(t){var e,r,i=t.popToken(),n="";if("'"===i.text)e=8,i=t.popToken();else if('"'===i.text)e=16,i=t.popToken();else if("`"===i.text)if("\\"===(i=t.popToken()).text[0])n=i.text.charCodeAt(1);else{if("EOF"===i.text)throw new X("\\char` missing argument");n=i.text.charCodeAt(0)}else e=10;if(e){if(null==(n=tc[i.text])||e<=n)throw new X("Invalid base-"+e+" digit "+i.text);for(;null!=(r=tc[t.future().text])&&r<e;)n=n*e+r,t.popToken()}return"\\@char{"+n+"}"}),ec=me((t,e,r)=>{var i=t.consumeArg().tokens;if(1!==i.length)throw new X("\\newcommand's first argument must be a macro name");var n=i[0].text,a=t.isDefined(n);if(a&&!e)throw new X("\\newcommand{"+n+"} attempting to redefine "+n+"; use \\renewcommand");if(!a&&!r)throw new X("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");if(e=0,1===(i=t.consumeArg().tokens).length&&"["===i[0].text){for(var s="",o=t.expandNextToken();"]"!==o.text&&"EOF"!==o.text;)s+=o.text,o=t.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+s);e=parseInt(s),i=t.consumeArg().tokens}return t.macros.set(n,{tokens:i,numArgs:e}),""},"newcommand"),h("\\newcommand",t=>ec(t,!1,!0)),h("\\renewcommand",t=>ec(t,!0,!1)),h("\\providecommand",t=>ec(t,!0,!0)),h("\\message",t=>(t=t.consumeArgs(1)[0],console.log(t.reverse().map(t=>t.text).join("")),"")),h("\\errmessage",t=>(t=t.consumeArgs(1)[0],console.error(t.reverse().map(t=>t.text).join("")),"")),h("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Xl[r],gs.math[r],gs.text[r]),""}),h("\\bgroup","{"),h("\\egroup","}"),h("~","\\nobreakspace"),h("\\lq","`"),h("\\rq","'"),h("\\aa","\\r a"),h("\\AA","\\r A"),h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),h("ℬ","\\mathscr{B}"),h("ℰ","\\mathscr{E}"),h("ℱ","\\mathscr{F}"),h("ℋ","\\mathscr{H}"),h("ℐ","\\mathscr{I}"),h("ℒ","\\mathscr{L}"),h("ℳ","\\mathscr{M}"),h("ℛ","\\mathscr{R}"),h("ℭ","\\mathfrak{C}"),h("ℌ","\\mathfrak{H}"),h("ℨ","\\mathfrak{Z}"),h("\\Bbbk","\\Bbb{k}"),h("·","\\cdotp"),h("\\llap","\\mathllap{\\textrm{#1}}"),h("\\rlap","\\mathrlap{\\textrm{#1}}"),h("\\clap","\\mathclap{\\textrm{#1}}"),h("\\mathstrut","\\vphantom{(}"),h("\\underbar","\\underline{\\text{#1}}"),h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),h("\\ne","\\neq"),h("≠","\\neq"),h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),h("∉","\\notin"),h("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scLine truncated `,this.tokenRegex.lastIndex))?(this.tokenRegex.lastIndex=t.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=r+1,this.lex()):new ua(i,new ha(this,e,this.tokenRegex.lastIndex))}},Ql=class{static{me(this,"Namespace")}constructor(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=e,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t,e=this.undefStack.pop();for(t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return(this.current.hasOwnProperty(t)?this.current:this.builtins)[t]}set(t,e,r){if(r=void 0!==r&&r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][t]=e)}else(r=this.undefStack[this.undefStack.length-1])&&!r.hasOwnProperty(t)&&(r[t]=this.current[t]);null==e?delete this.current[t]:this.current[t]=e}},Jl=yl,h("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),h("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),h("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),h("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),h("\\@ifnextchar",function(t){var e=t.consumeArgs(3),t=(t.consumeSpaces(),t.future());return 1===e[0].length&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),h("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}),tc={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},h("\\char",function(t){var e,r,i=t.popToken(),n="";if("'"===i.text)e=8,i=t.popToken();else if('"'===i.text)e=16,i=t.popToken();else if("`"===i.text)if("\\"===(i=t.popToken()).text[0])n=i.text.charCodeAt(1);else{if("EOF"===i.text)throw new X("\\char` missing argument");n=i.text.charCodeAt(0)}else e=10;if(e){if(null==(n=tc[i.text])||e<=n)throw new X("Invalid base-"+e+" digit "+i.text);for(;null!=(r=tc[t.future().text])&&r<e;)n=n*e+r,t.popToken()}return"\\@char{"+n+"}"}),ec=me((t,e,r)=>{var i=t.consumeArg().tokens;if(1!==i.length)throw new X("\\newcommand's first argument must be a macro name");var n=i[0].text,a=t.isDefined(n);if(a&&!e)throw new X("\\newcommand{"+n+"} attempting to redefine "+n+"; use \\renewcommand");if(!a&&!r)throw new X("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");if(e=0,1===(i=t.consumeArg().tokens).length&&"["===i[0].text){for(var s="",o=t.expandNextToken();"]"!==o.text&&"EOF"!==o.text;)s+=o.text,o=t.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+s);e=parseInt(s),i=t.consumeArg().tokens}return t.macros.set(n,{tokens:i,numArgs:e}),""},"newcommand"),h("\\newcommand",t=>ec(t,!1,!0)),h("\\renewcommand",t=>ec(t,!0,!1)),h("\\providecommand",t=>ec(t,!0,!0)),h("\\message",t=>(t=t.consumeArgs(1)[0],console.log(t.reverse().map(t=>t.text).join("")),"")),h("\\errmessage",t=>(t=t.consumeArgs(1)[0],console.error(t.reverse().map(t=>t.text).join("")),"")),h("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Xl[r],gs.math[r],gs.text[r]),""}),h("\\bgroup","{"),h("\\egroup","}"),h("~","\\nobreakspace"),h("\\lq","`"),h("\\rq","'"),h("\\aa","\\r a"),h("\\AA","\\r A"),h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),h("ℬ","\\mathscr{B}"),h("ℰ","\\mathscr{E}"),h("ℱ","\\mathscr{F}"),h("ℋ","\\mathscr{H}"),h("ℐ","\\mathscr{I}"),h("ℒ","\\mathscr{L}"),h("ℳ","\\mathscr{M}"),h("ℛ","\\mathscr{R}"),h("ℭ","\\mathfrak{C}"),h("ℌ","\\mathfrak{H}"),h("ℨ","\\mathfrak{Z}"),h("\\Bbbk","\\Bbb{k}"),h("·","\\cdotp"),h("\\llap","\\mathllap{\\textrm{#1}}"),h("\\rlap","\\mathrlap{\\textrm{#1}}"),h("\\clap","\\mathclap{\\textrm{#1}}"),h("\\mathstrut","\\vphantom{(}"),h("\\underbar","\\underline{\\text{#1}}"),h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),h("\\ne","\\neq"),h("≠","\\neq"),h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),h("∉","\\notin"),h("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scLine truncated
please report what input caused this bug`);return{type:"verb",mode:"text",body:i=i.slice(1,-1),star:n}}uc.hasOwnProperty(e[0])&&!gs[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',t),e=uc[e[0]]+e.slice(1));var r=Kl.exec(e);if(r&&("i"===(e=e.substring(0,r.index))?e="ı":"j"===e&&(e="ȷ")),gs[this.mode][e]){this.settings.strict&&"math"===this.mode&&0<=Is.indexOf(e)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var i=gs[this.mode][e].group,n=ha.range(t),a=ds.hasOwnProperty(i)?{type:"atom",mode:this.mode,family:i,loc:n,text:e}:{type:i,mode:this.mode,loc:n,text:e}}else{if(!(128<=e.charCodeAt(0)))return null;this.settings.strict&&(Fn(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:ha.range(t),text:e}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!hc[o])throw new X("Unknown accent ' "+o+"'",t);var l=hc[o][this.mode]||hc[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:ha.range(t),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],pc=me(function(t,e){if(!("string"==typeof t||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(t=new dc(t,e)).gullet.macros.current["\\df@tag"];var r=t.parse();if(delete t.gullet.macros.current["\\current@color"],delete t.gullet.macros.current["\\color"],t.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:t.subparse([new ua("\\df@tag")])}]}return r},"parseTree"),m=me(function(t,e,r){e.textContent="",t=yc(t,r).toNode(),e.appendChild(t)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),m=me(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),gc=me(function(t,e){return yc(t,e).toMarkup()},"renderToString"),fc=me(function(t,e){return e=new ba(e),pc(t,e)},"generateParseTree"),mc=me(function(t,e,r){if(!r.throwOnError&&t instanceof X)return(e=Z.makeSpan(["katex-error"],[new ls(e)])).setAttribute("title",t.toString()),e.setAttribute("style","color:"+r.errorColor),e;throw t},"renderError"),yc=me(function(t,e){e=new ba(e);try{var r=pc(t,e);return _o(r,t,e)}catch(r){return mc(r,t,e)}},"renderToDomTree"),y=me(function(t,e){e=new ba(e);try{var r=pc(t,e);return Co(r,t,e)}catch(r){return mc(r,t,e)}},"renderToHTMLTree"),vc={version:"0.16.11",render:m,renderToString:gc,ParseError:X,SETTINGS_SCHEMA:va,__parse:fc,__renderToDomTree:yc,__renderToHTMLTree:y,__setFontMetrics:$n,__defineSymbol:o,__defineFunction:l,__defineMacro:h,__domTree:{Span:ns,Anchor:as,SymbolNode:ls,SvgNode:cs,PathNode:hs,LineNode:us}}});function xc(){let e="data-temp-href-target";Mn.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Mn.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target"))&&t.setAttribute("rel","noopener")})}var wc,kc,Tc,Ec,_c,Cc,Sc,Ac,Lc,Nc,Ic,Mc,Rc,Dc,Oc,Pc,Bc,Fc,$c,zc,Uc,Gc,qc,jc,L,Yc,Wc,Hc,Vc,Xc,Kc,Zc,Qc,Jc=t(()=>{Rn(),wc=/<br\s*\/?>/gi,kc=me(t=>t?Ic(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Tc=(()=>{let t=!1;return()=>{t||(xc(),t=!0)}})(),me(xc,"setupDompurifyHooks"),Ec=me(t=>(Tc(),Mn.sanitize(t)),"removeScript"),_c=me((t,e)=>(!1!==e.flowchart?.htmlLabels&&("antiscript"===(e=e.securityLevel)||"strict"===e?t=Ec(t):"loose"!==e&&(t=(t=(t=Ic(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Nc(t))),t),"sanitizeMore"),Cc=me((t,e)=>t&&(e.dompurifyConfig?Mn.sanitize(_c(t,e),e.dompurifyConfig):Mn.sanitize(_c(t,e),{FORBID_TAGS:["style"]})).toString(),"sanitizeText"),Sc=me((t,e)=>"string"==typeof t?Cc(t,e):t.flat().map(t=>Cc(t,e)),"sanitizeTextOrArray"),Ac=me(t=>wc.test(t),"hasBreaks"),Lc=me(t=>t.split(wc),"splitBreaks"),Nc=me(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Ic=me(t=>t.replace(wc,"#br#"),"breakToPlaceholder"),Mc=me(t=>{let e="";return e=t?(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)"):e},"getUrl"),Rc=me(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Dc=me(function(...t){re Line truncated please report what input caused this bug`);return{type:"verb",mode:"text",body:i=i.slice(1,-1),star:n}}uc.hasOwnProperty(e[0])&&!gs[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',t),e=uc[e[0]]+e.slice(1));var r=Kl.exec(e);if(r&&("i"===(e=e.substring(0,r.index))?e="ı":"j"===e&&(e="ȷ")),gs[this.mode][e]){this.settings.strict&&"math"===this.mode&&0<=Is.indexOf(e)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var i=gs[this.mode][e].group,n=ha.range(t),a=ds.hasOwnProperty(i)?{type:"atom",mode:this.mode,family:i,loc:n,text:e}:{type:i,mode:this.mode,loc:n,text:e}}else{if(!(128<=e.charCodeAt(0)))return null;this.settings.strict&&(Fn(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:ha.range(t),text:e}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!hc[o])throw new X("Unknown accent ' "+o+"'",t);var l=hc[o][this.mode]||hc[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:ha.range(t),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],pc=me(function(t,e){if(!("string"==typeof t||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(t=new dc(t,e)).gullet.macros.current["\\df@tag"];var r=t.parse();if(delete t.gullet.macros.current["\\current@color"],delete t.gullet.macros.current["\\color"],t.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:t.subparse([new ua("\\df@tag")])}]}return r},"parseTree"),m=me(function(t,e,r){e.textContent="",t=yc(t,r).toNode(),e.appendChild(t)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),m=me(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),gc=me(function(t,e){return yc(t,e).toMarkup()},"renderToString"),fc=me(function(t,e){return e=new xa(e),pc(t,e)},"generateParseTree"),mc=me(function(t,e,r){if(!r.throwOnError&&t instanceof X)return(e=Z.makeSpan(["katex-error"],[new ls(e)])).setAttribute("title",t.toString()),e.setAttribute("style","color:"+r.errorColor),e;throw t},"renderError"),yc=me(function(t,e){e=new xa(e);try{var r=pc(t,e);return Co(r,t,e)}catch(r){return mc(r,t,e)}},"renderToDomTree"),y=me(function(t,e){e=new xa(e);try{var r=pc(t,e);return _o(r,t,e)}catch(r){return mc(r,t,e)}},"renderToHTMLTree"),vc={version:"0.16.11",render:m,renderToString:gc,ParseError:X,SETTINGS_SCHEMA:va,__parse:fc,__renderToDomTree:yc,__renderToHTMLTree:y,__setFontMetrics:$n,__defineSymbol:o,__defineFunction:l,__defineMacro:h,__domTree:{Span:ns,Anchor:as,SymbolNode:ls,SvgNode:cs,PathNode:hs,LineNode:us}}});function bc(){let e="data-temp-href-target";Rn.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Rn.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target"))&&t.setAttribute("rel","noopener")})}var wc,kc,Tc,Ec,Cc,_c,Sc,Ac,Lc,Nc,Ic,Rc,Mc,Dc,Oc,Pc,Bc,Fc,$c,zc,Gc,Uc,qc,jc,L,Wc,Yc,Hc,Vc,Xc,Kc,Zc,Qc,Jc=t(()=>{Mn(),wc=/<br\s*\/?>/gi,kc=me(t=>t?Ic(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Tc=(()=>{let t=!1;return()=>{t||(bc(),t=!0)}})(),me(bc,"setupDompurifyHooks"),Ec=me(t=>(Tc(),Rn.sanitize(t)),"removeScript"),Cc=me((t,e)=>(!1!==e.flowchart?.htmlLabels&&("antiscript"===(e=e.securityLevel)||"strict"===e?t=Ec(t):"loose"!==e&&(t=(t=(t=Ic(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Nc(t))),t),"sanitizeMore"),_c=me((t,e)=>t&&(e.dompurifyConfig?Rn.sanitize(Cc(t,e),e.dompurifyConfig):Rn.sanitize(Cc(t,e),{FORBID_TAGS:["style"]})).toString(),"sanitizeText"),Sc=me((t,e)=>"string"==typeof t?_c(t,e):t.flat().map(t=>_c(t,e)),"sanitizeTextOrArray"),Ac=me(t=>wc.test(t),"hasBreaks"),Lc=me(t=>t.split(wc),"splitBreaks"),Nc=me(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Ic=me(t=>t.replace(wc,"#br#"),"breakToPlaceholder"),Rc=me(t=>{let e="";return e=t?(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)"):e},"getUrl"),Mc=me(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Dc=me(function(...t){re Line truncated
font-family: ${r.fontFamily}; font-family: ${r.fontFamily};
font-size: ${r.fontSize}; font-size: ${r.fontSize};
fill: ${r.textColor} fill: ${r.textColor}
@@ -343,31 +343,31 @@ l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
${i} ${i}
${e} ${e}
`},"getStyles"),Zc=me((t,e)=>{void 0!==e&&(Xc[t]=e)},"addStylesForDiagram"),Qc=Kc}),rh={};fOt(rh,{clear:()=>oh,getAccDescription:()=>uh,getAccTitle:()=>ch,getDiagramTitle:()=>ph,setAccDescription:()=>hh,setAccTitle:()=>lh,setDiagramTitle:()=>dh});var ih,nh,ah,sh,oh,lh,ch,hh,uh,dh,ph,gh,fh,D,mh,yh,vh,bh,xh,wh,kh,Th,Eh,_h,Ch,Sh,Ah,Lh,Nh,Ih,Mh,Rh,Dh,Oh,Ph,Bh,Fh,$h,zh,Uh,Gh,qh,jh,Yh,Wh,Hh,Vh,Xh,Kh,Zh,Qh,Jh,tu,eu,ru,iu,nu,au,su,ou,lu,cu,hu,uu,du,pu,gu=t(()=>{Jc(),Ai(),ah=nh=ih="",sh=me(t=>Cc(t,Nr()),"sanitizeText"),oh=me(()=>{nh=ah=ih=""},"clear"),lh=me(t=>{ih=sh(t).replace(/^\s+/g,"")},"setAccTitle"),ch=me(()=>ih,"getAccTitle"),hh=me(t=>{ah=sh(t).replace(/\n\s+/g,` `},"getStyles"),Zc=me((t,e)=>{void 0!==e&&(Xc[t]=e)},"addStylesForDiagram"),Qc=Kc}),rh={};lPt(rh,{clear:()=>oh,getAccDescription:()=>uh,getAccTitle:()=>ch,getDiagramTitle:()=>ph,setAccDescription:()=>hh,setAccTitle:()=>lh,setDiagramTitle:()=>dh});var ih,nh,ah,sh,oh,lh,ch,hh,uh,dh,ph,gh,fh,D,mh,yh,vh,xh,bh,wh,kh,Th,Eh,Ch,_h,Sh,Ah,Lh,Nh,Ih,Rh,Mh,Dh,Oh,Ph,Bh,Fh,$h,zh,Gh,Uh,qh,jh,Wh,Yh,Hh,Vh,Xh,Kh,Zh,Qh,Jh,tu,eu,ru,iu,nu,au,su,ou,lu,cu,hu,uu,du,pu,gu=t(()=>{Jc(),Ai(),ah=nh=ih="",sh=me(t=>_c(t,Nr()),"sanitizeText"),oh=me(()=>{nh=ah=ih=""},"clear"),lh=me(t=>{ih=sh(t).replace(/^\s+/g,"")},"setAccTitle"),ch=me(()=>ih,"getAccTitle"),hh=me(t=>{ah=sh(t).replace(/\n\s+/g,`
`)},"setAccDescription"),uh=me(()=>ah,"getAccDescription"),dh=me(t=>{nh=sh(t)},"setDiagramTitle"),ph=me(()=>nh,"getDiagramTitle")}),fu=t(()=>{Ur(),e(),Ai(),Jc(),th(),eh(),gu(),gh=R,fh=k,D=Nr,mh=Lr,yh=br,vh=me(t=>Cc(t,D()),"sanitizeText"),bh=Vc,xh=me(()=>rh,"getCommonDb"),wh={},kh=me((t,e,r)=>{wh[t]&&gh.warn(`Diagram with id ${t} already registered. Overwriting.`),wh[t]=e,r&&Qt(t,r),Zc(t,e.styles),e.injectUtils?.(gh,fh,D,vh,bh,xh(),()=>{})},"registerDiagram"),Th=me(t=>{if(t in wh)return wh[t];throw new Eh(t)},"getDiagram"),Eh=class extends Error{static{me(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}}),mu=t(()=>{fu(),Jc(),gu(),_h=[],Ch=[""],Lh=[{alias:Sh="global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:Ah=""}],Ih="",Mh=!(Nh=[]),Rh=4,Dh=2,Ph=me(function(){return Oh},"getC4Type"),Bh=me(function(t){Oh=Cc(t,D())},"setC4Type"),Fh=me(function(r,i,n,a,s,o,l,c,h){if(null!=r&&null!=i&&null!=n&&null!=a){let t={},e=Nh.find(t=>t.from===i&&t.to===n);e?t=e:Nh.push(t),t.type=r,t.from=i,t.to=n,t.label={text:a},null==s?t.techn={text:""}:"object"==typeof s?([r,a]=Object.entries(s)[0],t[r]={text:a}):t.techn={text:s},null==o?t.descr={text:""}:"object"==typeof o?([r,a]=Object.entries(o)[0],t[r]={text:a}):t.descr={text:o},"object"==typeof l?([s,r]=Object.entries(l)[0],t[s]=r):t.sprite=l,"object"==typeof c?([a,o]=Object.entries(c)[0],t[a]=o):t.tags=c,"object"==typeof h?([s,r]=Object.entries(h)[0],t[s]=r):t.link=h,t.wrap=ou()}},"addRel"),$h=me(function(r,i,n,a,s,o,l){if(null!==i&&null!==n){let t={},e=_h.find(t=>t.alias===i);var c;e&&i===e.alias?t=e:(t.alias=i,_h.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.descr={text:""}:"object"==typeof a?([n,c]=Object.entries(a)[0],t[n]={text:c}):t.descr={text:a},"object"==typeof s?([n,c]=Object.entries(s)[0],t[n]=c):t.sprite=s,"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],t[c]=s):t.link=l,t.typeC4Shape={text:r},t.parentBoundary=Sh,t.wrap=ou()}},"addPersonOrSystem"),zh=me(function(r,i,n,a,s,o,l,c){if(null!==i&&null!==n){let t={},e=_h.find(t=>t.alias===i);var h;e&&i===e.alias?t=e:(t.alias=i,_h.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.techn={text:""}:"object"==typeof a?([n,h]=Object.entries(a)[0],t[n]={text:h}):t.techn={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,h]=Object.entries(s)[0],t[n]={text:h}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],t[h]=s):t.tags=l,"object"==typeof c?([a,n]=Object.entries(c)[0],t[a]=n):t.link=c,t.wrap=ou(),t.typeC4Shape={text:r},t.parentBoundary=Sh}},"addContainer"),Uh=me(function(r,i,n,a,s,o,l,c){if(null!==i&&null!==n){let t={},e=_h.find(t=>t.alias===i);var h;e&&i===e.alias?t=e:(t.alias=i,_h.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.techn={text:""}:"object"==typeof a?([n,h]=Object.entries(a)[0],t[n]={text:h}):t.techn={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,h]=Object.entries(s)[0],t[n]={text:h}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],t[h]=s):t.tags=l,"object"==typeof c?([a,n]=Object.entries(c)[0],t[a]=n):t.link=c,t.wrap=ou(),t.typeC4Shape={text:r},t.parentBoundary=Sh}},"addComponent"),Gh=me(function(r,i,n,a,s){if(null!==r&&null!==i){let t={},e=Lh.find(t=>t.alias===r);var o;e&&r===e.alias?t=e:(t.alias=r,Lh.push(t)),t.label=null==i?{text:""}:{text:i},null==n?t.type={text:"system"}:"object"==typeof n?([i,o]=Object.entries(n)[0],t[i]={text:o}):t.type={text:n},"object"==typeof a?([i,o]=Object.entries(a)[0],t[i]=o):t.tags=a,"object"==typeof s?([n,i]=Object.entries(s)[0],t[n]=i):t.link=s,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=r,Ch.push(Ah)}},"addPersonOrSystemBoundary"),qh=me(function(r,i,n,a,s){if(null!==r&&null!==i){let t={},e=Lh.find(t=>t.alias===r);var o;e&&r===e.alias?t=e:(t.alias=r,Lh.push(t)),t.label=null==i?{text:""}:{text:i},null==n?t.type={text:"container"}:"object"==typeof n?([i,o]=Object.entries(n)[0],t[i]={text:o}):t.type={text:n},"object"==typeof a?([i,o]=Object.entries(a)[0],t[i]=o):t.tags=a,"object"==typeof s?([n,i]=Object.entries(s)[0],t[n]=i):t.link=s,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=r,Ch.push(Ah)}},"addContainerBoundary"),jh=me(function(r,i,n,a,s,t,o,l){if(null!==i&&null!==n){let t={},e=Lh.find(t=>t.alias===i);var c;e&&i===e.alias?t=e:(t.alias=i,Lh.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.type={text:"node"}:"object"==typeof a?([n,c]=Object.entries(a)[0],t[n]={text:c}):t.type={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,c]=Object.entries(s)[0],t[n]={text:c}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],t[c]=s):t.link=l,t.nodeType=r,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=i,Ch.push(Ah)}},"addDeploymentNode"),Yh=me(function(){Sh=Ah,Ch.pop(),Ah=Ch.pop(),Ch.push(Ah)},"pop Line truncated `)},"setAccDescription"),uh=me(()=>ah,"getAccDescription"),dh=me(t=>{nh=sh(t)},"setDiagramTitle"),ph=me(()=>nh,"getDiagramTitle")}),fu=t(()=>{Gr(),e(),Ai(),Jc(),th(),eh(),gu(),gh=M,fh=T,D=Nr,mh=Lr,yh=xr,vh=me(t=>_c(t,D()),"sanitizeText"),xh=Vc,bh=me(()=>rh,"getCommonDb"),wh={},kh=me((t,e,r)=>{wh[t]&&gh.warn(`Diagram with id ${t} already registered. Overwriting.`),wh[t]=e,r&&Qt(t,r),Zc(t,e.styles),e.injectUtils?.(gh,fh,D,vh,xh,bh(),()=>{})},"registerDiagram"),Th=me(t=>{if(t in wh)return wh[t];throw new Eh(t)},"getDiagram"),Eh=class extends Error{static{me(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}}),mu=t(()=>{fu(),Jc(),gu(),Ch=[],_h=[""],Lh=[{alias:Sh="global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:Ah=""}],Ih="",Rh=!(Nh=[]),Mh=4,Dh=2,Ph=me(function(){return Oh},"getC4Type"),Bh=me(function(t){Oh=_c(t,D())},"setC4Type"),Fh=me(function(r,i,n,a,s,o,l,c,h){if(null!=r&&null!=i&&null!=n&&null!=a){let t={},e=Nh.find(t=>t.from===i&&t.to===n);e?t=e:Nh.push(t),t.type=r,t.from=i,t.to=n,t.label={text:a},null==s?t.techn={text:""}:"object"==typeof s?([r,a]=Object.entries(s)[0],t[r]={text:a}):t.techn={text:s},null==o?t.descr={text:""}:"object"==typeof o?([r,a]=Object.entries(o)[0],t[r]={text:a}):t.descr={text:o},"object"==typeof l?([s,r]=Object.entries(l)[0],t[s]=r):t.sprite=l,"object"==typeof c?([a,o]=Object.entries(c)[0],t[a]=o):t.tags=c,"object"==typeof h?([s,r]=Object.entries(h)[0],t[s]=r):t.link=h,t.wrap=ou()}},"addRel"),$h=me(function(r,i,n,a,s,o,l){if(null!==i&&null!==n){let t={},e=Ch.find(t=>t.alias===i);var c;e&&i===e.alias?t=e:(t.alias=i,Ch.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.descr={text:""}:"object"==typeof a?([n,c]=Object.entries(a)[0],t[n]={text:c}):t.descr={text:a},"object"==typeof s?([n,c]=Object.entries(s)[0],t[n]=c):t.sprite=s,"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],t[c]=s):t.link=l,t.typeC4Shape={text:r},t.parentBoundary=Sh,t.wrap=ou()}},"addPersonOrSystem"),zh=me(function(r,i,n,a,s,o,l,c){if(null!==i&&null!==n){let t={},e=Ch.find(t=>t.alias===i);var h;e&&i===e.alias?t=e:(t.alias=i,Ch.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.techn={text:""}:"object"==typeof a?([n,h]=Object.entries(a)[0],t[n]={text:h}):t.techn={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,h]=Object.entries(s)[0],t[n]={text:h}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],t[h]=s):t.tags=l,"object"==typeof c?([a,n]=Object.entries(c)[0],t[a]=n):t.link=c,t.wrap=ou(),t.typeC4Shape={text:r},t.parentBoundary=Sh}},"addContainer"),Gh=me(function(r,i,n,a,s,o,l,c){if(null!==i&&null!==n){let t={},e=Ch.find(t=>t.alias===i);var h;e&&i===e.alias?t=e:(t.alias=i,Ch.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.techn={text:""}:"object"==typeof a?([n,h]=Object.entries(a)[0],t[n]={text:h}):t.techn={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,h]=Object.entries(s)[0],t[n]={text:h}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],t[h]=s):t.tags=l,"object"==typeof c?([a,n]=Object.entries(c)[0],t[a]=n):t.link=c,t.wrap=ou(),t.typeC4Shape={text:r},t.parentBoundary=Sh}},"addComponent"),Uh=me(function(r,i,n,a,s){if(null!==r&&null!==i){let t={},e=Lh.find(t=>t.alias===r);var o;e&&r===e.alias?t=e:(t.alias=r,Lh.push(t)),t.label=null==i?{text:""}:{text:i},null==n?t.type={text:"system"}:"object"==typeof n?([i,o]=Object.entries(n)[0],t[i]={text:o}):t.type={text:n},"object"==typeof a?([i,o]=Object.entries(a)[0],t[i]=o):t.tags=a,"object"==typeof s?([n,i]=Object.entries(s)[0],t[n]=i):t.link=s,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=r,_h.push(Ah)}},"addPersonOrSystemBoundary"),qh=me(function(r,i,n,a,s){if(null!==r&&null!==i){let t={},e=Lh.find(t=>t.alias===r);var o;e&&r===e.alias?t=e:(t.alias=r,Lh.push(t)),t.label=null==i?{text:""}:{text:i},null==n?t.type={text:"container"}:"object"==typeof n?([i,o]=Object.entries(n)[0],t[i]={text:o}):t.type={text:n},"object"==typeof a?([i,o]=Object.entries(a)[0],t[i]=o):t.tags=a,"object"==typeof s?([n,i]=Object.entries(s)[0],t[n]=i):t.link=s,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=r,_h.push(Ah)}},"addContainerBoundary"),jh=me(function(r,i,n,a,s,t,o,l){if(null!==i&&null!==n){let t={},e=Lh.find(t=>t.alias===i);var c;e&&i===e.alias?t=e:(t.alias=i,Lh.push(t)),t.label=null==n?{text:""}:{text:n},null==a?t.type={text:"node"}:"object"==typeof a?([n,c]=Object.entries(a)[0],t[n]={text:c}):t.type={text:a},null==s?t.descr={text:""}:"object"==typeof s?([n,c]=Object.entries(s)[0],t[n]={text:c}):t.descr={text:s},"object"==typeof o?([a,n]=Object.entries(o)[0],t[a]=n):t.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],t[c]=s):t.link=l,t.nodeType=r,t.parentBoundary=Sh,t.wrap=ou(),Ah=Sh,Sh=i,_h.push(Ah)}},"addDeploymentNode"),Wh=me(function(){Sh=Ah,_h.pop(),Ah=_h.pop(),_h.push(Ah)},"pop Line truncated
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:`+t);for(var i,n,a,s=[];null!==(i=Wt.exec(t));)i.index===Wt.lastIndex&&Wt.lastIndex++,(i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e))&&(n=i[1]||i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null,s.push({type:n,args:a}));return 0===s.length?{type:t,args:null}:1===s.length?s[0]:s}catch(r){return R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),SE=me(function(t){return t.replace(Wt,"")},"removeDirectives"),AE=me(function(t,e){for(var[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray"),me(lE,"interpolateToCurve"),me(cE,"formatUrl"),LE=me((e,...t)=>{let r=e.split("."),i=r.length-1,n=r[i],a=window;for(let t=0;t<i;t++)if(!(a=a[r[t]]))return void R.error(`Function name: ${e} not found in window`);a[n](...t)},"runFunc"),me(hE,"distance"),me(uE,"traverseEdge"),me(dE,"calcLabelPosition"),NE=me((t,e=2)=>(e=Math.pow(10,e),Math.round(t*e)/e),"roundNumber"),IE=me((t,e)=>{let r,i=e;for(var n of t){if(r){var a=hE(n,r);if(0===a)return r;if(a<i)i-=a;else{if((a=i/a)<=0)return r;if(1<=a)return{x:n.x,y:n.y};if(0<a&&a<1)return{x:NE((1-a)*r.x+a*n.x,5),y:NE((1-a)*r.y+a*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ME=me((t,e,r)=>{R.info("our points "+JSON.stringify(e)),e[0]!==r&&(e=e.reverse());var r=IE(e,25),t=t?10:5,i=Math.atan2(e[0].y-r.y,e[0].x-r.x),n={x:0,y:0};return n.x=Math.sin(i)*t+(e[0].x+r.x)/2,n.y=-Math.cos(i)*t+(e[0].y+r.y)/2,n},"calcCardinalityPosition"),me(pE,"calcTerminalLabelPosition"),me(gE,"getStylesFromArray"),RE=0,DE=me(()=>(RE++,"id-"+Math.random().toString(36).substr(2,12)+"-"+RE),"generateId"),me(fE,"makeRandomHex"),OE=me(t=>fE(t.length),"random"),PE=me(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:""}},"getTextObj"),BE=me(function(t,e){var r=e.text.replace(L.lineBreakRegex," "),[,i]=YE(e.fontSize);return(t=t.append("text")).attr("x",e.x),t.attr("y",e.y),t.style("text-anchor",e.anchor),t.style("font-family",e.fontFamily),t.style("font-size",i),t.style("font-weight",e.fontWeight),t.attr("fill",e.fill),void 0!==e.class&&t.attr("class",e.class),(i=t.append("tspan")).attr("x",e.x+2*e.textMargin),i.attr("fill",e.fill),i.text(r),t},"drawSimpleText"),FE=_k((t,s,o)=>{if(!t||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),L.lineBreakRegex.test(t)))return t;let l=t.split(" ").filter(Boolean),c=[],h="";return l.forEach((t,e)=>{var r,i,n=yE(t+" ",o),a=yE(h,o);h=s<n?({hyphenatedStrings:r,remainingWord:i}=$E(t,s,"-",o),c.push(h,...r),i):s<=a+n?(c.push(h),t):[h,t].filter(Boolean).join(" "),e+1===l.length&&c.push(h)}),c.filter(t=>""!==t).join(o.joinWith)},(t,e,r)=>""+t+e+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),$E=_k((t,i,n="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...t],o=[],l="";return s.forEach((t,e)=>{var r,t=""+l+t;l=yE(t,a)>=i?(e+=1,e=s.length===e,r=t+n,o.push(e?t:r),""):t}),{hyphenatedStrings:o,remainingWord:l}},(t,e,r="-",i)=>""+t+e+r+i.fontSize+i.fontWeight+i.fontFamily),me(mE,"calculateTextHeight"),me(yE,"calculateTextWidth"),zE=_k((t,e)=>{var{fontSize:e=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};var[,n]=YE(e),e=["sans-serif",r],a=t.split(L.lineBreakRegex),s=[];if(!(r=j("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of e){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=PE();if(u.text=c||kE,0===(u=((u=BE(l,u).style("font-size",n).style("font-weight",i).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1]},(t,e)=>""+t+e.fontSize+e.fontWeight+e.fontFamily),UE=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{me(this,"InitIDGenerator")}},qE=me(function(t){return GE=GE||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),GE.innerHTML=t,unescape(GE.textContent)},"entityDecode"),me(vE,"isDetailedError"),jE=me((t,e,r,i)=>{var n;i&&(n=t.node()?.getBBox())&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),YE=me(t=>{var e;return"number"==typeof t?[t,t+"px"]:(e=parseInt(t??"",10),Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t])},"parseFontSize"),me(bE,"cleanAndMerge"),WE={assignWithDepth:ie,wrapL Line truncated `,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:`+t);for(var i,n,a,s=[];null!==(i=Yt.exec(t));)i.index===Yt.lastIndex&&Yt.lastIndex++,(i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e))&&(n=i[1]||i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null,s.push({type:n,args:a}));return 0===s.length?{type:t,args:null}:1===s.length?s[0]:s}catch(r){return M.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),SE=me(function(t){return t.replace(Yt,"")},"removeDirectives"),AE=me(function(t,e){for(var[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray"),me(lE,"interpolateToCurve"),me(cE,"formatUrl"),LE=me((e,...t)=>{let r=e.split("."),i=r.length-1,n=r[i],a=window;for(let t=0;t<i;t++)if(!(a=a[r[t]]))return void M.error(`Function name: ${e} not found in window`);a[n](...t)},"runFunc"),me(hE,"distance"),me(uE,"traverseEdge"),me(dE,"calcLabelPosition"),NE=me((t,e=2)=>(e=Math.pow(10,e),Math.round(t*e)/e),"roundNumber"),IE=me((t,e)=>{let r,i=e;for(var n of t){if(r){var a=hE(n,r);if(0===a)return r;if(a<i)i-=a;else{if((a=i/a)<=0)return r;if(1<=a)return{x:n.x,y:n.y};if(0<a&&a<1)return{x:NE((1-a)*r.x+a*n.x,5),y:NE((1-a)*r.y+a*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),RE=me((t,e,r)=>{M.info("our points "+JSON.stringify(e)),e[0]!==r&&(e=e.reverse());var r=IE(e,25),t=t?10:5,i=Math.atan2(e[0].y-r.y,e[0].x-r.x),n={x:0,y:0};return n.x=Math.sin(i)*t+(e[0].x+r.x)/2,n.y=-Math.cos(i)*t+(e[0].y+r.y)/2,n},"calcCardinalityPosition"),me(pE,"calcTerminalLabelPosition"),me(gE,"getStylesFromArray"),ME=0,DE=me(()=>(ME++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ME),"generateId"),me(fE,"makeRandomHex"),OE=me(t=>fE(t.length),"random"),PE=me(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:""}},"getTextObj"),BE=me(function(t,e){var r=e.text.replace(L.lineBreakRegex," "),[,i]=WE(e.fontSize);return(t=t.append("text")).attr("x",e.x),t.attr("y",e.y),t.style("text-anchor",e.anchor),t.style("font-family",e.fontFamily),t.style("font-size",i),t.style("font-weight",e.fontWeight),t.attr("fill",e.fill),void 0!==e.class&&t.attr("class",e.class),(i=t.append("tspan")).attr("x",e.x+2*e.textMargin),i.attr("fill",e.fill),i.text(r),t},"drawSimpleText"),FE=Ck((t,s,o)=>{if(!t||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),L.lineBreakRegex.test(t)))return t;let l=t.split(" ").filter(Boolean),c=[],h="";return l.forEach((t,e)=>{var r,i,n=yE(t+" ",o),a=yE(h,o);h=s<n?({hyphenatedStrings:r,remainingWord:i}=$E(t,s,"-",o),c.push(h,...r),i):s<=a+n?(c.push(h),t):[h,t].filter(Boolean).join(" "),e+1===l.length&&c.push(h)}),c.filter(t=>""!==t).join(o.joinWith)},(t,e,r)=>""+t+e+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),$E=Ck((t,i,n="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...t],o=[],l="";return s.forEach((t,e)=>{var r,t=""+l+t;l=yE(t,a)>=i?(e+=1,e=s.length===e,r=t+n,o.push(e?t:r),""):t}),{hyphenatedStrings:o,remainingWord:l}},(t,e,r="-",i)=>""+t+e+r+i.fontSize+i.fontWeight+i.fontFamily),me(mE,"calculateTextHeight"),me(yE,"calculateTextWidth"),zE=Ck((t,e)=>{var{fontSize:e=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};var[,n]=WE(e),e=["sans-serif",r],a=t.split(L.lineBreakRegex),s=[];if(!(r=j("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of e){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=PE();if(u.text=c||kE,0===(u=((u=BE(l,u).style("font-size",n).style("font-weight",i).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1]},(t,e)=>""+t+e.fontSize+e.fontWeight+e.fontFamily),GE=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{me(this,"InitIDGenerator")}},qE=me(function(t){return UE=UE||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),UE.innerHTML=t,unescape(UE.textContent)},"entityDecode"),me(vE,"isDetailedError"),jE=me((t,e,r,i)=>{var n;i&&(n=t.node()?.getBBox())&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),WE=me(t=>{var e;return"number"==typeof t?[t,t+"px"]:(e=parseInt(t??"",10),Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t])},"parseFontSize"),me(xE,"cleanAndMerge"),YE={assignWithDepth:ie,wrapL Line truncated
stroke: ${t.personBorder}; stroke: ${t.personBorder};
fill: ${t.personBkg}; fill: ${t.personBkg};
} }
`,"getStyles"),v_=y_}),w_={};fOt(w_,{diagram:()=>k_});var k_,T_=t(()=>{Gr(),mu(),b_(),x_(),k_={parser:ee,db:pu,renderer:m_,styles:v_,init:me(({c4:t,wrap:e})=>{m_.setConf(t),pu.setWrap(e)},"init")}});function E_(t){return"u"<typeof t||null===t}function __(t){return"object"==typeof t&&null!==t}function C_(t){return Array.isArray(t)?t:E_(t)?[]:[t]}function S_(t,e){var r,i,n,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[n=a[r]]=e[n];return t}function A_(t,e){for(var r="",i=0;i<e;i+=1)r+=t;return r}function L_(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}function N_(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=` `,"getStyles"),vC=yC}),wC={};lPt(wC,{diagram:()=>kC});var kC,TC=t(()=>{Ur(),mu(),xC(),bC(),kC={parser:ee,db:pu,renderer:mC,styles:vC,init:me(({c4:t,wrap:e})=>{mC.setConf(t),pu.setWrap(e)},"init")}});function EC(t){return"u"<typeof t||null===t}function CC(t){return"object"==typeof t&&null!==t}function _C(t){return Array.isArray(t)?t:EC(t)?[]:[t]}function SC(t,e){var r,i,n,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[n=a[r]]=e[n];return t}function AC(t,e){for(var r="",i=0;i<e;i+=1)r+=t;return r}function LC(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}function NC(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function I_(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=N_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}function M_(t,e,r,i,n){var a="",s="";return(n=Math.floor(n/2)-1)<i-e&&(e=i-n+(a=" ... ").length),n<r-i&&(r=i+n-(s=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}function R_(t,e){return LS.repeat(" ",e-t.length)+t}function D_(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,n=[0],a=[],s=-1;r=i.exec(t.buffer);)a.push(r.index),n.push(r.index+r[0].length),t.position<=r.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);for(var o,l="",c=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+c+3),u=1;u<=e.linesBefore&&!(s-u<0);u++)o=M_(t.buffer,n[s-u],a[s-u],t.position-(n[s]-n[s-u]),h),l=LS.repeat(" ",e.indent)+R_((t.line-u+1).toString(),c)+" | "+o.str+` `+t.mark.snippet),i+" "+r):i}function IC(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=NC(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}function RC(t,e,r,i,n){var a="",s="";return(n=Math.floor(n/2)-1)<i-e&&(e=i-n+(a=" ... ").length),n<r-i&&(r=i+n-(s=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}function MC(t,e){return LS.repeat(" ",e-t.length)+t}function DC(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,n=[0],a=[],s=-1;r=i.exec(t.buffer);)a.push(r.index),n.push(r.index+r[0].length),t.position<=r.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);for(var o,l="",c=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+c+3),u=1;u<=e.linesBefore&&!(s-u<0);u++)o=RC(t.buffer,n[s-u],a[s-u],t.position-(n[s]-n[s-u]),h),l=LS.repeat(" ",e.indent)+MC((t.line-u+1).toString(),c)+" | "+o.str+`
`+l;for(o=M_(t.buffer,n[s],a[s],t.position,h),l=(l+=LS.repeat(" ",e.indent)+R_((t.line+1).toString(),c)+" | "+o.str+` `+l;for(o=RC(t.buffer,n[s],a[s],t.position,h),l=(l+=LS.repeat(" ",e.indent)+MC((t.line+1).toString(),c)+" | "+o.str+`
`)+LS.repeat("-",e.indent+c+3+o.pos)+`^ `)+LS.repeat("-",e.indent+c+3+o.pos)+`^
`,u=1;u<=e.linesAfter&&!(a.length<=s+u);u++)o=M_(t.buffer,n[s+u],a[s+u],t.position-(n[s]-n[s+u]),h),l+=LS.repeat(" ",e.indent)+R_((t.line+u+1).toString(),c)+" | "+o.str+` `,u=1;u<=e.linesAfter&&!(a.length<=s+u);u++)o=RC(t.buffer,n[s+u],a[s+u],t.position-(n[s]-n[s+u]),h),l+=LS.repeat(" ",e.indent)+MC((t.line+u+1).toString(),c)+" | "+o.str+`
`;return l.replace(/\n$/,"")}function O_(t){var r={};return null!==t&&Object.keys(t).forEach(function(e){t[e].forEach(function(t){r[String(t)]=e})}),r}function P_(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===MS.indexOf(t))throw new NS('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(t){return t},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=O_(t.styleAliases||null),-1===RS.indexOf(this.kind))throw new NS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function B_(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(t,e){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(i=e)}),n[i]=r}),n}function F_(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(me(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function $_(t){return this.extend(t)}function z_(t){var e;return null===t||1===(e=t.length)&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function U_(){return null}function G_(t){return null===t}function q_(t){var e;return null!==t&&(4===(e=t.length)&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t))}function j_(t){return"true"===t||"True"===t||"TRUE"===t}function Y_(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function W_(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function H_(t){return 48<=t&&t<=55}function V_(t){return 48<=t&&t<=57}function X_(t){if(null===t)return!1;var e,r=t.length,i=0,n=!1;if(!r)return!1;if("0"===(e="-"!==(e=t[i])&&"+"!==e?e:t[++i])){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;n=!0}return n&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!W_(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!H_(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!V_(t.charCodeAt(i)))return!1;n=!0}return!(!n||"_"===e)}function K_(t){var e,r=1;if("-"!==(e=(t=-1!==t.indexOf("_")?t.replace(/_/g,""):t)[0])&&"+"!==e||("-"===e&&(r=-1),e=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===e){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Z_(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!LS.isNegativeZero(t)}function Q_(t){return!(null===t||!OS.test(t)||"_"===t[t.length-1])}function J_(t){var e="-"===(t=t.replace(/_/g,"").toLowerCase())[0]?-1:1;return".inf"===(t=0<="+-".indexOf(t[0])?t.slice(1):t)?1==e?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:e*parseFloat(t,10)}function tC(t,e){if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(LS.isNegativeZero(t))return"-0.0";return e=t.toString(10),PS.test(e)?e.replace("e",".e"):e}function eC(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||LS.isNegativeZero(t))}function rC(t){return null!==t&&(null!==FS.exec(t)||null!==$S.exec(t))}function iC(t){var e,r,i,n,a,s=0,o=null,l=FS.exec(t);if(null===(l=null===l?$S.exec(t):l))throw new Error("Date resolve error");if(t=+l[1],e=+l[2]-1,r=+l[3],!l[4])return new Date(Date.UTC(t,e,r));if(i=+l[4],n=+l[5],a=+l[6],l[7]){for(s=l[7].slice(0,3);s.length<3;)s+="0";s=+s}return l[9]&&(o=6e4*(60*+l[10]+ +(l[11]||0)),"-"===l[9])&&(o=-o),l=new Date(Date.UTC(t,e,r,i,n,a,s)),o&&l.setTime(l.getTime()-o),l}function nC(t){return t.toISOString()}function aC(t){return"<<"===t||null===t}function sC(t){if(null===t)return!1;for(var e,r=0,i=t.length,n=GS,a=0;a<i;a++)if(!(64<(e=n.indexOf(t.charAt(a))))){if(e<0)return!1;r+=6}return r%8==0}function oC(t){for(var e=t.replace(/[\r\n=]/g,""),r=e.length,i=GS,n=0,a=[],s=0;s<r;s++)s%4==0&&s&&(a.push(n>>16&255),a.push(n>>8&255),a.push(255&n)),n=n<<6|i.indexOf(e.charAt(s));return 0==(t=r%4*6)?(a.push(n>>16&255),a.push(n>>8&255),a.push(255&n)):18==t?(a.push(n>>10&255),a.push(n>>2&255)):12==t&&a.push(n>>4&255),new Uint8Array(a)}function lC(t){for(var e,r="",i=0,n=t.length,a=GS,s=0;s<n;s++)s%3==0&&s&&(r=(r=(r=(r+=a[i>>18&63])+a[i>>12&63])+a[i>>6&63])+a[63&i]),i=(i<<8)+t[s];retur Line truncated `;return l.replace(/\n$/,"")}function OC(t){var r={};return null!==t&&Object.keys(t).forEach(function(e){t[e].forEach(function(t){r[String(t)]=e})}),r}function PC(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===RS.indexOf(t))throw new NS('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(t){return t},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=OC(t.styleAliases||null),-1===MS.indexOf(this.kind))throw new NS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function BC(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(t,e){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(i=e)}),n[i]=r}),n}function FC(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(me(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function $C(t){return this.extend(t)}function zC(t){var e;return null===t||1===(e=t.length)&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function GC(){return null}function UC(t){return null===t}function qC(t){var e;return null!==t&&(4===(e=t.length)&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t))}function jC(t){return"true"===t||"True"===t||"TRUE"===t}function WC(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function YC(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function HC(t){return 48<=t&&t<=55}function VC(t){return 48<=t&&t<=57}function XC(t){if(null===t)return!1;var e,r=t.length,i=0,n=!1;if(!r)return!1;if("0"===(e="-"!==(e=t[i])&&"+"!==e?e:t[++i])){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;n=!0}return n&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!YC(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!HC(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!VC(t.charCodeAt(i)))return!1;n=!0}return!(!n||"_"===e)}function KC(t){var e,r=1;if("-"!==(e=(t=-1!==t.indexOf("_")?t.replace(/_/g,""):t)[0])&&"+"!==e||("-"===e&&(r=-1),e=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===e){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function ZC(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!LS.isNegativeZero(t)}function QC(t){return!(null===t||!OS.test(t)||"_"===t[t.length-1])}function JC(t){var e="-"===(t=t.replace(/_/g,"").toLowerCase())[0]?-1:1;return".inf"===(t=0<="+-".indexOf(t[0])?t.slice(1):t)?1==e?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:e*parseFloat(t,10)}function t_(t,e){if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(LS.isNegativeZero(t))return"-0.0";return e=t.toString(10),PS.test(e)?e.replace("e",".e"):e}function e_(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||LS.isNegativeZero(t))}function r_(t){return null!==t&&(null!==FS.exec(t)||null!==$S.exec(t))}function i_(t){var e,r,i,n,a,s=0,o=null,l=FS.exec(t);if(null===(l=null===l?$S.exec(t):l))throw new Error("Date resolve error");if(t=+l[1],e=+l[2]-1,r=+l[3],!l[4])return new Date(Date.UTC(t,e,r));if(i=+l[4],n=+l[5],a=+l[6],l[7]){for(s=l[7].slice(0,3);s.length<3;)s+="0";s=+s}return l[9]&&(o=6e4*(60*+l[10]+ +(l[11]||0)),"-"===l[9])&&(o=-o),l=new Date(Date.UTC(t,e,r,i,n,a,s)),o&&l.setTime(l.getTime()-o),l}function n_(t){return t.toISOString()}function a_(t){return"<<"===t||null===t}function s_(t){if(null===t)return!1;for(var e,r=0,i=t.length,n=US,a=0;a<i;a++)if(!(64<(e=n.indexOf(t.charAt(a))))){if(e<0)return!1;r+=6}return r%8==0}function o_(t){for(var e=t.replace(/[\r\n=]/g,""),r=e.length,i=US,n=0,a=[],s=0;s<r;s++)s%4==0&&s&&(a.push(n>>16&255),a.push(n>>8&255),a.push(255&n)),n=n<<6|i.indexOf(e.charAt(s));return 0==(t=r%4*6)?(a.push(n>>16&255),a.push(n>>8&255),a.push(255&n)):18==t?(a.push(n>>10&255),a.push(n>>2&255)):12==t&&a.push(n>>4&255),new Uint8Array(a)}function l_(t){for(var e,r="",i=0,n=t.length,a=US,s=0;s<n;s++)s%3==0&&s&&(r=(r=(r=(r+=a[i>>18&63])+a[i>>12&63])+a[i>>6&63])+a[63&i]),i=(i<<8)+t[s];retur Line truncated
`:118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function _C(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function CC(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ZS,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function SC(t,e){return(t={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart}).snippet=IS(t),new NS(e,t)}function AC(t,e){throw SC(t,e)}function LC(t,e){t.onWarning&&t.onWarning.call(null,SC(t,e))}function NC(t,e,r,i){var n,a,s,o;if(e<r){if(o=t.input.slice(e,r),i)for(n=0,a=o.length;n<a;n+=1)9===(s=o.charCodeAt(n))||32<=s&&s<=1114111||AC(t,"expected valid JSON character");else sA.test(o)&&AC(t,"the stream contains non-printable characters");t.result+=o}}function IC(t,e,r,i){var n,a,s,o;for(LS.isObject(r)||AC(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(n=Object.keys(r)).length;s<o;s+=1)a=n[s],QS.call(e,a)||(e[a]=r[a],i[a]=!0)}function MC(t,e,r,i,n,a,s,o,l){var c,h;if(Array.isArray(n))for(c=0,h=(n=Array.prototype.slice.call(n)).length;c<h;c+=1)Array.isArray(n[c])&&AC(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===mC(n[c])&&(n[c]="[object Object]");if("object"==typeof n&&"[object Object]"===mC(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)IC(t,e,a[c],r);else IC(t,e,a,r);else t.json||QS.call(r,n)||!QS.call(e,n)||(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,AC(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}function RC(t){var e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):AC(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function DC(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);0!==n;){for(;vC(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)for(;10!==(n=t.input.charCodeAt(++t.position))&&13!==n&&0!==n;);if(!yC(n))break;for(RC(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&LC(t,"deficient indentation"),i}function OC(t){var e=t.position,r=t.input.charCodeAt(e);return!(45!==r&&46!==r||r!==t.input.charCodeAt(e+1)||r!==t.input.charCodeAt(e+2)||0!==(r=t.input.charCodeAt(e+=3))&&!bC(r))}function PC(t,e){1===e?t.result+=" ":1<e&&(t.result+=LS.repeat(` `:118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function C_(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function __(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ZS,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function S_(t,e){return(t={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart}).snippet=IS(t),new NS(e,t)}function A_(t,e){throw S_(t,e)}function L_(t,e){t.onWarning&&t.onWarning.call(null,S_(t,e))}function N_(t,e,r,i){var n,a,s,o;if(e<r){if(o=t.input.slice(e,r),i)for(n=0,a=o.length;n<a;n+=1)9===(s=o.charCodeAt(n))||32<=s&&s<=1114111||A_(t,"expected valid JSON character");else sA.test(o)&&A_(t,"the stream contains non-printable characters");t.result+=o}}function I_(t,e,r,i){var n,a,s,o;for(LS.isObject(r)||A_(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(n=Object.keys(r)).length;s<o;s+=1)a=n[s],QS.call(e,a)||(e[a]=r[a],i[a]=!0)}function R_(t,e,r,i,n,a,s,o,l){var c,h;if(Array.isArray(n))for(c=0,h=(n=Array.prototype.slice.call(n)).length;c<h;c+=1)Array.isArray(n[c])&&A_(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===m_(n[c])&&(n[c]="[object Object]");if("object"==typeof n&&"[object Object]"===m_(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)I_(t,e,a[c],r);else I_(t,e,a,r);else t.json||QS.call(r,n)||!QS.call(e,n)||(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,A_(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}function M_(t){var e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):A_(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function D_(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);0!==n;){for(;v_(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)for(;10!==(n=t.input.charCodeAt(++t.position))&&13!==n&&0!==n;);if(!y_(n))break;for(M_(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&L_(t,"deficient indentation"),i}function O_(t){var e=t.position,r=t.input.charCodeAt(e);return!(45!==r&&46!==r||r!==t.input.charCodeAt(e+1)||r!==t.input.charCodeAt(e+2)||0!==(r=t.input.charCodeAt(e+=3))&&!x_(r))}function P_(t,e){1===e?t.result+=" ":1<e&&(t.result+=LS.repeat(`
`,e-1))}function BC(t,e,r){var i,n,a,s,o,l,c,h=t.kind,u=t.result,d=t.input.charCodeAt(t.position);if(bC(d)||xC(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(bC(i=t.input.charCodeAt(t.position+1))||r&&xC(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;0!==d;){if(58===d){if(bC(i=t.input.charCodeAt(t.position+1))||r&&xC(i))break}else if(35===d){if(bC(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&OC(t)||r&&xC(d))break;if(yC(d)){if(o=t.line,l=t.lineStart,c=t.lineIndent,DC(t,!1,-1),e<=t.lineIndent){s=!0,d=t.input.charCodeAt(t.position);continue}t.position=a,t.line=o,t.lineStart=l,t.lineIndent=c;break}}s&&(NC(t,n,a,!1),PC(t,t.line-o),n=a=t.position,s=!1),vC(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return NC(t,n,a,!1),!!t.result||(t.kind=h,t.result=u,!1)}function FC(t,e){var r,i,n=t.input.charCodeAt(t.position);if(39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(NC(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else yC(n)?(NC(t,r,i,!0),PC(t,DC(t,!1,e)),r=i=t.position):t.position===t.lineStart&&OC(t)?AC(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);AC(t,"unexpected end of the stream within a single quoted scalar")}function $C(t,e){var r,i,n,a,s,o=t.input.charCodeAt(t.position);if(34!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return NC(t,r,t.position,!0),t.position++,!0;if(92===o){if(NC(t,r,t.position,!0),yC(o=t.input.charCodeAt(++t.position)))DC(t,!1,e);else if(o<256&&uA[o])t.result+=dA[o],t.position++;else if(0<(s=kC(o))){for(n=s,a=0;0<n;n--)0<=(s=wC(o=t.input.charCodeAt(++t.position)))?a=(a<<4)+s:AC(t,"expected hexadecimal character");t.result+=_C(a),t.position++}else AC(t,"unknown escape sequence");r=i=t.position}else yC(o)?(NC(t,r,i,!0),PC(t,DC(t,!1,e)),r=i=t.position):t.position===t.lineStart&&OC(t)?AC(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}AC(t,"unexpected end of the stream within a double quoted scalar")}function zC(t,e){var r,i,n,a,s,o,l,c,h,u,d,p=!0,g=t.tag,f=t.anchor,m=Object.create(null),y=t.input.charCodeAt(t.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);0!==y;){if(DC(t,!0,e),(y=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=f,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===y&&AC(t,"expected the node content, but found ','"):AC(t,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&bC(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,DC(t,!0,e)),r=t.line,i=t.lineStart,n=t.position,HC(t,e,JS,!1,!0),u=t.tag,h=t.result,DC(t,!0,e),y=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==y||(o=!0,y=t.input.charCodeAt(++t.position),DC(t,!0,e),HC(t,e,JS,!1,!0),d=t.result),c?MC(t,a,m,u,h,d,r,i,n):o?a.push(MC(t,null,m,u,h,d,r,i,n)):a.push(h),DC(t,!0,e),44===(y=t.input.charCodeAt(t.position))?(p=!0,y=t.input.charCodeAt(++t.position)):p=!1}AC(t,"unexpected end of the stream within a flow collection")}function UC(t,e){var r,i,n,a=iA,s=!1,o=!1,l=e,c=0,h=!1,u=t.input.charCodeAt(t.position);if(124===u)i=!1;else{if(62!==u)return!1;i=!0}for(t.kind="scalar",t.result="";0!==u;)if(43===(u=t.input.charCodeAt(++t.position))||45===u)iA===a?a=43===u?aA:nA:AC(t,"repeat of a chomping mode identifier");else{if(!(0<=(n=TC(u))))break;0===n?AC(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?AC(t,"repeat of an indentation width identifier"):(l=e+n-1,o=!0)}if(vC(u)){for(;vC(u=t.input.charCodeAt(++t.position)););if(35===u)for(;!yC(u=t.input.charCodeAt(++t.position))&&0!==u;);}for(;0!==u;){for(RC(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<l)&&32===u;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>l&&(l=t.lineIndent),yC(u))c++;else{if(t.lineIndent<l){a===aA?t.result+=LS.repeat(` `,e-1))}function B_(t,e,r){var i,n,a,s,o,l,c,h=t.kind,u=t.result,d=t.input.charCodeAt(t.position);if(x_(d)||b_(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(x_(i=t.input.charCodeAt(t.position+1))||r&&b_(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;0!==d;){if(58===d){if(x_(i=t.input.charCodeAt(t.position+1))||r&&b_(i))break}else if(35===d){if(x_(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&O_(t)||r&&b_(d))break;if(y_(d)){if(o=t.line,l=t.lineStart,c=t.lineIndent,D_(t,!1,-1),e<=t.lineIndent){s=!0,d=t.input.charCodeAt(t.position);continue}t.position=a,t.line=o,t.lineStart=l,t.lineIndent=c;break}}s&&(N_(t,n,a,!1),P_(t,t.line-o),n=a=t.position,s=!1),v_(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return N_(t,n,a,!1),!!t.result||(t.kind=h,t.result=u,!1)}function F_(t,e){var r,i,n=t.input.charCodeAt(t.position);if(39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(N_(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else y_(n)?(N_(t,r,i,!0),P_(t,D_(t,!1,e)),r=i=t.position):t.position===t.lineStart&&O_(t)?A_(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);A_(t,"unexpected end of the stream within a single quoted scalar")}function $_(t,e){var r,i,n,a,s,o=t.input.charCodeAt(t.position);if(34!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return N_(t,r,t.position,!0),t.position++,!0;if(92===o){if(N_(t,r,t.position,!0),y_(o=t.input.charCodeAt(++t.position)))D_(t,!1,e);else if(o<256&&uA[o])t.result+=dA[o],t.position++;else if(0<(s=k_(o))){for(n=s,a=0;0<n;n--)0<=(s=w_(o=t.input.charCodeAt(++t.position)))?a=(a<<4)+s:A_(t,"expected hexadecimal character");t.result+=C_(a),t.position++}else A_(t,"unknown escape sequence");r=i=t.position}else y_(o)?(N_(t,r,i,!0),P_(t,D_(t,!1,e)),r=i=t.position):t.position===t.lineStart&&O_(t)?A_(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}A_(t,"unexpected end of the stream within a double quoted scalar")}function z_(t,e){var r,i,n,a,s,o,l,c,h,u,d,p=!0,g=t.tag,f=t.anchor,m=Object.create(null),y=t.input.charCodeAt(t.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);0!==y;){if(D_(t,!0,e),(y=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=f,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===y&&A_(t,"expected the node content, but found ','"):A_(t,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&x_(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,D_(t,!0,e)),r=t.line,i=t.lineStart,n=t.position,H_(t,e,JS,!1,!0),u=t.tag,h=t.result,D_(t,!0,e),y=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==y||(o=!0,y=t.input.charCodeAt(++t.position),D_(t,!0,e),H_(t,e,JS,!1,!0),d=t.result),c?R_(t,a,m,u,h,d,r,i,n):o?a.push(R_(t,null,m,u,h,d,r,i,n)):a.push(h),D_(t,!0,e),44===(y=t.input.charCodeAt(t.position))?(p=!0,y=t.input.charCodeAt(++t.position)):p=!1}A_(t,"unexpected end of the stream within a flow collection")}function G_(t,e){var r,i,n,a=iA,s=!1,o=!1,l=e,c=0,h=!1,u=t.input.charCodeAt(t.position);if(124===u)i=!1;else{if(62!==u)return!1;i=!0}for(t.kind="scalar",t.result="";0!==u;)if(43===(u=t.input.charCodeAt(++t.position))||45===u)iA===a?a=43===u?aA:nA:A_(t,"repeat of a chomping mode identifier");else{if(!(0<=(n=T_(u))))break;0===n?A_(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?A_(t,"repeat of an indentation width identifier"):(l=e+n-1,o=!0)}if(v_(u)){for(;v_(u=t.input.charCodeAt(++t.position)););if(35===u)for(;!y_(u=t.input.charCodeAt(++t.position))&&0!==u;);}for(;0!==u;){for(M_(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<l)&&32===u;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>l&&(l=t.lineIndent),y_(u))c++;else{if(t.lineIndent<l){a===aA?t.result+=LS.repeat(`
`,s?1+c:c):a===iA&&s&&(t.result+=` `,s?1+c:c):a===iA&&s&&(t.result+=`
`);break}for(i?vC(u)?(h=!0,t.result+=LS.repeat(` `);break}for(i?v_(u)?(h=!0,t.result+=LS.repeat(`
`,s?1+c:c)):h?(h=!1,t.result+=LS.repeat(` `,s?1+c:c)):h?(h=!1,t.result+=LS.repeat(`
`,c+1)):0===c?s&&(t.result+=" "):t.result+=LS.repeat(` `,c+1)):0===c?s&&(t.result+=" "):t.result+=LS.repeat(`
`,c):t.result+=LS.repeat(` `,c):t.result+=LS.repeat(`
`,s?1+c:c),o=s=!0,c=0,r=t.position;!yC(u)&&0!==u;)u=t.input.charCodeAt(++t.position);NC(t,r,t.position,!1)}}return!0}function GC(t,e){var r,i,n=t.tag,a=t.anchor,s=[],o=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,AC(t,"tab characters must not be used in indentation")),45===i)&&bC(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,DC(t,!0,-1)&&t.lineIndent<=e)s.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,HC(t,e,eA,!1,!0),s.push(t.result),DC(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)AC(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=n,t.anchor=a,t.kind="sequence",t.result=s,!0)}function qC(t,e,r){var i,n,a,s,o,l,c,h=t.tag,u=t.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,AC(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!bC(i)){if(s=t.line,o=t.lineStart,l=t.position,!HC(t,r,tA,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);vC(c);)c=t.input.charCodeAt(++t.position);if(58===c)bC(c=t.input.charCodeAt(++t.position))||AC(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(MC(t,d,p,g,f,null,s,o,l),g=f=m=null),n=y=!(v=!0),g=t.tag,f=t.result;else{if(!v)return t.tag=h,t.anchor=u,!0;AC(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=h,t.anchor=u,!0;AC(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(MC(t,d,p,g,f,null,s,o,l),g=f=m=null),n=y=v=!0):y?n=!(y=!1):AC(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===a||t.lineIndent>e)&&(y&&(s=t.line,o=t.lineStart,l=t.position),HC(t,e,rA,!0,n)&&(y?f=t.result:m=t.result),y||(MC(t,d,p,g,f,m,s,o,l),g=f=m=null),DC(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)AC(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&MC(t,d,p,g,f,null,s,o,l),v&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),v}function jC(t){var e,r,i,n=!1,a=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;if(null!==t.tag&&AC(t,"duplication of a tag property"),60===(s=t.input.charCodeAt(++t.position))?(n=!0,s=t.input.charCodeAt(++t.position)):33===s?(a=!0,r="!!",s=t.input.charCodeAt(++t.position)):r="!",e=t.position,n){for(;0!==(s=t.input.charCodeAt(++t.position))&&62!==s;);t.position<t.length?(i=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):AC(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!bC(s);)33===s&&(a?AC(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),cA.test(r)||AC(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),lA.test(i)&&AC(t,"tag suffix cannot contain flow indicator characters")}i&&!hA.test(i)&&AC(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{AC(t,"tag name is malformed: "+i)}return n?t.tag=i:QS.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:AC(t,'undeclared tag handle "'+r+'"'),!0}function YC(t){var e,r=t.input.charCodeAt(t.position);if(38!==r)return!1;for(null!==t.anchor&&AC(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!bC(r)&&!xC(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&AC(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function WC(t){var e,r=t.input.charCodeAt(t.position);if(42!==r)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!bC(r)&&!xC(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&AC(t,"name of an alias node must contain at least one character"),e=t.input.slice(e,t.position),QS.call(t.anchorMap,e)||AC(t,'unidentified alias "'+e+'"'),t.result=t.anchorMap[e],DC(t,!0,-1),!0}function HC(t,e,r,i,n){var a,s,o,l,c,h,u,d=1,p=!1,g=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=rA===r||eA===r,i&&DC(t,!0,-1)&&(p=!0,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)),1===d)for(;jC(t)||YC(t);)DC(t,!0,-1)?(p=!0,o=a,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)):o=!1;if(o=o&&(p||n),1!==d&&rA!==r||(i=JS===r||tA===r?e:e+1,n=t.position-t.lineStart,1===d?o&&(GC(t,n)||qC(t,n,i))||zC(t,i)?g=!0:(s&&UC(t,i)||FC(t,i)||$C(t,i)?g=!0:WC(t)?(g=!0,null===t.tag&&null===t.anchor||AC(t,"alias node should not have any properties")):BC(t,i,JS===r)&& Line truncated `,s?1+c:c),o=s=!0,c=0,r=t.position;!y_(u)&&0!==u;)u=t.input.charCodeAt(++t.position);N_(t,r,t.position,!1)}}return!0}function U_(t,e){var r,i,n=t.tag,a=t.anchor,s=[],o=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,A_(t,"tab characters must not be used in indentation")),45===i)&&x_(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,D_(t,!0,-1)&&t.lineIndent<=e)s.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,H_(t,e,eA,!1,!0),s.push(t.result),D_(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)A_(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=n,t.anchor=a,t.kind="sequence",t.result=s,!0)}function q_(t,e,r){var i,n,a,s,o,l,c,h=t.tag,u=t.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,A_(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!x_(i)){if(s=t.line,o=t.lineStart,l=t.position,!H_(t,r,tA,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);v_(c);)c=t.input.charCodeAt(++t.position);if(58===c)x_(c=t.input.charCodeAt(++t.position))||A_(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(R_(t,d,p,g,f,null,s,o,l),g=f=m=null),n=y=!(v=!0),g=t.tag,f=t.result;else{if(!v)return t.tag=h,t.anchor=u,!0;A_(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=h,t.anchor=u,!0;A_(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(R_(t,d,p,g,f,null,s,o,l),g=f=m=null),n=y=v=!0):y?n=!(y=!1):A_(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===a||t.lineIndent>e)&&(y&&(s=t.line,o=t.lineStart,l=t.position),H_(t,e,rA,!0,n)&&(y?f=t.result:m=t.result),y||(R_(t,d,p,g,f,m,s,o,l),g=f=m=null),D_(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)A_(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&R_(t,d,p,g,f,null,s,o,l),v&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),v}function j_(t){var e,r,i,n=!1,a=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;if(null!==t.tag&&A_(t,"duplication of a tag property"),60===(s=t.input.charCodeAt(++t.position))?(n=!0,s=t.input.charCodeAt(++t.position)):33===s?(a=!0,r="!!",s=t.input.charCodeAt(++t.position)):r="!",e=t.position,n){for(;0!==(s=t.input.charCodeAt(++t.position))&&62!==s;);t.position<t.length?(i=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):A_(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!x_(s);)33===s&&(a?A_(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),cA.test(r)||A_(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),lA.test(i)&&A_(t,"tag suffix cannot contain flow indicator characters")}i&&!hA.test(i)&&A_(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{A_(t,"tag name is malformed: "+i)}return n?t.tag=i:QS.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:A_(t,'undeclared tag handle "'+r+'"'),!0}function W_(t){var e,r=t.input.charCodeAt(t.position);if(38!==r)return!1;for(null!==t.anchor&&A_(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!x_(r)&&!b_(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&A_(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Y_(t){var e,r=t.input.charCodeAt(t.position);if(42!==r)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!x_(r)&&!b_(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&A_(t,"name of an alias node must contain at least one character"),e=t.input.slice(e,t.position),QS.call(t.anchorMap,e)||A_(t,'unidentified alias "'+e+'"'),t.result=t.anchorMap[e],D_(t,!0,-1),!0}function H_(t,e,r,i,n){var a,s,o,l,c,h,u,d=1,p=!1,g=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=rA===r||eA===r,i&&D_(t,!0,-1)&&(p=!0,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)),1===d)for(;j_(t)||W_(t);)D_(t,!0,-1)?(p=!0,o=a,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)):o=!1;if(o=o&&(p||n),1!==d&&rA!==r||(i=JS===r||tA===r?e:e+1,n=t.position-t.lineStart,1===d?o&&(U_(t,n)||q_(t,n,i))||z_(t,i)?g=!0:(s&&G_(t,i)||F_(t,i)||$_(t,i)?g=!0:Y_(t)?(g=!0,null===t.tag&&null===t.anchor||A_(t,"alias node should not have any properties")):B_(t,i,JS===r)&& Line truncated
`),65279===t.charCodeAt(0))?t.slice(1):t,e);for(-1!==(e=t.indexOf("\0"))&&(r.position=e,AC(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)VC(r);return r.documents}function KC(t,e,r){null!==e&&"object"==typeof e&&"u"<typeof r&&(r=e,e=null);var i=XC(t,r);if("function"!=typeof e)return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}function ZC(t,e){if(0!==(t=XC(t,e)).length){if(1===t.length)return t[0];throw new NS("expected a single document in the stream, but found more")}}function QC(t,e){var r,i,n,a,s,o,l;if(null===e)return{};for(r={},n=0,a=(i=Object.keys(e)).length;n<a;n+=1)s=i[n],o=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&yA.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function JC(t){var e,r,i=t.toString(16).toUpperCase();if(t<=255)e="x",r=2;else if(t<=65535)e="u",r=4;else{if(!(t<=4294967295))throw new NS("code point within a string may not be greater than 0xFFFFFFFF");e="U",r=8}return"\\"+e+LS.repeat("0",r-i.length)+i}function tS(t){this.schema=t.schema||ZS,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=LS.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=QC(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?TA:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eS(t,e){for(var r,i,n=LS.repeat(" ",e),a=0,s="",o=t.length;a<o;)a=-1===(r=t.indexOf(` `),65279===t.charCodeAt(0))?t.slice(1):t,e);for(-1!==(e=t.indexOf("\0"))&&(r.position=e,A_(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)V_(r);return r.documents}function K_(t,e,r){null!==e&&"object"==typeof e&&"u"<typeof r&&(r=e,e=null);var i=X_(t,r);if("function"!=typeof e)return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}function Z_(t,e){if(0!==(t=X_(t,e)).length){if(1===t.length)return t[0];throw new NS("expected a single document in the stream, but found more")}}function Q_(t,e){var r,i,n,a,s,o,l;if(null===e)return{};for(r={},n=0,a=(i=Object.keys(e)).length;n<a;n+=1)s=i[n],o=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&yA.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function J_(t){var e,r,i=t.toString(16).toUpperCase();if(t<=255)e="x",r=2;else if(t<=65535)e="u",r=4;else{if(!(t<=4294967295))throw new NS("code point within a string may not be greater than 0xFFFFFFFF");e="U",r=8}return"\\"+e+LS.repeat("0",r-i.length)+i}function tS(t){this.schema=t.schema||ZS,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=LS.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Q_(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?TA:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eS(t,e){for(var r,i,n=LS.repeat(" ",e),a=0,s="",o=t.length;a<o;)a=-1===(r=t.indexOf(`
`,a))?(i=t.slice(a),o):(i=t.slice(a,r+1),r+1),i.length&&i!==` `,a))?(i=t.slice(a),o):(i=t.slice(a,r+1),r+1),i.length&&i!==`
`&&(s+=n),s+=i;return s}function rS(t,e){return` `&&(s+=n),s+=i;return s}function rS(t,e){return`
`+LS.repeat(" ",t.indent*e)}function iS(t,e){for(var r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function nS(t){return 32===t||9===t}function aS(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==vA||65536<=t&&t<=1114111}function sS(t){return aS(t)&&t!==vA&&13!==t&&t!==bA}function oS(t,e,r){var i=sS(t),n=i&&!nS(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!n)||sS(e)&&!nS(e)&&35===t||58===e&&n}function lS(t){return aS(t)&&t!==vA&&!nS(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function cS(t){return!nS(t)&&58!==t}function hS(t,e){var r=t.charCodeAt(e);return 55296<=r&&r<=56319&&e+1<t.length&&56320<=(t=t.charCodeAt(e+1))&&t<=57343?1024*(r-55296)+t-56320+65536:r}function uS(t){return/^\n* /.test(t)}function dS(t,e,r,i,n,a,s,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==i,g=-1,f=lS(hS(t,0))&&cS(hS(t,t.length-1));if(e||s)for(l=0;l<t.length;65536<=c?l+=2:l++){if(!aS(c=hS(t,l)))return AA;f=f&&oS(c,h,o),h=c}else{for(l=0;l<t.length;65536<=c?l+=2:l++){if((c=hS(t,l))===bA)u=!0,p&&(d=d||i<l-g-1&&" "!==t[g+1],g=l);else if(!aS(c))return AA;f=f&&oS(c,h,o),h=c}d=d||p&&i<l-g-1&&" "!==t[g+1]}return u||d?9<r&&uS(t)?AA:s?a===TA?AA:_A:d?SA:CA:!f||s||n(t)?a===TA?AA:_A:EA}function pS(n,a,s,o,l){n.dump=(()=>{if(0===a.length)return n.quotingType===TA?'""':"''";if(!n.noCompatMode&&(-1!==wA.indexOf(a)||kA.test(a)))return n.quotingType===TA?'"'+a+'"':"'"+a+"'";var t=n.indent*Math.max(1,s),e=-1===n.lineWidth?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-t),r=o||-1<n.flowLevel&&s>=n.flowLevel;function i(t){return iS(n,t)}switch(me(i,"testAmbiguity"),dS(a,r,n.indent,e,i,n.quotingType,n.forceQuotes&&!o,l)){case EA:return a;case _A:return"'"+a.replace(/'/g,"''")+"'";case CA:return"|"+gS(a,n.indent)+fS(eS(a,t));case SA:return">"+gS(a,n.indent)+fS(eS(mS(a,e),t));case AA:return'"'+vS(a)+'"';default:throw new NS("impossible error: invalid scalar style")}})()}function gS(t,e){var e=uS(t)?String(e):"",r=t[t.length-1]===` `+LS.repeat(" ",t.indent*e)}function iS(t,e){for(var r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function nS(t){return 32===t||9===t}function aS(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==vA||65536<=t&&t<=1114111}function sS(t){return aS(t)&&t!==vA&&13!==t&&t!==xA}function oS(t,e,r){var i=sS(t),n=i&&!nS(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!n)||sS(e)&&!nS(e)&&35===t||58===e&&n}function lS(t){return aS(t)&&t!==vA&&!nS(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function cS(t){return!nS(t)&&58!==t}function hS(t,e){var r=t.charCodeAt(e);return 55296<=r&&r<=56319&&e+1<t.length&&56320<=(t=t.charCodeAt(e+1))&&t<=57343?1024*(r-55296)+t-56320+65536:r}function uS(t){return/^\n* /.test(t)}function dS(t,e,r,i,n,a,s,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==i,g=-1,f=lS(hS(t,0))&&cS(hS(t,t.length-1));if(e||s)for(l=0;l<t.length;65536<=c?l+=2:l++){if(!aS(c=hS(t,l)))return AA;f=f&&oS(c,h,o),h=c}else{for(l=0;l<t.length;65536<=c?l+=2:l++){if((c=hS(t,l))===xA)u=!0,p&&(d=d||i<l-g-1&&" "!==t[g+1],g=l);else if(!aS(c))return AA;f=f&&oS(c,h,o),h=c}d=d||p&&i<l-g-1&&" "!==t[g+1]}return u||d?9<r&&uS(t)?AA:s?a===TA?AA:CA:d?SA:_A:!f||s||n(t)?a===TA?AA:CA:EA}function pS(n,a,s,o,l){n.dump=(()=>{if(0===a.length)return n.quotingType===TA?'""':"''";if(!n.noCompatMode&&(-1!==wA.indexOf(a)||kA.test(a)))return n.quotingType===TA?'"'+a+'"':"'"+a+"'";var t=n.indent*Math.max(1,s),e=-1===n.lineWidth?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-t),r=o||-1<n.flowLevel&&s>=n.flowLevel;function i(t){return iS(n,t)}switch(me(i,"testAmbiguity"),dS(a,r,n.indent,e,i,n.quotingType,n.forceQuotes&&!o,l)){case EA:return a;case CA:return"'"+a.replace(/'/g,"''")+"'";case _A:return"|"+gS(a,n.indent)+fS(eS(a,t));case SA:return">"+gS(a,n.indent)+fS(eS(mS(a,e),t));case AA:return'"'+vS(a)+'"';default:throw new NS("impossible error: invalid scalar style")}})()}function gS(t,e){var e=uS(t)?String(e):"",r=t[t.length-1]===`
`;return e+(!r||t[t.length-2]!==` `;return e+(!r||t[t.length-2]!==`
`&&t!==` `&&t!==`
`?r?"":"-":"+")+` `?r?"":"-":"+")+`
@@ -378,13 +378,13 @@ l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
`)+yS(o,e),a=l}return n}function yS(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,a=0,s=0,o="";i=n.exec(t);)e<(i=i.index)-a&&(o+=` `)+yS(o,e),a=l}return n}function yS(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,a=0,s=0,o="";i=n.exec(t);)e<(i=i.index)-a&&(o+=`
`+t.slice(a,r=a<s?s:i),a=r+1),s=i;return o+=` `+t.slice(a,r=a<s?s:i),a=r+1),s=i;return o+=`
`,t.length-a>e&&a<s?o+=t.slice(a,s)+` `,t.length-a>e&&a<s?o+=t.slice(a,s)+`
`+t.slice(s+1):o+=t.slice(a),o.slice(1)}function vS(t){for(var e,r,i="",n=0;n<t.length;65536<=e?n+=2:n++)e=hS(t,n),!(r=xA[e])&&aS(e)?(i+=t[n],65536<=e&&(i+=t[n+1])):i+=r||JC(e);return i}function bS(t,e,r){for(var i,n="",a=t.tag,s=0,o=r.length;s<o;s+=1)i=r[s],t.replacer&&(i=t.replacer.call(r,String(s),i)),(ES(t,e,i,!1,!1)||"u"<typeof i&&ES(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}function xS(t,e,r,i){for(var n,a="",s=t.tag,o=0,l=r.length;o<l;o+=1)n=r[o],t.replacer&&(n=t.replacer.call(r,String(o),n)),(ES(t,e+1,n,!0,!0,!1,!0)||"u"<typeof n&&ES(t,e+1,null,!0,!0,!1,!0))&&(i&&""===a||(a+=rS(t,e)),t.dump&&bA===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function wS(t,e,r){for(var i,n,a,s="",o=t.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),t.condenseFlow&&(a+='"'),n=r[i=l[c]],t.replacer&&(n=t.replacer.call(r,i,n)),ES(t,e,i,!1,!1)&&(1024<t.dump.length&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ES(t,e,n,!1,!1))&&(s+=a+=t.dump);t.tag=o,t.dump="{"+s+"}"}function kS(t,e,r,i){var n,a,s,o,l,c="",h=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new NS("sortKeys must be a boolean or a function");for(n=0,a=u.length;n<a;n+=1)l="",i&&""===c||(l+=rS(t,e)),s=r[o=u[n]],t.replacer&&(s=t.replacer.call(r,o,s)),ES(t,e+1,o,!0,!0,!0)&&((o=null!==t.tag&&"?"!==t.tag||t.dump&&1024<t.dump.length)&&(t.dump&&bA===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,o&&(l+=rS(t,e)),ES(t,e+1,s,!0,o))&&(t.dump&&bA===t.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=t.dump);t.tag=h,t.dump=c||"{}"}function TS(t,e,r){for(var i,n,a,s=r?t.explicitTypes:t.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((n=s[o]).instanceOf||n.predicate)&&(!n.instanceOf||"object"==typeof e&&e instanceof n.instanceOf)&&(!n.predicate||n.predicate(e))){if(r?n.multi&&n.representName?t.tag=n.representName(e):t.tag=n.tag:t.tag="?",n.represent){if(a=t.styleMap[n.tag]||n.defaultStyle,"[object Function]"===mA.call(n.represent))i=n.represent(e,a);else{if(!yA.call(n.represent,a))throw new NS("!<"+n.tag+'> tag resolver accepts not "'+a+'" style');i=n.represent[a](e,a)}t.dump=i}return!0}return!1}function ES(t,e,r,i,n,a,s){t.tag=null,t.dump=r,TS(t,r,!1)||TS(t,r,!0);var o,l,c=mA.call(t.dump),h=i,u=(i=i&&(t.flowLevel<0||t.flowLevel>e),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&0<e)&&(n=!1),l&&t.usedDuplicates[o])t.dump="*ref_"+o;else{if(u&&l&&!t.usedDuplicates[o]&&(t.usedDuplicates[o]=!0),"[object Object]"===c)i&&0!==Object.keys(t.dump).length?(kS(t,e,t.dump,n),l&&(t.dump="&ref_"+o+t.dump)):(wS(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else if("[object Array]"===c)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&0<e?xS(t,e-1,t.dump,n):xS(t,e,t.dump,n),l&&(t.dump="&ref_"+o+t.dump)):(bS(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new NS("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&pS(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function _S(t,e){var r,i,n=[],a=[];for(CS(t,n,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(n[a[r]]);e.usedDuplicates=new Array(i)}function CS(t,e,r){var i,n,a;if(null!==t&&"object"==typeof t)if(-1!==(n=e.indexOf(t)))-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)CS(t[n],e,r);else for(n=0,a=(i=Object.keys(t)).length;n<a;n+=1)CS(t[i[n]],e,r)}function SS(t,e){return(e=new tS(e=e||{})).noRefs||_S(t,e),e.replacer&&(t=e.replacer.call({"":t},"",t)),ES(e,0,t,!0,!0)?e.dump+` `+t.slice(s+1):o+=t.slice(a),o.slice(1)}function vS(t){for(var e,r,i="",n=0;n<t.length;65536<=e?n+=2:n++)e=hS(t,n),!(r=bA[e])&&aS(e)?(i+=t[n],65536<=e&&(i+=t[n+1])):i+=r||J_(e);return i}function xS(t,e,r){for(var i,n="",a=t.tag,s=0,o=r.length;s<o;s+=1)i=r[s],t.replacer&&(i=t.replacer.call(r,String(s),i)),(ES(t,e,i,!1,!1)||"u"<typeof i&&ES(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}function bS(t,e,r,i){for(var n,a="",s=t.tag,o=0,l=r.length;o<l;o+=1)n=r[o],t.replacer&&(n=t.replacer.call(r,String(o),n)),(ES(t,e+1,n,!0,!0,!1,!0)||"u"<typeof n&&ES(t,e+1,null,!0,!0,!1,!0))&&(i&&""===a||(a+=rS(t,e)),t.dump&&xA===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function wS(t,e,r){for(var i,n,a,s="",o=t.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),t.condenseFlow&&(a+='"'),n=r[i=l[c]],t.replacer&&(n=t.replacer.call(r,i,n)),ES(t,e,i,!1,!1)&&(1024<t.dump.length&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ES(t,e,n,!1,!1))&&(s+=a+=t.dump);t.tag=o,t.dump="{"+s+"}"}function kS(t,e,r,i){var n,a,s,o,l,c="",h=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new NS("sortKeys must be a boolean or a function");for(n=0,a=u.length;n<a;n+=1)l="",i&&""===c||(l+=rS(t,e)),s=r[o=u[n]],t.replacer&&(s=t.replacer.call(r,o,s)),ES(t,e+1,o,!0,!0,!0)&&((o=null!==t.tag&&"?"!==t.tag||t.dump&&1024<t.dump.length)&&(t.dump&&xA===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,o&&(l+=rS(t,e)),ES(t,e+1,s,!0,o))&&(t.dump&&xA===t.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=t.dump);t.tag=h,t.dump=c||"{}"}function TS(t,e,r){for(var i,n,a,s=r?t.explicitTypes:t.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((n=s[o]).instanceOf||n.predicate)&&(!n.instanceOf||"object"==typeof e&&e instanceof n.instanceOf)&&(!n.predicate||n.predicate(e))){if(r?n.multi&&n.representName?t.tag=n.representName(e):t.tag=n.tag:t.tag="?",n.represent){if(a=t.styleMap[n.tag]||n.defaultStyle,"[object Function]"===mA.call(n.represent))i=n.represent(e,a);else{if(!yA.call(n.represent,a))throw new NS("!<"+n.tag+'> tag resolver accepts not "'+a+'" style');i=n.represent[a](e,a)}t.dump=i}return!0}return!1}function ES(t,e,r,i,n,a,s){t.tag=null,t.dump=r,TS(t,r,!1)||TS(t,r,!0);var o,l,c=mA.call(t.dump),h=i,u=(i=i&&(t.flowLevel<0||t.flowLevel>e),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&0<e)&&(n=!1),l&&t.usedDuplicates[o])t.dump="*ref_"+o;else{if(u&&l&&!t.usedDuplicates[o]&&(t.usedDuplicates[o]=!0),"[object Object]"===c)i&&0!==Object.keys(t.dump).length?(kS(t,e,t.dump,n),l&&(t.dump="&ref_"+o+t.dump)):(wS(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else if("[object Array]"===c)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&0<e?bS(t,e-1,t.dump,n):bS(t,e,t.dump,n),l&&(t.dump="&ref_"+o+t.dump)):(xS(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new NS("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&pS(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function CS(t,e){var r,i,n=[],a=[];for(_S(t,n,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(n[a[r]]);e.usedDuplicates=new Array(i)}function _S(t,e,r){var i,n,a;if(null!==t&&"object"==typeof t)if(-1!==(n=e.indexOf(t)))-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)_S(t[n],e,r);else for(n=0,a=(i=Object.keys(t)).length;n<a;n+=1)_S(t[i[n]],e,r)}function SS(t,e){return(e=new tS(e=e||{})).noRefs||CS(t,e),e.replacer&&(t=e.replacer.call({"":t},"",t)),ES(e,0,t,!0,!0)?e.dump+`
`:""}function AS(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var LS,NS,IS,MS,RS,DS,OS,PS,BS,FS,$S,zS,US,GS,qS,jS,YS,WS,HS,VS,XS,KS,ZS,QS,JS,tA,eA,rA,iA,nA,aA,sA,oA,lA,cA,hA,uA,dA,pA,gA,fA,mA,yA,vA,bA,xA,wA,kA,TA,EA,_A,CA,SA,AA,LA,NA,IA=t(()=>{for(me(E_,"isNothing"),me(__,"isObject"),me(C_,"toArray"),me(S_,"extend"),me(A_,"repeat"),me(L_,"isNegativeZero"),LS={isNothing:E_,isObject:__,toArray:C_,repeat:A_,isNegativeZero:L_,extend:S_},me(N_,"formatError"),me(I_,"YAMLException$1"),((I_.prototype=Object.create(Error.prototype)).constructor=I_).prototype.toString=me(function(t){return this.name+": "+N_(this,t)},"toString"),NS=I_,me(M_,"getLine"),me(R_,"padStart"),me(D_,"makeSnippet"),IS=D_,MS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RS=["scalar","sequence","mapping"],me(O_,"compileStyleAliases"),me(P_,"Type$1"),DS=P_,me(B_,"compileList"),me(F_,"compileMap"),me($_,"Schema$1"),$_.prototype.extend=me(function(t){var e=[],r=[];if(t instanceof DS)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new NS("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}return e.forEach(function(t){if(!(t instanceof DS))throw new NS("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new NS("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new NS("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof DS))throw new NS("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(t=Object.create($_.prototype)).implicit=(this.implicit||[]).concat(e),t.explicit=(this.explicit||[]).concat(r),t.compiledImplicit=B_(t,"implicit"),t.compiledExplicit=B_(t,"explicit"),t.compiledTypeMap=F_(t.compiledImplicit,t.compiledExplicit),t},"extend"),BS=$_,fA=new DS("tag:yaml.org,2002:str",{kind:"scalar",construct:me(function(t){return null!==t?t:""},"construct")}),zS=new DS("tag:yaml.org,2002:seq",{kind:"sequence",construct:me(function(t){return null!==t?t:[]},"construct")}),US=new DS("tag:yaml.org,2002:map",{kind:"mapping",construct:me(function(t){return null!==t?t:{}},"construct")}),BS=new BS({explicit:[fA,zS,US]}),me(z_,"resolveYamlNull"),me(U_,"constructYamlNull"),me(G_,"isNull"),fA=new DS("tag:yaml.org,2002:null",{kind:"scalar",resolve:z_,construct:U_,predicate:G_,represent:{canonical:me(function(){return"~"},"canonical"),lowercase:me(function(){return"null"},"lowercase"),uppercase:me(function(){return"NULL"},"uppercase"),camelcase:me(function(){return"Null"},"camelcase"),empty:me(function(){return""},"empty")},defaultStyle:"lowercase"}),me(q_,"resolveYamlBoolean"),me(j_,"constructYamlBoolean"),me(Y_,"isBoolean"),zS=new DS("tag:yaml.org,2002:bool",{kind:"scalar",resolve:q_,construct:j_,predicate:Y_,represent:{lowercase:me(function(t){return t?"true":"false"},"lowercase"),uppercase:me(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:me(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),me(W_,"isHexCode"),me(H_,"isOctCode"),me(V_,"isDecCode"),me(X_,"resolveYamlInteger"),me(K_,"constructYamlInteger"),me(Z_,"isInteger"),US=new DS("tag:yaml.org,2002:int",{kind:"scalar",resolve:X_,construct:K_,predicate:Z_,represent:{binary:me(function(t){return 0<=t?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:me(function(t){return 0<=t?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:me(function(t){return t.toString(10)},"decimal"),hexadecimal:me(function(t){return 0<=t?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),OS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),me(Q_,"resolveYamlFloat"),me(J_,"constructYamlFloat"),PS=/^[-+]?[0-9]+e/,me(tC,"representYamlFloat"),me(eC,"isFloat"),qS=new DS("tag:yaml.org,2002:float",{kind:"scalar",resolve:Q_,construct:J_,predicate:eC,represent:tC,defaultStyle:"lowercase"}),BS=BS.extend({implicit:[fA,zS,US,qS]}),fA=BS,FS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$S=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),me(rC,"resolveYamlTimestamp"),me(iC,"constructYamlTimestamp"),me(nC,"represen Line truncated `:""}function AS(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var LS,NS,IS,RS,MS,DS,OS,PS,BS,FS,$S,zS,GS,US,qS,jS,WS,YS,HS,VS,XS,KS,ZS,QS,JS,tA,eA,rA,iA,nA,aA,sA,oA,lA,cA,hA,uA,dA,pA,gA,fA,mA,yA,vA,xA,bA,wA,kA,TA,EA,CA,_A,SA,AA,LA,NA,IA=t(()=>{for(me(EC,"isNothing"),me(CC,"isObject"),me(_C,"toArray"),me(SC,"extend"),me(AC,"repeat"),me(LC,"isNegativeZero"),LS={isNothing:EC,isObject:CC,toArray:_C,repeat:AC,isNegativeZero:LC,extend:SC},me(NC,"formatError"),me(IC,"YAMLException$1"),((IC.prototype=Object.create(Error.prototype)).constructor=IC).prototype.toString=me(function(t){return this.name+": "+NC(this,t)},"toString"),NS=IC,me(RC,"getLine"),me(MC,"padStart"),me(DC,"makeSnippet"),IS=DC,RS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],MS=["scalar","sequence","mapping"],me(OC,"compileStyleAliases"),me(PC,"Type$1"),DS=PC,me(BC,"compileList"),me(FC,"compileMap"),me($C,"Schema$1"),$C.prototype.extend=me(function(t){var e=[],r=[];if(t instanceof DS)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new NS("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}return e.forEach(function(t){if(!(t instanceof DS))throw new NS("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new NS("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new NS("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof DS))throw new NS("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(t=Object.create($C.prototype)).implicit=(this.implicit||[]).concat(e),t.explicit=(this.explicit||[]).concat(r),t.compiledImplicit=BC(t,"implicit"),t.compiledExplicit=BC(t,"explicit"),t.compiledTypeMap=FC(t.compiledImplicit,t.compiledExplicit),t},"extend"),BS=$C,fA=new DS("tag:yaml.org,2002:str",{kind:"scalar",construct:me(function(t){return null!==t?t:""},"construct")}),zS=new DS("tag:yaml.org,2002:seq",{kind:"sequence",construct:me(function(t){return null!==t?t:[]},"construct")}),GS=new DS("tag:yaml.org,2002:map",{kind:"mapping",construct:me(function(t){return null!==t?t:{}},"construct")}),BS=new BS({explicit:[fA,zS,GS]}),me(zC,"resolveYamlNull"),me(GC,"constructYamlNull"),me(UC,"isNull"),fA=new DS("tag:yaml.org,2002:null",{kind:"scalar",resolve:zC,construct:GC,predicate:UC,represent:{canonical:me(function(){return"~"},"canonical"),lowercase:me(function(){return"null"},"lowercase"),uppercase:me(function(){return"NULL"},"uppercase"),camelcase:me(function(){return"Null"},"camelcase"),empty:me(function(){return""},"empty")},defaultStyle:"lowercase"}),me(qC,"resolveYamlBoolean"),me(jC,"constructYamlBoolean"),me(WC,"isBoolean"),zS=new DS("tag:yaml.org,2002:bool",{kind:"scalar",resolve:qC,construct:jC,predicate:WC,represent:{lowercase:me(function(t){return t?"true":"false"},"lowercase"),uppercase:me(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:me(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),me(YC,"isHexCode"),me(HC,"isOctCode"),me(VC,"isDecCode"),me(XC,"resolveYamlInteger"),me(KC,"constructYamlInteger"),me(ZC,"isInteger"),GS=new DS("tag:yaml.org,2002:int",{kind:"scalar",resolve:XC,construct:KC,predicate:ZC,represent:{binary:me(function(t){return 0<=t?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:me(function(t){return 0<=t?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:me(function(t){return t.toString(10)},"decimal"),hexadecimal:me(function(t){return 0<=t?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),OS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),me(QC,"resolveYamlFloat"),me(JC,"constructYamlFloat"),PS=/^[-+]?[0-9]+e/,me(t_,"representYamlFloat"),me(e_,"isFloat"),qS=new DS("tag:yaml.org,2002:float",{kind:"scalar",resolve:QC,construct:JC,predicate:e_,represent:t_,defaultStyle:"lowercase"}),BS=BS.extend({implicit:[fA,zS,GS,qS]}),fA=BS,FS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$S=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),me(r_,"resolveYamlTimestamp"),me(i_,"constructYamlTimestamp"),me(n_,"represen Line truncated
\r`,me(sC,"resolveYamlBinary"),me(oC,"constructYamlBinary"),me(lC,"representYamlBinary"),me(cC,"isBinary"),qS=new DS("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sC,construct:oC,predicate:cC,represent:lC}),jS=Object.prototype.hasOwnProperty,YS=Object.prototype.toString,me(hC,"resolveYamlOmap"),me(uC,"constructYamlOmap"),WS=new DS("tag:yaml.org,2002:omap",{kind:"sequence",resolve:hC,construct:uC}),HS=Object.prototype.toString,me(dC,"resolveYamlPairs"),me(pC,"constructYamlPairs"),VS=new DS("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dC,construct:pC}),XS=Object.prototype.hasOwnProperty,me(gC,"resolveYamlSet"),me(fC,"constructYamlSet"),KS=new DS("tag:yaml.org,2002:set",{kind:"mapping",resolve:gC,construct:fC}),ZS=fA.extend({implicit:[zS,US],explicit:[qS,WS,VS,KS]}),QS=Object.prototype.hasOwnProperty,rA=4,iA=JS=1,nA=tA=2,aA=eA=3,sA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oA=/[\x85\u2028\u2029]/,lA=/[,\[\]\{\}]/,cA=/^(?:!|!!|![a-z\-]+!)$/i,hA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,me(mC,"_class"),me(yC,"is_EOL"),me(vC,"is_WHITE_SPACE"),me(bC,"is_WS_OR_EOL"),me(xC,"is_FLOW_INDICATOR"),me(wC,"fromHexCode"),me(kC,"escapedHexLen"),me(TC,"fromDecimalCode"),me(EC,"simpleEscapeSequence"),me(_C,"charFromCodepoint"),uA=new Array(256),dA=new Array(256),pA=0;pA<256;pA++)uA[pA]=EC(pA)?1:0,dA[pA]=EC(pA);me(CC,"State$1"),me(SC,"generateError"),me(AC,"throwError"),me(LC,"throwWarning"),gA={YAML:me(function(t,e,r){var i,n;null!==t.version&&AC(t,"duplication of %YAML directive"),1!==r.length&&AC(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&AC(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),n=parseInt(n[2],10),1!==i&&AC(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&LC(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:me(function(t,e,r){var i;2!==r.length&&AC(t,"TAG directive accepts exactly two arguments"),i=r[1],cA.test(r=r[0])||AC(t,"ill-formed tag handle (first argument) of the TAG directive"),QS.call(t.tagMap,r)&&AC(t,'there is a previously declared suffix for "'+r+'" tag handle'),hA.test(i)||AC(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{AC(t,"tag prefix is malformed: "+i)}t.tagMap[r]=i},"handleTagDirective")},me(NC,"captureSegment"),me(IC,"mergeMappings"),me(MC,"storeMappingPair"),me(RC,"readLineBreak"),me(DC,"skipSeparationSpace"),me(OC,"testDocumentSeparator"),me(PC,"writeFoldedLines"),me(BC,"readPlainScalar"),me(FC,"readSingleQuotedScalar"),me($C,"readDoubleQuotedScalar"),me(zC,"readFlowCollection"),me(UC,"readBlockScalar"),me(GC,"readBlockSequence"),me(qC,"readBlockMapping"),me(jC,"readTagProperty"),me(YC,"readAnchorProperty"),me(WC,"readAlias"),me(HC,"composeNode"),me(VC,"readDocument"),me(XC,"loadDocuments"),me(KC,"loadAll$1"),me(ZC,"load$1"),fA={loadAll:KC,load:ZC},mA=Object.prototype.toString,yA=Object.prototype.hasOwnProperty,vA=65279,bA=10,xA={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,me(QC,"compileStyleMap"),me(JC,"encodeHex"),TA=2,me(tS,"State"),me(eS,"indentString"),me(rS,"generateNextLine"),me(iS,"testImplicitResolving"),me(nS,"isWhitespace"),me(aS,"isPrintable"),me(sS,"isNsCharOrWhitespace"),me(oS,"isPlainSafe"),me(lS,"isPlainSafeFirst"),me(cS,"isPlainSafeLast"),me(hS,"codePointAt"),me(uS,"needIndentIndicator"),EA=1,_A=2,CA=3,SA=4,AA=5,me(dS,"chooseScalarStyle"),me(pS,"writeScalar"),me(gS,"blockHeader"),me(fS,"dropEndingNewline"),me(mS,"foldString"),me(yS,"foldLine"),me(vS,"escapeString"),me(bS,"writeFlowSequence"),me(xS,"writeBlockSequence"),me(wS,"writeFlowMapping"),me(kS,"writeBlockMapping"),me(TS,"detectType"),me(ES,"writeNode"),me(_S,"getDuplicateReferences"),me(CS,"inspectNode"),me(SS,"dump$1"),me(AS,"renamed"),LA=BS,NA=fA.load,AS("safeLoad","load"),AS("safeLoadAll","loadAll"),AS("safeDump","dump")});function MA(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function RA(t){qA=t}function DA(t,e=""){let i="string"==typeof t?t:t.source,n={replace:me((t,e)=>{let r="string"==typeof e?e:e.source;return r=r.replace(YA.caret,"$1"),i=i.replace(t,r),n},"replace"),getRegex:me(()=>new RegExp(i,e),"getRegex")};return n}function OA(t,e){if(e){if(YA.escapeTest.test(t))return t.replace(YA.escapeReplace,m9)}else if(YA.escapeTestNoEncode.test(t))return t.replace(YA.escapeReplaceNoEncode,m9);return t}function PA(t){try{t=encodeURI(t).replace(YA.percentDecode,"%")}catch{return null}return t}function BA(t,e){let r=t.replace(YA.findPipe,(t,e,r)=>{let i=!1,n=e;for(;0<=--n&& Line truncated \r`,me(s_,"resolveYamlBinary"),me(o_,"constructYamlBinary"),me(l_,"representYamlBinary"),me(c_,"isBinary"),qS=new DS("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s_,construct:o_,predicate:c_,represent:l_}),jS=Object.prototype.hasOwnProperty,WS=Object.prototype.toString,me(h_,"resolveYamlOmap"),me(u_,"constructYamlOmap"),YS=new DS("tag:yaml.org,2002:omap",{kind:"sequence",resolve:h_,construct:u_}),HS=Object.prototype.toString,me(d_,"resolveYamlPairs"),me(p_,"constructYamlPairs"),VS=new DS("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:d_,construct:p_}),XS=Object.prototype.hasOwnProperty,me(g_,"resolveYamlSet"),me(f_,"constructYamlSet"),KS=new DS("tag:yaml.org,2002:set",{kind:"mapping",resolve:g_,construct:f_}),ZS=fA.extend({implicit:[zS,GS],explicit:[qS,YS,VS,KS]}),QS=Object.prototype.hasOwnProperty,rA=4,iA=JS=1,nA=tA=2,aA=eA=3,sA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oA=/[\x85\u2028\u2029]/,lA=/[,\[\]\{\}]/,cA=/^(?:!|!!|![a-z\-]+!)$/i,hA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,me(m_,"_class"),me(y_,"is_EOL"),me(v_,"is_WHITE_SPACE"),me(x_,"is_WS_OR_EOL"),me(b_,"is_FLOW_INDICATOR"),me(w_,"fromHexCode"),me(k_,"escapedHexLen"),me(T_,"fromDecimalCode"),me(E_,"simpleEscapeSequence"),me(C_,"charFromCodepoint"),uA=new Array(256),dA=new Array(256),pA=0;pA<256;pA++)uA[pA]=E_(pA)?1:0,dA[pA]=E_(pA);me(__,"State$1"),me(S_,"generateError"),me(A_,"throwError"),me(L_,"throwWarning"),gA={YAML:me(function(t,e,r){var i,n;null!==t.version&&A_(t,"duplication of %YAML directive"),1!==r.length&&A_(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&A_(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),n=parseInt(n[2],10),1!==i&&A_(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&L_(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:me(function(t,e,r){var i;2!==r.length&&A_(t,"TAG directive accepts exactly two arguments"),i=r[1],cA.test(r=r[0])||A_(t,"ill-formed tag handle (first argument) of the TAG directive"),QS.call(t.tagMap,r)&&A_(t,'there is a previously declared suffix for "'+r+'" tag handle'),hA.test(i)||A_(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{A_(t,"tag prefix is malformed: "+i)}t.tagMap[r]=i},"handleTagDirective")},me(N_,"captureSegment"),me(I_,"mergeMappings"),me(R_,"storeMappingPair"),me(M_,"readLineBreak"),me(D_,"skipSeparationSpace"),me(O_,"testDocumentSeparator"),me(P_,"writeFoldedLines"),me(B_,"readPlainScalar"),me(F_,"readSingleQuotedScalar"),me($_,"readDoubleQuotedScalar"),me(z_,"readFlowCollection"),me(G_,"readBlockScalar"),me(U_,"readBlockSequence"),me(q_,"readBlockMapping"),me(j_,"readTagProperty"),me(W_,"readAnchorProperty"),me(Y_,"readAlias"),me(H_,"composeNode"),me(V_,"readDocument"),me(X_,"loadDocuments"),me(K_,"loadAll$1"),me(Z_,"load$1"),fA={loadAll:K_,load:Z_},mA=Object.prototype.toString,yA=Object.prototype.hasOwnProperty,vA=65279,xA=10,bA={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,me(Q_,"compileStyleMap"),me(J_,"encodeHex"),TA=2,me(tS,"State"),me(eS,"indentString"),me(rS,"generateNextLine"),me(iS,"testImplicitResolving"),me(nS,"isWhitespace"),me(aS,"isPrintable"),me(sS,"isNsCharOrWhitespace"),me(oS,"isPlainSafe"),me(lS,"isPlainSafeFirst"),me(cS,"isPlainSafeLast"),me(hS,"codePointAt"),me(uS,"needIndentIndicator"),EA=1,CA=2,_A=3,SA=4,AA=5,me(dS,"chooseScalarStyle"),me(pS,"writeScalar"),me(gS,"blockHeader"),me(fS,"dropEndingNewline"),me(mS,"foldString"),me(yS,"foldLine"),me(vS,"escapeString"),me(xS,"writeFlowSequence"),me(bS,"writeBlockSequence"),me(wS,"writeFlowMapping"),me(kS,"writeBlockMapping"),me(TS,"detectType"),me(ES,"writeNode"),me(CS,"getDuplicateReferences"),me(_S,"inspectNode"),me(SS,"dump$1"),me(AS,"renamed"),LA=BS,NA=fA.load,AS("safeLoad","load"),AS("safeLoadAll","loadAll"),AS("safeDump","dump")});function RA(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function MA(t){qA=t}function DA(t,e=""){let i="string"==typeof t?t:t.source,n={replace:me((t,e)=>{let r="string"==typeof e?e:e.source;return r=r.replace(WA.caret,"$1"),i=i.replace(t,r),n},"replace"),getRegex:me(()=>new RegExp(i,e),"getRegex")};return n}function OA(t,e){if(e){if(WA.escapeTest.test(t))return t.replace(WA.escapeReplace,m9)}else if(WA.escapeTestNoEncode.test(t))return t.replace(WA.escapeReplaceNoEncode,m9);return t}function PA(t){try{t=encodeURI(t).replace(WA.percentDecode,"%")}catch{return null}return t}function BA(t,e){let r=t.replace(WA.findPipe,(t,e,r)=>{let i=!1,n=e;for(;0<=--n&& Line truncated
`).map(t=>{var e=t.match(r.other.beginningSpace);return null!==e&&([e]=e,e.length>=i.length)?t.slice(i.length):t}).join(` `).map(t=>{var e=t.match(r.other.beginningSpace);return null!==e&&([e]=e,e.length>=i.length)?t.slice(i.length):t}).join(`
`)}function GA(t,e){return E9.parse(t,e)}var qA,jA,YA,WA,HA,VA,XA,KA,ZA,QA,JA,t9,e9,r9,i9,n9,a9,s9,o9,l9,c9,h9,u9,d9,p9,g9,f9,m9,y9,v9,b9,x9,w9,k9,T9,E9,_9=t(()=>{me(MA,"_getDefaults"),qA=MA(),me(RA,"changeDefaults"),jA={exec:me(()=>null,"exec")},me(DA,"edit"),YA={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:me(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},ZA=/^(?:[ \t]*(?:\n|$))+/,QA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,VA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,r9=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,KA=/(?:[*+-]|\d{1,9}[.)])/,u9=DA(s9=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,KA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),s9=DA(s9).replace(/bull/g,KA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),c9=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,i9=/^[^\n]+/,o9=/(?!\s*\])(?:\\.|[^\[\]\\])+/,HA=DA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",o9).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),KA=DA(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,KA).getRegex(),h9="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a9=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,d9=DA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",a9).replace("tag",h9).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n9=DA(c9).replace("hr",r9).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").Line truncated `)}function UA(t,e){return E9.parse(t,e)}var qA,jA,WA,YA,HA,VA,XA,KA,ZA,QA,JA,t9,e9,r9,i9,n9,a9,s9,o9,l9,c9,h9,u9,d9,p9,g9,f9,m9,y9,v9,x9,b9,w9,k9,T9,E9,C9=t(()=>{me(RA,"_getDefaults"),qA=RA(),me(MA,"changeDefaults"),jA={exec:me(()=>null,"exec")},me(DA,"edit"),WA={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:me(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:me(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},ZA=/^(?:[ \t]*(?:\n|$))+/,QA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,VA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,r9=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,KA=/(?:[*+-]|\d{1,9}[.)])/,u9=DA(s9=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,KA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),s9=DA(s9).replace(/bull/g,KA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),c9=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,i9=/^[^\n]+/,o9=/(?!\s*\])(?:\\.|[^\[\]\\])+/,HA=DA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",o9).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),KA=DA(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,KA).getRegex(),h9="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a9=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,d9=DA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",a9).replace("tag",h9).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n9=DA(c9).replace("hr",r9).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").Line truncated
]`).replace("lheading",u9).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},XA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,d9=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,KA=/^( {2,}|\\)\n(?!\s*$)/,ZA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,n9=/[\p{P}\p{S}]/u,i9=/[\s\p{P}\p{S}]/u,s9=/[^\s\p{P}\p{S}]/u,QA=DA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,i9).getRegex(),h9=/(?!~)[\p{P}\p{S}]/u,c9=/(?!~)[\s\p{P}\p{S}]/u,r9=/(?:[^\s\p{P}\p{S}]|~)/u,u9=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,T9=DA(JA=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,n9).getRegex(),JA=DA(JA,"u").replace(/punct/g,h9).getRegex(),t9=DA(e9="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,s9).replace(/punctSpace/g,i9).replace(/punct/g,n9).getRegex(),e9=DA(e9,"gu").replace(/notPunctSpace/g,r9).replace(/punctSpace/g,c9).replace(/punct/g,h9).getRegex(),r9=DA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,s9).replace(/punctSpace/g,i9).replace(/punct/g,n9).getRegex(),c9=DA(/\\(punct)/,"gu").replace(/punct/g,n9).getRegex(),h9=DA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),s9=DA(a9).replace("(?:--\x3e|$)","--\x3e").getRegex(),i9=DA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",s9).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),n9=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a9=DA(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",n9).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),s9=DA(/^!?\[(label)\]\[(ref)\]/).replace("label",n9).replace("ref",o9).getRegex(),o9=DA(/^!?\[(ref)\](?:\[\])?/).replace("ref",o9).getRegex(),l9=DA("reflink|nolink(?!\\()","g").replace("reflink",s9).replace("nolink",o9).getRegex(),h9={...c9={_backpedal:jA,anyPunctuation:c9,autolink:h9,blockSkip:u9,br:KA,code:d9,del:jA,emStrongLDelim:T9,emStrongRDelimAst:t9,emStrongRDelimUnd:r9,escape:XA,link:a9,nolink:o9,punctuation:QA,reflink:s9,reflinkSearch:l9,tag:i9,text:ZA,url:jA},link:DA(/^!?\[(label)\]\((.*?)\)/).replace("label",n9).getRegex(),reflink:DA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n9).getRegex()},u9={...c9,emStrongRDelimAst:e9,emStrongLDelim:JA,url:DA(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},d9={...u9,br:DA(KA).replace("{2,}","*").getRegex(),text:DA(u9.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},p9={normal:WA,gfm:HA,pedantic:VA},g9={normal:c9,gfm:u9,breaks:d9,pedantic:h9},f9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m9=me(t=>f9[t],"getEscapeReplacement"),me(OA,"escape"),me(PA,"cleanUrl"),me(BA,"splitCells"),me(FA,"rtrim"),me($A,"findClosingBracket"),me(zA,"outputLink"),me(UA,"indentCodeCompensation"),y9=class{static{me(this,"_Tokenizer")}options;rules;lexer;constructor(t){this.options=t||qA}space(t){if((t=this.rules.block.newline.exec(t))&&0<t[0].length)return{type:"space",raw:t[0]}}code(t){var e;if(t=this.rules.block.code.exec(t))return e=t[0].replace(this.rules.other.codeRemoveIndent,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:FA(e,` ]`).replace("lheading",u9).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},XA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,d9=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,KA=/^( {2,}|\\)\n(?!\s*$)/,ZA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,n9=/[\p{P}\p{S}]/u,i9=/[\s\p{P}\p{S}]/u,s9=/[^\s\p{P}\p{S}]/u,QA=DA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,i9).getRegex(),h9=/(?!~)[\p{P}\p{S}]/u,c9=/(?!~)[\s\p{P}\p{S}]/u,r9=/(?:[^\s\p{P}\p{S}]|~)/u,u9=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,T9=DA(JA=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,n9).getRegex(),JA=DA(JA,"u").replace(/punct/g,h9).getRegex(),t9=DA(e9="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,s9).replace(/punctSpace/g,i9).replace(/punct/g,n9).getRegex(),e9=DA(e9,"gu").replace(/notPunctSpace/g,r9).replace(/punctSpace/g,c9).replace(/punct/g,h9).getRegex(),r9=DA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,s9).replace(/punctSpace/g,i9).replace(/punct/g,n9).getRegex(),c9=DA(/\\(punct)/,"gu").replace(/punct/g,n9).getRegex(),h9=DA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),s9=DA(a9).replace("(?:--\x3e|$)","--\x3e").getRegex(),i9=DA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",s9).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),n9=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a9=DA(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",n9).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),s9=DA(/^!?\[(label)\]\[(ref)\]/).replace("label",n9).replace("ref",o9).getRegex(),o9=DA(/^!?\[(ref)\](?:\[\])?/).replace("ref",o9).getRegex(),l9=DA("reflink|nolink(?!\\()","g").replace("reflink",s9).replace("nolink",o9).getRegex(),h9={...c9={_backpedal:jA,anyPunctuation:c9,autolink:h9,blockSkip:u9,br:KA,code:d9,del:jA,emStrongLDelim:T9,emStrongRDelimAst:t9,emStrongRDelimUnd:r9,escape:XA,link:a9,nolink:o9,punctuation:QA,reflink:s9,reflinkSearch:l9,tag:i9,text:ZA,url:jA},link:DA(/^!?\[(label)\]\((.*?)\)/).replace("label",n9).getRegex(),reflink:DA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n9).getRegex()},u9={...c9,emStrongRDelimAst:e9,emStrongLDelim:JA,url:DA(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},d9={...u9,br:DA(KA).replace("{2,}","*").getRegex(),text:DA(u9.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},p9={normal:YA,gfm:HA,pedantic:VA},g9={normal:c9,gfm:u9,breaks:d9,pedantic:h9},f9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m9=me(t=>f9[t],"getEscapeReplacement"),me(OA,"escape"),me(PA,"cleanUrl"),me(BA,"splitCells"),me(FA,"rtrim"),me($A,"findClosingBracket"),me(zA,"outputLink"),me(GA,"indentCodeCompensation"),y9=class{static{me(this,"_Tokenizer")}options;rules;lexer;constructor(t){this.options=t||qA}space(t){if((t=this.rules.block.newline.exec(t))&&0<t[0].length)return{type:"space",raw:t[0]}}code(t){var e;if(t=this.rules.block.code.exec(t))return e=t[0].replace(this.rules.other.codeRemoveIndent,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:FA(e,`
`)}}fences(t){var e,r;if(t=this.rules.block.fences.exec(t))return r=UA(e=t[0],t[3]||"",this.rules),{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:r}}heading(e){var r;if(e=this.rules.block.heading.exec(e)){let t=e[2].trim();return this.rules.other.endingHash.test(t)&&(r=FA(t,"#"),!this.options.pedantic&&r&&!this.rules.other.endingSpaceChar.test(r)||(t=r.trim())),{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){if(t=this.rules.block.hr.exec(t))return{type:"hr",raw:FA(t[0],` `)}}fences(t){var e,r;if(t=this.rules.block.fences.exec(t))return r=GA(e=t[0],t[3]||"",this.rules),{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:r}}heading(e){var r;if(e=this.rules.block.heading.exec(e)){let t=e[2].trim();return this.rules.other.endingHash.test(t)&&(r=FA(t,"#"),!this.options.pedantic&&r&&!this.rules.other.endingSpaceChar.test(r)||(t=r.trim())),{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){if(t=this.rules.block.hr.exec(t))return{type:"hr",raw:FA(t[0],`
`)}}blockquote(t){if(t=this.rules.block.blockquote.exec(t)){let i=FA(t[0],` `)}}blockquote(t){if(t=this.rules.block.blockquote.exec(t)){let i=FA(t[0],`
`).split(` `).split(`
`),n="",a="",s=[];for(;0<i.length;){let t=!1,e=[],r;for(r=0;r<i.length;r++)if(this.rules.other.blockquoteStart.test(i[r]))e.push(i[r]),t=!0;else{if(t)break;e.push(i[r])}i=i.slice(r);var o,l=(c=e.join(` `),n="",a="",s=[];for(;0<i.length;){let t=!1,e=[],r;for(r=0;r<i.length;r++)if(this.rules.other.blockquoteStart.test(i[r]))e.push(i[r]),t=!0;else{if(t)break;e.push(i[r])}i=i.slice(r);var o,l=(c=e.join(`
@@ -399,14 +399,14 @@ l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
`))}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(d){let p=this.rules.block.list.exec(d);if(p){let t=p[1].trim(),e=1<t.length,c={type:"list",raw:"",ordered:e,start:e?+t.slice(0,-1):"",loose:!1,items:[]},h=(t=e?"\\d{1,9}\\"+t.slice(-1):"\\"+t,this.options.pedantic&&(t=e?t:"[*+-]"),this.rules.other.listItemRegex(t)),u=!1;for(;d;){let t=!1,e="",r="";if(!(p=h.exec(d))||this.rules.block.hr.test(d))break;e=p[0],d=d.substring(e.length);let i=p[2].split(` `))}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(d){let p=this.rules.block.list.exec(d);if(p){let t=p[1].trim(),e=1<t.length,c={type:"list",raw:"",ordered:e,start:e?+t.slice(0,-1):"",loose:!1,items:[]},h=(t=e?"\\d{1,9}\\"+t.slice(-1):"\\"+t,this.options.pedantic&&(t=e?t:"[*+-]"),this.rules.other.listItemRegex(t)),u=!1;for(;d;){let t=!1,e="",r="";if(!(p=h.exec(d))||this.rules.block.hr.test(d))break;e=p[0],d=d.substring(e.length);let i=p[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),n=d.split(` `,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),n=d.split(`
`,1)[0],a=!i.trim(),s=0;if(this.options.pedantic?(s=2,r=i.trimStart()):a?s=p[1].length+1:(s=4<(s=p[2].search(this.rules.other.nonSpaceChar))?1:s,r=i.slice(s),s+=p[1].length),a&&this.rules.other.blankLine.test(n)&&(e+=n+` `,1)[0],a=!i.trim(),s=0;if(this.options.pedantic?(s=2,r=i.trimStart()):a?s=p[1].length+1:(s=4<(s=p[2].search(this.rules.other.nonSpaceChar))?1:s,r=i.slice(s),s+=p[1].length),a&&this.rules.other.blankLine.test(n)&&(e+=n+`
`,d=d.substring(n.length+1),t=!0),!t)for(var g=this.rules.other.nextBulletRegex(s),f=this.rules.other.hrRegex(s),m=this.rules.other.fencesBeginRegex(s),y=this.rules.other.headingBeginRegex(s),v=this.rules.other.htmlBeginRegex(s);d;){var b,x=d.split(` `,d=d.substring(n.length+1),t=!0),!t)for(var g=this.rules.other.nextBulletRegex(s),f=this.rules.other.hrRegex(s),m=this.rules.other.fencesBeginRegex(s),y=this.rules.other.headingBeginRegex(s),v=this.rules.other.htmlBeginRegex(s);d;){var x,b=d.split(`
`,1)[0];if(n=x,b=this.options.pedantic?n=n.replace(this.rules.other.listReplaceNesting," "):n.replace(this.rules.other.tabCharGlobal," "),m.test(n)||y.test(n)||v.test(n)||g.test(n)||f.test(n))break;if(b.search(this.rules.other.nonSpaceChar)>=s||!n.trim())r+=` `,1)[0];if(n=b,x=this.options.pedantic?n=n.replace(this.rules.other.listReplaceNesting," "):n.replace(this.rules.other.tabCharGlobal," "),m.test(n)||y.test(n)||v.test(n)||g.test(n)||f.test(n))break;if(x.search(this.rules.other.nonSpaceChar)>=s||!n.trim())r+=`
`+b.slice(s);else{if(a||4<=i.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)||m.test(i)||y.test(i)||f.test(i))break;r+=` `+x.slice(s);else{if(a||4<=i.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)||m.test(i)||y.test(i)||f.test(i))break;r+=`
`+n}a||n.trim()||(a=!0),e+=x+` `+n}a||n.trim()||(a=!0),e+=b+`
`,d=d.substring(x.length+1),i=b.slice(s)}c.loose||(u?c.loose=!0:this.rules.other.doubleBlankLine.test(e)&&(u=!0));let o=null,l;this.options.gfm&&(o=this.rules.other.listIsTask.exec(r))&&(l="[ ] "!==o[0],r=r.replace(this.rules.other.listReplaceTask,"")),c.items.push({type:"list_item",raw:e,task:!!o,checked:l,loose:!1,text:r,tokens:[]}),c.raw+=e}var r,i=c.items.at(-1);if(i){i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd(),c.raw=c.raw.trimEnd();for(let t=0;t<c.items.length;t++)this.lexer.state.top=!1,c.items[t].tokens=this.lexer.blockTokens(c.items[t].text,[]),c.loose||(r=0<(r=c.items[t].tokens.filter(t=>"space"===t.type)).length&&r.some(t=>this.rules.other.anyLine.test(t.raw)),c.loose=r);if(c.loose)for(let t=0;t<c.items.length;t++)c.items[t].loose=!0;return c}}}html(t){if(t=this.rules.block.html.exec(t))return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(t){var e,r,i;if(t=this.rules.block.def.exec(t))return e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:e,raw:t[0],href:r,title:i}}table(n){if((n=this.rules.block.table.exec(n))&&this.rules.other.tableDelimiter.test(n[2])){let e=BA(n[1]),t=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(` `,d=d.substring(b.length+1),i=x.slice(s)}c.loose||(u?c.loose=!0:this.rules.other.doubleBlankLine.test(e)&&(u=!0));let o=null,l;this.options.gfm&&(o=this.rules.other.listIsTask.exec(r))&&(l="[ ] "!==o[0],r=r.replace(this.rules.other.listReplaceTask,"")),c.items.push({type:"list_item",raw:e,task:!!o,checked:l,loose:!1,text:r,tokens:[]}),c.raw+=e}var r,i=c.items.at(-1);if(i){i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd(),c.raw=c.raw.trimEnd();for(let t=0;t<c.items.length;t++)this.lexer.state.top=!1,c.items[t].tokens=this.lexer.blockTokens(c.items[t].text,[]),c.loose||(r=0<(r=c.items[t].tokens.filter(t=>"space"===t.type)).length&&r.some(t=>this.rules.other.anyLine.test(t.raw)),c.loose=r);if(c.loose)for(let t=0;t<c.items.length;t++)c.items[t].loose=!0;return c}}}html(t){if(t=this.rules.block.html.exec(t))return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(t){var e,r,i;if(t=this.rules.block.def.exec(t))return e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:e,raw:t[0],href:r,title:i}}table(n){if((n=this.rules.block.table.exec(n))&&this.rules.other.tableDelimiter.test(n[2])){let e=BA(n[1]),t=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(e.length===t.length){for(var a of t)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let t=0;t<e.length;t++)i.header.push({text:e[t],tokens:this.lexer.inline(e[t]),header:!0,align:i.align[t]});for(var s of r)i.rows.push(BA(s,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}}lheading(t){if(t=this.rules.block.lheading.exec(t))return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(t){var e;if(t=this.rules.block.paragraph.exec(t))return e=t[1].charAt(t[1].length-1)===` `):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(e.length===t.length){for(var a of t)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let t=0;t<e.length;t++)i.header.push({text:e[t],tokens:this.lexer.inline(e[t]),header:!0,align:i.align[t]});for(var s of r)i.rows.push(BA(s,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}}lheading(t){if(t=this.rules.block.lheading.exec(t))return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(t){var e;if(t=this.rules.block.paragraph.exec(t))return e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1],{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}text(t){if(t=this.rules.block.text.exec(t))return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(t){if(t=this.rules.inline.escape.exec(t))return{type:"escape",raw:t[0],text:t[1]}}tag(t){if(t=this.rules.inline.tag.exec(t))return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(r){if(r=this.rules.inline.link.exec(r)){var i,n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var a=FA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else-1<(a=$A(r[2],"()"))&&(i=(0===r[0].indexOf("!")?5:4)+r[1].length+a,r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,i).trim(),r[3]="");let t=r[2],e="";return this.options.pedantic?(a=this.rules.other.pedanticHrefTitle.exec(t))&&(t=a[1],e=a[3]):e=r[3]?r[3].slice(1,-1):"",t=t.trim(),zA(r,{href:(t=this.rules.other.startAngleBracket.test(t)?this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?t.slice(1):t.slice(1,-1):t)&&t.replace(this.rules.inline.anyPunctuation,"$1"),title:e&&e.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,e){var r;if(r=(r=this.rules.inline.reflink.exec(t))||this.rules.inline.nolink.exec(t))return(t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()])?zA(r,t,r[0],this.lexer,this.rules):{type:"text",raw:e=r[0].charAt(0),text:e}}emStrong(s,o,t=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||l[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!l[1]&&!l[2]||!t||this.rules.inline.punctuation.exec(t))){let t=[...l[0]].length-1,e,r,i=t,n=0,a="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,o=o.slice(-1*s.length+t);null!=(l=a.exec(o));){var c,h;if(e=l[1]||l[2]||l[3]||l[4]||l[5]||l[6])if(r=[...e].length,l[3]||l[4])i+=r;else if((l[5]||l[6])&&t%3&&!((t+r)%3))n+=r;else if(!(0<(i-=r)))return r=Math.min(r,r+i+n),c=[...l[0]][0].length,c=s.slice(0,t+l.index+c+r),Math.min(t,r)%2?(h=c.slice(1,-1),{type:"em",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}):(h=c.slice(2,-2),{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)})}}}codespan(i){if(i=this.rules.inline.code.exec(i)){let t=i[2].replace(this.rules.other.newLineCharGlobal," "),e=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return e&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:i[0],text:t}}}br(t){if(t=this.rules.inline.br.exec(t))return{type:"br",raw:t[0]}}del(t){if(t=this.rules.inline.del.exec(t))return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(r){if(r=this.rules.inline.autolink.exec(r)){let t,e;return e="@"===r[2]?"mailto:"+(t=r[1]):t=r[1],{type:"link",raw:r[0],text:t,href:e,tokens:[{type:"text",raw:t,text:t}]}}}url(t){var r,i;if(r=this.rules.inline.url.exec(t)){let t,e;if("@"===r[2])t=r[0],e="mailto:"+t;else{for(;i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"",i!==r[0];);t=r[0],e="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:t,href:e,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){var e;if(t=this.rules.inline.text.exec(t))return e=this.lexer.state.inRawBlock,{type:"text",raw:t[0],text:t[0],escaped:e}}},v9=class r{static{me(this,"_Lexer")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||qA,this.options.tokenizer=this.options.tokenizer||new y9,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0},t={other:YA,block:p9.normal,inline:g9.normal},this.options.pedantic?(t.block=p9.pedantic,t.inline=g9.pedantic):this.options.gfm&&(t.block=p9.gfm,this.options.breaks?t.inline=g9.breaks:t.inline=g9.gfm),this.tokenizer.rules=t}static get rules(){return{block:p9,inline:g9}}static lex(t,e){return new r(e).lex(t)}static lexInline(t,e){return new r(e).inlineTokens(t)}lex(t){t=t.replace(YA.carriageReturn,` `?t[1].slice(0,-1):t[1],{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}text(t){if(t=this.rules.block.text.exec(t))return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(t){if(t=this.rules.inline.escape.exec(t))return{type:"escape",raw:t[0],text:t[1]}}tag(t){if(t=this.rules.inline.tag.exec(t))return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(r){if(r=this.rules.inline.link.exec(r)){var i,n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var a=FA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else-1<(a=$A(r[2],"()"))&&(i=(0===r[0].indexOf("!")?5:4)+r[1].length+a,r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,i).trim(),r[3]="");let t=r[2],e="";return this.options.pedantic?(a=this.rules.other.pedanticHrefTitle.exec(t))&&(t=a[1],e=a[3]):e=r[3]?r[3].slice(1,-1):"",t=t.trim(),zA(r,{href:(t=this.rules.other.startAngleBracket.test(t)?this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?t.slice(1):t.slice(1,-1):t)&&t.replace(this.rules.inline.anyPunctuation,"$1"),title:e&&e.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,e){var r;if(r=(r=this.rules.inline.reflink.exec(t))||this.rules.inline.nolink.exec(t))return(t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()])?zA(r,t,r[0],this.lexer,this.rules):{type:"text",raw:e=r[0].charAt(0),text:e}}emStrong(s,o,t=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||l[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!l[1]&&!l[2]||!t||this.rules.inline.punctuation.exec(t))){let t=[...l[0]].length-1,e,r,i=t,n=0,a="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,o=o.slice(-1*s.length+t);null!=(l=a.exec(o));){var c,h;if(e=l[1]||l[2]||l[3]||l[4]||l[5]||l[6])if(r=[...e].length,l[3]||l[4])i+=r;else if((l[5]||l[6])&&t%3&&!((t+r)%3))n+=r;else if(!(0<(i-=r)))return r=Math.min(r,r+i+n),c=[...l[0]][0].length,c=s.slice(0,t+l.index+c+r),Math.min(t,r)%2?(h=c.slice(1,-1),{type:"em",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}):(h=c.slice(2,-2),{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)})}}}codespan(i){if(i=this.rules.inline.code.exec(i)){let t=i[2].replace(this.rules.other.newLineCharGlobal," "),e=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return e&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:i[0],text:t}}}br(t){if(t=this.rules.inline.br.exec(t))return{type:"br",raw:t[0]}}del(t){if(t=this.rules.inline.del.exec(t))return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(r){if(r=this.rules.inline.autolink.exec(r)){let t,e;return e="@"===r[2]?"mailto:"+(t=r[1]):t=r[1],{type:"link",raw:r[0],text:t,href:e,tokens:[{type:"text",raw:t,text:t}]}}}url(t){var r,i;if(r=this.rules.inline.url.exec(t)){let t,e;if("@"===r[2])t=r[0],e="mailto:"+t;else{for(;i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"",i!==r[0];);t=r[0],e="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:t,href:e,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){var e;if(t=this.rules.inline.text.exec(t))return e=this.lexer.state.inRawBlock,{type:"text",raw:t[0],text:t[0],escaped:e}}},v9=class r{static{me(this,"_Lexer")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||qA,this.options.tokenizer=this.options.tokenizer||new y9,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0},t={other:WA,block:p9.normal,inline:g9.normal},this.options.pedantic?(t.block=p9.pedantic,t.inline=g9.pedantic):this.options.gfm&&(t.block=p9.gfm,this.options.breaks?t.inline=g9.breaks:t.inline=g9.gfm),this.tokenizer.rules=t}static get rules(){return{block:p9,inline:g9}}static lex(t,e){return new r(e).lex(t)}static lexInline(t,e){return new r(e).inlineTokens(t)}lex(t){t=t.replace(WA.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){var e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],i=!1){for(this.options.pedantic&&(n=n.replace(YA.tabCharGlobal," ").replace(YA.spaceLine,""));n;){let e;if(!this.options.extensions?.block?.some(t=>!!(e=t.call({lexer:this},n,r))&&(n=n.substring(e.raw.length),r.push(e),!0)))if(e=this.tokenizer.space(n)){n=n.substring(e.raw.length);var t=r.at(-1);1===e.raw.length&&void 0!==t?t.raw+=` `),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){var e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],i=!1){for(this.options.pedantic&&(n=n.replace(WA.tabCharGlobal," ").replace(WA.spaceLine,""));n;){let e;if(!this.options.extensions?.block?.some(t=>!!(e=t.call({lexer:this},n,r))&&(n=n.substring(e.raw.length),r.push(e),!0)))if(e=this.tokenizer.space(n)){n=n.substring(e.raw.length);var t=r.at(-1);1===e.raw.length&&void 0!==t?t.raw+=`
`:r.push(e)}else if(e=this.tokenizer.code(n))n=n.substring(e.raw.length),"paragraph"===(t=r.at(-1))?.type||"text"===t?.type?(t.raw+=` `:r.push(e)}else if(e=this.tokenizer.code(n))n=n.substring(e.raw.length),"paragraph"===(t=r.at(-1))?.type||"text"===t?.type?(t.raw+=`
`+e.raw,t.text+=` `+e.raw,t.text+=`
`+e.text,this.inlineQueue.at(-1).src=t.text):r.push(e);else if(e=this.tokenizer.fences(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.heading(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.hr(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.blockquote(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.list(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.html(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.def(n)){n=n.substring(e.raw.length);var a=r.at(-1);"paragraph"===a?.type||"text"===a?.type?(a.raw+=` `+e.text,this.inlineQueue.at(-1).src=t.text):r.push(e);else if(e=this.tokenizer.fences(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.heading(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.hr(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.blockquote(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.list(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.html(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.def(n)){n=n.substring(e.raw.length);var a=r.at(-1);"paragraph"===a?.type||"text"===a?.type?(a.raw+=`
@@ -415,7 +415,7 @@ l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
`+e.raw,a.text+=` `+e.raw,a.text+=`
`+e.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(e),i=t.length!==n.length,n=n.substring(e.raw.length);else if(e=this.tokenizer.text(n)){n=n.substring(e.raw.length);var s=r.at(-1);"text"===s?.type?(s.raw+=` `+e.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(e),i=t.length!==n.length,n=n.substring(e.raw.length);else if(e=this.tokenizer.text(n)){n=n.substring(e.raw.length);var s=r.at(-1);"text"===s?.type?(s.raw+=`
`+e.raw,s.text+=` `+e.raw,s.text+=`
`+e.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(e)}else if(n){if(s="Infinite loop on byte: "+n.charCodeAt(0),this.options.silent){console.error(s);break}throw new Error(s)}}}return this.state.top=!0,r}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(n,r=[]){let t=n,e=null;if(this.tokens.links){var i=Object.keys(this.tokens.links);if(0<i.length)for(;null!=(e=this.tokenizer.rules.inline.reflinkSearch.exec(t));)i.includes(e[0].slice(e[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,e.index)+"["+"a".repeat(e[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(e=this.tokenizer.rules.inline.blockSkip.exec(t));)t=t.slice(0,e.index)+"["+"a".repeat(e[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(e=this.tokenizer.rules.inline.anyPunctuation.exec(t));)t=t.slice(0,e.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a=!1,s="";for(;n;){a||(s=""),a=!1;let e;if(!this.options.extensions?.inline?.some(t=>!!(e=t.call({lexer:this},n,r))&&(n=n.substring(e.raw.length),r.push(e),!0)))if(e=this.tokenizer.escape(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.tag(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.link(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(e.raw.length);var o=r.at(-1);"text"===e.type&&"text"===o?.type?(o.raw+=e.raw,o.text+=e.text):r.push(e)}else if(e=this.tokenizer.emStrong(n,t,s))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.codespan(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.br(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.del(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.autolink(n))n=n.substring(e.raw.length),r.push(e);else if(!this.state.inLink&&(e=this.tokenizer.url(n)))n=n.substring(e.raw.length),r.push(e);else{let t=n;if(this.options.extensions?.startInline){let e=1/0,r=n.slice(1),i;this.options.extensions.startInline.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&0<=i&&(e=Math.min(e,i))}),e<1/0&&0<=e&&(t=n.substring(0,e+1))}if(e=this.tokenizer.inlineText(t))n=n.substring(e.raw.length),"_"!==e.raw.slice(-1)&&(s=e.raw.slice(-1)),a=!0,"text"===(o=r.at(-1))?.type?(o.raw+=e.raw,o.text+=e.text):r.push(e);else if(n){var l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}}return r}},b9=class{static{me(this,"_Renderer")}options;parser;constructor(t){this.options=t||qA}space(t){return""}code({text:t,lang:e,escaped:r}){return e=(e||"").match(YA.notSpaceStart)?.[0],t=t.replace(YA.endingNewline,"")+` `+e.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(e)}else if(n){if(s="Infinite loop on byte: "+n.charCodeAt(0),this.options.silent){console.error(s);break}throw new Error(s)}}}return this.state.top=!0,r}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(n,r=[]){let t=n,e=null;if(this.tokens.links){var i=Object.keys(this.tokens.links);if(0<i.length)for(;null!=(e=this.tokenizer.rules.inline.reflinkSearch.exec(t));)i.includes(e[0].slice(e[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,e.index)+"["+"a".repeat(e[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(e=this.tokenizer.rules.inline.blockSkip.exec(t));)t=t.slice(0,e.index)+"["+"a".repeat(e[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(e=this.tokenizer.rules.inline.anyPunctuation.exec(t));)t=t.slice(0,e.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a=!1,s="";for(;n;){a||(s=""),a=!1;let e;if(!this.options.extensions?.inline?.some(t=>!!(e=t.call({lexer:this},n,r))&&(n=n.substring(e.raw.length),r.push(e),!0)))if(e=this.tokenizer.escape(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.tag(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.link(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(e.raw.length);var o=r.at(-1);"text"===e.type&&"text"===o?.type?(o.raw+=e.raw,o.text+=e.text):r.push(e)}else if(e=this.tokenizer.emStrong(n,t,s))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.codespan(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.br(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.del(n))n=n.substring(e.raw.length),r.push(e);else if(e=this.tokenizer.autolink(n))n=n.substring(e.raw.length),r.push(e);else if(!this.state.inLink&&(e=this.tokenizer.url(n)))n=n.substring(e.raw.length),r.push(e);else{let t=n;if(this.options.extensions?.startInline){let e=1/0,r=n.slice(1),i;this.options.extensions.startInline.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&0<=i&&(e=Math.min(e,i))}),e<1/0&&0<=e&&(t=n.substring(0,e+1))}if(e=this.tokenizer.inlineText(t))n=n.substring(e.raw.length),"_"!==e.raw.slice(-1)&&(s=e.raw.slice(-1)),a=!0,"text"===(o=r.at(-1))?.type?(o.raw+=e.raw,o.text+=e.text):r.push(e);else if(n){var l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}}return r}},x9=class{static{me(this,"_Renderer")}options;parser;constructor(t){this.options=t||qA}space(t){return""}code({text:t,lang:e,escaped:r}){return e=(e||"").match(WA.notSpaceStart)?.[0],t=t.replace(WA.endingNewline,"")+`
`,e?'<pre><code class="language-'+OA(e)+'">'+(r?t:OA(t,!0))+`</code></pre> `,e?'<pre><code class="language-'+OA(e)+'">'+(r?t:OA(t,!0))+`</code></pre>
`:"<pre><code>"+(r?t:OA(t,!0))+`</code></pre> `:"<pre><code>"+(r?t:OA(t,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote> `}blockquote({tokens:t}){return`<blockquote>
@@ -433,51 +433,51 @@ ${this.parser.parse(t)}</blockquote>
`}tablerow({text:t}){return`<tr> `}tablerow({text:t}){return`<tr>
${t}</tr> ${t}</tr>
`}tablecell(t){var e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}> `}tablecell(t){var e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${OA(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){var r=this.parser.parseInline(r),i=PA(t);if(null===i)return r;let n='<a href="'+(t=i)+'"';return e&&(n+=' title="'+OA(e)+'"'),n+=">"+r+"</a>"}image({href:t,title:e,text:r}){var i=PA(t);if(null===i)return OA(r);let n=`<img src="${t=i}" alt="${r}"`;return e&&(n+=` title="${OA(e)}"`),n+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:OA(t.text)}},x9=class{static{me(this,"_TextRenderer")}strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},w9=class i{static{me(this,"_Parser")}options;renderer;textRenderer;constructor(t){this.options=t||qA,this.options.renderer=this.options.renderer||new b9,this.renderer=this.options.renderer,this.renderer.options=this.options,(this.renderer.parser=this).textRenderer=new x9}static parse(t,e){return new i(e).parse(t)}static parseInline(t,e){return new i(e).parseInline(t)}parse(i,n=!0){let a="";for(let r=0;r<i.length;r++){var t=i[r];if(this.options.extensions?.renderers?.[t.type]){var e=t,s=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==s||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){a+=s||"";continue}}var o=t;switch(o.type){case"space":a+=this.renderer.space(o);continue;case"hr":a+=this.renderer.hr(o);continue;case"heading":a+=this.renderer.heading(o);continue;case"code":a+=this.renderer.code(o);continue;case"table":a+=this.renderer.table(o);continue;case"blockquote":a+=this.renderer.blockquote(o);continue;case"list":a+=this.renderer.list(o);continue;case"html":a+=this.renderer.html(o);continue;case"paragraph":a+=this.renderer.paragraph(o);continue;case"text":{let t=o,e=this.renderer.text(t);for(;r+1<i.length&&"text"===i[r+1].type;)t=i[++r],e+=` `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${OA(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){var r=this.parser.parseInline(r),i=PA(t);if(null===i)return r;let n='<a href="'+(t=i)+'"';return e&&(n+=' title="'+OA(e)+'"'),n+=">"+r+"</a>"}image({href:t,title:e,text:r}){var i=PA(t);if(null===i)return OA(r);let n=`<img src="${t=i}" alt="${r}"`;return e&&(n+=` title="${OA(e)}"`),n+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:OA(t.text)}},b9=class{static{me(this,"_TextRenderer")}strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},w9=class i{static{me(this,"_Parser")}options;renderer;textRenderer;constructor(t){this.options=t||qA,this.options.renderer=this.options.renderer||new x9,this.renderer=this.options.renderer,this.renderer.options=this.options,(this.renderer.parser=this).textRenderer=new b9}static parse(t,e){return new i(e).parse(t)}static parseInline(t,e){return new i(e).parseInline(t)}parse(i,n=!0){let a="";for(let r=0;r<i.length;r++){var t=i[r];if(this.options.extensions?.renderers?.[t.type]){var e=t,s=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==s||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){a+=s||"";continue}}var o=t;switch(o.type){case"space":a+=this.renderer.space(o);continue;case"hr":a+=this.renderer.hr(o);continue;case"heading":a+=this.renderer.heading(o);continue;case"code":a+=this.renderer.code(o);continue;case"table":a+=this.renderer.table(o);continue;case"blockquote":a+=this.renderer.blockquote(o);continue;case"list":a+=this.renderer.list(o);continue;case"html":a+=this.renderer.html(o);continue;case"paragraph":a+=this.renderer.paragraph(o);continue;case"text":{let t=o,e=this.renderer.text(t);for(;r+1<i.length&&"text"===i[r+1].type;)t=i[++r],e+=`
`+this.renderer.text(t);a+=n?this.renderer.paragraph({type:"paragraph",raw:e,text:e,tokens:[{type:"text",raw:e,text:e,escaped:!0}]}):e;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(e,r=this.renderer){let i="";for(let t=0;t<e.length;t++){var n=e[t];if(this.options.extensions?.renderers?.[n.type]){var a=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=a||"";continue}}var s=n;switch(s.type){case"escape":i+=r.text(s);break;case"html":i+=r.html(s);break;case"link":i+=r.link(s);break;case"image":i+=r.image(s);break;case"strong":i+=r.strong(s);break;case"em":i+=r.em(s);break;case"codespan":i+=r.codespan(s);break;case"br":i+=r.br(s);break;case"del":i+=r.del(s);break;case"text":i+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return i}},k9=class{static{me(this,"_Hooks")}options;block;constructor(t){this.options=t||qA}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?v9.lex:v9.lexInline}provideParser(){return this.block?w9.parse:w9.parseInline}},T9=class{static{me(this,"Marked")}defaults=MA();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=w9;Renderer=b9;TextRenderer=x9;Lexer=v9;Tokenizer=y9;Hooks=k9;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(var n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":var e,a,s=n;for(e of s.header)i=i.concat(this.walkTokens(e.tokens,r));for(a of s.rows)for(var o of a)i=i.concat(this.walkTokens(o.tokens,r));break;case"list":s=n,i=i.concat(this.walkTokens(s.items,r));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(t=>{t=e[t].flat(1/0),i=i.concat(this.walkTokens(t,r))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,r)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{var t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let r=n.renderers[i.name];r?n.renderers[i.name]=function(...t){var e=i.renderer.apply(this,t);return!1===e?r.apply(this,t):e}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");var t=n[i.level];t?t.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&("block"===i.level?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:"inline"===i.level&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),t.extensions=n),e.renderer){let n=this.defaults.renderer||new b9(this.defaults);for(var a in e.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(!["options","parser"].includes(a)){let t=a,r=e.renderer[t],i=n[t];n[t]=(...t)=>{var e=r.apply(n,t);return(!1===e?i.apply(n,t):e)||""}}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new y9(this.defaults);for(var s in e.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(!["options","rules","lexer"].includes(s)){let t=s,r=e.tokenizer[t],i=n[t];n[t]=(...t)=>{var e=r.apply(n,t);return!1===e?i.apply(n,t):e}}}t.tokenizer=n}if(e.hooks){let n=this.defaults.hooks||new k9;for(var o in e.hooks){if(!(o in n))throw new Error(`hook '${o}' does not exist`);if(!["options","block"].includes(o)){let t=o,r=e.hooks[t],i=n[t];k9.passThroughHooks.has(o)?n[t]=t=>this.defaults.async?Promise.resolve(r.call(n,t)).then(t=>i.call(n,t)):(t=r.call(n,t),i.call(n,t)):n[t]=(...t)=>{var e=r.apply(n,t);return!1===e?i.apply(n,t):e}}}t.hooks=n}if(e.walkTokens){let r=this.defaults.walkTokens,i=e.walkTokens;t.walkTokens=function(t){let e=[];return e.push(i.call(this,t)),e=r?e.concat(r.call(this,t)):e}}this.defaults={...this.defaults,...t}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return v9.lex(t,e??this.defaults)}parser(t,e){return w9.parse(t,e??this.defaults)}parseMarkdown(o){return me((r,t)=>{let e={...t},i={...this.defaults,...e},n=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===e.async)return n(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("u"<typeof r||null===r)return n(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string ex Line truncated `+this.renderer.text(t);a+=n?this.renderer.paragraph({type:"paragraph",raw:e,text:e,tokens:[{type:"text",raw:e,text:e,escaped:!0}]}):e;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(e,r=this.renderer){let i="";for(let t=0;t<e.length;t++){var n=e[t];if(this.options.extensions?.renderers?.[n.type]){var a=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=a||"";continue}}var s=n;switch(s.type){case"escape":i+=r.text(s);break;case"html":i+=r.html(s);break;case"link":i+=r.link(s);break;case"image":i+=r.image(s);break;case"strong":i+=r.strong(s);break;case"em":i+=r.em(s);break;case"codespan":i+=r.codespan(s);break;case"br":i+=r.br(s);break;case"del":i+=r.del(s);break;case"text":i+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return i}},k9=class{static{me(this,"_Hooks")}options;block;constructor(t){this.options=t||qA}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?v9.lex:v9.lexInline}provideParser(){return this.block?w9.parse:w9.parseInline}},T9=class{static{me(this,"Marked")}defaults=RA();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=w9;Renderer=x9;TextRenderer=b9;Lexer=v9;Tokenizer=y9;Hooks=k9;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(var n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":var e,a,s=n;for(e of s.header)i=i.concat(this.walkTokens(e.tokens,r));for(a of s.rows)for(var o of a)i=i.concat(this.walkTokens(o.tokens,r));break;case"list":s=n,i=i.concat(this.walkTokens(s.items,r));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(t=>{t=e[t].flat(1/0),i=i.concat(this.walkTokens(t,r))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,r)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{var t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let r=n.renderers[i.name];r?n.renderers[i.name]=function(...t){var e=i.renderer.apply(this,t);return!1===e?r.apply(this,t):e}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");var t=n[i.level];t?t.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&("block"===i.level?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:"inline"===i.level&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),t.extensions=n),e.renderer){let n=this.defaults.renderer||new x9(this.defaults);for(var a in e.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(!["options","parser"].includes(a)){let t=a,r=e.renderer[t],i=n[t];n[t]=(...t)=>{var e=r.apply(n,t);return(!1===e?i.apply(n,t):e)||""}}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new y9(this.defaults);for(var s in e.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(!["options","rules","lexer"].includes(s)){let t=s,r=e.tokenizer[t],i=n[t];n[t]=(...t)=>{var e=r.apply(n,t);return!1===e?i.apply(n,t):e}}}t.tokenizer=n}if(e.hooks){let n=this.defaults.hooks||new k9;for(var o in e.hooks){if(!(o in n))throw new Error(`hook '${o}' does not exist`);if(!["options","block"].includes(o)){let t=o,r=e.hooks[t],i=n[t];k9.passThroughHooks.has(o)?n[t]=t=>this.defaults.async?Promise.resolve(r.call(n,t)).then(t=>i.call(n,t)):(t=r.call(n,t),i.call(n,t)):n[t]=(...t)=>{var e=r.apply(n,t);return!1===e?i.apply(n,t):e}}}t.hooks=n}if(e.walkTokens){let r=this.defaults.walkTokens,i=e.walkTokens;t.walkTokens=function(t){let e=[];return e.push(i.call(this,t)),e=r?e.concat(r.call(this,t)):e}}this.defaults={...this.defaults,...t}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return v9.lex(t,e??this.defaults)}parser(t,e){return w9.parse(t,e??this.defaults)}parseMarkdown(o){return me((r,t)=>{let e={...t},i={...this.defaults,...e},n=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===e.async)return n(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("u"<typeof r||null===r)return n(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string ex Line truncated
Please report this to https://github.com/markedjs/marked.`,r)return e="<p>An error occurred:</p><pre>"+OA(t.message+"",!0)+"</pre>",i?Promise.resolve(e):e;if(i)return Promise.reject(t);throw t}}},E9=new T9,me(GA,"marked"),GA.options=GA.setOptions=function(t){return E9.setOptions(t),RA(GA.defaults=E9.defaults),GA},GA.getDefaults=MA,GA.defaults=qA,GA.use=function(...t){return E9.use(...t),RA(GA.defaults=E9.defaults),GA},GA.walkTokens=function(t,e){return E9.walkTokens(t,e)},GA.parseInline=E9.parseInline,GA.Parser=w9,GA.parser=w9.parse,GA.Renderer=b9,GA.TextRenderer=x9,GA.Lexer=v9,GA.lexer=v9.lex,GA.Tokenizer=y9,GA.Hooks=k9,GA.parse=GA,v9.lex});function C9(t,{markdownAutoWrap:e}){return t=jt(t.replace(/<br\/>/g,` Please report this to https://github.com/markedjs/marked.`,r)return e="<p>An error occurred:</p><pre>"+OA(t.message+"",!0)+"</pre>",i?Promise.resolve(e):e;if(i)return Promise.reject(t);throw t}}},E9=new T9,me(UA,"marked"),UA.options=UA.setOptions=function(t){return E9.setOptions(t),MA(UA.defaults=E9.defaults),UA},UA.getDefaults=RA,UA.defaults=qA,UA.use=function(...t){return E9.use(...t),MA(UA.defaults=E9.defaults),UA},UA.walkTokens=function(t,e){return E9.walkTokens(t,e)},UA.parseInline=E9.parseInline,UA.Parser=w9,UA.parser=w9.parse,UA.Renderer=x9,UA.TextRenderer=b9,UA.Lexer=v9,UA.lexer=v9.lex,UA.Tokenizer=y9,UA.Hooks=k9,UA.parse=UA,v9.lex});function _9(t,{markdownAutoWrap:e}){return t=jt(t.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,` `).replace(/\n{2,}/g,`
`)),!1===e?t.replace(/ /g,"&nbsp;"):t}function S9(t,e={}){let r=C9(t,e),i=GA.lexer(r),n=[[]],a=0;function s(e,r="normal"){"text"===e.type?e.text.split(` `)),!1===e?t.replace(/ /g,"&nbsp;"):t}function S9(t,e={}){let r=_9(t,e),i=UA.lexer(r),n=[[]],a=0;function s(e,r="normal"){"text"===e.type?e.text.split(`
`).forEach((t,e)=>{0!==e&&(a++,n.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&n[a].push({content:t,type:r})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{s(t,e.type)}):"html"===e.type&&n[a].push({content:e.text,type:"normal"})}return me(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type&&n[a].push({content:t.text,type:"normal"})}),n}function A9(t,{markdownAutoWrap:e}={}){function r(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(r).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(r).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(r).join("")}</p>`:"space"===t.type?"":"html"===t.type?""+t.text:"escape"===t.type?t.text:"Unsupported markdown: "+t.type}return t=GA.lexer(t),me(r,"output"),t.map(r).join("")}var L9=t(()=>{_9(),Fr(),me(C9,"preprocessMarkdown"),me(S9,"markdownToLines"),me(A9,"markdownToHTML")});function N9(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map(t=>t.segment):[...t]}function I9(t,e){return M9(t,[],N9(e.content),e.type)}function M9(t,e,r,i){var n,a,s;return 0===r.length?[{content:e.join(""),type:i},{content:"",type:i}]:([n,...a]=r,t([{content:(s=[...e,n]).join(""),type:i}])?M9(t,s,a,i):(0===e.length&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}]))}function R9(t,e){if(t.some(({content:t})=>t.includes(` `).forEach((t,e)=>{0!==e&&(a++,n.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&n[a].push({content:t,type:r})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{s(t,e.type)}):"html"===e.type&&n[a].push({content:e.text,type:"normal"})}return me(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type&&n[a].push({content:t.text,type:"normal"})}),n}function A9(t,{markdownAutoWrap:e}={}){function r(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(r).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(r).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(r).join("")}</p>`:"space"===t.type?"":"html"===t.type?""+t.text:"escape"===t.type?t.text:"Unsupported markdown: "+t.type}return t=UA.lexer(t),me(r,"output"),t.map(r).join("")}var L9=t(()=>{C9(),Fr(),me(_9,"preprocessMarkdown"),me(S9,"markdownToLines"),me(A9,"markdownToHTML")});function N9(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map(t=>t.segment):[...t]}function I9(t,e){return R9(t,[],N9(e.content),e.type)}function R9(t,e,r,i){var n,a,s;return 0===r.length?[{content:e.join(""),type:i},{content:"",type:i}]:([n,...a]=r,t([{content:(s=[...e,n]).join(""),type:i}])?R9(t,s,a,i):(0===e.length&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}]))}function M9(t,e){if(t.some(({content:t})=>t.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return D9(t,e)}function D9(t,e,r=[],i=[]){if(0===t.length)return 0<i.length&&r.push(i),0<r.length?r:[];let n="";" "===t[0].content&&(n=" ",t.shift());var a=t.shift()??{content:" ",type:"normal"},s=[...i];return""!==n&&s.push({content:n,type:"normal"}),s.push(a),e(s)?D9(t,e,r,s):(0<i.length?(r.push(i),t.unshift(a)):a.content&&([s,i]=I9(e,a),r.push([s]),i.content)&&t.unshift(i),D9(t,e,r))}var O9=t(()=>{me(N9,"splitTextToChars"),me(I9,"splitWordToFitWidth"),me(M9,"splitWordToFitWidthRecursion"),me(R9,"splitLineToFitWidth"),me(D9,"splitLineToFitWidthRecursion")});function P9(t,e){e&&t.attr("style",e)}async function B9(t,e,r,i,n=!1){(t=t.append("foreignObject")).attr("width",10*r+"px"),t.attr("height",10*r+"px");let a=t.append("xhtml:div"),s=e.label;e.label&&Gc(e.label)&&(s=await jc(e.label.replace(L.lineBreakRegex,` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return D9(t,e)}function D9(t,e,r=[],i=[]){if(0===t.length)return 0<i.length&&r.push(i),0<r.length?r:[];let n="";" "===t[0].content&&(n=" ",t.shift());var a=t.shift()??{content:" ",type:"normal"},s=[...i];return""!==n&&s.push({content:n,type:"normal"}),s.push(a),e(s)?D9(t,e,r,s):(0<i.length?(r.push(i),t.unshift(a)):a.content&&([s,i]=I9(e,a),r.push([s]),i.content)&&t.unshift(i),D9(t,e,r))}var O9=t(()=>{me(N9,"splitTextToChars"),me(I9,"splitWordToFitWidth"),me(R9,"splitWordToFitWidthRecursion"),me(M9,"splitLineToFitWidth"),me(D9,"splitLineToFitWidthRecursion")});function P9(t,e){e&&t.attr("style",e)}async function B9(t,e,r,i,n=!1){(t=t.append("foreignObject")).attr("width",10*r+"px"),t.attr("height",10*r+"px");let a=t.append("xhtml:div"),s=e.label;e.label&&Uc(e.label)&&(s=await jc(e.label.replace(L.lineBreakRegex,`
`),D()));var o=e.isNode?"nodeLabel":"edgeLabel",l=a.append("span");return l.html(s),P9(l,e.labelStyle),l.attr("class",o+" "+i),P9(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",r+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&a.attr("class","labelBkg"),(l=a.node().getBoundingClientRect()).width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),l=a.node().getBoundingClientRect()),t.node()}function F9(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function $9(t,e,r){return G9(e=F9(t=t.append("text"),1,e),r),r=e.node().getComputedTextLength(),t.remove(),r}function z9(t,e,r){return G9(e=F9(t=t.append("text"),1,e),[{content:r,type:"normal"}]),(r=e.node()?.getBoundingClientRect())&&t.remove(),r}function U9(e,t,r,i=!1){let n=t.append("g"),a=n.insert("rect").attr("class","background").attr("style","stroke: none"),s=n.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=me(t=>$9(n,1.1,t)<=e,"checkWidth");for(c of h(l)?[l]:R9(l,h))G9(F9(s,o,1.1),c),o++}return(i?(t=s.node().getBBox(),a.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),n):s).node()}function G9(i,t){i.text(""),t.forEach((t,e)=>{var r=i.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===e?r.text(t.content):r.text(" "+t.content)})}function q9(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`)}var j9,Y9=t(()=>{fu(),Jc(),Z3(),e(),L9(),KE(),O9(),me(P9,"applyStyle"),me(B9,"addHtmlSpan"),me(F9,"createTspan"),me($9,"computeWidthOfText"),me(z9,"computeDimensionOfText"),me(U9,"createFormattedText"),me(G9,"updateTextContentAndStyles"),me(q9,"replaceIconSubstring"),j9=me(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(R.debug("XYZ createText",e,r,i,n,a,s,"addSvgBackground: ",l),a?(i=A9(e,c),a=q9(VE(i)),i=e.replace(/\\\\/g,"\\"),B9(t,{isNode:s,label:Gc(e)?i:a,labelStyle:r.replace("fill:","color:")},o,n,l)):(i=U9(o,t,S9(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!e&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),j(i).attr("style",a)):(n=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),j(i).select("rect").attr("style",n.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),j(i).select("text").attr("style",o)),i)),"createText")});function W9(t){return(t=t.map((t,e)=>(0===e?"M":"L")+t.x+","+t.y)).push("Z"),t.join(" ")}function H9(e,t,r,i,n,a){var s=[],o=r-e,l=2*Math.PI/(o/a),c=t+(i-t)/2;for(let t=0;t<=50;t++){var h=e+t/50*o,u=c+n*Math.sin(l*(h-e));s.push({x:h,y:u})}return s}function V9(e,r,i,n,t,a){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}var X9,K9,Z9,Q9,n=t(()=>{Y9(),fu(),Z3(),Ci(),Jc(),KE(),X9=me(async(t,e,r)=>{let i,n=e.useHtmlLabels||Rc(D()?.htmlLabels),a=(i=r||"node default",t.insert("g").attr("class",i).attr("id",e.domId||e.id)),s=a.insert("g").attr("class","label").attr("style",xE(e.labelStyle)),o,l=(o=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0],await j9(s,Cc(VE(o),D()),{useHtmlLabels:n,width:e.width||D().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img})),c=l.getBBox(),h=(e?.padding??0)/2;if(n){var r=l.children[0],t=j(l),u=r.getElementsByTagName("img");if(u){let i=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(r=>new Promise(e=>{function t(){var t;r.style.display="flex",r.style.flexDirection="column",i?(t=(D().fontSize?D():window.getComputedStyle(document.body)).fontSize,[t=mr.fontSize]=YE(t),r.style.minWidth=t=5*t+"px",r.style.maxWidth=t):r.style.width="100%",e(r)}me(t,"setupImage"),setTimeout(()=>{r.complete&&t()}),r.addEventListener("error",t),r.addEventListener("load",t)})))}c=r.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}return n?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:h,label:s}},"labelHelper"),K9=me(async(t,e,r)=>{let i=r.useHtmlLabels||Rc(D()?.flowchart?.htmlLabels),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await j9(n,Cc(VE(e),D()),{useHtmlLabels:iLine truncated `),D()));var o=e.isNode?"nodeLabel":"edgeLabel",l=a.append("span");return l.html(s),P9(l,e.labelStyle),l.attr("class",o+" "+i),P9(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",r+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&a.attr("class","labelBkg"),(l=a.node().getBoundingClientRect()).width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),l=a.node().getBoundingClientRect()),t.node()}function F9(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function $9(t,e,r){return U9(e=F9(t=t.append("text"),1,e),r),r=e.node().getComputedTextLength(),t.remove(),r}function z9(t,e,r){return U9(e=F9(t=t.append("text"),1,e),[{content:r,type:"normal"}]),(r=e.node()?.getBoundingClientRect())&&t.remove(),r}function G9(e,t,r,i=!1){let n=t.append("g"),a=n.insert("rect").attr("class","background").attr("style","stroke: none"),s=n.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=me(t=>$9(n,1.1,t)<=e,"checkWidth");for(c of h(l)?[l]:M9(l,h))U9(F9(s,o,1.1),c),o++}return(i?(t=s.node().getBBox(),a.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),n):s).node()}function U9(i,t){i.text(""),t.forEach((t,e)=>{var r=i.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===e?r.text(t.content):r.text(" "+t.content)})}function q9(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`)}var j9,W9=t(()=>{fu(),Jc(),Z3(),e(),L9(),KE(),O9(),me(P9,"applyStyle"),me(B9,"addHtmlSpan"),me(F9,"createTspan"),me($9,"computeWidthOfText"),me(z9,"computeDimensionOfText"),me(G9,"createFormattedText"),me(U9,"updateTextContentAndStyles"),me(q9,"replaceIconSubstring"),j9=me(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(M.debug("XYZ createText",e,r,i,n,a,s,"addSvgBackground: ",l),a?(i=A9(e,c),a=q9(VE(i)),i=e.replace(/\\\\/g,"\\"),B9(t,{isNode:s,label:Uc(e)?i:a,labelStyle:r.replace("fill:","color:")},o,n,l)):(i=G9(o,t,S9(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!e&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),j(i).attr("style",a)):(n=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),j(i).select("rect").attr("style",n.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),j(i).select("text").attr("style",o)),i)),"createText")});function Y9(t){return(t=t.map((t,e)=>(0===e?"M":"L")+t.x+","+t.y)).push("Z"),t.join(" ")}function H9(e,t,r,i,n,a){var s=[],o=r-e,l=2*Math.PI/(o/a),c=t+(i-t)/2;for(let t=0;t<=50;t++){var h=e+t/50*o,u=c+n*Math.sin(l*(h-e));s.push({x:h,y:u})}return s}function V9(e,r,i,n,t,a){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}var X9,K9,Z9,Q9,n=t(()=>{W9(),fu(),Z3(),_i(),Jc(),KE(),X9=me(async(t,e,r)=>{let i,n=e.useHtmlLabels||Mc(D()?.htmlLabels),a=(i=r||"node default",t.insert("g").attr("class",i).attr("id",e.domId||e.id)),s=a.insert("g").attr("class","label").attr("style",bE(e.labelStyle)),o,l=(o=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0],await j9(s,_c(VE(o),D()),{useHtmlLabels:n,width:e.width||D().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img})),c=l.getBBox(),h=(e?.padding??0)/2;if(n){var r=l.children[0],t=j(l),u=r.getElementsByTagName("img");if(u){let i=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(r=>new Promise(e=>{function t(){var t;r.style.display="flex",r.style.flexDirection="column",i?(t=(D().fontSize?D():window.getComputedStyle(document.body)).fontSize,[t=mr.fontSize]=WE(t),r.style.minWidth=t=5*t+"px",r.style.maxWidth=t):r.style.width="100%",e(r)}me(t,"setupImage"),setTimeout(()=>{r.complete&&t()}),r.addEventListener("error",t),r.addEventListener("load",t)})))}c=r.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}return n?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:h,label:s}},"labelHelper"),K9=me(async(t,e,r)=>{let i=r.useHtmlLabels||Mc(D()?.flowchart?.htmlLabels),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await j9(n,_c(VE(e),D()),{useHtmlLabels:iLine truncated
M ${t/2*e},${t/2*r} L ${-t/2*e},`+-t/2*r}function HN(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",Q9(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),s=e.cssStyles,o=IN.svg(n),l=wL(e,{}),c=("handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid"),o.circle(0,0,2*a,l)),h=WN(a),u=o.path(h,l),d=n.insert(()=>c,":first-child");return d.insert(()=>u),s&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",i),Z9(e,d),e.intersect=function(t){return R.info("crossedCircle intersect",e,{radius:a,point:t}),Y.circle(e,a,t)},n}var VN=t(()=>{e(),n(),_L(),MN(),EL(),me(WN,"createLine"),me(HN,"crossedCircle")});function XN(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}async function KN(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...XN(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...XN(o/2+2*c,-c,c,20,-180,-270),...XN(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...XN(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...XN(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...XN(o/2+.1*o,-c,c,20,-180,-270),...XN(o/2+.1*o,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...XN(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],p=IN.svg(n),g=wL(e,{fill:"none"}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),W9(u).replace("Z","")),m=p.path(f,g),y=W9(d),v=p.path(y,{...g}),b=n.insert("g",":first-child");return b.insert(()=>v,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",h),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Z9(e,b),e.intersect=function(t){return Y.polygon(e,d,t)},n}var ZN=t(()=>{n(),EL(),_L(),MN(),me(XN,"generateCirclePoints"),me(KN,"curlyBraceLeft")});function QN(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:h,y:c})}return s}async function JN(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...QN(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...QN(o/2+2*c,-c,c,20,-180,-270),...QN(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...QN(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...QN(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...QN(o/2+2*c,-c,c,20,-180,-270),...QN(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...QN(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],p=IN.svg(n),g=wL(e,{fill:"none"}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),W9(u).replace("Z","")),m=p.path(f,g),y=W9(d),v=p.path(y,{...g}),b=n.insert("g",":first-child");return b.insert(()=>v,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",h),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Z9(e,b),e.intersect=function(t){return Y.polygon(e,d,t)},n}var tI=t(()=>{n(),EL(),_L(),MN(),me(QN,"generateCirclePoints"),me(JN,"curlyBraceRight")});function eI(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}async function rI(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...eI(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...eI(o/2+2*c,-c,c,20,-180,-270),...eI(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...eI(o/2,l/2,c,20,0,90)],d=[...eI(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...eI(-o/2-c/2,-c,c,20,0,90),...eI(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...eI(-o/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...eI(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...eI(o/2+2*c,-c,c,20,-180,-270),...eI(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...eI(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...eI(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...eI(-o/2-c/2,-c,c,20,0,90),...eI(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...eI(-o/2+c+c/2,l/2,c,30,-180,-270)],g=IN.svg(n),f=wL(e,{fill:"none"}),m=("handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid"),W9(u).replace("Z","")),y=g.path(m,f),v=W9(d).replace("Z Line truncated M ${t/2*e},${t/2*r} L ${-t/2*e},`+-t/2*r}function VN(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",Q9(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),s=e.cssStyles,o=RN.svg(n),l=kL(e,{}),c=("handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid"),o.circle(0,0,2*a,l)),h=HN(a),u=o.path(h,l),d=n.insert(()=>c,":first-child");return d.insert(()=>u),s&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",i),Z9(e,d),e.intersect=function(t){return M.info("crossedCircle intersect",e,{radius:a,point:t}),mL.circle(e,a,t)},n}var XN=t(()=>{e(),n(),_L(),MN(),CL(),me(HN,"createLine"),me(VN,"crossedCircle")});function KN(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}async function ZN(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...KN(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...KN(o/2+2*c,-c,c,20,-180,-270),...KN(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...KN(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...KN(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...KN(o/2+.1*o,-c,c,20,-180,-270),...KN(o/2+.1*o,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...KN(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],p=RN.svg(n),g=kL(e,{fill:"none"}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),Y9(u).replace("Z","")),m=p.path(f,g),y=Y9(d),v=p.path(y,{...g}),x=n.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",h),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Z9(e,x),e.intersect=function(t){return mL.polygon(e,d,t)},n}var QN=t(()=>{n(),CL(),_L(),MN(),me(KN,"generateCirclePoints"),me(ZN,"curlyBraceLeft")});function JN(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:h,y:c})}return s}async function tI(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...JN(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...JN(o/2+2*c,-c,c,20,-180,-270),...JN(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...JN(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...JN(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...JN(o/2+2*c,-c,c,20,-180,-270),...JN(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...JN(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],p=RN.svg(n),g=kL(e,{fill:"none"}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),Y9(u).replace("Z","")),m=p.path(f,g),y=Y9(d),v=p.path(y,{...g}),x=n.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",h),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Z9(e,x),e.intersect=function(t){return mL.polygon(e,d,t)},n}var eI=t(()=>{n(),CL(),_L(),MN(),me(JN,"generateCirclePoints"),me(tI,"curlyBraceRight")});function rI(e,r,i,n=100,t=0,a=180){var s=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(n-1);for(let t=0;t<n;t++){var c=o+t*l,h=e+i*Math.cos(c),c=r+i*Math.sin(c);s.push({x:-h,y:-c})}return s}async function iI(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,.1*l),h=e.cssStyles,u=[...rI(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...rI(o/2+2*c,-c,c,20,-180,-270),...rI(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...rI(o/2,l/2,c,20,0,90)],d=[...rI(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...rI(-o/2-c/2,-c,c,20,0,90),...rI(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...rI(-o/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...rI(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...rI(o/2+2*c,-c,c,20,-180,-270),...rI(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...rI(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...rI(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...rI(-o/2-c/2,-c,c,20,0,90),...rI(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...rI(-o/2+c+c/2,l/2,c,30,-180,-270)],g=RN.svg(n),f=kL(e,{fill:"none"}),m=("handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid"),Y9(u).replace("Z","")),y=g.path(m,f),v=Y9(d).replace Line truncated
point:`,t,` point:`,t,`
node: node:
`,n,` `,n,`
res:`,Y.polygon(n,c,t)),Y.polygon(n,c,t)},a}var dM,pM=t(()=>{e(),n(),EL(),_L(),MN(),$N(),dM=me((t,e,r)=>[`M${t+r/2},`+e,`L${t+r},`+(e-r/2),`L${t+r/2},`+(e-r),`L${t},`+(e-r/2),"Z"].join(" "),"createDecisionBoxPathD"),me(uM,"question")});async function gM(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),c=-o/2,h=-l/2,u=h/2,d=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],p=e.cssStyles,g=IN.svg(n),f=wL(e,{}),m=("handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid"),W9(d)),y=g.path(m,f),v=n.insert(()=>y,":first-child");return v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-u/2},0)`),s.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),Z9(e,v),e.intersect=function(t){return Y.polygon(e,d,t)},n}var fM=t(()=>{n(),EL(),_L(),MN(),me(gM,"rect_left_inv_arrow")});function mM(t,e){e&&t.attr("style",e)}async function yM(t){let e=j(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=t.label;return t.label&&Gc(t.label)&&(i=await jc(t.label.replace(L.lineBreakRegex,` res:`,mL.polygon(n,c,t)),mL.polygon(n,c,t)},a}var pR,gR=t(()=>{e(),n(),CL(),_L(),MN(),zN(),pR=me((t,e,r)=>[`M${t+r/2},`+e,`L${t+r},`+(e-r/2),`L${t+r/2},`+(e-r),`L${t},`+(e-r/2),"Z"].join(" "),"createDecisionBoxPathD"),me(dR,"question")});async function fR(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),c=-o/2,h=-l/2,u=h/2,d=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],p=e.cssStyles,g=RN.svg(n),f=kL(e,{}),m=("handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid"),Y9(d)),y=g.path(m,f),v=n.insert(()=>y,":first-child");return v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-u/2},0)`),s.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),Z9(e,v),e.intersect=function(t){return mL.polygon(e,d,t)},n}var mR=t(()=>{n(),CL(),_L(),MN(),me(fR,"rect_left_inv_arrow")});function yR(t,e){e&&t.attr("style",e)}async function vR(t){let e=j(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=t.label;return t.label&&Uc(t.label)&&(i=await jc(t.label.replace(L.lineBreakRegex,`
`),D())),r.html('<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),mM(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var vM,bM,xM=t(()=>{Z3(),e(),fu(),Jc(),KE(),me(mM,"applyStyle"),me(yM,"addHtmlLabel"),vM=me(async(t,e,r,i)=>{let n=t||"";if("object"==typeof n&&(n=n[0]),Rc(D().flowchart.htmlLabels))return n=n.replace(/\\n|\n/g,"<br />"),R.info("vertexText"+n),yM({isNode:i,label:VE(n).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")});var a,s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));for(a of"string"==typeof n?n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?n:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),r?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=a.trim(),s.appendChild(o)}return s},"createLabel"),bM=vM});async function wM(n,a){var{labelStyles:t,nodeStyles:e}=xL(a);a.labelStyle=t;let r,s=(r=a.cssClasses?"node "+a.cssClasses:"node default",n.insert("g").attr("class",r).attr("id",a.domId||a.id)),i=s.insert("g"),o=s.insert("g").attr("class","label").attr("style",e),l=a.description,c=a.label,h=o.node().appendChild(await bM(c,a.labelStyle,!0,!0)),u={width:0,height:0};Rc(D()?.flowchart?.htmlLabels)&&(t=h.children[0],n=j(h),u=t.getBoundingClientRect(),n.attr("width",u.width),n.attr("height",u.height)),R.info("Text 2",l);var t=l||[],n=h.getBBox(),d=(t=o.node().appendChild(await bM(t.join?t.join("<br/>"):t,a.labelStyle,!0,!0))).children[0],p=j(t),d=(u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height),(a.padding||0)/2);j(t).attr("transform","translate( "+(u.width>n.width?0:(n.width-u.width)/2)+", "+(n.height+d+5)+")"),j(h).attr("transform","translate( "+(u.width<n.width?0:-(n.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-d+3)+")");let g=u.width+(a.padding||0),f=u.height+(a.padding||0),m=-u.width/2-d,y=-u.height/2-d,v,b;if("handDrawn"===a.look){let t=IN.svg(s),e=wL(a,{}),r=t.path(II(m,y,g,f,a.rx||0),e),i=t.line(-u.width/2-d,-u.height/2-d+n.height+d,u.width/2+d,-u.height/2-d+n.height+d,e);b=s.insert(()=>(R.debug("Rough node insert CXC",r),i),":first-child"),v=s.insert(()=>(R.debug("Rough node insert CXC",r),r),":first-child")}else v=i.insert("rect",":first-child"),b=i.insert("line"),v.attr("class","outer title-state").attr("style",e).attr("x",-u.width/2-d).attr("y",-u.height/2-d).attr("width",u.width+(a.padding||0)).attr("height",u.height+(a.padding||0)),b.attr("class","divider").attr("x1",-u.width/2-d).attr("x2",u.width/2+d).attr("y1",-u.height/2-d+n.height+d).attr("y2",-u.height/2-d+n.height+d);return Z9(a,v),a.intersect=function(t){return Y.rect(a,t)},s}var kM=t(()=>{Z3(),Jc(),n(),xM(),EL(),_L(),MN(),fu(),RI(),e(),me(wM,"rectWithTitle")});async function TM(t,e){return GI(t,e,{rx:5,ry:5,classes:"",labelPaddingX:+(e?.padding||0),labelPaddingY:+(e?.padding||0)})}var EM=t(()=>{qI(),me(TM,"roundedRect")});async function _M(t,e){var{labelStyles:r,nodeStyles:i}=xL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=e?.padding??0,s=Math.max(t.width+2*(e.padding??0),e?.width??0),o=Math.max(t.height+2*(e.padding??0),e?.height??0),l=-t.width/2-a,a=-t.height/2-a,c=e.cssStyles,h=IN.svg(r),u=wL(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:l,y:a},{x:l+s+8,y:a},{x:l+s+8,y:a+o},{x:l-8,y:a+o},{x:l-8,y:a},{x:l,y:a},{x:l,y:a+o}],p=h.polygon(d.map(t=>[t.x,t.y]),u),g=r.insert(()=>p,":first-child");return g.attr("class","basic label-container").attr("style",xE(c)),i&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),c&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),n.attr("transform",`translate(${-s/2+4+(e.padding??0)-(t.x-(t.left??0))},${-o/2+(e.padding??0)-(t.y-(t.top??0))})`),Z9(e,g),e.intersect=function(t){return Y.rect(e,t)},r}var CM=t(()=>{n(),EL(),_L(),MN(),KE(),me(_M,"shadedProcess")});async function SM(t,e){var{labelStyles:r,nodeStyles:i}=xL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=Math.max(t.width+2*(e.padding??0),e?.width??0),s=Math.max(t.height+2*(e.padding??0),e?.height??0),o=-a/2,l=-s/2,c=e.cssStyles,h=IN.svg(r),u=wL(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:o,y:l},{x:o,y:l+s},{x:o+a,y:l+s},{x:o+a,y:l-s/2}],p=W9(d),g=h.path(p,u),f=r.insert(()=>g,":first-child");return f.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",c),i&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(0, ${s/4})`),n.attr("transform",`t Line truncated `),D())),r.html('<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),yR(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var xR,bR,wR=t(()=>{Z3(),e(),fu(),Jc(),KE(),me(yR,"applyStyle"),me(vR,"addHtmlLabel"),xR=me(async(t,e,r,i)=>{let n=t||"";if("object"==typeof n&&(n=n[0]),Mc(D().flowchart.htmlLabels))return n=n.replace(/\\n|\n/g,"<br />"),M.info("vertexText"+n),vR({isNode:i,label:VE(n).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")});var a,s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));for(a of"string"==typeof n?n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?n:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),r?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=a.trim(),s.appendChild(o)}return s},"createLabel"),bR=xR});async function kR(n,a){var{labelStyles:t,nodeStyles:e}=wL(a);a.labelStyle=t;let r,s=(r=a.cssClasses?"node "+a.cssClasses:"node default",n.insert("g").attr("class",r).attr("id",a.domId||a.id)),i=s.insert("g"),o=s.insert("g").attr("class","label").attr("style",e),l=a.description,c=a.label,h=o.node().appendChild(await bR(c,a.labelStyle,!0,!0)),u={width:0,height:0};Mc(D()?.flowchart?.htmlLabels)&&(t=h.children[0],n=j(h),u=t.getBoundingClientRect(),n.attr("width",u.width),n.attr("height",u.height)),M.info("Text 2",l);var t=l||[],n=h.getBBox(),d=(t=o.node().appendChild(await bR(t.join?t.join("<br/>"):t,a.labelStyle,!0,!0))).children[0],p=j(t),d=(u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height),(a.padding||0)/2);j(t).attr("transform","translate( "+(u.width>n.width?0:(n.width-u.width)/2)+", "+(n.height+d+5)+")"),j(h).attr("transform","translate( "+(u.width<n.width?0:-(n.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-d+3)+")");let g=u.width+(a.padding||0),f=u.height+(a.padding||0),m=-u.width/2-d,y=-u.height/2-d,v,x;if("handDrawn"===a.look){let t=RN.svg(s),e=kL(a,{}),r=t.path(RI(m,y,g,f,a.rx||0),e),i=t.line(-u.width/2-d,-u.height/2-d+n.height+d,u.width/2+d,-u.height/2-d+n.height+d,e);x=s.insert(()=>(M.debug("Rough node insert CXC",r),i),":first-child"),v=s.insert(()=>(M.debug("Rough node insert CXC",r),r),":first-child")}else v=i.insert("rect",":first-child"),x=i.insert("line"),v.attr("class","outer title-state").attr("style",e).attr("x",-u.width/2-d).attr("y",-u.height/2-d).attr("width",u.width+(a.padding||0)).attr("height",u.height+(a.padding||0)),x.attr("class","divider").attr("x1",-u.width/2-d).attr("x2",u.width/2+d).attr("y1",-u.height/2-d+n.height+d).attr("y2",-u.height/2-d+n.height+d);return Z9(a,v),a.intersect=function(t){return mL.rect(a,t)},s}var TR=t(()=>{Z3(),Jc(),n(),wR(),CL(),_L(),MN(),fu(),DI(),e(),me(kR,"rectWithTitle")});async function ER(t,e){return qI(t,e,{rx:5,ry:5,classes:"",labelPaddingX:+(e?.padding||0),labelPaddingY:+(e?.padding||0)})}var CR=t(()=>{jI(),me(ER,"roundedRect")});async function _R(t,e){var{labelStyles:r,nodeStyles:i}=wL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=e?.padding??0,s=Math.max(t.width+2*(e.padding??0),e?.width??0),o=Math.max(t.height+2*(e.padding??0),e?.height??0),l=-t.width/2-a,a=-t.height/2-a,c=e.cssStyles,h=RN.svg(r),u=kL(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:l,y:a},{x:l+s+8,y:a},{x:l+s+8,y:a+o},{x:l-8,y:a+o},{x:l-8,y:a},{x:l,y:a},{x:l,y:a+o}],p=h.polygon(d.map(t=>[t.x,t.y]),u),g=r.insert(()=>p,":first-child");return g.attr("class","basic label-container").attr("style",bE(c)),i&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),c&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),n.attr("transform",`translate(${-s/2+4+(e.padding??0)-(t.x-(t.left??0))},${-o/2+(e.padding??0)-(t.y-(t.top??0))})`),Z9(e,g),e.intersect=function(t){return mL.rect(e,t)},r}var SR=t(()=>{n(),CL(),_L(),MN(),KE(),me(_R,"shadedProcess")});async function AR(t,e){var{labelStyles:r,nodeStyles:i}=wL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=Math.max(t.width+2*(e.padding??0),e?.width??0),s=Math.max(t.height+2*(e.padding??0),e?.height??0),o=-a/2,l=-s/2,c=e.cssStyles,h=RN.svg(r),u=kL(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let d=[{x:o,y:l},{x:o,y:l+s},{x:o+a,y:l+s},{x:o+a,y:l-s/2}],p=Y9(d),g=h.path(p,u),f=r.insert(()=>g,":first-child");return f.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",c),i&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(0, ${s/4})`),n.attr("transform", Line truncated
a${n},${a} 0,0,1 0,${-i} a${n},${a} 0,0,1 0,${-i}
l${r},0 l${r},0
a${n},${a} 0,0,1 0,${i} a${n},${a} 0,0,1 0,${i}
M${r},${-i} M${r},${-i}
a${n},${a} 0,0,0 0,${i} a${n},${a} 0,0,0 0,${i}
l${-r},0`,"createCylinderPathD"),XM=me((t,e,r,i,n,a)=>[`M${t},`+e,`M${t+r},`+e,`a${n},${a} 0,0,0 0,`+-i,`l${-r},0`,`a${n},${a} 0,0,0 0,`+i,`l${r},0`].join(" "),"createOuterCylinderPathD"),KM=me((t,e,r,i,n,a)=>[`M${t+r/2},`+-i/2,`a${n},${a} 0,0,0 0,`+i].join(" "),"createInnerCylinderPathD"),me(HM,"tiltedCylinder")});async function QM(t,n){var{labelStyles:e,nodeStyles:r}=xL(n);n.labelStyle=e;let{shapeSvg:a,bbox:i}=await X9(t,n,Q9(n)),s=i.width+n.padding,o=i.height+n.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}],c,h=n.cssStyles;if("handDrawn"===n.look){let t=IN.svg(a),e=wL(n,{}),r=W9(l),i=t.path(r,e);c=a.insert(()=>i,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=FN(a,s,o,l);return r&&c.attr("style",r),n.width=s,n.height=o,Z9(n,c),n.intersect=function(t){return Y.polygon(n,l,t)},a}var JM=t(()=>{n(),EL(),_L(),MN(),$N(),me(QM,"trapezoid")});async function tR(t,e){var{labelStyles:r,nodeStyles:i}=xL(e),{shapeSvg:r,bbox:t}=(e.labelStyle=r,await X9(t,e,Q9(e))),n=Math.max(60,t.width+2*(e.padding??0),e?.width??0),t=Math.max(20,t.height+2*(e.padding??0),e?.height??0),a=e.cssStyles,s=IN.svg(r),o=wL(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:-n/2*.8,y:-t/2},{x:n/2*.8,y:-t/2},{x:n/2,y:-t/2*.6},{x:n/2,y:t/2},{x:-n/2,y:t/2},{x:-n/2,y:-t/2*.6}],c=W9(l),h=s.path(c,o),u=r.insert(()=>h,":first-child");return u.attr("class","basic label-container"),a&&"handDrawn"!==e.look&&u.selectChildren("path").attr("style",a),i&&"handDrawn"!==e.look&&u.selectChildren("path").attr("style",i),Z9(e,u),e.intersect=function(t){return Y.polygon(e,l,t)},r}var eR=t(()=>{n(),EL(),_L(),MN(),me(tR,"trapezoidalPentagon")});async function rR(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Rc(D().flowchart?.htmlLabels),l=a.width+(e.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],d=e.cssStyles,p=IN.svg(n),g=wL(e,{}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),W9(u)),m=p.path(f,g),y=n.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",i),e.width=l,e.height=c,Z9(e,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(e.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(t){return R.info("Triangle intersect",e,u,t),Y.polygon(e,u,t)},n}var iR=t(()=>{e(),n(),EL(),_L(),MN(),n(),Jc(),fu(),me(rR,"triangle")});async function nR(t,e){var{labelStyles:r,nodeStyles:i}=xL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=Math.max(t.width+2*(e.padding??0),e?.width??0),s=Math.max(t.height+2*(e.padding??0),e?.height??0),o=s/8,l=s+o,c=e.cssStyles,h=0<(h=70-a)?h/2:0,u=IN.svg(r),d=wL(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let p=[{x:-a/2-h,y:l/2},...H9(-a/2-h,l/2,a/2+h,l/2,o,.8),{x:a/2+h,y:-l/2},{x:-a/2-h,y:-l/2}],g=W9(p),f=u.path(g,d),m=r.insert(()=>f,":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(0,${-o/2})`),n.attr("transform",`translate(${-a/2+(e.padding??0)-(t.x-(t.left??0))},${-s/2+(e.padding??0)-o-(t.y-(t.top??0))})`),Z9(e,m),e.intersect=function(t){return Y.polygon(e,p,t)},r}var aR=t(()=>{n(),EL(),MN(),_L(),me(nR,"waveEdgedRectangle")});async function sR(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await X9(t,e,Q9(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),o=Math.max(a.height+2*(e.padding??0),e?.height??0),l=s/o,c=s,h=o;c>h*l?h=c/l:c=h*l,c=Math.max(c,100),h=Math.max(h,50);var r=Math.min(.2*h,h/4),t=h+2*r,u=e.cssStyles,d=IN.svg(n),p=wL(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-c/2,y:t/2},...H9(-c/2,t/2,c/2,t/2,r,1),{x:c/2,y:-t/2},...H9(c/2,-t/2,-c/2,-t/2,r,-1)],f=W9(g),m=d.path(f,p),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),Z9(e,y),e.intersect=function(t){return Y.polygon(e,g,t)},n}var oR=t(()=>{n(),EL(),_L(),MN(),me(sR,"waveRectangle")});async function lR(t,e){var{labelStyles:r,nodeStyles:i}=xL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),c=-o/2,h=-l/2,u=e.cssStyles,d=IN.svg(n),p=wL(e,{}),g=[{x:c-5,y:h-5},{x:c-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-5}],f=`M${c-5},${h-5} L${c+o},${h-5} L${c+o},${h+l} L${c-5},${h+l} L${c-5},${h-5} l${-r},0`,"createCylinderPathD"),KR=me((t,e,r,i,n,a)=>[`M${t},`+e,`M${t+r},`+e,`a${n},${a} 0,0,0 0,`+-i,`l${-r},0`,`a${n},${a} 0,0,0 0,`+i,`l${r},0`].join(" "),"createOuterCylinderPathD"),ZR=me((t,e,r,i,n,a)=>[`M${t+r/2},`+-i/2,`a${n},${a} 0,0,0 0,`+i].join(" "),"createInnerCylinderPathD"),me(VR,"tiltedCylinder")});async function JR(t,n){var{labelStyles:e,nodeStyles:r}=wL(n);n.labelStyle=e;let{shapeSvg:a,bbox:i}=await X9(t,n,Q9(n)),s=i.width+n.padding,o=i.height+n.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}],c,h=n.cssStyles;if("handDrawn"===n.look){let t=RN.svg(a),e=kL(n,{}),r=Y9(l),i=t.path(r,e);c=a.insert(()=>i,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=$N(a,s,o,l);return r&&c.attr("style",r),n.width=s,n.height=o,Z9(n,c),n.intersect=function(t){return mL.polygon(n,l,t)},a}var tM=t(()=>{n(),CL(),_L(),MN(),zN(),me(JR,"trapezoid")});async function eM(t,e){var{labelStyles:r,nodeStyles:i}=wL(e),{shapeSvg:r,bbox:t}=(e.labelStyle=r,await X9(t,e,Q9(e))),n=Math.max(60,t.width+2*(e.padding??0),e?.width??0),t=Math.max(20,t.height+2*(e.padding??0),e?.height??0),a=e.cssStyles,s=RN.svg(r),o=kL(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:-n/2*.8,y:-t/2},{x:n/2*.8,y:-t/2},{x:n/2,y:-t/2*.6},{x:n/2,y:t/2},{x:-n/2,y:t/2},{x:-n/2,y:-t/2*.6}],c=Y9(l),h=s.path(c,o),u=r.insert(()=>h,":first-child");return u.attr("class","basic label-container"),a&&"handDrawn"!==e.look&&u.selectChildren("path").attr("style",a),i&&"handDrawn"!==e.look&&u.selectChildren("path").attr("style",i),Z9(e,u),e.intersect=function(t){return mL.polygon(e,l,t)},r}var rM=t(()=>{n(),CL(),_L(),MN(),me(eM,"trapezoidalPentagon")});async function iM(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Mc(D().flowchart?.htmlLabels),l=a.width+(e.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],d=e.cssStyles,p=RN.svg(n),g=kL(e,{}),f=("handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid"),Y9(u)),m=p.path(f,g),y=n.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",i),e.width=l,e.height=c,Z9(e,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(e.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(t){return M.info("Triangle intersect",e,u,t),mL.polygon(e,u,t)},n}var nM=t(()=>{e(),n(),CL(),_L(),MN(),n(),Jc(),fu(),me(iM,"triangle")});async function aM(t,e){var{labelStyles:r,nodeStyles:i}=wL(e),{shapeSvg:r,bbox:t,label:n}=(e.labelStyle=r,await X9(t,e,Q9(e))),a=Math.max(t.width+2*(e.padding??0),e?.width??0),s=Math.max(t.height+2*(e.padding??0),e?.height??0),o=s/8,l=s+o,c=e.cssStyles,h=0<(h=70-a)?h/2:0,u=RN.svg(r),d=kL(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let p=[{x:-a/2-h,y:l/2},...H9(-a/2-h,l/2,a/2+h,l/2,o,.8),{x:a/2+h,y:-l/2},{x:-a/2-h,y:-l/2}],g=Y9(p),f=u.path(g,d),m=r.insert(()=>f,":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(0,${-o/2})`),n.attr("transform",`translate(${-a/2+(e.padding??0)-(t.x-(t.left??0))},${-s/2+(e.padding??0)-o-(t.y-(t.top??0))})`),Z9(e,m),e.intersect=function(t){return mL.polygon(e,p,t)},r}var sM=t(()=>{n(),CL(),MN(),_L(),me(aM,"waveEdgedRectangle")});async function oM(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await X9(t,e,Q9(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),o=Math.max(a.height+2*(e.padding??0),e?.height??0),l=s/o,c=s,h=o;c>h*l?h=c/l:c=h*l,c=Math.max(c,100),h=Math.max(h,50);var r=Math.min(.2*h,h/4),t=h+2*r,u=e.cssStyles,d=RN.svg(n),p=kL(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-c/2,y:t/2},...H9(-c/2,t/2,c/2,t/2,r,1),{x:c/2,y:-t/2},...H9(c/2,-t/2,-c/2,-t/2,r,-1)],f=Y9(g),m=d.path(f,p),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),Z9(e,y),e.intersect=function(t){return mL.polygon(e,g,t)},n}var lM=t(()=>{n(),CL(),_L(),MN(),me(oM,"waveRectangle")});async function cM(t,e){var{labelStyles:r,nodeStyles:i}=wL(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await X9(t,e,Q9(e)),o=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),c=-o/2,h=-l/2,u=e.cssStyles,d=RN.svg(n),p=kL(e,{}),g=[{x:c-5,y:h-5},{x:c-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-5}],f=`M${c-5},${h-5} L${c+o},${h-5} L${c+o},${h+l} L${c-5},${h+l} L${c-5},${h-5}
M${c-5},${h} L${c+o},${h} M${c-5},${h} L${c+o},${h}
M${c},${h-5} L${c},`+(h+l),m=("handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid"),d.path(f,p)),y=n.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),s.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),Z9(e,y),e.intersect=function(t){return Y.polygon(e,g,t)},n}var cR=t(()=>{n(),_L(),MN(),EL(),me(lR,"windowPane")});async function hR(t,e){var r,i=e,n=(i.alias&&(e.label=i.alias),"handDrawn"===e.look&&(A=(A=Nr().themeVariables).background,await hR(t,{...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none","fill: "+A]})),Nr());e.useHtmlLabels=n.htmlLabels;let o=n.er?.diagramPadding??10,l=n.er?.entityPadding??6,a=e.cssStyles,s=xL(e).labelStyles;if(0===i.attributes.length&&e.label)return A={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""},yE(e.label,n)+2*A.labelPaddingX<n.er.minEntityWidth&&(e.width=n.er.minEntityWidth),A=await GI(t,e,A),Rc(n.htmlLabels)||(T=(S=A.select("text")).node()?.getBBox(),S.attr("transform",`translate(${-T.width/2}, 0)`)),A;n.htmlLabels||(o*=1.25,l*=1.25);let c=Q9(e),h=(c=c||"node default",t.insert("g").attr("class",c).attr("id",e.domId||e.id)),u=await uR(h,e.label??"",n,0,0,["name"],s),d=(u.height+=l,0),p=[],g=0,f=0,m=0,y=0,v=!0,b=!0;for(r of i.attributes){var x=await uR(h,r.type,n,0,d,["attribute-type"],s),w=(g=Math.max(g,x.width+o),await uR(h,r.name,n,0,d,["attribute-name"],s)),P=(f=Math.max(f,w.width+o),await uR(h,r.keys.join(),n,0,d,["attribute-keys"],s)),B=(m=Math.max(m,P.width+o),await uR(h,r.comment,n,0,d,["attribute-comment"],s));y=Math.max(y,B.width+o),d+=Math.max(x.height,w.height,P.height,B.height)+l,p.push(d)}p.pop();let k=4;m<=o&&(v=!1,m=0,k--),y<=o&&(b=!1,y=0,k--);var T,E,_,C,S=h.node().getBBox(),A=(0<u.width+2*o-(g+f+m+y)&&(T=u.width+2*o-(g+f+m+y),g+=T/k,f+=T/k,0<m&&(m+=T/k),0<y)&&(y+=T/k),g+f+m+y),L=IN.svg(h),N=wL(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let I=Math.max(S.width+2*o,e?.width||0,A),M=Math.max(S.height+(p[0]||d)+l,e?.height||0),R=-I/2,D=-M/2,F=(h.selectAll("g:not(:first-child)").each((t,e,r)=>{let i=j(r[e]),n=i.attr("transform"),a=0,s=0;n&&(r=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n))&&(a=parseFloat(r[1]),s=parseFloat(r[2]),i.attr("class").includes("attribute-name")?a+=g:i.attr("class").includes("attribute-keys")?a+=g+f:i.attr("class").includes("attribute-comment")&&(a+=g+f+m)),i.attr("transform",`translate(${R+o/2+a}, ${s+D+u.height+l/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(D+l/2)+")"),L.rectangle(R,D,I,M,N)),$=h.insert(()=>F,":first-child").attr("style",a.join("")),z=Nr().themeVariables,{rowEven:U,rowOdd:G,nodeBorder:q}=z;p.push(0);for([E,_]of p.entries())if(!(0===E&&1<p.length)){let t=E%2==0&&0!==_,e=L.rectangle(R,u.height+D+_,I,u.height,{...N,fill:t?U:G,stroke:q});h.insert(()=>e,"g.label").attr("style",a.join("")).attr("class","row-rect-"+(E%2==0?"even":"odd"))}let O=L.line(R,u.height+D,I+R,u.height+D,N);h.insert(()=>O).attr("class","divider"),O=L.line(g+R,u.height+D,g+R,M+D,N),h.insert(()=>O).attr("class","divider"),v&&(O=L.line(g+f+R,u.height+D,g+f+R,M+D,N),h.insert(()=>O).attr("class","divider")),b&&(O=L.line(g+f+m+R,u.height+D,g+f+m+R,M+D,N),h.insert(()=>O).attr("class","divider"));for(C of p)O=L.line(R,u.height+D+C,I+R,u.height+D+C,N),h.insert(()=>O).attr("class","divider");return Z9(e,$),e.intersect=function(t){return Y.rect(e,t)},h}async function uR(t,e,r,i=0,n=0,a=[],s=""){if(t=t.insert("g").attr("class","label "+a.join(" ")).attr("transform",`translate(${i}, ${n})`).attr("style",s),e!==Pc(e)&&(e=(e=Pc(e)).replaceAll("<","&lt;").replaceAll(">","&gt;")),a=t.node().appendChild(await j9(t,e,{width:yE(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r)),e.includes("&lt;")||e.includes("&gt;")){let t=a.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let o=a.getBBox();return Rc(r.htmlLabels)&&((i=a.children[0]).style.textAlign="start",n=j(a),o=i.getBoundingClientRect(),n.attr("width",o.width),n.attr("height",o.height)),o}var dR=t(()=>{n(),EL(),_L(),MN(),qI(),Ai(),Y9(),Jc(),Z3(),KE(),me(hR,"erBox"),me(uR,"addText")});async function pR(t,e,r,i,n=r.class.padding??12){let a=i?0:3,s=t.insert("g").attr("class",Q9(e)).attr("id",e.domId||e.id),o=null,l=null,c=null,h=null,u=0,d,p=0;var g,f;o=s.insert("g").attr("class","annotation-group text"),0<e.annotations.length&&(i=e.annotations[0],await gR(o,{text:`«${i}»`},0),u=o.node().getBBox().height),await gR(l=s.insert("g").attr("class","label-group text"),e,0,["font-weight: bolder"]),d=(t=l.node().getBBox()).height,c=s.insert("g").attr("class","members-group text");let m=0;for(g of e.members){var y=await gR(c,g,m,[g.parseClassifier Line truncated M${c},${h-5} L${c},`+(h+l),m=("handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid"),d.path(f,p)),y=n.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),s.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),Z9(e,y),e.intersect=function(t){return mL.polygon(e,g,t)},n}var hM=t(()=>{n(),_L(),MN(),CL(),me(cM,"windowPane")});async function uM(t,e){var r,i=e,n=(i.alias&&(e.label=i.alias),"handDrawn"===e.look&&(A=(A=Nr().themeVariables).background,await uM(t,{...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none","fill: "+A]})),Nr());e.useHtmlLabels=n.htmlLabels;let o=n.er?.diagramPadding??10,l=n.er?.entityPadding??6,a=e.cssStyles,s=wL(e).labelStyles;if(0===i.attributes.length&&e.label)return A={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""},yE(e.label,n)+2*A.labelPaddingX<n.er.minEntityWidth&&(e.width=n.er.minEntityWidth),A=await qI(t,e,A),Mc(n.htmlLabels)||(T=(S=A.select("text")).node()?.getBBox(),S.attr("transform",`translate(${-T.width/2}, 0)`)),A;n.htmlLabels||(o*=1.25,l*=1.25);let c=Q9(e),h=(c=c||"node default",t.insert("g").attr("class",c).attr("id",e.domId||e.id)),u=await dM(h,e.label??"",n,0,0,["name"],s),d=(u.height+=l,0),p=[],g=0,f=0,m=0,y=0,v=!0,x=!0;for(r of i.attributes){var b=await dM(h,r.type,n,0,d,["attribute-type"],s),w=(g=Math.max(g,b.width+o),await dM(h,r.name,n,0,d,["attribute-name"],s)),P=(f=Math.max(f,w.width+o),await dM(h,r.keys.join(),n,0,d,["attribute-keys"],s)),B=(m=Math.max(m,P.width+o),await dM(h,r.comment,n,0,d,["attribute-comment"],s));y=Math.max(y,B.width+o),d+=Math.max(b.height,w.height,P.height,B.height)+l,p.push(d)}p.pop();let k=4;m<=o&&(v=!1,m=0,k--),y<=o&&(x=!1,y=0,k--);var T,E,C,_,S=h.node().getBBox(),A=(0<u.width+2*o-(g+f+m+y)&&(T=u.width+2*o-(g+f+m+y),g+=T/k,f+=T/k,0<m&&(m+=T/k),0<y)&&(y+=T/k),g+f+m+y),L=RN.svg(h),N=kL(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let I=Math.max(S.width+2*o,e?.width||0,A),R=Math.max(S.height+(p[0]||d)+l,e?.height||0),M=-I/2,D=-R/2,F=(h.selectAll("g:not(:first-child)").each((t,e,r)=>{let i=j(r[e]),n=i.attr("transform"),a=0,s=0;n&&(r=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n))&&(a=parseFloat(r[1]),s=parseFloat(r[2]),i.attr("class").includes("attribute-name")?a+=g:i.attr("class").includes("attribute-keys")?a+=g+f:i.attr("class").includes("attribute-comment")&&(a+=g+f+m)),i.attr("transform",`translate(${M+o/2+a}, ${s+D+u.height+l/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(D+l/2)+")"),L.rectangle(M,D,I,R,N)),$=h.insert(()=>F,":first-child").attr("style",a.join("")),z=Nr().themeVariables,{rowEven:G,rowOdd:U,nodeBorder:q}=z;p.push(0);for([E,C]of p.entries())if(!(0===E&&1<p.length)){let t=E%2==0&&0!==C,e=L.rectangle(M,u.height+D+C,I,u.height,{...N,fill:t?G:U,stroke:q});h.insert(()=>e,"g.label").attr("style",a.join("")).attr("class","row-rect-"+(E%2==0?"even":"odd"))}let O=L.line(M,u.height+D,I+M,u.height+D,N);h.insert(()=>O).attr("class","divider"),O=L.line(g+M,u.height+D,g+M,R+D,N),h.insert(()=>O).attr("class","divider"),v&&(O=L.line(g+f+M,u.height+D,g+f+M,R+D,N),h.insert(()=>O).attr("class","divider")),x&&(O=L.line(g+f+m+M,u.height+D,g+f+m+M,R+D,N),h.insert(()=>O).attr("class","divider"));for(_ of p)O=L.line(M,u.height+D+_,I+M,u.height+D+_,N),h.insert(()=>O).attr("class","divider");return Z9(e,$),e.intersect=function(t){return mL.rect(e,t)},h}async function dM(t,e,r,i=0,n=0,a=[],s=""){if(t=t.insert("g").attr("class","label "+a.join(" ")).attr("transform",`translate(${i}, ${n})`).attr("style",s),e!==Pc(e)&&(e=(e=Pc(e)).replaceAll("<","&lt;").replaceAll(">","&gt;")),a=t.node().appendChild(await j9(t,e,{width:yE(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r)),e.includes("&lt;")||e.includes("&gt;")){let t=a.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let o=a.getBBox();return Mc(r.htmlLabels)&&((i=a.children[0]).style.textAlign="start",n=j(a),o=i.getBoundingClientRect(),n.attr("width",o.width),n.attr("height",o.height)),o}var pM=t(()=>{n(),CL(),_L(),MN(),jI(),Ai(),W9(),Jc(),Z3(),KE(),me(uM,"erBox"),me(dM,"addText")});async function gM(t,e,r,i,n=r.class.padding??12){let a=i?0:3,s=t.insert("g").attr("class",Q9(e)).attr("id",e.domId||e.id),o=null,l=null,c=null,h=null,u=0,d,p=0;var g,f;o=s.insert("g").attr("class","annotation-group text"),0<e.annotations.length&&(i=e.annotations[0],await fM(o,{text:`«${i}»`},0),u=o.node().getBBox().height),await fM(l=s.insert("g").attr("class","label-group text"),e,0,["font-weight: bolder"]),d=(t=l.node().getBBox()).height,c=s.insert("g").attr("class","members-group text");let m=0;for(g of e.members){var y=await fM(c,g,m,[g.parseClassifi Line truncated
`)?t+` `)?t+`
`:`{ `:`{
`+t+` `+t+`
}`,r=NA(e,{schema:LA})),t=this.edges.find(t=>t.id===i))void 0!==(e=r)?.animate&&(t.animate=e.animate),void 0!==e?.animation&&(t.animation=e.animation);else{let t,e=this.vertices.get(i);if(void 0===e&&(e={id:i,labelType:"text",domId:"flowchart-"+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,e)),this.vertexCounter++,void 0!==n?(this.config=D(),t=this.sanitizeText(n.text.trim()),e.labelType=n.type,t.startsWith('"')&&t.endsWith('"')&&(t=t.substring(1,t.length-1)),e.text=t):void 0===e.text&&(e.text=i),void 0!==a&&(e.type=a),s?.forEach(t=>{e.styles.push(t)}),o?.forEach(t=>{e.classes.push(t)}),void 0!==l&&(e.dir=l),void 0===e.props?e.props=c:void 0!==c&&Object.assign(e.props,c),void 0!==r){if(r.shape){if(r.shape!==r.shape.toLowerCase()||r.shape.includes("_"))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);if(!ER(r.shape))throw new Error(`No such shape: ${r.shape}.`);e.type=r?.shape}r?.label&&(e.text=r?.label),r?.icon&&(e.icon=r?.icon,!r.label?.trim())&&e.text===i&&(e.text=""),r?.form&&(e.form=r?.form),r?.pos&&(e.pos=r?.pos),r?.img&&(e.img=r?.img,!r.label?.trim())&&e.text===i&&(e.text=""),r?.constraint&&(e.constraint=r.constraint),r.w&&(e.assetWidth=Number(r.w)),r.h&&(e.assetHeight=Number(r.h))}}}}addSingleLink(t,e,r,i){let n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1};if(R.info("abc78 Got edge...",n),void 0!==(t=r.text)&&(n.text=this.sanitizeText(t.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=t.type),void 0!==r&&(n.type=r.type,n.stroke=r.stroke,n.length=10<r.length?10:r.length),i&&!this.edges.some(t=>t.id===i)?(n.id=i,n.isUserDefinedId=!0):0===(e=this.edges.filter(t=>t.start===n.start&&t.end===n.end)).length?n.id=XE(n.start,n.end,{counter:0,prefix:"L"}):n.id=XE(n.start,n.end,{counter:e.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. }`,r=NA(e,{schema:LA})),t=this.edges.find(t=>t.id===i))void 0!==(e=r)?.animate&&(t.animate=e.animate),void 0!==e?.animation&&(t.animation=e.animation);else{let t,e=this.vertices.get(i);if(void 0===e&&(e={id:i,labelType:"text",domId:"flowchart-"+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,e)),this.vertexCounter++,void 0!==n?(this.config=D(),t=this.sanitizeText(n.text.trim()),e.labelType=n.type,t.startsWith('"')&&t.endsWith('"')&&(t=t.substring(1,t.length-1)),e.text=t):void 0===e.text&&(e.text=i),void 0!==a&&(e.type=a),s?.forEach(t=>{e.styles.push(t)}),o?.forEach(t=>{e.classes.push(t)}),void 0!==l&&(e.dir=l),void 0===e.props?e.props=c:void 0!==c&&Object.assign(e.props,c),void 0!==r){if(r.shape){if(r.shape!==r.shape.toLowerCase()||r.shape.includes("_"))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);if(!CM(r.shape))throw new Error(`No such shape: ${r.shape}.`);e.type=r?.shape}r?.label&&(e.text=r?.label),r?.icon&&(e.icon=r?.icon,!r.label?.trim())&&e.text===i&&(e.text=""),r?.form&&(e.form=r?.form),r?.pos&&(e.pos=r?.pos),r?.img&&(e.img=r?.img,!r.label?.trim())&&e.text===i&&(e.text=""),r?.constraint&&(e.constraint=r.constraint),r.w&&(e.assetWidth=Number(r.w)),r.h&&(e.assetHeight=Number(r.h))}}}}addSingleLink(t,e,r,i){let n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};if(M.info("abc78 Got edge...",n),void 0!==(t=r.text)&&(n.text=this.sanitizeText(t.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=t.type),void 0!==r&&(n.type=r.type,n.stroke=r.stroke,n.length=10<r.length?10:r.length),i&&!this.edges.some(t=>t.id===i)?(n.id=i,n.isUserDefinedId=!0):0===(e=this.edges.filter(t=>t.start===n.start&&t.end===n.end)).length?n.id=XE(n.start,n.end,{counter:0,prefix:"L"}):n.id=XE(n.start,n.end,{counter:e.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges. 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 cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`);R.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,r){var i,n=this.isLinkData(r)?r.id.replace("@",""):void 0;R.info("addLink",t,e,n);for(i of t)for(var a of e){var s=i===t[t.length-1],o=a===e[0];s&&o?this.addSingleLink(i,a,r,n):this.addSingleLink(i,a,r,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,0<(this.edges[t]?.style?.length??0)&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){let i=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let r=this.classes.get(t);void 0===r&&(r={id:t,styles:[],textStyles:[]},this.classes.set(t,r)),i?.forEach(t=>{var e;/color/.exec(t)&&(e=t.replace("fill","bgFill"),r.textStyles.push(e)),r.styles.push(t)})})}setDirection(t){this.direction=t,/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,r){for(let e of t.split(",")){var i=this.vertices.get(e);i&&i.classes.push(r),(i=this.edges.find(t=>t.id===e))&&i.classes.push(r),(i=this.subGraphLookup.get(e))&&i.classes.push(r)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(var r of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(r):r,e)}}setClickFun(t,e,i){let n=this.lookUpDomId(t);if("loose"===D().securityLevel&&void 0!==e){let r=[];if("string"==typeof i){r=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(t),(i=this.vertices.get(t))&&(i.haveCallback=!0,this.funs.push(()=>{var t=document.querySelector(`[id="${n}"]`);null!==t&&t.addEventListener("click",()=>{WE.runFunc(e,...r)},!1)}))}}setLink(t,e,r){t.split(",").forEach(t=>{void 0!==(t=this.vertices.get(t))&&(t.link=WE.formatUrl(e,this.config),t.linkTarget=r)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,r){t.split(",").forEach(t=>{this.setClickFun(t,e,r)}),this.setClass(t,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=j(".mermaidTooltip");null===(r._groups||r)[0][0]&&(r=j("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),j(t).select("svg").selectAll("g.node").on("mouseover",t=>{var e=j(t.currentTarget);null!==e.attr("title")&&(t=t.currentTarget?.getBoundingClientRect(),r.transition().duration(200).style("opacity",".9"),r.text(e.attr("title")).style("left",window.scrollX+t.left+(t.right-t.left)/2+"px").style("top",window.scrollY+t.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0))}).on("mouseout",t=>{r.transition().duration(500).style("opacity",0),j(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=D(),oh()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,r){let i=t.text.trim(),n=r.text;t===r&&/\s/.exec(r.text)&&(i=void 0);var{nodeList:a,dir:t}=me(t=>{let r={boolean:{},number:{},string:{}},i=[],n;return{nodeList:t.filter(function(t){var e=typeof t;return t.stmt&&"dir"===t.stmt?(n=t.value,!1):""!==t.trim()&&(e in r?!r[e].hasOwnProperty(t)&&(r[e][t]=!0):!i.includes(t)&&i.push(t))}),dir:n}},"uniq")(e.flat());if("gen-1"===this.version)for(let t=0;t<a.length;t++)a[t]=this.lookUpDomId(a[t]);return i=i??"subGraph"+this.subCount,n=this.sanitizeText(n=n||""),this.subCount=this.subCount+1,e={id:i,nodes:a,title:n.trim(),classes:[],dir:t,labelType:r.type},R.info("Adding",e.id,e.nodes,e.dir),e.nodes=this.makeUniq(e,this.subGraphs).nodes,this.subGraphs.push(e),this.subGraphLookup.set(i,e),i}getPosForId(t){for(var[e,r]of this.subGraphs.entries())if(r.id===t)return e;return-1}indexNodes2(t,e){var r=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,2e3<this.secCount)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id== Line truncated You have to call mermaid.initialize.`);M.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,r){var i,n=this.isLinkData(r)?r.id.replace("@",""):void 0;M.info("addLink",t,e,n);for(i of t)for(var a of e){var s=i===t[t.length-1],o=a===e[0];s&&o?this.addSingleLink(i,a,r,n):this.addSingleLink(i,a,r,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,0<(this.edges[t]?.style?.length??0)&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){let i=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let r=this.classes.get(t);void 0===r&&(r={id:t,styles:[],textStyles:[]},this.classes.set(t,r)),i?.forEach(t=>{var e;/color/.exec(t)&&(e=t.replace("fill","bgFill"),r.textStyles.push(e)),r.styles.push(t)})})}setDirection(t){this.direction=t,/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,r){for(let e of t.split(",")){var i=this.vertices.get(e);i&&i.classes.push(r),(i=this.edges.find(t=>t.id===e))&&i.classes.push(r),(i=this.subGraphLookup.get(e))&&i.classes.push(r)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(var r of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(r):r,e)}}setClickFun(t,e,i){let n=this.lookUpDomId(t);if("loose"===D().securityLevel&&void 0!==e){let r=[];if("string"==typeof i){r=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(t),(i=this.vertices.get(t))&&(i.haveCallback=!0,this.funs.push(()=>{var t=document.querySelector(`[id="${n}"]`);null!==t&&t.addEventListener("click",()=>{YE.runFunc(e,...r)},!1)}))}}setLink(t,e,r){t.split(",").forEach(t=>{void 0!==(t=this.vertices.get(t))&&(t.link=YE.formatUrl(e,this.config),t.linkTarget=r)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,r){t.split(",").forEach(t=>{this.setClickFun(t,e,r)}),this.setClass(t,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=j(".mermaidTooltip");null===(r._groups||r)[0][0]&&(r=j("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),j(t).select("svg").selectAll("g.node").on("mouseover",t=>{var e=j(t.currentTarget);null!==e.attr("title")&&(t=t.currentTarget?.getBoundingClientRect(),r.transition().duration(200).style("opacity",".9"),r.text(e.attr("title")).style("left",window.scrollX+t.left+(t.right-t.left)/2+"px").style("top",window.scrollY+t.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0))}).on("mouseout",t=>{r.transition().duration(500).style("opacity",0),j(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=D(),oh()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,r){let i=t.text.trim(),n=r.text;t===r&&/\s/.exec(r.text)&&(i=void 0);var{nodeList:a,dir:t}=me(t=>{let r={boolean:{},number:{},string:{}},i=[],n;return{nodeList:t.filter(function(t){var e=typeof t;return t.stmt&&"dir"===t.stmt?(n=t.value,!1):""!==t.trim()&&(e in r?!r[e].hasOwnProperty(t)&&(r[e][t]=!0):!i.includes(t)&&i.push(t))}),dir:n}},"uniq")(e.flat());if("gen-1"===this.version)for(let t=0;t<a.length;t++)a[t]=this.lookUpDomId(a[t]);return i=i??"subGraph"+this.subCount,n=this.sanitizeText(n=n||""),this.subCount=this.subCount+1,e={id:i,nodes:a,title:n.trim(),classes:[],dir:t,labelType:r.type},M.info("Adding",e.id,e.nodes,e.dir),e.nodes=this.makeUniq(e,this.subGraphs).nodes,this.subGraphs.push(e),this.subGraphLookup.set(i,e),i}getPosForId(t){for(var[e,r]of this.subGraphs.entries())if(r.id===t)return e;return-1}indexNodes2(t,e){var r=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,2e3<this.secCount)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id== Line truncated
outsidePoint: ${JSON.stringify(i)} outsidePoint: ${JSON.stringify(i)}
insidePoint : ${JSON.stringify(n)} insidePoint : ${JSON.stringify(n)}
node : x:${t.x} y:${t.y} w:${t.width} h:`+t.height);let a=t.x,e=t.y,r=Math.abs(a-n.x),s=t.width/2,o=n.x<i.x?s-r:s+r,l=t.height/2,c=Math.abs(i.y-n.y),h=Math.abs(i.x-n.x),u;if(Math.abs(e-i.y)*s>Math.abs(a-i.x)*l)return t=n.y<i.y?i.y-l-e:e-l-i.y,o=h*t/c,u={x:n.x<i.x?n.x+o:n.x-h+o,y:n.y<i.y?n.y+c-t:n.y-c+t},0===o&&(u.x=i.x,u.y=i.y),0===h&&(u.x=i.x),0===c&&(u.y=i.y),R.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${h}, r `+o,u),u;{let t=c*(o=n.x<i.x?i.x-s-a:a-s-i.x)/h,e=n.x<i.x?n.x+h-o:n.x-h+o,r=n.y<i.y?n.y+t:n.y-t;return R.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r `+o,{_x:e,_y:r}),0===o&&(e=i.x,r=i.y),0===h&&(e=i.x),0===c&&(r=i.y),{x:e,y:r}}},"intersection"),hD=me((t,i)=>{R.warn("abc88 cutPathAtIntersect",t,i);let n=[],a=t[0],s=!1;return t.forEach(t=>{if(R.info("abc88 checking point",t,i),lD(i,t)||s)R.warn("abc88 outside",t,a),a=t,s||n.push(t);else{let e=cD(i,a,t),r=(R.debug("abc88 inside",t,a,e),R.debug("abc88 intersection",e,i),!1);n.forEach(t=>{r=r||t.x===e.x&&t.y===e.y}),n.some(t=>t.x===e.x&&t.y===e.y)?R.warn("abc88 no intersect",e,n):n.push(e),s=!0}}),R.debug("returning points",n),n},"cutPathAtIntersect"),me(eD,"extractCornerPoints"),uD=me(function(t,e,r){var i=e.x-t.x,t=e.y-t.y,r=r/Math.sqrt(i*i+t*t);return{x:e.x-r*i,y:e.y-r*t}},"findAdjacentPoint"),dD=me(function(i){var t=eD(i).cornerPointPositions,n=[];for(let r=0;r<i.length;r++)if(t.includes(r)){var a=i[r-1],s=i[r+1],o=i[r],l=uD(a,o,5),c=uD(s,o,5),h=c.x-l.x,u=c.y-l.y;n.push(l);let t=2*Math.sqrt(2),e={x:o.x,y:o.y};10<Math.abs(s.x-a.x)&&10<=Math.abs(s.y-a.y)?(R.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),e=o.x===l.x?{x:h<0?l.x-5+t:l.x+5-t,y:u<0?l.y-t:l.y+t}:{x:h<0?l.x-t:l.x+t,y:u<0?l.y-5+t:l.y+5-t}):R.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),n.push(e,c)}else n.push(i[r]);return n},"fixCorners"),pD=me(function(i,n,t,e,r,a,s){let o=D().handDrawnSeed,l=n.points,c=!1,h=r,u=a;var d,p=[];for(d in n.cssCompiledStyles)bL(d)||p.push(n.cssCompiledStyles[d]);u.intersect&&h.intersect&&((l=l.slice(1,n.points.length-1)).unshift(h.intersect(l[0])),R.debug("Last point APA12",n.start,"--\x3e",n.end,l[l.length-1],u,u.intersect(l[l.length-1])),l.push(u.intersect(l[l.length-1]))),n.toCluster&&(R.info("to cluster abc88",t.get(n.toCluster)),l=hD(n.points,t.get(n.toCluster).node),c=!0),n.fromCluster&&(R.debug("from cluster abc88",t.get(n.fromCluster),JSON.stringify(l,null,2)),l=hD(l.reverse(),t.get(n.fromCluster).node).reverse(),c=!0),r=l.filter(t=>!Number.isNaN(t.y)),r=dD(r);let g=u5;switch(g=j4,n.curve){case"linear":g=j4;break;case"basis":g=u5;break;case"cardinal":g=E5;break;default:g=u5}let{x:f,y:m}=VR(n),y=X4().x(f).y(m).curve(g),v;switch(n.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-invisible";break;default:v="edge-thickness-normal"}switch(n.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break;default:v+=" edge-pattern-solid"}let b,x=y(r),w=Array.isArray(n.style)?n.style:[n.style],k=w.find(t=>t?.startsWith("stroke:"));if("handDrawn"===n.look)a=IN.svg(i),Object.assign([],r),t=a.path(x,{roughness:.3,seed:o}),v+=" transition",r=(b=j(t).select("path").attr("id",n.id).attr("class"," "+v+(n.classes?" "+n.classes:"")).attr("style",w?w.reduce((t,e)=>t+";"+e,""):"")).attr("d"),b.attr("d",r),i.node().appendChild(b.node());else{let t=p.join(";"),e=w?w.reduce((t,e)=>t+e+";",""):"",r="";n.animate&&(r=" edge-animation-fast"),n.animation&&(r=" edge-animation-"+n.animation),a=t?t+";"+e+";":e,b=i.append("path").attr("d",x).attr("id",n.id).attr("class"," "+v+(n.classes?" "+n.classes:"")+(r??"")).attr("style",a),k=a.match(/stroke:([^;]+)/)?.[1]}let T="";return(D().flowchart.arrowMarkerAbsolute||D().state.arrowMarkerAbsolute)&&(T=(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),R.info("arrowTypeStart",n.arrowTypeStart),R.info("arrowTypeEnd",n.arrowTypeEnd),XR(b,n,T,s,e,k),t={},c&&(t.updatedPath=l),t.originalPath=n.points,t},"insertEdge")}),RD=t(()=>{e(),gD=me((e,t,r,i)=>{t.forEach(t=>{ND[t](e,r,i)})},"insertMarkers"),fD=me((t,e,r)=>{R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),mD=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth", Line truncated node : x:${t.x} y:${t.y} w:${t.width} h:`+t.height);let a=t.x,e=t.y,r=Math.abs(a-n.x),s=t.width/2,o=n.x<i.x?s-r:s+r,l=t.height/2,c=Math.abs(i.y-n.y),h=Math.abs(i.x-n.x),u;if(Math.abs(e-i.y)*s>Math.abs(a-i.x)*l)return t=n.y<i.y?i.y-l-e:e-l-i.y,o=h*t/c,u={x:n.x<i.x?n.x+o:n.x-h+o,y:n.y<i.y?n.y+c-t:n.y-c+t},0===o&&(u.x=i.x,u.y=i.y),0===h&&(u.x=i.x),0===c&&(u.y=i.y),M.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${h}, r `+o,u),u;{let t=c*(o=n.x<i.x?i.x-s-a:a-s-i.x)/h,e=n.x<i.x?n.x+h-o:n.x-h+o,r=n.y<i.y?n.y+t:n.y-t;return M.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r `+o,{_x:e,_y:r}),0===o&&(e=i.x,r=i.y),0===h&&(e=i.x),0===c&&(r=i.y),{x:e,y:r}}},"intersection"),uD=me((t,i)=>{M.warn("abc88 cutPathAtIntersect",t,i);let n=[],a=t[0],s=!1;return t.forEach(t=>{if(M.info("abc88 checking point",t,i),cD(i,t)||s)M.warn("abc88 outside",t,a),a=t,s||n.push(t);else{let e=hD(i,a,t),r=(M.debug("abc88 inside",t,a,e),M.debug("abc88 intersection",e,i),!1);n.forEach(t=>{r=r||t.x===e.x&&t.y===e.y}),n.some(t=>t.x===e.x&&t.y===e.y)?M.warn("abc88 no intersect",e,n):n.push(e),s=!0}}),M.debug("returning points",n),n},"cutPathAtIntersect"),me(rD,"extractCornerPoints"),dD=me(function(t,e,r){var i=e.x-t.x,t=e.y-t.y,r=r/Math.sqrt(i*i+t*t);return{x:e.x-r*i,y:e.y-r*t}},"findAdjacentPoint"),pD=me(function(i){var t=rD(i).cornerPointPositions,n=[];for(let r=0;r<i.length;r++)if(t.includes(r)){var a=i[r-1],s=i[r+1],o=i[r],l=dD(a,o,5),c=dD(s,o,5),h=c.x-l.x,u=c.y-l.y;n.push(l);let t=2*Math.sqrt(2),e={x:o.x,y:o.y};10<Math.abs(s.x-a.x)&&10<=Math.abs(s.y-a.y)?(M.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),e=o.x===l.x?{x:h<0?l.x-5+t:l.x+5-t,y:u<0?l.y-t:l.y+t}:{x:h<0?l.x-t:l.x+t,y:u<0?l.y-5+t:l.y+5-t}):M.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),n.push(e,c)}else n.push(i[r]);return n},"fixCorners"),gD=me(function(i,n,t,e,r,a,s){let o=D().handDrawnSeed,l=n.points,c=!1,h=r,u=a;var d,p=[];for(d in n.cssCompiledStyles)bL(d)||p.push(n.cssCompiledStyles[d]);u.intersect&&h.intersect&&((l=l.slice(1,n.points.length-1)).unshift(h.intersect(l[0])),M.debug("Last point APA12",n.start,"--\x3e",n.end,l[l.length-1],u,u.intersect(l[l.length-1])),l.push(u.intersect(l[l.length-1]))),n.toCluster&&(M.info("to cluster abc88",t.get(n.toCluster)),l=uD(n.points,t.get(n.toCluster).node),c=!0),n.fromCluster&&(M.debug("from cluster abc88",t.get(n.fromCluster),JSON.stringify(l,null,2)),l=uD(l.reverse(),t.get(n.fromCluster).node).reverse(),c=!0),r=l.filter(t=>!Number.isNaN(t.y)),r=pD(r);let g=u5;switch(g=j4,n.curve){case"linear":g=j4;break;case"basis":g=u5;break;case"cardinal":g=E5;break;case"bumpX":g=i5;break;case"bumpY":g=n5;break;case"catmullRom":g=D5;break;case"monotoneX":g=Q5;break;case"monotoneY":g=J5;break;case"natural":g=i3;break;case"step":g=s3;break;case"stepAfter":g=l3;break;case"stepBefore":g=o3;break;default:g=u5}let{x:f,y:m}=XM(n),y=X4().x(f).y(m).curve(g),v;switch(n.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-invisible";break;default:v="edge-thickness-normal"}switch(n.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break;default:v+=" edge-pattern-solid"}let x,b=y(r),w=Array.isArray(n.style)?n.style:[n.style],k=w.find(t=>t?.startsWith("stroke:"));if("handDrawn"===n.look)a=RN.svg(i),Object.assign([],r),t=a.path(b,{roughness:.3,seed:o}),v+=" transition",r=(x=j(t).select("path").attr("id",n.id).attr("class"," "+v+(n.classes?" "+n.classes:"")).attr("style",w?w.reduce((t,e)=>t+";"+e,""):"")).attr("d"),x.attr("d",r),i.node().appendChild(x.node());else{let t=p.join(";"),e=w?w.reduce((t,e)=>t+e+";",""):"",r="";n.animate&&(r=" edge-animation-fast"),n.animation&&(r=" edge-animation-"+n.animation),a=t?t+";"+e+";":e,x=i.append("path").attr("d",b).attr("id",n.id).attr("class"," "+v+(n.classes?" "+n.classes:"")+(r??"")).attr("style",a),k=a.match(/stroke:([^;]+)/)?.[1]}let T="";return(D().flowchart.arrowMarkerAbsolute||D().state.arrowMarkerAbsolute)&&(T=(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),M.info("arrowTypeStart",n.arrowTypeStart),M.info("arrowTypeEnd",n.arrowTypeEnd),KM(x,n,T,s,e,k),t={},c&&(t.updatedPath=l),t.originalPath=n.points,t},"insertEdge")}),DD=t(()=>{e(),fD=me((e,t,r,i)=>{t.forEach(t=>{ID[t](e,r,i)})},"insertMarkers"),mD=me((t,e,r)=>{M.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append( Line truncated
L20,10 L20,10
M20,10 M20,10
L0,20`)},"requirement_arrow"),LD=me((t,e,r)=>{(t=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g")).append("circle").attr("cx",10).attr("cy",10).attr("r",10).attr("fill","none"),t.append("line").attr("x1",0).attr("x2",20).attr("y1",10).attr("y2",10),t.append("line").attr("y1",0).attr("y2",20).attr("x1",10).attr("x2",10)},"requirement_contains"),ND={extension:fD,composition:mD,aggregation:yD,dependency:vD,lollipop:bD,point:xD,circle:wD,cross:kD,barb:TD,only_one:ED,zero_or_one:_D,one_or_more:CD,zero_or_more:SD,requirement_arrow:AD,requirement_contains:LD},ID=gD});async function DD(e,r,i){let n,a;"rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect");var s=r.shape?SR[r.shape]:void 0;if(!s)throw new Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let t;"sandbox"===i.config.securityLevel?t="_top":r.linkTarget&&(t=r.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",r.link).attr("target",t??null),a=await s(n,r,i)}else a=await s(e,r,i),n=a;return r.tooltip&&a.attr("title",r.tooltip),OD.set(r.id,n),r.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var OD,PD,BD,FD,$D,zD=t(()=>{e(),zR(),OD=new Map,me(DD,"insertNode"),PD=me((t,e)=>{OD.set(e.id,t)},"setNodeElem"),BD=me(()=>{OD.clear()},"clear"),FD=me(t=>{var e=OD.get(t.id),r=(R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")"),t.diff||0);return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")}),UD=t(()=>{Ai(),Jc(),e(),jR(),MD(),RD(),zD(),n(),KE(),$D={common:L,getConfig:Nr,insertCluster:FR,insertEdge:pD,insertEdgeLabel:sD,insertMarkers:ID,insertNode:DD,interpolateToCurve:lE,labelHelper:X9,log:R,positionEdgeLabel:oD}});function GD(t){return"symbol"==typeof t||UT(t)&&"[object Symbol]"==b6(t)}var qD,jD=t(()=>{x6(),GT(),me(GD,"isSymbol"),qD=GD});function YD(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}var WD,HD=t(()=>{me(YD,"arrayMap"),WD=YD});function VD(t){var e;return"string"==typeof t?t:KT(t)?WD(t,VD)+"":qD(t)?ZD?ZD.call(t):"":"0"==(e=t+"")&&1/t==-XD?"-0":e}var XD,KD,ZD,QD,JD=t(()=>{n6(),HD(),JT(),jD(),XD=1/0,KD=W3?W3.prototype:void 0,ZD=KD?KD.toString:void 0,me(VD,"baseToString"),QD=VD});function tO(t){for(var e=t.length;e--&&eO.test(t.charAt(e)););return e}var eO,rO,iO=t(()=>{eO=/\s/,me(tO,"trimmedEndIndex"),rO=tO});function nO(t){return t&&t.slice(0,rO(t)+1).replace(aO,"")}var aO,sO,oO=t(()=>{iO(),aO=/^\s+/,me(nO,"baseTrim"),sO=nO});function lO(t){if("number"==typeof t)return t;if(qD(t))return cO;if(k6(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=k6(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=sO(t);var e=uO.test(t);return e||dO.test(t)?pO(t.slice(2),e?2:8):hO.test(t)?cO:+t}var cO,hO,uO,dO,pO,gO,fO=t(()=>{oO(),T6(),jD(),cO=NaN,hO=/^[-+]0x[0-9a-f]+$/i,uO=/^0b[01]+$/i,dO=/^0o[0-7]+$/i,pO=parseInt,me(lO,"toNumber"),gO=lO});function mO(t){return t?(t=gO(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}var yO,vO=t(()=>{fO(),me(mO,"toFinite"),yO=mO});function bO(t){var e=(t=yO(t))%1;return t==t?e?t-e:t:0}var xO,wO,kO,TO=t(()=>{vO(),me(bO,"toInteger"),xO=bO}),EO=t(()=>{tw(),i6(),wO=Z6(j3,"WeakMap"),kO=wO});function _O(){}var CO,SO=t(()=>{me(_O,"noop"),CO=_O});function AO(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}var LO,NO=t(()=>{me(AO,"arrayEach"),LO=AO});function IO(t,e,r,i){for(var n=t.length,a=r+(i?1:-1);i?a--:++a<n;)if(e(t[a],a,t))return a;return-1}var MO,RO=t(()=>{me(IO,"baseFindIndex"),MO=IO});function DO(t){return t!=t}var OO,PO=t(()=>{me(DO,"baseIsNaN"),OO=DO});function BO(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}var FO,$O=t(()=>{me(BO,"strictIndexOf"),FO=BO});function zO(t,e,r){return e==e?FO(t,e,r):MO(t,OO,r)}var UO,GO=t(()=>{RO(),PO(),$O(),me(zO,"baseIndexOf"),UO=zO});function qO(t,e){return!(null==t||!t.length)&&-1<UO(t,e,0)}var jO,YO,WO,HO=t(()=>{GO(),me(qO,"arrayIncludes"),jO=qO}),VO=t(()=>{IT(),YO=AT(Object.keys,Object),WO=YO});function XO(t){if(!OT(t))return WO(t);var e,r=[];for(e in Object(t))ZO.call(t,e)&&"constructor"!=e&&r.push(e);return r}var KO,ZO,QO,JO=t(()=>{PT(),VO(),KO=Object.prototype,ZO=KO.hasOwnProperty,me(XO,"baseKeys"),QO=XO});function tP(t){return(n7(t)?s8:QO)(t)}var eP,rP,iP,nP,aP=t(()=>{o8(),JO(),a7(),me(tP,"keys"),eP=tP}),sP=t(()=>{W7(),X7(),sE(),a7(),PT(),aP(),iP=Object.prototype,rP=iP.hasOwnProperty,iP=iE(function(t,e){if(OT(e)||n7(e))V7(e,eP(e),t);else for(var r in e)rP.call(e,r)&&Y7(t,r,e[r])}),nP=iP});function oP(t,e){var r;return!KT(t)&&(!("number"!=(r=typeof t)&&"symbol"!=r&&"boolean"!=r&&null!=t&&!qD(t))||cP.test(t)||!lP.test(t)||null!=e&&t in Object(e))}var lP,cP,hP,uP=t(()=>{JT(),jD(),lP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cP= Line truncated L0,20`)},"requirement_arrow"),ND=me((t,e,r)=>{(t=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g")).append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),t.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),t.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ID={extension:mD,composition:yD,aggregation:vD,dependency:xD,lollipop:bD,point:wD,circle:kD,cross:TD,barb:ED,only_one:CD,zero_or_one:_D,one_or_more:SD,zero_or_more:AD,requirement_arrow:LD,requirement_contains:ND},RD=fD});async function OD(e,r,i){let n,a;"rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect");var s=r.shape?AM[r.shape]:void 0;if(!s)throw new Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let t;"sandbox"===i.config.securityLevel?t="_top":r.linkTarget&&(t=r.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",r.link).attr("target",t??null),a=await s(n,r,i)}else a=await s(e,r,i),n=a;return r.tooltip&&a.attr("title",r.tooltip),PD.set(r.id,n),r.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var PD,BD,FD,$D,zD,GD=t(()=>{e(),GM(),PD=new Map,me(OD,"insertNode"),BD=me((t,e)=>{PD.set(e.id,t)},"setNodeElem"),FD=me(()=>{PD.clear()},"clear"),$D=me(t=>{var e=PD.get(t.id),r=(M.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")"),t.diff||0);return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")}),UD=t(()=>{Ai(),Jc(),e(),WM(),MD(),DD(),GD(),n(),KE(),zD={common:L,getConfig:Nr,insertCluster:$M,insertEdge:gD,insertEdgeLabel:oD,insertMarkers:RD,insertNode:OD,interpolateToCurve:lE,labelHelper:X9,log:M,positionEdgeLabel:lD}});function qD(t){return"symbol"==typeof t||GT(t)&&"[object Symbol]"==x6(t)}var jD,WD=t(()=>{b6(),UT(),me(qD,"isSymbol"),jD=qD});function YD(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}var HD,VD=t(()=>{me(YD,"arrayMap"),HD=YD});function XD(t){var e;return"string"==typeof t?t:KT(t)?HD(t,XD)+"":jD(t)?QD?QD.call(t):"":"0"==(e=t+"")&&1/t==-KD?"-0":e}var KD,ZD,QD,JD,tO=t(()=>{n6(),VD(),JT(),WD(),KD=1/0,ZD=Y3?Y3.prototype:void 0,QD=ZD?ZD.toString:void 0,me(XD,"baseToString"),JD=XD});function eO(t){for(var e=t.length;e--&&rO.test(t.charAt(e)););return e}var rO,iO,nO=t(()=>{rO=/\s/,me(eO,"trimmedEndIndex"),iO=eO});function aO(t){return t&&t.slice(0,iO(t)+1).replace(sO,"")}var sO,oO,lO=t(()=>{nO(),sO=/^\s+/,me(aO,"baseTrim"),oO=aO});function cO(t){if("number"==typeof t)return t;if(jD(t))return hO;if(k6(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=k6(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=oO(t);var e=dO.test(t);return e||pO.test(t)?gO(t.slice(2),e?2:8):uO.test(t)?hO:+t}var hO,uO,dO,pO,gO,fO,mO=t(()=>{lO(),T6(),WD(),hO=NaN,uO=/^[-+]0x[0-9a-f]+$/i,dO=/^0b[01]+$/i,pO=/^0o[0-7]+$/i,gO=parseInt,me(cO,"toNumber"),fO=cO});function yO(t){return t?(t=fO(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}var vO,xO=t(()=>{mO(),me(yO,"toFinite"),vO=yO});function bO(t){var e=(t=vO(t))%1;return t==t?e?t-e:t:0}var wO,kO,TO,EO=t(()=>{xO(),me(bO,"toInteger"),wO=bO}),CO=t(()=>{tw(),i6(),kO=Z6(j3,"WeakMap"),TO=kO});function _O(){}var SO,AO=t(()=>{me(_O,"noop"),SO=_O});function LO(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}var NO,IO=t(()=>{me(LO,"arrayEach"),NO=LO});function RO(t,e,r,i){for(var n=t.length,a=r+(i?1:-1);i?a--:++a<n;)if(e(t[a],a,t))return a;return-1}var MO,DO=t(()=>{me(RO,"baseFindIndex"),MO=RO});function OO(t){return t!=t}var PO,BO=t(()=>{me(OO,"baseIsNaN"),PO=OO});function FO(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}var $O,zO=t(()=>{me(FO,"strictIndexOf"),$O=FO});function GO(t,e,r){return e==e?$O(t,e,r):MO(t,PO,r)}var UO,qO=t(()=>{DO(),BO(),zO(),me(GO,"baseIndexOf"),UO=GO});function jO(t,e){return!(null==t||!t.length)&&-1<UO(t,e,0)}var WO,YO,HO,VO=t(()=>{qO(),me(jO,"arrayIncludes"),WO=jO}),XO=t(()=>{IT(),YO=AT(Object.keys,Object),HO=YO});function KO(t){if(!OT(t))return HO(t);var e,r=[];for(e in Object(t))QO.call(t,e)&&"constructor"!=e&&r.push(e);return r}var ZO,QO,JO,tP=t(()=>{PT(),XO(),ZO=Object.prototype,QO=ZO.hasOwnProperty,me(KO,"baseKeys"),JO=KO});function eP(t){return(n7(t)?s8:JO)(t)}var rP,iP,nP,aP,sP=t(()=>{o8(),tP(),a7(),me(eP,"keys"),rP=eP}),oP=t(()=>{Y7(),X7(),sE(),a7(),PT(),sP(),nP=Object.prototype,iP=nP.hasOwnProperty,nP=iE(function(t,e){if(OT(e)||n7(e))V7(e,rP(e),t);else for(var r in e)iP.call(e,r)&&W7(t,r,e[r])}),aP=nP});function lP(t,e){var r;return!KT(t)&&(!("number"!=(r=typeof t)&&"symbol"!=r&&"boolean"!=r&&null!=t&&!jD(t))||hP.test(t)||!cP.test(t)||null!=e&&t in Object(e))}var cP,hP,uP,dP=t(()=>{JT(),WD(),cP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hP= Line truncated
Node.id = `,t,` Node.id = `,t,`
data=`,e.height,` data=`,e.height,`
Parent cluster`,o.height),n.setNode(o.id,e),n.parent(t)||(R.trace("Setting parent",t,o.id),n.setParent(t,o.id,e))),R.info("(Insert) Node XXX"+t+": "+JSON.stringify(n.node(t))),i?.clusterNode?(R.info("Cluster identified XBX",t,i.width,n.node(t)),{ranksep:e,nodesep:r}=n.graph(),i.graph.setGraph({...i.graph.graph(),ranksep:e+25,nodesep:r}),r=(e=await bX(u,i.graph,a,s,n.node(t),l)).elem,Z9(i,r),i.diff=e.diff||0,R.info("New compound node after recursive render XAX",t,"width",i.width,"height",i.height),PD(r,i)):0<n.children(t).length?(R.trace("Cluster - the non recursive path XBX",t,i.id,i,i.width,"Graph:",n),R.trace(hX(i.id,n)),eX.set(i.id,{id:hX(i.id,n),node:i})):(R.trace("Node - the non recursive path XAX",t,u,n.node(t),c),await DD(u,n.node(t),{config:l,dir:c}))})),await me(async()=>{var t=n.edges().map(async function(t){var e=n.edge(t.v,t.w,t.name);R.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),R.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),R.info("Fix",eX,"ids:",t.v,t.w,"Translating: ",eX.get(t.v),eX.get(t.w)),await sD(r,e)});await Promise.all(t)},"processEdges")(),R.info("Graph before layout:",JSON.stringify(QV(n))),R.info("############################################# XXX"),R.info("### Layout ### XXX"),R.info("############################################# XXX"),EV(n),R.info("Graph after layout:",JSON.stringify(QV(n))),0),p=NR(l).subGraphTitleTotalMargin;return await Promise.all(fX(n).map(async function(t){var e,r=n.node(t);R.info("Position XBX => "+t+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r?.clusterNode?(r.y+=p,R.info("A tainted cluster node XBX1",t,r.id,r.width,r.height,r.x,r.y,n.parent(t)),eX.get(r.id).node=r,FD(r)):0<n.children(t).length?(R.info("A pure cluster node XBX1",t,r.id,r.x,r.y,r.width,r.height,n.parent(t)),r.height+=p,n.node(r.parentId),t=r?.padding/2||0,e=r?.labelBBox?.height||0,R.debug("OffsetY",e-t||0,"labelHeight",e,"halfPadding",t),await FR(i,r),eX.get(r.id).node=r):(e=n.node(r.parentId),r.y+=p/2,R.info("A regular node XBX1 - using the padding",r.id,"parent",r.parentId,r.width,r.height,r.x,r.y,"offsetY",r.offsetY,"parent",e,e?.offsetY,r),FD(r))})),n.edges().forEach(function(t){var e=n.edge(t),r=(R.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e),e.points.forEach(t=>t.y+=p/2),n.node(t.v)),t=n.node(t.w),r=pD(h,e,eX,a,r,t,s);oD(e,r)}),n.nodes().forEach(function(t){var e=n.node(t);R.info(t,e.type,e.diff),e.isGroup&&(d=e.diff)}),R.warn("Returning from recursive render XAX",t,d),{elem:t,diff:d}},"recursiveRender"),xX=me(async(t,e)=>{let l=new PY({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),r=e.select("g");ID(r,t.markers,t.type,t.diagramId),BD(),nD(),$R(),nX(),t.nodes.forEach(t=>{l.setNode(t.id,{...t}),t.parentId&&l.setParent(t.id,t.parentId)}),R.debug("Edges:",t.edges),t.edges.forEach(t=>{var e,r,i,n,a,s,o;t.start===t.end?(r=(e=t.start)+"---"+e+"---1",i=e+"---"+e+"---2",n=l.node(e),l.setNode(r,{domId:r,id:r,parentId:n.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),l.setParent(r,n.parentId),l.setNode(i,{domId:i,id:i,parentId:n.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),l.setParent(i,n.parentId),a=structuredClone(t),s=structuredClone(t),o=structuredClone(t),a.label="",a.arrowTypeEnd="none",a.id=e+"-cyclic-special-1",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=e+"-cyclic-special-mid",o.label="",n.isGroup&&(a.fromCluster=e,o.toCluster=e),o.id=e+"-cyclic-special-2",o.arrowTypeStart="none",l.setEdge(e,r,a,e+"-cyclic-special-0"),l.setEdge(r,i,s,e+"-cyclic-special-1"),l.setEdge(i,e,o,e+"-cyc<lic-special-2")):l.setEdge(t.start,t.end,{...t},t.id)}),R.warn("Graph at first:",JSON.stringify(QV(l))),dX(l),R.warn("Graph after XAX:",JSON.stringify(QV(l))),e=D(),await bX(r,l,t.type,t.diagramId,void 0,e)},"render")}),$X=t(()=>{UD(),e(),wX={},kX=me(t=>{for(var e of t)wX[e.name]=e},"registerLayoutLoaders"),me(()=>{kX([{name:"dagre",loader:me(async()=>Promise.resolve().then(()=>(FX(),vX)),"loader")}])},"registerDefaultLayoutLoaders")(),TX=me(async(t,e)=>{var r;if(t.layoutAlgorithm in wX)return(await(r=wX[t.layoutAlgorithm]).loader()).render(t,e,$D,{algorithm:r.algorithm});throw new Error("Unknown layout algorithm: "+t.layoutAlgorithm)},"render"),EX=me((t="",{fallback:e="dagre"}={})=>{if(t in wX)return t;if(e in wX)return R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")}),zX=t(()=>{th(),e(),_X=me((t,e,r,i)=>{t.attr("class",r);var{width:r,height:n,x:a,y:s}=CX(t,e),i=(Hc(t,n,r,i),SX(a,s,r,n,e));t.attr("viewBox",i),R.debug(`viewBox configured: ${i} with padding: `+e)},"setu Line truncated Parent cluster`,o.height),n.setNode(o.id,e),n.parent(t)||(M.trace("Setting parent",t,o.id),n.setParent(t,o.id,e))),M.info("(Insert) Node XXX"+t+": "+JSON.stringify(n.node(t))),i?.clusterNode?(M.info("Cluster identified XBX",t,i.width,n.node(t)),{ranksep:e,nodesep:r}=n.graph(),i.graph.setGraph({...i.graph.graph(),ranksep:e+25,nodesep:r}),r=(e=await bX(u,i.graph,a,s,n.node(t),l)).elem,Z9(i,r),i.diff=e.diff||0,M.info("New compound node after recursive render XAX",t,"width",i.width,"height",i.height),BD(r,i)):0<n.children(t).length?(M.trace("Cluster - the non recursive path XBX",t,i.id,i,i.width,"Graph:",n),M.trace(uX(i.id,n)),rX.set(i.id,{id:uX(i.id,n),node:i})):(M.trace("Node - the non recursive path XAX",t,u,n.node(t),c),await OD(u,n.node(t),{config:l,dir:c}))})),await me(async()=>{var t=n.edges().map(async function(t){var e=n.edge(t.v,t.w,t.name);M.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),M.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),M.info("Fix",rX,"ids:",t.v,t.w,"Translating: ",rX.get(t.v),rX.get(t.w)),await oD(r,e)});await Promise.all(t)},"processEdges")(),M.info("Graph before layout:",JSON.stringify(JV(n))),M.info("############################################# XXX"),M.info("### Layout ### XXX"),M.info("############################################# XXX"),CV(n),M.info("Graph after layout:",JSON.stringify(JV(n))),0),p=IM(l).subGraphTitleTotalMargin;return await Promise.all(mX(n).map(async function(t){var e,r=n.node(t);M.info("Position XBX => "+t+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r?.clusterNode?(r.y+=p,M.info("A tainted cluster node XBX1",t,r.id,r.width,r.height,r.x,r.y,n.parent(t)),rX.get(r.id).node=r,$D(r)):0<n.children(t).length?(M.info("A pure cluster node XBX1",t,r.id,r.x,r.y,r.width,r.height,n.parent(t)),r.height+=p,n.node(r.parentId),t=r?.padding/2||0,e=r?.labelBBox?.height||0,M.debug("OffsetY",e-t||0,"labelHeight",e,"halfPadding",t),await $M(i,r),rX.get(r.id).node=r):(e=n.node(r.parentId),r.y+=p/2,M.info("A regular node XBX1 - using the padding",r.id,"parent",r.parentId,r.width,r.height,r.x,r.y,"offsetY",r.offsetY,"parent",e,e?.offsetY,r),$D(r))})),n.edges().forEach(function(t){var e=n.edge(t),r=(M.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e),e.points.forEach(t=>t.y+=p/2),n.node(t.v)),t=n.node(t.w),r=gD(h,e,rX,a,r,t,s);lD(e,r)}),n.nodes().forEach(function(t){var e=n.node(t);M.info(t,e.type,e.diff),e.isGroup&&(d=e.diff)}),M.warn("Returning from recursive render XAX",t,d),{elem:t,diff:d}},"recursiveRender"),wX=me(async(t,e)=>{let l=new BW({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),r=e.select("g");RD(r,t.markers,t.type,t.diagramId),FD(),aD(),zM(),aX(),t.nodes.forEach(t=>{l.setNode(t.id,{...t}),t.parentId&&l.setParent(t.id,t.parentId)}),M.debug("Edges:",t.edges),t.edges.forEach(t=>{var e,r,i,n,a,s,o;t.start===t.end?(r=(e=t.start)+"---"+e+"---1",i=e+"---"+e+"---2",n=l.node(e),l.setNode(r,{domId:r,id:r,parentId:n.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),l.setParent(r,n.parentId),l.setNode(i,{domId:i,id:i,parentId:n.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),l.setParent(i,n.parentId),a=structuredClone(t),s=structuredClone(t),o=structuredClone(t),a.label="",a.arrowTypeEnd="none",a.id=e+"-cyclic-special-1",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=e+"-cyclic-special-mid",o.label="",n.isGroup&&(a.fromCluster=e,o.toCluster=e),o.id=e+"-cyclic-special-2",o.arrowTypeStart="none",l.setEdge(e,r,a,e+"-cyclic-special-0"),l.setEdge(r,i,s,e+"-cyclic-special-1"),l.setEdge(i,e,o,e+"-cyc<lic-special-2")):l.setEdge(t.start,t.end,{...t},t.id)}),M.warn("Graph at first:",JSON.stringify(JV(l))),pX(l),M.warn("Graph after XAX:",JSON.stringify(JV(l))),e=D(),await bX(r,l,t.type,t.diagramId,void 0,e)},"render")}),zX=t(()=>{UD(),e(),kX={},TX=me(t=>{for(var e of t)kX[e.name]=e},"registerLayoutLoaders"),me(()=>{TX([{name:"dagre",loader:me(async()=>Promise.resolve().then(()=>($X(),xX)),"loader")}])},"registerDefaultLayoutLoaders")(),EX=me(async(t,e)=>{var r;if(t.layoutAlgorithm in kX)return(await(r=kX[t.layoutAlgorithm]).loader()).render(t,e,zD,{algorithm:r.algorithm});throw new Error("Unknown layout algorithm: "+t.layoutAlgorithm)},"render"),CX=me((t="",{fallback:e="dagre"}={})=>{if(t in kX)return t;if(e in kX)return M.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")}),GX=t(()=>{th(),e(),_X=me((t,e,r,i)=>{t.attr("class",r);var{width:r,height:n,x:a,y:s}=SX(t,e),i=(Hc(t,n,r,i),AX(a,s,r,n,e));t.attr("viewBox",i),M.debug(`viewBox configured: ${i} with padding: `+e)},"setu Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},F={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},F={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){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:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TBLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){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:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TBLine truncated
`),MX.parse(t)),DX=RX}),jX=t(()=>{mi(),OX=me((t,e)=>{var r=(n=Pe)(t,"r"),i=n(t,"g"),n=n(t,"b");return De(r,i,n,e)},"fade"),PX=me(t=>`.label { `),MX.parse(t)),OX=DX}),WX=t(()=>{mi(),PX=me((t,e)=>{var r=(n=Pe)(t,"r"),i=n(t,"g"),n=n(t,"b");return De(r,i,n,e)},"fade"),BX=me(t=>`.label {
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
color: ${t.nodeTextColor||t.textColor}; color: ${t.nodeTextColor||t.textColor};
} }
@@ -564,7 +564,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
/* For html labels only */ /* For html labels only */
.labelBkg { .labelBkg {
background-color: ${OX(t.edgeLabelBackground,.5)}; background-color: ${PX(t.edgeLabelBackground,.5)};
// background-color: // background-color:
} }
@@ -623,12 +623,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
} }
text-align: center; text-align: center;
} }
`,"getStyles"),BX=PX}),YX={};fOt(YX,{diagram:()=>WX});var WX,HX,VX,XX,KX=t(()=>{fu(),UR(),UX(),qX(),jX(),WX={parser:DX,get db(){return new AR},renderer:NX,styles:BX,init:me(t=>{t.flowchart||(t.flowchart={}),t.layout&&mh({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,mh({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}}),ZX=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],i=[1,10],n=[1,11],a=[1,12],s=[1,13],o=[1,20],l=[1,21],c=[1,22],h=[1,23],u=[1,24],d=[1,19],p=[1,25],P=[1,26],g=[1,18],f=[1,33],m=[1,34],y=[1,35],v=[1,36],b=[1,37],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],x=[1,42],w=[1,43],k=[1,52],T=[40,50,68,69],E=[1,63],_=[1,61],C=[1,58],S=[1,62],A=[1,64],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],F=[63,64,65,66,67],$=[1,81],z=[1,80],U=[1,78],G=[1,79],q=[6,10,42,47],N=[6,10,13,41,42,47,48,49],I=[1,89],M=[1,88],R=[1,87],D=[19,56],j=[1,98],Y=[1,97],O=[19,56,58,60],i={trace:me(function(){},"trace"),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,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:i.addEntity(a[o-4]),i.addEntity(a[o-2]),i.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:i.addEntity(a[o-8]),i.addEntity(a[o-4]),i.addRelationship(a[o-8],a[o],a[o-4],a[o-5]),i.setClass([a[o-8]],a[o-6]),i.setClass([a[o-4]],a[o-2]);break;case 10:i.addEntity(a[o-6]),i.addEntity(a[o-2]),i.addRelationship(a[o-6],a[o],a[o-2],a[o-3]),i.setClass([a[o-6]],a[o-4]);break;case 11:i.addEntity(a[o-6]),i.addEntity(a[o-4]),i.addRelationship(a[o-6],a[o],a[o-4],a[o-5]),i.setClass([a[o-4]],a[o-2]);break;case 12:i.addEntity(a[o-3]),i.addAttributes(a[o-3],a[o-1]);break;case 13:i.addEntity(a[o-5]),i.addAttributes(a[o-5],a[o-1]),i.setClass([a[o-5]],a[o-3]);break;case 14:i.addEntity(a[o-2]);break;case 15:i.addEntity(a[o-4]),i.setClass([a[o-4]],a[o-2]);break;case 16:i.addEntity(a[o]);break;case 17:i.addEntity(a[o-2]),i.setClass([a[o-2]],a[o]);break;case 18:i.addEntity(a[o-6],a[o-4]),i.addAttributes(a[o-6],a[o-1]);break;case 19:i.addEntity(a[o-8],a[o-6]),i.addAttributes(a[o-8],a[o-1]),i.setClass([a[o-8]],a[o-3]);break;case 20:i.addEntity(a[o-5],a[o-3]);break;case 21:i.addEntity(a[o-7],a[o-5]),i.setClass([a[o-7]],a[o-2]);break;case 22:i.addEntity(a[o-3],a[o-1]);break;case 23:i.addEntity(a[o-5],a[o-3]),i.setClass([a[o-5]],a[o]);break;case 24:case 25:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 26:case 27:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 32:i.setDirection("TB");break;case 33:i.setDirection("BT");break;case 34:i.setDirection("RL");break;cas Line truncated `,"getStyles"),FX=BX}),YX={};lPt(YX,{diagram:()=>HX});var HX,VX,XX,KX,ZX=t(()=>{fu(),UM(),UX(),jX(),WX(),HX={parser:OX,get db(){return new LM},renderer:IX,styles:FX,init:me(t=>{t.flowchart||(t.flowchart={}),t.layout&&mh({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,mh({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}}),QX=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],i=[1,10],n=[1,11],a=[1,12],s=[1,13],o=[1,20],l=[1,21],c=[1,22],h=[1,23],u=[1,24],d=[1,19],p=[1,25],P=[1,26],g=[1,18],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],b=[1,42],w=[1,43],k=[1,52],T=[40,50,68,69],E=[1,63],C=[1,61],_=[1,58],S=[1,62],A=[1,64],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],F=[63,64,65,66,67],$=[1,81],z=[1,80],G=[1,78],U=[1,79],q=[6,10,42,47],N=[6,10,13,41,42,47,48,49],I=[1,89],R=[1,88],M=[1,87],D=[19,56],j=[1,98],W=[1,97],O=[19,56,58,60],i={trace:me(function(){},"trace"),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,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:i.addEntity(a[o-4]),i.addEntity(a[o-2]),i.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:i.addEntity(a[o-8]),i.addEntity(a[o-4]),i.addRelationship(a[o-8],a[o],a[o-4],a[o-5]),i.setClass([a[o-8]],a[o-6]),i.setClass([a[o-4]],a[o-2]);break;case 10:i.addEntity(a[o-6]),i.addEntity(a[o-2]),i.addRelationship(a[o-6],a[o],a[o-2],a[o-3]),i.setClass([a[o-6]],a[o-4]);break;case 11:i.addEntity(a[o-6]),i.addEntity(a[o-4]),i.addRelationship(a[o-6],a[o],a[o-4],a[o-5]),i.setClass([a[o-4]],a[o-2]);break;case 12:i.addEntity(a[o-3]),i.addAttributes(a[o-3],a[o-1]);break;case 13:i.addEntity(a[o-5]),i.addAttributes(a[o-5],a[o-1]),i.setClass([a[o-5]],a[o-3]);break;case 14:i.addEntity(a[o-2]);break;case 15:i.addEntity(a[o-4]),i.setClass([a[o-4]],a[o-2]);break;case 16:i.addEntity(a[o]);break;case 17:i.addEntity(a[o-2]),i.setClass([a[o-2]],a[o]);break;case 18:i.addEntity(a[o-6],a[o-4]),i.addAttributes(a[o-6],a[o-1]);break;case 19:i.addEntity(a[o-8],a[o-6]),i.addAttributes(a[o-8],a[o-1]),i.setClass([a[o-8]],a[o-3]);break;case 20:i.addEntity(a[o-5],a[o-3]);break;case 21:i.addEntity(a[o-7],a[o-5]),i.setClass([a[o-7]],a[o-2]);break;case 22:i.addEntity(a[o-3],a[o-1]);break;case 23:i.addEntity(a[o-5],a[o-3]),i.setClass([a[o-5]],a[o]);break;case 24:case 25:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 26:case 27:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 32:i.setDirection("TB");break;case 33:i.setDirection("BT");break;case 34:i.setDirection("RL");break;cas Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return e.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:case 43:case 44:return 65;case 45:case 46:return 63;case 47:case 48:case 49:case 50:case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:case 56:case 57:case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:case 65:return 69;case 66:case 67:case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return e.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,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,71,72,73,74],inclusive:!0}}};i.lexer=n,me(t,"Parser"),(HX=new((t.prototype=i).Parser=t)).parser=HX,VX=HX}),QX=t(()=>{e(),fu(),gu(),KE(),XX=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={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"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=lh,this.getAccTitle=ch,this.setAccDescription=hh,this.getAccDescription=uh,this.setDiagramTitle=dh,this.getDiagramTitle=ph,this.getConfig=me(()=>D().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=th Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return e.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:case 43:case 44:return 65;case 45:case 46:return 63;case 47:case 48:case 49:case 50:case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:case 56:case 57:case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:case 65:return 69;case 66:case 67:case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return e.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,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,71,72,73,74],inclusive:!0}}};i.lexer=n,me(t,"Parser"),(VX=new((t.prototype=i).Parser=t)).parser=VX,XX=VX}),JX=t(()=>{e(),fu(),gu(),KE(),KX=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={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"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=lh,this.getAccTitle=ch,this.setAccDescription=hh,this.getAccDescription=uh,this.setDiagramTitle=dh,this.getDiagramTitle=ph,this.getConfig=me(()=>D().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=th Line truncated
.entityBox { .entityBox {
fill: ${t.mainBkg}; fill: ${t.mainBkg};
stroke: ${t.nodeBorder}; stroke: ${t.nodeBorder};
@@ -644,7 +644,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
} }
.labelBkg { .labelBkg {
background-color: ${eK(t.tertiaryColor,.5)}; background-color: ${rK(t.tertiaryColor,.5)};
} }
.edgeLabel .label { .edgeLabel .label {
@@ -682,69 +682,69 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
stroke: ${t.lineColor} !important; stroke: ${t.lineColor} !important;
stroke-width: 1; stroke-width: 1;
} }
`,"getStyles"),iK=rK}),sK={};fOt(sK,{diagram:()=>oK});var oK,lK=t(()=>{ZX(),QX(),nK(),aK(),oK={parser:VX,get db(){return new XX},renderer:JX,styles:iK}});function cK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.$type}function hK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.$refText}function uK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.name&&"string"==typeof t.type&&"string"==typeof t.path}function dK(t){return"object"==typeof t&&null!==t&&cK(t.container)&&hK(t.reference)&&"string"==typeof t.message}function pK(t){return"object"==typeof t&&null!==t&&Array.isArray(t.content)}function gK(t){return"object"==typeof t&&null!==t&&"object"==typeof t.tokenType}function fK(t){return pK(t)&&"string"==typeof t.fullText}var mK,yK=t(()=>{me(cK,"isAstNode"),me(hK,"isReference"),me(uK,"isAstNodeDescription"),me(dK,"isLinkingError"),mK=class{static{me(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,e){return cK(t)&&this.isSubtype(t.$type,e)}isSubtype(t,e){var r,i;return t===e||(void 0!==(i=(r=(r=this.subtypes[t])||(this.subtypes[t]={}))[e])?i:(i=this.computeIsSubtype(t,e),r[e]=i))}getAllSubTypes(t){var e=this.allSubtypes[t];if(e)return e;var r,i=[];for(r of this.getAllTypes())this.isSubtype(r,t)&&i.push(r);return this.allSubtypes[t]=i}},me(pK,"isCompositeCstNode"),me(gK,"isLeafCstNode"),me(fK,"isRootCstNode")});function vK(t){return"string"==typeof t?t:"u"<typeof t?"undefined":"function"==typeof t.toString?t.toString():Object.prototype.toString.call(t)}function bK(t){return!!t&&"function"==typeof t[Symbol.iterator]}function xK(...r){if(1===r.length){let e=r[0];if(e instanceof wK)return e;if(bK(e))return new wK(()=>e[Symbol.iterator](),t=>t.next());if("number"==typeof e.length)return new wK(()=>({index:0}),t=>t.index<e.length?{done:!1,value:e[t.index++]}:TK)}return 1<r.length?new wK(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){var e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}}while(t.collIndex<r.length&&(bK(e=r[t.collIndex++])?t.iterator=e[Symbol.iterator]():e&&"number"==typeof e.length&&(t.array=e)),t.iterator||t.array||t.collIndex<r.length);return TK}):kK}var wK,kK,TK,EK,_K,CK=t(()=>{function t(t){return t.reduce((t,e)=>t+e,0)}function e(t){return t.reduce((t,e)=>t*e,0)}function r(t){return t.reduce((t,e)=>Math.min(t,e))}function i(t){return t.reduce((t,e)=>Math.max(t,e))}var n;wK=class a{static{me(this,"StreamImpl")}constructor(t,e){this.startFn=t,this.nextFn=e}iterator(){let t={state:this.startFn(),next:me(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),e=0,r=t.next();for(;!r.done;)e++,r=t.next();return e}toArray(){for(var t,e=[],r=this.iterator();void 0!==(t=r.next()).value&&e.push(t.value),!t.done;);return e}toSet(){return new Set(this)}toMap(e,r){var t=this.map(t=>[e?e(t):t,r?r(t):t]);return new Map(t)}toString(){return this.join()}concat(t){return new a(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),t=>{let e;if(!t.firstDone){do{if(!(e=this.nextFn(t.first)).done)return e}while(!e.done);t.firstDone=!0}do{if(!(e=t.iterator.next()).done)return e}while(!e.done);return TK})}join(t=","){let e=this.iterator(),r="",i,n=!1;for(;(i=e.next()).done||(n&&(r+=t),r+=vK(i.value)),n=!0,!i.done;);return r}indexOf(t,e=0){let r=this.iterator(),i=0,n=r.next();for(;!n.done;){if(i>=e&&n.value===t)return i;n=r.next(),i++}return-1}every(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(!t(r.value))return!1;r=e.next()}return!0}some(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(t(r.value))return!0;r=e.next()}return!1}forEach(t){let e=this.iterator(),r=0,i=e.next();for(;!i.done;)t(i.value,r),i=e.next(),r++}map(r){return new a(this.startFn,t=>{var{done:t,value:e}=this.nextFn(t);return t?TK:{done:!1,value:r(e)}})}filter(r){return new a(this.startFn,t=>{var e;do{if(!(e=this.nextFn(t)).done&&r(e.value))return e}while(!e.done);return TK})}nonNullable(){return this.filter(t=>null!=t)}reduce(t,e){let r=this.iterator(),i=e,n=r.next();for(;!n.done;)i=void 0===i?n.value:t(i,n.value),n=r.next();return i}reduceRight(t,e){return this.recursiveReduce(this.iterator(),t,e)}recursiveReduce(t,e,r){var i=t.next();return i.done?r:void 0===(t=this.recursiveReduce(t,e,r))?i.value:e(t,i.value)}find(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(t(r.value))return r.value;r=e.next()}}findIndex(t){let e=this.iterator(),r=0,i=e.next();for(;!i.done;){if(t(i.value))return r;i=e.next(),r++}return-1}includes(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(r.value===t)return!0;r=e.next()}return!1}flatMap(i){return new a(()=>({this:this.startFn()}),t=>{do{if(t.iterator){if(!(e=t.iterator.next()).done)return e;t.iterator=void 0}var{done:e,value:r}=this.nextFn(t.this);if(!e){ Line truncated `,"getStyles"),nK=iK}),oK={};lPt(oK,{diagram:()=>lK});var lK,cK=t(()=>{QX(),JX(),aK(),sK(),lK={parser:XX,get db(){return new KX},renderer:tK,styles:nK}});function hK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.$type}function uK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.$refText}function dK(t){return"object"==typeof t&&null!==t&&"string"==typeof t.name&&"string"==typeof t.type&&"string"==typeof t.path}function pK(t){return"object"==typeof t&&null!==t&&hK(t.container)&&uK(t.reference)&&"string"==typeof t.message}function gK(t){return"object"==typeof t&&null!==t&&Array.isArray(t.content)}function fK(t){return"object"==typeof t&&null!==t&&"object"==typeof t.tokenType}function mK(t){return gK(t)&&"string"==typeof t.fullText}var yK,vK=t(()=>{me(hK,"isAstNode"),me(uK,"isReference"),me(dK,"isAstNodeDescription"),me(pK,"isLinkingError"),yK=class{static{me(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,e){return hK(t)&&this.isSubtype(t.$type,e)}isSubtype(t,e){var r,i;return t===e||(void 0!==(i=(r=(r=this.subtypes[t])||(this.subtypes[t]={}))[e])?i:(i=this.computeIsSubtype(t,e),r[e]=i))}getAllSubTypes(t){var e=this.allSubtypes[t];if(e)return e;var r,i=[];for(r of this.getAllTypes())this.isSubtype(r,t)&&i.push(r);return this.allSubtypes[t]=i}},me(gK,"isCompositeCstNode"),me(fK,"isLeafCstNode"),me(mK,"isRootCstNode")});function xK(t){return"string"==typeof t?t:"u"<typeof t?"undefined":"function"==typeof t.toString?t.toString():Object.prototype.toString.call(t)}function bK(t){return!!t&&"function"==typeof t[Symbol.iterator]}function wK(...r){if(1===r.length){let e=r[0];if(e instanceof kK)return e;if(bK(e))return new kK(()=>e[Symbol.iterator](),t=>t.next());if("number"==typeof e.length)return new kK(()=>({index:0}),t=>t.index<e.length?{done:!1,value:e[t.index++]}:EK)}return 1<r.length?new kK(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){var e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}}while(t.collIndex<r.length&&(bK(e=r[t.collIndex++])?t.iterator=e[Symbol.iterator]():e&&"number"==typeof e.length&&(t.array=e)),t.iterator||t.array||t.collIndex<r.length);return EK}):TK}var kK,TK,EK,CK,_K,SK=t(()=>{function t(t){return t.reduce((t,e)=>t+e,0)}function e(t){return t.reduce((t,e)=>t*e,0)}function r(t){return t.reduce((t,e)=>Math.min(t,e))}function i(t){return t.reduce((t,e)=>Math.max(t,e))}var n;kK=class a{static{me(this,"StreamImpl")}constructor(t,e){this.startFn=t,this.nextFn=e}iterator(){let t={state:this.startFn(),next:me(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),e=0,r=t.next();for(;!r.done;)e++,r=t.next();return e}toArray(){for(var t,e=[],r=this.iterator();void 0!==(t=r.next()).value&&e.push(t.value),!t.done;);return e}toSet(){return new Set(this)}toMap(e,r){var t=this.map(t=>[e?e(t):t,r?r(t):t]);return new Map(t)}toString(){return this.join()}concat(t){return new a(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),t=>{let e;if(!t.firstDone){do{if(!(e=this.nextFn(t.first)).done)return e}while(!e.done);t.firstDone=!0}do{if(!(e=t.iterator.next()).done)return e}while(!e.done);return EK})}join(t=","){let e=this.iterator(),r="",i,n=!1;for(;(i=e.next()).done||(n&&(r+=t),r+=xK(i.value)),n=!0,!i.done;);return r}indexOf(t,e=0){let r=this.iterator(),i=0,n=r.next();for(;!n.done;){if(i>=e&&n.value===t)return i;n=r.next(),i++}return-1}every(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(!t(r.value))return!1;r=e.next()}return!0}some(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(t(r.value))return!0;r=e.next()}return!1}forEach(t){let e=this.iterator(),r=0,i=e.next();for(;!i.done;)t(i.value,r),i=e.next(),r++}map(r){return new a(this.startFn,t=>{var{done:t,value:e}=this.nextFn(t);return t?EK:{done:!1,value:r(e)}})}filter(r){return new a(this.startFn,t=>{var e;do{if(!(e=this.nextFn(t)).done&&r(e.value))return e}while(!e.done);return EK})}nonNullable(){return this.filter(t=>null!=t)}reduce(t,e){let r=this.iterator(),i=e,n=r.next();for(;!n.done;)i=void 0===i?n.value:t(i,n.value),n=r.next();return i}reduceRight(t,e){return this.recursiveReduce(this.iterator(),t,e)}recursiveReduce(t,e,r){var i=t.next();return i.done?r:void 0===(t=this.recursiveReduce(t,e,r))?i.value:e(t,i.value)}find(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(t(r.value))return r.value;r=e.next()}}findIndex(t){let e=this.iterator(),r=0,i=e.next();for(;!i.done;){if(t(i.value))return r;i=e.next(),r++}return-1}includes(t){let e=this.iterator(),r=e.next();for(;!r.done;){if(r.value===t)return!0;r=e.next()}return!1}flatMap(i){return new a(()=>({this:this.startFn()}),t=>{do{if(t.iterator){if(!(e=t.iterator.next()).done)return e;t.iterator=void 0}var{done:e,value:r}=this.nextFn(t.this);if(!e){ Line truncated
`),sJ("\r"),sJ("\t"),sJ("\v"),sJ("\t"),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ(" "),sJ("\u2028"),sJ("\u2029"),sJ(" "),sJ(" "),sJ(" "),sJ("\ufeff")]}),kJ=t(()=>{xJ(),wJ(),fJ=/[0-9a-fA-F]/,mJ=/[0-9]/,yJ=/[1-9]/,vJ=class{static{me(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");for(var e=this.disjunction(),r=(this.consumeChar("/"),{type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1});this.isRegExpFlag();)switch(this.popChar()){case"g":lJ(r,"global");break;case"i":lJ(r,"ignoreCase");break;case"m":lJ(r,"multiLine");break;case"u":lJ(r,"unicode");break;case"y":lJ(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:e,loc:this.loc(0)}}disjunction(){var t=[],e=this.idx;for(t.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(e)}}alternative(){for(var t=[],e=this.idx;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(e)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){var e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}cJ(t);var r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return hJ()}quantifier(t=!1){let e,r=this.idx;switch(this.popChar()){case"*":e={atLeast:0,atMost:1/0};break;case"+":e={atLeast:1,atMost:1/0};break;case"?":e={atLeast:0,atMost:1};break;case"{":var i=this.integerIncludingZero();switch(this.popChar()){case"}":e={atLeast:i,atMost:i};break;case",":e=this.isDigit()?{atLeast:i,atMost:this.integerIncludingZero()}:{atLeast:i,atMost:1/0},this.consumeChar("}")}if(!0===t&&void 0===e)return;cJ(e)}if((!0!==t||void 0!==e)&&cJ(e))return"?"===this.peekChar(0)?(this.consumeChar("?"),e.greedy=!1):e.greedy=!0,e.type="Quantifier",e.loc=this.loc(r),e}atom(){let t,e=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group()}return cJ(t=void 0===t&&this.isPatternCharacter()?this.patternCharacter():t)?(t.loc=this.loc(e),this.isQuantifier()&&(t.quantifier=this.quantifier()),t):hJ()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[sJ(` `),oJ("\r"),oJ("\t"),oJ("\v"),oJ("\t"),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ(" "),oJ("\u2028"),oJ("\u2029"),oJ(" "),oJ(" "),oJ(" "),oJ("\ufeff")]}),TJ=t(()=>{wJ(),kJ(),mJ=/[0-9a-fA-F]/,yJ=/[0-9]/,vJ=/[1-9]/,xJ=class{static{me(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");for(var e=this.disjunction(),r=(this.consumeChar("/"),{type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1});this.isRegExpFlag();)switch(this.popChar()){case"g":cJ(r,"global");break;case"i":cJ(r,"ignoreCase");break;case"m":cJ(r,"multiLine");break;case"u":cJ(r,"unicode");break;case"y":cJ(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:e,loc:this.loc(0)}}disjunction(){var t=[],e=this.idx;for(t.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(e)}}alternative(){for(var t=[],e=this.idx;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(e)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){var e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}hJ(t);var r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return uJ()}quantifier(t=!1){let e,r=this.idx;switch(this.popChar()){case"*":e={atLeast:0,atMost:1/0};break;case"+":e={atLeast:1,atMost:1/0};break;case"?":e={atLeast:0,atMost:1};break;case"{":var i=this.integerIncludingZero();switch(this.popChar()){case"}":e={atLeast:i,atMost:i};break;case",":e=this.isDigit()?{atLeast:i,atMost:this.integerIncludingZero()}:{atLeast:i,atMost:1/0},this.consumeChar("}")}if(!0===t&&void 0===e)return;hJ(e)}if((!0!==t||void 0!==e)&&hJ(e))return"?"===this.peekChar(0)?(this.consumeChar("?"),e.greedy=!1):e.greedy=!0,e.type="Quantifier",e.loc=this.loc(r),e}atom(){let t,e=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group()}return hJ(t=void 0===t&&this.isPatternCharacter()?this.patternCharacter():t)?(t.loc=this.loc(e),this.isQuantifier()&&(t.quantifier=this.quantifier()),t):uJ()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[oJ(`
`),sJ("\r"),sJ("\u2028"),sJ("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,e=!1;switch(this.popChar()){case"d":t=dJ;break;case"D":t=dJ,e=!0;break;case"s":t=gJ;break;case"S":t=gJ,e=!0;break;case"w":t=pJ;break;case"W":t=pJ,e=!0}return cJ(t)?{type:"Set",value:t,complement:e}:hJ()}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=sJ("\f");break;case"n":t=sJ(` `),oJ("\r"),oJ("\u2028"),oJ("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,e=!1;switch(this.popChar()){case"d":t=pJ;break;case"D":t=pJ,e=!0;break;case"s":t=fJ;break;case"S":t=fJ,e=!0;break;case"w":t=gJ;break;case"W":t=gJ,e=!0}return hJ(t)?{type:"Set",value:t,complement:e}:uJ()}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=oJ("\f");break;case"n":t=oJ(`
`);break;case"r":t=sJ("\r");break;case"t":t=sJ("\t");break;case"v":t=sJ("\v")}return cJ(t)?{type:"Character",value:t}:hJ()}controlLetterEscapeAtom(){this.consumeChar("c");var t=this.popChar();if(!1===/[a-zA-Z]/.test(t))throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:sJ("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:sJ(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` `);break;case"r":t=oJ("\r");break;case"t":t=oJ("\t");break;case"v":t=oJ("\v")}return hJ(t)?{type:"Character",value:t}:uJ()}controlLetterEscapeAtom(){this.consumeChar("c");var t=this.popChar();if(!1===/[a-zA-Z]/.test(t))throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:oJ("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:oJ(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:sJ(this.popChar())}}}characterClass(){let t=[],e=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),e=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,uJ(r)&&this.isRangeDash()){this.consumeChar("-");var i=this.classAtom();if(i.type,uJ(i)){if(i.value<r.value)throw Error("Range out of order in character class");t.push({from:r.value,to:i.value})}else oJ(r.value,t),t.push(sJ("-")),oJ(i.value,t)}else oJ(r.value,t)}return this.consumeChar("]"),{type:"Set",complement:e,value:t}}classAtom(){switch(this.peekChar()){case"]":case` `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:oJ(this.popChar())}}}characterClass(){let t=[],e=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),e=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,dJ(r)&&this.isRangeDash()){this.consumeChar("-");var i=this.classAtom();if(i.type,dJ(i)){if(i.value<r.value)throw Error("Range out of order in character class");t.push({from:r.value,to:i.value})}else lJ(r.value,t),t.push(oJ("-")),lJ(i.value,t)}else lJ(r.value,t)}return this.consumeChar("]"),{type:"Set",complement:e,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:sJ("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let t=!0;"?"===(this.consumeChar("("),this.peekChar(0))?(this.consumeChar("?"),this.consumeChar(":"),t=!1):this.groupIdx++;var e=this.disjunction(),e=(this.consumeChar(")"),{type:"Group",capturing:t,value:e});return t&&(e.idx=this.groupIdx),e}positiveInteger(){let t=this.popChar();if(!1===yJ.test(t))throw Error("Expecting a positive integer");for(;mJ.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}integerIncludingZero(){let t=this.popChar();if(!1===mJ.test(t))throw Error("Expecting an integer");for(;mJ.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}patternCharacter(){var t=this.popChar();switch(t){case` `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:oJ("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let t=!0;"?"===(this.consumeChar("("),this.peekChar(0))?(this.consumeChar("?"),this.consumeChar(":"),t=!1):this.groupIdx++;var e=this.disjunction(),e=(this.consumeChar(")"),{type:"Group",capturing:t,value:e});return t&&(e.idx=this.groupIdx),e}positiveInteger(){let t=this.popChar();if(!1===vJ.test(t))throw Error("Expecting a positive integer");for(;yJ.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}integerIncludingZero(){let t=this.popChar();if(!1===yJ.test(t))throw Error("Expecting an integer");for(;yJ.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}patternCharacter(){var t=this.popChar();switch(t){case`
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:sJ(t)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return mJ.test(this.peekChar(0))}isClassAtom(t=0){switch(this.peekChar(t)){case"]":case` `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:oJ(t)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return yJ.test(this.peekChar(0))}isClassAtom(t=0){switch(this.peekChar(t)){case"]":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){var t=this.saveState();try{return void 0!==this.quantifier(!0)}catch{return!1}finally{this.restoreState(t)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case` `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){var t=this.saveState();try{return void 0!==this.quantifier(!0)}catch{return!1}finally{this.restoreState(t)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let t=0;t<e;t++){var i=this.popChar();if(!1===fJ.test(i))throw Error("Expecting a HexDecimal digits");r+=i}return{type:"Character",value:parseInt(r,16)}}peekChar(t=0){return this.input[this.idx+t]}popChar(){var t=this.peekChar(0);return this.consumeChar(void 0),t}consumeChar(t){if(void 0!==t&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}}),TJ=t(()=>{bJ=class{static{me(this,"BaseRegExpVisitor")}visitChildren(t){for(var e in t){var r=t[e];t.hasOwnProperty(e)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(t=>{this.visit(t)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t)}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}}),EJ=t(()=>{kJ(),TJ()}),_J={};function CJ(t){try{t=`/${t="string"!=typeof t?t.source:t}/`;var e,r=DJ.pattern(t),i=[];for(e of r.value.value)PJ.reset(t),PJ.visit(e),i.push({start:PJ.startRegexp,end:PJ.endRegex});return i}catch{return[]}}function SJ(t){try{return t=(t="string"==typeof t?new RegExp(t):t).toString(),PJ.reset(t),PJ.visit(DJ.pattern(t)),PJ.multiline}catch{return!1}}function AJ(t){let e="string"==typeof t?new RegExp(t):t;return BJ.some(t=>e.test(t))}function LJ(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function NJ(t){return Array.prototype.map.call(t,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:LJ(t)).join("")}function IJ(t,e){return t=MJ(t),!!(e=e.match(t))&&0<e[0].length}function MJ(t){let n=t="string"==typeof t?new RegExp(t):t,a=t.source,s=0;function o(){let e="",t;function r(t){e+=a.substr(s,t),s+=t}function i(t){e+="(?:"+a.substr(s,t)+"|$)",s+=t}for(me(r,"appendRaw"),me(i,"appendOptional");s<a.length;)switch(a[s]){case"\\":switch(a[s+1]){case"c":i(3);break;case"x":i(4);break;case"u":n.unicode?"{"===a[s+2]?i(a.indexOf("}",s)-s+1):i(6):i(2);break;case"p":case"P":n.unicode?i(a.indexOf("}",s)-s+1):i(2);break;case"k":i(a.indexOf(">",s)-s+1);break;default:i(2)}break;case"[":(t=/\[(?:\\.|.)*?\]/g).lastIndex=s,i((t=t.exec(a)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":r(1);break;case"{":(t=/\{\d+,?\d*\}/g).lastIndex=s,(t=t.exec(a))?r(t[0].length):i(1);break;case"(":if("?"===a[s+1])switch(a[s+2]){case":":e+="(?:",s+=3,e+=o()+"|$)";break;case"=":e+="(?=",s+=3,e+=o()+")";break;case"!":t=s,s+=3,o(),e+=a.substr(t,s-t);break;case"<":switch(a[s+3]){case"=":case"!":t=s,s+=4,o(),e+=a.substr(t,s-t);break;default:r(a.indexOf(">",s)-s+1),e+=o()+"|$)"}}else r(1),e+=o()+"|$)";break;case")":return++s,e;default:i(1)}return e}return me(o,"process"),new RegExp(o(),t.flags)}fOt(_J,{NEWLINE_REGEXP:()=>RJ,escapeRegExp:()=>LJ,getCaseInsensitivePattern:()=>NJ,getTerminalParts:()=>CJ,isMultilineComment:()=>SJ,isWhitespace:()=>AJ,partialMatches:()=>IJ,partialRegExp:()=>MJ,whitespaceCharacters:()=>BJ});var RJ,DJ,OJ,PJ,BJ,FJ=t(()=>{EJ(),RJ=/\r?\n/gm,DJ=new vJ,OJ=class extends bJ{static{me(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(t){this.multiline=!1,this.regex=t,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(t){t.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(t){var e=String.fromCharCode(t.value);this.multiline||e!==` `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let t=0;t<e;t++){var i=this.popChar();if(!1===mJ.test(i))throw Error("Expecting a HexDecimal digits");r+=i}return{type:"Character",value:parseInt(r,16)}}peekChar(t=0){return this.input[this.idx+t]}popChar(){var t=this.peekChar(0);return this.consumeChar(void 0),t}consumeChar(t){if(void 0!==t&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}}),EJ=t(()=>{bJ=class{static{me(this,"BaseRegExpVisitor")}visitChildren(t){for(var e in t){var r=t[e];t.hasOwnProperty(e)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(t=>{this.visit(t)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t)}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}}),CJ=t(()=>{TJ(),EJ()}),_J={};function SJ(t){try{t=`/${t="string"!=typeof t?t.source:t}/`;var e,r=OJ.pattern(t),i=[];for(e of r.value.value)BJ.reset(t),BJ.visit(e),i.push({start:BJ.startRegexp,end:BJ.endRegex});return i}catch{return[]}}function AJ(t){try{return t=(t="string"==typeof t?new RegExp(t):t).toString(),BJ.reset(t),BJ.visit(OJ.pattern(t)),BJ.multiline}catch{return!1}}function LJ(t){let e="string"==typeof t?new RegExp(t):t;return FJ.some(t=>e.test(t))}function NJ(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function IJ(t){return Array.prototype.map.call(t,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:NJ(t)).join("")}function RJ(t,e){return t=MJ(t),!!(e=e.match(t))&&0<e[0].length}function MJ(t){let n=t="string"==typeof t?new RegExp(t):t,a=t.source,s=0;function o(){let e="",t;function r(t){e+=a.substr(s,t),s+=t}function i(t){e+="(?:"+a.substr(s,t)+"|$)",s+=t}for(me(r,"appendRaw"),me(i,"appendOptional");s<a.length;)switch(a[s]){case"\\":switch(a[s+1]){case"c":i(3);break;case"x":i(4);break;case"u":n.unicode?"{"===a[s+2]?i(a.indexOf("}",s)-s+1):i(6):i(2);break;case"p":case"P":n.unicode?i(a.indexOf("}",s)-s+1):i(2);break;case"k":i(a.indexOf(">",s)-s+1);break;default:i(2)}break;case"[":(t=/\[(?:\\.|.)*?\]/g).lastIndex=s,i((t=t.exec(a)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":r(1);break;case"{":(t=/\{\d+,?\d*\}/g).lastIndex=s,(t=t.exec(a))?r(t[0].length):i(1);break;case"(":if("?"===a[s+1])switch(a[s+2]){case":":e+="(?:",s+=3,e+=o()+"|$)";break;case"=":e+="(?=",s+=3,e+=o()+")";break;case"!":t=s,s+=3,o(),e+=a.substr(t,s-t);break;case"<":switch(a[s+3]){case"=":case"!":t=s,s+=4,o(),e+=a.substr(t,s-t);break;default:r(a.indexOf(">",s)-s+1),e+=o()+"|$)"}}else r(1),e+=o()+"|$)";break;case")":return++s,e;default:i(1)}return e}return me(o,"process"),new RegExp(o(),t.flags)}lPt(_J,{NEWLINE_REGEXP:()=>DJ,escapeRegExp:()=>NJ,getCaseInsensitivePattern:()=>IJ,getTerminalParts:()=>SJ,isMultilineComment:()=>AJ,isWhitespace:()=>LJ,partialMatches:()=>RJ,partialRegExp:()=>MJ,whitespaceCharacters:()=>FJ});var DJ,OJ,PJ,BJ,FJ,$J=t(()=>{CJ(),DJ=/\r?\n/gm,OJ=new xJ,PJ=class extends bJ{static{me(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(t){this.multiline=!1,this.regex=t,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(t){t.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(t){var e=String.fromCharCode(t.value);this.multiline||e!==`
`||(this.multiline=!0),t.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(t=LJ(e),this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t))}visitSet(t){var e;this.multiline||(e=this.regex.substring(t.loc.begin,t.loc.end),e=new RegExp(e),this.multiline=!!` `||(this.multiline=!0),t.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(t=NJ(e),this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t))}visitSet(t){var e;this.multiline||(e=this.regex.substring(t.loc.begin,t.loc.end),e=new RegExp(e),this.multiline=!!`
`.match(e)),t.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(e=this.regex.substring(t.loc.begin,t.loc.end),this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e))}visitChildren(t){"Group"===t.type&&t.quantifier||super.visitChildren(t)}},PJ=new OJ,me(CJ,"getTerminalParts"),me(SJ,"isMultilineComment"),BJ=` `.match(e)),t.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(e=this.regex.substring(t.loc.begin,t.loc.end),this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e))}visitChildren(t){"Group"===t.type&&t.quantifier||super.visitChildren(t)}},BJ=new PJ,me(SJ,"getTerminalParts"),me(AJ,"isMultilineComment"),FJ=`
\r              

   `.split(""),me(AJ,"isWhitespace"),me(LJ,"escapeRegExp"),me(NJ,"getCaseInsensitivePattern"),me(IJ,"partialMatches"),me(MJ,"partialRegExp")}),$J={};function zJ(t){return t.rules.find(t=>kZ(t)&&t.entry)}function UJ(t){return t.rules.filter(t=>SZ(t)&&t.hidden)}function GJ(t,e){var r,i=new Set,n=zJ(t);if(!n)return new Set(t.rules);for(r of[n].concat(UJ(t)))qJ(r,i,e);var a,s=new Set;for(a of t.rules)(i.has(a.name)||SZ(a)&&a.hidden)&&s.add(a);return s}function qJ(t,e,r){e.add(t.name),ZQ(t).forEach(t=>{(UZ(t)||r&&jZ(t))&&(t=t.rule.ref)&&!e.has(t.name)&&qJ(t,e,r)})}function jJ(t){return t.terminal||(t.type.ref?JJ(t.type.ref)?.terminal:void 0)}function YJ(t){return t.hidden&&!AJ(gtt(t))}function WJ(t,e){return t&&e?VJ(t,e,t.astNode,!0):[]}function HJ(t,e,r){return t&&e&&0!==(e=VJ(t,e,t.astNode,!0)).length?e[r=void 0!==r?Math.max(0,Math.min(r,e.length-1)):0]:void 0}function VJ(t,e,r,i){return!i&&(i=WQ(t.grammarSource,RZ))&&i.feature===e?[t]:pK(t)&&t.astNode===r?t.content.flatMap(t=>VJ(t,e,r,!1)):[]}function XJ(t,e){return t?ZJ(t,e,t?.astNode):[]}function KJ(t,e,r){return t&&0!==(e=ZJ(t,e,t?.astNode)).length?e[r=void 0!==r?Math.max(0,Math.min(r,e.length-1)):0]:void 0}function ZJ(t,e,r){if(t.astNode!==r)return[];if(FZ(t.grammarSource)&&t.grammarSource.value===e)return[t];for(var i,n,a=AK(t).iterator(),s=[];(n=a.next()).done||((i=n.value).astNode===r?FZ(i.grammarSource)&&i.grammarSource.value===e&&s.push(i):a.prune()),!n.done;);return s}function QJ(t){for(var e=t.astNode;e===(null==(r=t.container)?void 0:r.astNode);){var r=WQ(t.grammarSource,RZ);if(r)return r;t=t.container}}function JJ(t){let e=t;return fZ(e)&&(IZ(e.$container)?e=e.$container.$container:kZ(e.$container)?e=e.$container:KK(e.$container)),ttt(t,e,new Map)}function ttt(i,t,n){var e,r;function a(t,e){let r;return WQ(t,RZ)||(r=ttt(e,e,n)),n.set(i,r),r}if(me(a,"go"),n.has(i))return n.get(i);n.set(i,void 0);for(r of ZQ(t)){if(RZ(r)&&"name"===r.feature.toLowerCase())return n.set(i,r),r;if(UZ(r)&&kZ(r.rule.ref))return a(r,r.rule.ref);if(_Z(r)&&null!=(e=r.typeRef)&&e.ref)return a(r,r.typeRef.ref)}}function ett(e){var t=e.$container;if(BZ(t)){var r=t.elements;for(let t=r.indexOf(e)-1;0<=t;t--){var i=r[t];if(IZ(i))return i;if(i=ZQ(r[t]).find(IZ))return i}}if(oZ(t))return ett(t)}function rtt(t,e){return"?"===t||"*"===t||BZ(e)&&!!e.guardCondition}function itt(t){return"*"===t||"+"===t}function ntt(t){return"+="===t}function att(t){return stt(t,new Set)}function stt(t,e){if(e.has(t))return!0;e.add(t);for(var r of ZQ(t))if(UZ(r)){if(!r.rule.ref||kZ(r.rule.ref)&&!stt(r.rule.ref,e))return!1}else{if(RZ(r))return!1;if(IZ(r))return!1}return!!t.definition}function ott(t){return ltt(t.type,new Set)}function ltt(t,e){return!!e.has(t)||(e.add(t),!cZ(t)&&!TZ(t)&&(NZ(t)?t.types.every(t=>ltt(t,e)):!!_Z(t)&&(void 0!==t.primitiveType||void 0!==t.stringType||void 0!==t.typeRef&&!!AZ(t=t.typeRef.ref)&&ltt(t.type,e))))}function ctt(t){return t.inferredType?t.inferredType.name:t.dataType||(t.returnType&&(t=t.returnType.ref)&&(kZ(t)||mZ(t)||AZ(t))?t.name:void 0)}function htt(t){if(kZ(t))return att(t)||null==(e=ctt(t))?t.name:e;if(mZ(t)||AZ(t)||EZ(t))return t.name;if(IZ(t)){var e=utt(t);if(e)return e}else if(fZ(t))return t.name;throw new Error("Cannot get name of Unknown Type")}function utt(t){var e;return t.inferredType?t.inferredType.name:null!=(e=t.type)&&e.ref?htt(t.type.ref):void 0}function dtt(t){var e;return SZ(t)?null!=(e=null==(e=t.type)?void 0:e.name)?e:"string":att(t)||null==(e=ctt(t))?t.name:e}function ptt(t){var e;return SZ(t)?null!=(e=null==(e=t.type)?void 0:e.name)?e:"string":null!=(e=ctt(t))?e:t.name}function gtt(t){var t=ftt(t.definition,e={s:!1,i:!1,u:!1}),e=Object.entries(e).filter(([,t])=>t).map(([t])=>t).join("");return new RegExp(t,e)}function ftt(t,e){if(GZ(t))return mtt(t);if(qZ(t))return ytt(t);if(DZ(t))return xtt(t);if(jZ(t)){var r=t.rule.ref;if(r)return ktt(ftt(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error("Missing rule reference.")}if($Z(t))return btt(t);if(WZ(t))return vtt(t);var i;if(zZ(t))return r=t.regex.lastIndexOf("/"),i=t.regex.substring(1,r),r=t.regex.substring(r+1),e&&(e.i=r.includes("i"),e.s=r.includes("s"),e.u=r.includes("u")),ktt(i,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1});if(HZ(t))return ktt(Ttt,{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error("Invalid terminal element: "+t?.$type)}function mtt(t){return ktt(t.elements.map(t=>ftt(t)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead})}function ytt(t){return ktt(t.elements.map(t=>ftt(t)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead})}function vtt(t){return ktt(Ttt+"*?"+ftt(t.terminal),{cardinality:t.cardinality,lookahead:t.lookahead})}function btt(t){return ktt(`(?!${ftt(t.terminal)})${Ttt}*?`,{cardinality:t.cardinality,lookahead:t.lookahead})}function xtt(t){return t.right?ktt(`[${wtt(t.left)}-${wtt(t.right)}]`,{cardinality:t.cardinality,lookahead:t Line truncated \r              

   `.split(""),me(LJ,"isWhitespace"),me(NJ,"escapeRegExp"),me(IJ,"getCaseInsensitivePattern"),me(RJ,"partialMatches"),me(MJ,"partialRegExp")}),zJ={};function GJ(t){return t.rules.find(t=>TZ(t)&&t.entry)}function UJ(t){return t.rules.filter(t=>AZ(t)&&t.hidden)}function qJ(t,e){var r,i=new Set,n=GJ(t);if(!n)return new Set(t.rules);for(r of[n].concat(UJ(t)))jJ(r,i,e);var a,s=new Set;for(a of t.rules)(i.has(a.name)||AZ(a)&&a.hidden)&&s.add(a);return s}function jJ(t,e,r){e.add(t.name),QQ(t).forEach(t=>{(UZ(t)||r&&WZ(t))&&(t=t.rule.ref)&&!e.has(t.name)&&jJ(t,e,r)})}function WJ(t){return t.terminal||(t.type.ref?ttt(t.type.ref)?.terminal:void 0)}function YJ(t){return t.hidden&&!LJ(ftt(t))}function HJ(t,e){return t&&e?XJ(t,e,t.astNode,!0):[]}function VJ(t,e,r){return t&&e&&0!==(e=XJ(t,e,t.astNode,!0)).length?e[r=void 0!==r?Math.max(0,Math.min(r,e.length-1)):0]:void 0}function XJ(t,e,r,i){return!i&&(i=HQ(t.grammarSource,DZ))&&i.feature===e?[t]:gK(t)&&t.astNode===r?t.content.flatMap(t=>XJ(t,e,r,!1)):[]}function KJ(t,e){return t?QJ(t,e,t?.astNode):[]}function ZJ(t,e,r){return t&&0!==(e=QJ(t,e,t?.astNode)).length?e[r=void 0!==r?Math.max(0,Math.min(r,e.length-1)):0]:void 0}function QJ(t,e,r){if(t.astNode!==r)return[];if($Z(t.grammarSource)&&t.grammarSource.value===e)return[t];for(var i,n,a=LK(t).iterator(),s=[];(n=a.next()).done||((i=n.value).astNode===r?$Z(i.grammarSource)&&i.grammarSource.value===e&&s.push(i):a.prune()),!n.done;);return s}function JJ(t){for(var e=t.astNode;e===(null==(r=t.container)?void 0:r.astNode);){var r=HQ(t.grammarSource,DZ);if(r)return r;t=t.container}}function ttt(t){let e=t;return mZ(e)&&(RZ(e.$container)?e=e.$container.$container:TZ(e.$container)?e=e.$container:ZK(e.$container)),ett(t,e,new Map)}function ett(i,t,n){var e,r;function a(t,e){let r;return HQ(t,DZ)||(r=ett(e,e,n)),n.set(i,r),r}if(me(a,"go"),n.has(i))return n.get(i);n.set(i,void 0);for(r of QQ(t)){if(DZ(r)&&"name"===r.feature.toLowerCase())return n.set(i,r),r;if(UZ(r)&&TZ(r.rule.ref))return a(r,r.rule.ref);if(_Z(r)&&null!=(e=r.typeRef)&&e.ref)return a(r,r.typeRef.ref)}}function rtt(e){var t=e.$container;if(FZ(t)){var r=t.elements;for(let t=r.indexOf(e)-1;0<=t;t--){var i=r[t];if(RZ(i))return i;if(i=QQ(r[t]).find(RZ))return i}}if(lZ(t))return rtt(t)}function itt(t,e){return"?"===t||"*"===t||FZ(e)&&!!e.guardCondition}function ntt(t){return"*"===t||"+"===t}function att(t){return"+="===t}function stt(t){return ott(t,new Set)}function ott(t,e){if(e.has(t))return!0;e.add(t);for(var r of QQ(t))if(UZ(r)){if(!r.rule.ref||TZ(r.rule.ref)&&!ott(r.rule.ref,e))return!1}else{if(DZ(r))return!1;if(RZ(r))return!1}return!!t.definition}function ltt(t){return ctt(t.type,new Set)}function ctt(t,e){return!!e.has(t)||(e.add(t),!hZ(t)&&!EZ(t)&&(IZ(t)?t.types.every(t=>ctt(t,e)):!!_Z(t)&&(void 0!==t.primitiveType||void 0!==t.stringType||void 0!==t.typeRef&&!!LZ(t=t.typeRef.ref)&&ctt(t.type,e))))}function htt(t){return t.inferredType?t.inferredType.name:t.dataType||(t.returnType&&(t=t.returnType.ref)&&(TZ(t)||yZ(t)||LZ(t))?t.name:void 0)}function utt(t){if(TZ(t))return stt(t)||null==(e=htt(t))?t.name:e;if(yZ(t)||LZ(t)||CZ(t))return t.name;if(RZ(t)){var e=dtt(t);if(e)return e}else if(mZ(t))return t.name;throw new Error("Cannot get name of Unknown Type")}function dtt(t){var e;return t.inferredType?t.inferredType.name:null!=(e=t.type)&&e.ref?utt(t.type.ref):void 0}function ptt(t){var e;return AZ(t)?null!=(e=null==(e=t.type)?void 0:e.name)?e:"string":stt(t)||null==(e=htt(t))?t.name:e}function gtt(t){var e;return AZ(t)?null!=(e=null==(e=t.type)?void 0:e.name)?e:"string":null!=(e=htt(t))?e:t.name}function ftt(t){var t=mtt(t.definition,e={s:!1,i:!1,u:!1}),e=Object.entries(e).filter(([,t])=>t).map(([t])=>t).join("");return new RegExp(t,e)}function mtt(t,e){if(qZ(t))return ytt(t);if(jZ(t))return vtt(t);if(OZ(t))return wtt(t);if(WZ(t)){var r=t.rule.ref;if(r)return Ttt(mtt(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error("Missing rule reference.")}if(zZ(t))return btt(t);if(HZ(t))return xtt(t);var i;if(GZ(t))return r=t.regex.lastIndexOf("/"),i=t.regex.substring(1,r),r=t.regex.substring(r+1),e&&(e.i=r.includes("i"),e.s=r.includes("s"),e.u=r.includes("u")),Ttt(i,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1});if(VZ(t))return Ttt(Ett,{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error("Invalid terminal element: "+t?.$type)}function ytt(t){return Ttt(t.elements.map(t=>mtt(t)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead})}function vtt(t){return Ttt(t.elements.map(t=>mtt(t)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead})}function xtt(t){return Ttt(Ett+"*?"+mtt(t.terminal),{cardinality:t.cardinality,lookahead:t.lookahead})}function btt(t){return Ttt(`(?!${mtt(t.terminal)})${Ett}*?`,{cardinality:t.cardinality,lookahead:t.lookahead})}function wtt(t){return t.right?Ttt(`[${ktt(t.left)}-${ktt(t.right)}]`,{cardinality:t.cardinality,lookahead Line truncated
Complement Sets cannot be automatically optimized. Complement Sets cannot be automatically optimized.
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`):(e=e?` See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`):(e=e?`
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`:"",Att(`${Oet} See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`:"",Ltt(`${Pet}
Failed parsing: < ${t.toString()} > Failed parsing: < ${t.toString()} >
Using the @chevrotain/regexp-to-ast library Using the @chevrotain/regexp-to-ast library
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+e))}return[]}function Aet(e,n,a){switch(e.type){case"Disjunction":for(let t=0;t<e.value.length;t++)Aet(e.value[t],n,a);break;case"Alternative":var r=e.value;for(let t=0;t<r.length;t++){var i=r[t];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=i;switch(s.type){case"Character":Let(s.value,n,a);break;case"Set":if(!0===s.complement)throw Error(Det);v(s.value,e=>{if("number"==typeof e)Let(e,n,a);else{var r=e;if(!0===a)for(let t=r.from;t<=r.to;t++)Let(t,n,a);else{for(let t=r.from;t<=r.to&&t<brt;t++)Let(t,n,a);if(r.to>=brt){var e=r.from>=brt?r.from:brt,t=r.to,e=hrt(e),i=hrt(t);for(let t=e;t<=i;t++)n[t]=t}}}});break;case"Group":Aet(s.value,n,a);break;default:throw Error("Non Exhaustive Match")}if(i=void 0!==s.quantifier&&0===s.quantifier.atLeast,"Group"===s.type&&!1===Met(s)||"Group"!==s.type&&0==i)break}break;default:throw Error("non exhaustive match!")}return YG(n)}function Let(t,e,r){var i=hrt(t);e[i]=i,!0===r&&Net(t,e)}function Net(t,e){var r=(t=String.fromCharCode(t)).toUpperCase();r!==t?e[r=hrt(r.charCodeAt(0))]=r:(r=t.toLowerCase())!==t&&(e[t=hrt(r.charCodeAt(0))]=t)}function Iet(t,r){return rG(t.value,t=>{if("number"==typeof t)return XG(r,t);{let e=t;return void 0!==rG(r,t=>e.from<=t&&t<=e.to)}})}function Met(t){var e=t.quantifier;return!(!e||0!==e.atLeast)||!!t.value&&(KT(t.value)?UU(t.value,Met):Met(t.value))}function Ret(e,t){var r,i;return t instanceof RegExp?(r=wet(t),(i=new Pet(e)).visit(r),i.found):void 0!==rG(t,t=>XG(e,t.charCodeAt(0)))}var Det,Oet,Pet,Bet=t(()=>{EJ(),LY(),Ott(),_et(),wrt(),Det="Complement Sets are not supported for first char optimization",Oet=`Unable to use "first char" lexer optimizations: Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+e))}return[]}function Let(e,n,a){switch(e.type){case"Disjunction":for(let t=0;t<e.value.length;t++)Let(e.value[t],n,a);break;case"Alternative":var r=e.value;for(let t=0;t<r.length;t++){var i=r[t];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=i;switch(s.type){case"Character":Net(s.value,n,a);break;case"Set":if(!0===s.complement)throw Error(Oet);v(s.value,e=>{if("number"==typeof e)Net(e,n,a);else{var r=e;if(!0===a)for(let t=r.from;t<=r.to;t++)Net(t,n,a);else{for(let t=r.from;t<=r.to&&t<brt;t++)Net(t,n,a);if(r.to>=brt){var e=r.from>=brt?r.from:brt,t=r.to,e=urt(e),i=urt(t);for(let t=e;t<=i;t++)n[t]=t}}}});break;case"Group":Let(s.value,n,a);break;default:throw Error("Non Exhaustive Match")}if(i=void 0!==s.quantifier&&0===s.quantifier.atLeast,"Group"===s.type&&!1===Met(s)||"Group"!==s.type&&0==i)break}break;default:throw Error("non exhaustive match!")}return YU(n)}function Net(t,e,r){var i=urt(t);e[i]=i,!0===r&&Iet(t,e)}function Iet(t,e){var r=(t=String.fromCharCode(t)).toUpperCase();r!==t?e[r=urt(r.charCodeAt(0))]=r:(r=t.toLowerCase())!==t&&(e[t=urt(r.charCodeAt(0))]=t)}function Ret(t,r){return iU(t.value,t=>{if("number"==typeof t)return KU(r,t);{let e=t;return void 0!==iU(r,t=>e.from<=t&&t<=e.to)}})}function Met(t){var e=t.quantifier;return!(!e||0!==e.atLeast)||!!t.value&&(KT(t.value)?UG(t.value,Met):Met(t.value))}function Det(e,t){var r,i;return t instanceof RegExp?(r=ket(t),(i=new Bet(e)).visit(r),i.found):void 0!==iU(t,t=>KU(e,t.charCodeAt(0)))}var Oet,Pet,Bet,Fet=t(()=>{CJ(),NW(),Ptt(),_et(),krt(),Oet="Complement Sets are not supported for first char optimization",Pet=`Unable to use "first char" lexer optimizations:
`,me(Cet,"getOptimizedStartCodesIndices"),me(Aet,"firstCharOptimizedIndices"),me(Let,"addOptimizedIdxToResult"),me(Net,"handleIgnoreCase"),me(Iet,"findCode"),me(Met,"isWholeOptional"),Pet=class extends bJ{static{me(this,"CharCodeFinder")}constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}super.visitChildren(t)}}visitCharacter(t){XG(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?void 0===Iet(t,this.targetCharCodes)&&(this.found=!0):void 0!==Iet(t,this.targetCharCodes)&&(this.found=!0)}},me(Ret,"canMatchCharCode")});function Fet(t,n){var e=(n=sU(n,{useSticky:frt,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` `,me(Aet,"getOptimizedStartCodesIndices"),me(Let,"firstCharOptimizedIndices"),me(Net,"addOptimizedIdxToResult"),me(Iet,"handleIgnoreCase"),me(Ret,"findCode"),me(Met,"isWholeOptional"),Bet=class extends bJ{static{me(this,"CharCodeFinder")}constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}super.visitChildren(t)}}visitCharacter(t){KU(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?void 0===Ret(t,this.targetCharCodes)&&(this.found=!0):void 0!==Ret(t,this.targetCharCodes)&&(this.found=!0)}},me(Det,"canMatchCharCode")});function $et(t,n){var e=(n=oG(n,{useSticky:mrt,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:me((t,e)=>e(),"tracer")})).tracer;e("initCharCodeToOptimizedIndexMap",()=>{urt()});let r,i=(e("Reject Lexer.NA",()=>{r=jj(t,t=>t[drt]===zrt.NA)}),!1),a;e("Transform Patterns",()=>{i=!1,a=b(r,t=>{var e,t=t[drt];if(cq(t))return 1!==(e=t.source).length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||XG(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?(n.useSticky?trt:Jet)(t):e[1]:e;if(_6(t))return i=!0,{exec:t};if("object"==typeof t)return i=!0,t;if("string"==typeof t)return 1===t.length?t:(e=t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),t=new RegExp(e),(n.useSticky?trt:Jet)(t));throw Error("non exhaustive match")})});let s,o,l,c,h;e("misc mapping",()=>{s=b(r,t=>t.tokenTypeIdx),o=b(r,t=>{if((t=t.GROUP)!==zrt.SKIPPED){if($G(t))return t;if(pq(t))return!1;throw Error("non exhaustive match")}}),l=b(r,t=>{if(t=t.LONGER_ALT)return KT(t)?b(t,t=>JG(r,t)):[JG(r,t)]}),c=b(r,t=>t.PUSH_MODE),h=b(r,t=>PG(t,"POP_MODE"))});let u;e("Line Terminator Handling",()=>{let e=lrt(n.lineTerminatorCharacters);u=b(r,t=>!1),"onlyOffset"!==n.positionTracking&&(u=b(r,t=>PG(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===srt(t,e)&&Ret(e,t.PATTERN)))});let d,p,g,f,m=(e("Misc Mapping #2",()=>{d=b(r,nrt),p=b(a,art),g=Uj(r,(t,e)=>(e=e.GROUP,$G(e)&&e!==zrt.SKIPPED&&(t[e]=[]),t),{}),f=b(a,(t,e)=>({pattern:a[e],longerAlt:l[e],canLineTerminator:u[e],isCustom:d[e],short:p[e],group:o[e],push:c[e],pop:h[e],tokenTypeIdx:s[e],tokenType:r[e]}))}),!0),y=[];return n.safeMode||e("First Char Optimization",()=>{y=Uj(r,(r,t,i)=>{if("string"==typeof t.PATTERN){var e=hrt(t.PATTERN.charCodeAt(0));crt(r,e,f[i])}else if(KT(t.START_CHARS_HINT)){let e;v(t.START_CHARS_HINT,t=>{t=hrt("string"==typeof t?t.charCodeAt(0):t),e!==t&&(e=t,crt(r,t,f[i]))})}else cq(t.PATTERN)?t.PATTERN.unicode?(m=!1,n.ensureOptimizations&&Att(`${Oet} Unable to analyze < ${t.PATTERN.toString()} > pattern. `],tracer:me((t,e)=>e(),"tracer")})).tracer;e("initCharCodeToOptimizedIndexMap",()=>{drt()});let r,i=(e("Reject Lexer.NA",()=>{r=Wj(t,t=>t[prt]===Grt.NA)}),!1),a;e("Transform Patterns",()=>{i=!1,a=x(r,t=>{var e,t=t[prt];if(hq(t))return 1!==(e=t.source).length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||KU(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?(n.useSticky?ert:trt)(t):e[1]:e;if(C6(t))return i=!0,{exec:t};if("object"==typeof t)return i=!0,t;if("string"==typeof t)return 1===t.length?t:(e=t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),t=new RegExp(e),(n.useSticky?ert:trt)(t));throw Error("non exhaustive match")})});let s,o,l,c,h;e("misc mapping",()=>{s=x(r,t=>t.tokenTypeIdx),o=x(r,t=>{if((t=t.GROUP)!==Grt.SKIPPED){if(zU(t))return t;if(gq(t))return!1;throw Error("non exhaustive match")}}),l=x(r,t=>{if(t=t.LONGER_ALT)return KT(t)?x(t,t=>tq(r,t)):[tq(r,t)]}),c=x(r,t=>t.PUSH_MODE),h=x(r,t=>BU(t,"POP_MODE"))});let u;e("Line Terminator Handling",()=>{let e=crt(n.lineTerminatorCharacters);u=x(r,t=>!1),"onlyOffset"!==n.positionTracking&&(u=x(r,t=>BU(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===ort(t,e)&&Det(e,t.PATTERN)))});let d,p,g,f,m=(e("Misc Mapping #2",()=>{d=x(r,art),p=x(a,srt),g=Uj(r,(t,e)=>(e=e.GROUP,zU(e)&&e!==Grt.SKIPPED&&(t[e]=[]),t),{}),f=x(a,(t,e)=>({pattern:a[e],longerAlt:l[e],canLineTerminator:u[e],isCustom:d[e],short:p[e],group:o[e],push:c[e],pop:h[e],tokenTypeIdx:s[e],tokenType:r[e]}))}),!0),y=[];return n.safeMode||e("First Char Optimization",()=>{y=Uj(r,(r,t,i)=>{if("string"==typeof t.PATTERN){var e=urt(t.PATTERN.charCodeAt(0));hrt(r,e,f[i])}else if(KT(t.START_CHARS_HINT)){let e;v(t.START_CHARS_HINT,t=>{t=urt("string"==typeof t?t.charCodeAt(0):t),e!==t&&(e=t,hrt(r,t,f[i]))})}else hq(t.PATTERN)?t.PATTERN.unicode?(m=!1,n.ensureOptimizations&&Ltt(`${Pet} Unable to analyze < ${t.PATTERN.toString()} > pattern.
The regexp unicode flag is not currently supported by the regexp-to-ast library. The regexp unicode flag is not currently supported by the regexp-to-ast library.
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)):(e=Cet(t.PATTERN,n.ensureOptimizations),nq(e)&&(m=!1),v(e,t=>{crt(r,t,f[i])})):(n.ensureOptimizations&&Att(`${Oet} TokenType: <${t.name}> is using a custom token pattern without providing <start_chars_hint> parameter. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)):(e=Aet(t.PATTERN,n.ensureOptimizations),aq(e)&&(m=!1),v(e,t=>{hrt(r,t,f[i])})):(n.ensureOptimizations&&Ltt(`${Pet} TokenType: <${t.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1);return r},[])}),{emptyGroups:g,patternIdxToConfig:f,charCodeToPatternIdxToConfig:y,hasCustom:i,canBeOptimized:m}}function $et(t,e){let r=[],i=Uet(t);r=r.concat(i.errors);var n=(t=Get(i.valid)).valid;return r=(r=(r=(r=(r=r.concat(t.errors)).concat(zet(n))).concat(Vet(n))).concat(Xet(n,e))).concat(Ket(n))}function zet(t){let e=[],r=HU(t,t=>cq(t[drt]));return e=(e=(e=(e=(e=e.concat(qet(r))).concat(Yet(r))).concat(Wet(r))).concat(Het(r))).concat(jet(r))}function Uet(t){var e=HU(t,t=>!PG(t,drt));return{errors:b(e,t=>({message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:Frt.MISSING_PATTERN,tokenTypes:[t]})),valid:mU(t,e)}}function Get(t){var e=HU(t,t=>(t=t[drt],!(cq(t)||_6(t)||PG(t,"exec")||$G(t))));return{errors:b(e,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Frt.INVALID_PATTERN,tokenTypes:[t]})),valid:mU(t,e)}}function qet(t){class i extends bJ{static{me(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(t){this.found=!0}}return t=HU(t,t=>{t=t.PATTERN;try{var e=wet(t),r=new i;return r.visit(e),r.found}catch{return mrt.test(t.source)}}),b(t,t=>({message:`Unexpected RegExp Anchor Error: For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1);return r},[])}),{emptyGroups:g,patternIdxToConfig:f,charCodeToPatternIdxToConfig:y,hasCustom:i,canBeOptimized:m}}function zet(t,e){let r=[],i=Uet(t);r=r.concat(i.errors);var n=(t=qet(i.valid)).valid;return r=(r=(r=(r=(r=r.concat(t.errors)).concat(Get(n))).concat(Xet(n))).concat(Ket(n,e))).concat(Zet(n))}function Get(t){let e=[],r=VG(t,t=>hq(t[prt]));return e=(e=(e=(e=(e=e.concat(jet(r))).concat(Yet(r))).concat(Het(r))).concat(Vet(r))).concat(Wet(r))}function Uet(t){var e=VG(t,t=>!BU(t,prt));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:$rt.MISSING_PATTERN,tokenTypes:[t]})),valid:yG(t,e)}}function qet(t){var e=VG(t,t=>(t=t[prt],!(hq(t)||C6(t)||BU(t,"exec")||zU(t))));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:$rt.INVALID_PATTERN,tokenTypes:[t]})),valid:yG(t,e)}}function jet(t){class i extends bJ{static{me(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(t){this.found=!0}}return t=VG(t,t=>{t=t.PATTERN;try{var e=ket(t),r=new i;return r.visit(e),r.found}catch{return yrt.test(t.source)}}),x(t,t=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+t.name+`<- static 'PATTERN' cannot contain end of input anchor '$' Token Type: ->`+t.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Frt.EOI_ANCHOR_FOUND,tokenTypes:[t]}))}function jet(t){return t=HU(t,t=>t.PATTERN.test("")),b(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:Frt.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}function Yet(t){class i extends bJ{static{me(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(t){this.found=!0}}return t=HU(t,t=>{t=t.PATTERN;try{var e=wet(t),r=new i;return r.visit(e),r.found}catch{return yrt.test(t.source)}}),b(t,t=>({message:`Unexpected RegExp Anchor Error: See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:$rt.EOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Wet(t){return t=VG(t,t=>t.PATTERN.test("")),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:$rt.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}function Yet(t){class i extends bJ{static{me(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(t){this.found=!0}}return t=VG(t,t=>{t=t.PATTERN;try{var e=ket(t),r=new i;return r.visit(e),r.found}catch{return vrt.test(t.source)}}),x(t,t=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+t.name+`<- static 'PATTERN' cannot contain start of input anchor '^' Token Type: ->`+t.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Frt.SOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Wet(t){return t=HU(t,t=>(t=t[drt])instanceof RegExp&&(t.multiline||t.global)),b(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Frt.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}function Het(t){let i=[],e=b(t,r=>Uj(t,(t,e)=>(r.PATTERN.source!==e.PATTERN.source||XG(i,e)||e.PATTERN===zrt.NA||(i.push(e),t.push(e)),t),[]));e=s$(e);var r=HU(e,t=>1<t.length);return b(r,t=>{var e=b(t,t=>t.name);return{message:`The same RegExp pattern ->${sG(t).PATTERN}<-has been used in all of the following Token Types: ${e.join(", ")} <-`,type:Frt.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}})}function Vet(t){return t=HU(t,t=>!!PG(t,"GROUP")&&(t=t.GROUP)!==zrt.SKIPPED&&t!==zrt.NA&&!$G(t)),b(t,t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Frt.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}function Xet(t,e){return t=HU(t,t=>void 0!==t.PUSH_MODE&&!XG(e,t.PUSH_MODE)),b(t,t=>({message:`Token Type: ->${t.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${t.PUSH_MODE}<-which does not exist`,type:Frt.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}))}function Ket(t){let a=[],e=Uj(t,(t,e,r)=>{var i=e.PATTERN;return i!==zrt.NA&&($G(i)?t.push({str:i,idx:r,tokenType:e}):cq(i)&&Qet(i)&&t.push({str:i.source,idx:r,tokenType:e})),t},[]);return v(t,(i,n)=>{v(e,({str:t,idx:e,tokenType:r})=>{n<e&&Zet(t,i.PATTERN)&&(e=`Token: ->${r.name}<- can never be matched. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:$rt.SOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Het(t){return t=VG(t,t=>(t=t[prt])instanceof RegExp&&(t.multiline||t.global)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:$rt.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}function Vet(t){let i=[],e=x(t,r=>Uj(t,(t,e)=>(r.PATTERN.source!==e.PATTERN.source||KU(i,e)||e.PATTERN===Grt.NA||(i.push(e),t.push(e)),t),[]));e=o$(e);var r=VG(e,t=>1<t.length);return x(r,t=>{var e=x(t,t=>t.name);return{message:`The same RegExp pattern ->${oU(t).PATTERN}<-has been used in all of the following Token Types: ${e.join(", ")} <-`,type:$rt.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}})}function Xet(t){return t=VG(t,t=>!!BU(t,"GROUP")&&(t=t.GROUP)!==Grt.SKIPPED&&t!==Grt.NA&&!zU(t)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:$rt.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}function Ket(t,e){return t=VG(t,t=>void 0!==t.PUSH_MODE&&!KU(e,t.PUSH_MODE)),x(t,t=>({message:`Token Type: ->${t.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${t.PUSH_MODE}<-which does not exist`,type:$rt.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}))}function Zet(t){let a=[],e=Uj(t,(t,e,r)=>{var i=e.PATTERN;return i!==Grt.NA&&(zU(i)?t.push({str:i,idx:r,tokenType:e}):hq(i)&&Jet(i)&&t.push({str:i.source,idx:r,tokenType:e})),t},[]);return v(t,(i,n)=>{v(e,({str:t,idx:e,tokenType:r})=>{n<e&&Qet(t,i.PATTERN)&&(e=`Token: ->${r.name}<- can never be matched.
Because it appears AFTER the Token Type ->${i.name}<-in the lexer's definition. Because it appears AFTER the Token Type ->${i.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:e,type:Frt.UNREACHABLE_PATTERN,tokenTypes:[i,r]}))})}),a}function Zet(t,e){var r;if(cq(e))return null!==(r=e.exec(t))&&0===r.index;if(_6(e))return e(t,0,[],{});if(PG(e,"exec"))return e.exec(t,0,[],{});if("string"==typeof e)return e===t;throw Error("non exhaustive match")}function Qet(e){return void 0===rG([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function Jet(t){var e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function trt(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}function ert(t,e,r){let n=[];return PG(t,prt)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+prt+`> property in its definition See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:e,type:$rt.UNREACHABLE_PATTERN,tokenTypes:[i,r]}))})}),a}function Qet(t,e){var r;if(hq(e))return null!==(r=e.exec(t))&&0===r.index;if(C6(e))return e(t,0,[],{});if(BU(e,"exec"))return e.exec(t,0,[],{});if("string"==typeof e)return e===t;throw Error("non exhaustive match")}function Jet(e){return void 0===iU([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function trt(t){var e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function ert(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}function rrt(t,e,r){let n=[];return BU(t,grt)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+grt+`> property in its definition
`,type:Frt.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),PG(t,grt)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+grt+`> property in its definition `,type:$rt.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),BU(t,frt)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+frt+`> property in its definition
`,type:Frt.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),PG(t,grt)&&PG(t,prt)&&!PG(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${prt}: <${t.defaultMode}>which does not exist `,type:$rt.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),BU(t,frt)&&BU(t,grt)&&!BU(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${grt}: <${t.defaultMode}>which does not exist
`,type:Frt.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),PG(t,grt)&&v(t.modes,(r,i)=>{v(r,(e,t)=>{pq(e)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${i}> at index: <${t}> `,type:$rt.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),BU(t,frt)&&v(t.modes,(r,i)=>{v(r,(e,t)=>{gq(e)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${i}> at index: <${t}>
`,type:Frt.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):PG(e,"LONGER_ALT")&&(t=KT(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT],v(t,t=>{pq(t)||XG(r,t)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${t.name}> on token <${e.name}> outside of mode <${i}> `,type:$rt.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):BU(e,"LONGER_ALT")&&(t=KT(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT],v(t,t=>{gq(t)||KU(r,t)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${t.name}> on token <${e.name}> outside of mode <${i}>
`,type:Frt.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))})}),n}function rrt(t,e,r){let i=[],n=!1,a=s$(WP(YG(t.modes))),s=jj(a,t=>t[drt]===zrt.NA),o=lrt(r);return e&&v(s,t=>{var e=srt(t,o);!1!==e?(e={message:ort(t,e),type:e.issue,tokenType:t},i.push(e)):PG(t,"LINE_BREAKS")?!0===t.LINE_BREAKS&&(n=!0):Ret(o,t.PATTERN)&&(n=!0)}),e&&!n&&i.push({message:`Warning: No LINE_BREAKS Found. `,type:$rt.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))})}),n}function irt(t,e,r){let i=[],n=!1,a=o$(HP(YU(t.modes))),s=Wj(a,t=>t[prt]===Grt.NA),o=crt(r);return e&&v(s,t=>{var e=ort(t,o);!1!==e?(e={message:lrt(t,e),type:e.issue,tokenType:t},i.push(e)):BU(t,"LINE_BREAKS")?!0===t.LINE_BREAKS&&(n=!0):Det(o,t.PATTERN)&&(n=!0)}),e&&!n&&i.push({message:`Warning: No LINE_BREAKS Found.
This Lexer has been defined to track line and column information, This Lexer has been defined to track line and column information,
But none of the Token Types can be identified as matching a line terminator. But none of the Token Types can be identified as matching a line terminator.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
for details.`,type:Frt.NO_LINE_BREAKS_FLAGS}),i}function irt(r){let i={},t=eP(r);return v(t,t=>{var e=r[t];if(!KT(e))throw Error("non exhaustive match");i[t]=[]}),i}function nrt(t){if(t=t.PATTERN,cq(t))return!1;if(_6(t))return!0;if(PG(t,"exec"))return!0;if($G(t))return!1;throw Error("non exhaustive match")}function art(t){return!(!$G(t)||1!==t.length)&&t.charCodeAt(0)}function srt(t,e){if(PG(t,"LINE_BREAKS"))return!1;if(cq(t.PATTERN)){try{Ret(e,t.PATTERN)}catch(t){return{issue:Frt.IDENTIFY_TERMINATOR,errMsg:t.message}}return!1}if($G(t.PATTERN))return!1;if(nrt(t))return{issue:Frt.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function ort(t,e){if(e.issue===Frt.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. for details.`,type:$rt.NO_LINE_BREAKS_FLAGS}),i}function nrt(r){let i={},t=rP(r);return v(t,t=>{var e=r[t];if(!KT(e))throw Error("non exhaustive match");i[t]=[]}),i}function art(t){if(t=t.PATTERN,hq(t))return!1;if(C6(t))return!0;if(BU(t,"exec"))return!0;if(zU(t))return!1;throw Error("non exhaustive match")}function srt(t){return!(!zU(t)||1!==t.length)&&t.charCodeAt(0)}function ort(t,e){if(BU(t,"LINE_BREAKS"))return!1;if(hq(t.PATTERN)){try{Det(e,t.PATTERN)}catch(t){return{issue:$rt.IDENTIFY_TERMINATOR,errMsg:t.message}}return!1}if(zU(t.PATTERN))return!1;if(art(t))return{issue:$rt.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function lrt(t,e){if(e.issue===$rt.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
The problem is in the <${t.name}> Token Type The problem is in the <${t.name}> Token Type
Root cause: ${e.errMsg}. Root cause: ${e.errMsg}.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Frt.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===$rt.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
The problem is in the <${t.name}> Token Type The problem is in the <${t.name}> Token Type
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function lrt(t){return b(t,t=>$G(t)?t.charCodeAt(0):t)}function crt(t,e,r){void 0===t[e]?t[e]=[r]:t[e].push(r)}function hrt(t){return t<brt?t:xrt[t]}function urt(){if(nq(xrt)){xrt=new Array(65536);for(let t=0;t<65536;t++)xrt[t]=255<t?255+~~(t/255):t}}var drt,prt,grt,frt,mrt,yrt,vrt,brt,xrt,wrt=t(()=>{EJ(),qrt(),LY(),Ott(),Bet(),_et(),drt="PATTERN",prt="defaultMode",grt="modes",frt="boolean"==typeof new RegExp("(?:)").sticky,me(Fet,"analyzeTokenTypes"),me($et,"validatePatterns"),me(zet,"validateRegExpPattern"),me(Uet,"findMissingPatterns"),me(Get,"findInvalidPatterns"),mrt=/[^\\][$]/,me(qet,"findEndOfInputAnchor"),me(jet,"findEmptyMatchRegExps"),yrt=/[^\\[][\^]|^\^/,me(Yet,"findStartOfInputAnchor"),me(Wet,"findUnsupportedFlags"),me(Het,"findDuplicatePatterns"),me(Vet,"findInvalidGroupType"),me(Xet,"findModesThatDoNotExist"),me(Ket,"findUnreachablePatterns"),me(Zet,"testTokenType"),me(Qet,"noMetaChar"),me(Jet,"addStartOfInput"),me(trt,"addStickyFlag"),me(ert,"performRuntimeChecks"),me(rrt,"performWarningRuntimeChecks"),me(irt,"cloneEmptyGroups"),me(nrt,"isCustomPattern"),me(art,"isShortPattern"),vrt={test:me(function(e){var r=e.length;for(let t=this.lastIndex;t<r;t++){var i=e.charCodeAt(t);if(10===i)return this.lastIndex=t+1,!0;if(13===i)return 10===e.charCodeAt(t+1)?this.lastIndex=t+2:this.lastIndex=t+1,!0}return!1},"test"),lastIndex:0},me(srt,"checkLineBreaksIssues"),me(ort,"buildLineBreakIssueMessage"),me(lrt,"getCharCodes"),me(crt,"addToMapOfArrays"),brt=256,xrt=[],me(hrt,"charCodeToOptimizedIndex"),me(urt,"initCharCodeToOptimizedIndexMap")});function krt(t,e){return(t=t.tokenTypeIdx)===e.tokenTypeIdx||!0===e.isParent&&!0===e.categoryMatchesMap[t]}function Trt(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}function Ert(t){Crt(t=_rt(t)),Art(t),Srt(t),v(t,t=>{t.isParent=0<t.categoryMatches.length})}function _rt(t){let e=t$(t),r=t,i=!0;for(;i;){r=s$(WP(b(r,t=>t.CATEGORIES)));var n=mU(r,e);e=e.concat(n),nq(n)?i=!1:r=n}return e}function Crt(t){v(t,t=>{Nrt(t)||((Prt[Ort]=t).tokenTypeIdx=Ort++),Irt(t)&&!KT(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Irt(t)||(t.CATEGORIES=[]),Mrt(t)||(t.categoryMatches=[]),Rrt(t)||(t.categoryMatchesMap={})})}function Srt(t){v(t,r=>{r.categoryMatches=[],v(r.categoryMatchesMap,(t,e)=>{r.categoryMatches.push(Prt[e].tokenTypeIdx)})})}function Art(t){v(t,t=>{Lrt([],t)})}function Lrt(r,i){v(r,t=>{i.categoryMatchesMap[t.tokenTypeIdx]=!0}),v(i.CATEGORIES,t=>{var e=r.concat(i);XG(e,t)||Lrt(e,t)})}function Nrt(t){return PG(t,"tokenTypeIdx")}function Irt(t){return PG(t,"CATEGORIES")}function Mrt(t){return PG(t,"categoryMatches")}function Rrt(t){return PG(t,"categoryMatchesMap")}function Drt(t){return PG(t,"tokenTypeIdx")}var Ort,Prt,Brt,Frt,$rt,zrt,Urt=t(()=>{LY(),me(krt,"tokenStructuredMatcher"),me(Trt,"tokenStructuredMatcherNoCategories"),Ort=1,Prt={},me(Ert,"augmentTokenTypes"),me(_rt,"expandCategories"),me(Crt,"assignTokenDefaultProps"),me(Srt,"assignCategoriesTokensProp"),me(Art,"assignCategoriesMapProp"),me(Lrt,"singleAssignCategoriesToksMap"),me(Nrt,"hasShortKeyProperty"),me(Irt,"hasCategoriesProperty"),me(Mrt,"hasExtendingTokensTypesProperty"),me(Rrt,"hasExtendingTokensTypesMapProperty"),me(Drt,"isTokenType")}),Grt=t(()=>{Brt={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,i,n){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}}),qrt=t(()=>{var t;wrt(),LY(),Ott(),Urt(),Grt(),_et(),(t=Frt=Frt||{})[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE",$rt={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function crt(t){return x(t,t=>zU(t)?t.charCodeAt(0):t)}function hrt(t,e,r){void 0===t[e]?t[e]=[r]:t[e].push(r)}function urt(t){return t<brt?t:wrt[t]}function drt(){if(aq(wrt)){wrt=new Array(65536);for(let t=0;t<65536;t++)wrt[t]=255<t?255+~~(t/255):t}}var prt,grt,frt,mrt,yrt,vrt,xrt,brt,wrt,krt=t(()=>{CJ(),jrt(),NW(),Ptt(),Fet(),_et(),prt="PATTERN",grt="defaultMode",frt="modes",mrt="boolean"==typeof new RegExp("(?:)").sticky,me($et,"analyzeTokenTypes"),me(zet,"validatePatterns"),me(Get,"validateRegExpPattern"),me(Uet,"findMissingPatterns"),me(qet,"findInvalidPatterns"),yrt=/[^\\][$]/,me(jet,"findEndOfInputAnchor"),me(Wet,"findEmptyMatchRegExps"),vrt=/[^\\[][\^]|^\^/,me(Yet,"findStartOfInputAnchor"),me(Het,"findUnsupportedFlags"),me(Vet,"findDuplicatePatterns"),me(Xet,"findInvalidGroupType"),me(Ket,"findModesThatDoNotExist"),me(Zet,"findUnreachablePatterns"),me(Qet,"testTokenType"),me(Jet,"noMetaChar"),me(trt,"addStartOfInput"),me(ert,"addStickyFlag"),me(rrt,"performRuntimeChecks"),me(irt,"performWarningRuntimeChecks"),me(nrt,"cloneEmptyGroups"),me(art,"isCustomPattern"),me(srt,"isShortPattern"),xrt={test:me(function(e){var r=e.length;for(let t=this.lastIndex;t<r;t++){var i=e.charCodeAt(t);if(10===i)return this.lastIndex=t+1,!0;if(13===i)return 10===e.charCodeAt(t+1)?this.lastIndex=t+2:this.lastIndex=t+1,!0}return!1},"test"),lastIndex:0},me(ort,"checkLineBreaksIssues"),me(lrt,"buildLineBreakIssueMessage"),me(crt,"getCharCodes"),me(hrt,"addToMapOfArrays"),brt=256,wrt=[],me(urt,"charCodeToOptimizedIndex"),me(drt,"initCharCodeToOptimizedIndexMap")});function Trt(t,e){return(t=t.tokenTypeIdx)===e.tokenTypeIdx||!0===e.isParent&&!0===e.categoryMatchesMap[t]}function Ert(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}function Crt(t){Srt(t=_rt(t)),Lrt(t),Art(t),v(t,t=>{t.isParent=0<t.categoryMatches.length})}function _rt(t){let e=e$(t),r=t,i=!0;for(;i;){r=o$(HP(x(r,t=>t.CATEGORIES)));var n=yG(r,e);e=e.concat(n),aq(n)?i=!1:r=n}return e}function Srt(t){v(t,t=>{Irt(t)||((Brt[Prt]=t).tokenTypeIdx=Prt++),Rrt(t)&&!KT(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Rrt(t)||(t.CATEGORIES=[]),Mrt(t)||(t.categoryMatches=[]),Drt(t)||(t.categoryMatchesMap={})})}function Art(t){v(t,r=>{r.categoryMatches=[],v(r.categoryMatchesMap,(t,e)=>{r.categoryMatches.push(Brt[e].tokenTypeIdx)})})}function Lrt(t){v(t,t=>{Nrt([],t)})}function Nrt(r,i){v(r,t=>{i.categoryMatchesMap[t.tokenTypeIdx]=!0}),v(i.CATEGORIES,t=>{var e=r.concat(i);KU(e,t)||Nrt(e,t)})}function Irt(t){return BU(t,"tokenTypeIdx")}function Rrt(t){return BU(t,"CATEGORIES")}function Mrt(t){return BU(t,"categoryMatches")}function Drt(t){return BU(t,"categoryMatchesMap")}function Ort(t){return BU(t,"tokenTypeIdx")}var Prt,Brt,Frt,$rt,zrt,Grt,Urt=t(()=>{NW(),me(Trt,"tokenStructuredMatcher"),me(Ert,"tokenStructuredMatcherNoCategories"),Prt=1,Brt={},me(Crt,"augmentTokenTypes"),me(_rt,"expandCategories"),me(Srt,"assignTokenDefaultProps"),me(Art,"assignCategoriesTokensProp"),me(Lrt,"assignCategoriesMapProp"),me(Nrt,"singleAssignCategoriesToksMap"),me(Irt,"hasShortKeyProperty"),me(Rrt,"hasCategoriesProperty"),me(Mrt,"hasExtendingTokensTypesProperty"),me(Drt,"hasExtendingTokensTypesMapProperty"),me(Ort,"isTokenType")}),qrt=t(()=>{Frt={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,i,n){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}}),jrt=t(()=>{var t;krt(),NW(),Ptt(),Urt(),qrt(),_et(),(t=$rt=$rt||{})[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE",zrt={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Brt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze($rt),(zrt=class{static{me(this,"Lexer")}constructor(n,a=$rt){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(t,e)=>{var r,i,n,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:i,value:n}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${t}>`),Itt(e)),a=10<i?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${t}> time: ${i}ms`),this.traceInitIndent--,n):e()},"boolean"==typeof a)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Frt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(zrt),(Grt=class{static{me(this,"Lexer")}constructor(n,a=zrt){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(t,e)=>{var r,i,n,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:i,value:n}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${t}>`),Rtt(e)),a=10<i?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${t}> time: ${i}ms`),this.traceInitIndent--,n):e()},"boolean"==typeof a)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=nP({},$rt,a);var t=this.config.traceInitPerf;!0===t?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof t&&(this.traceInitMaxIdent=t,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,t=!0,i=(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===$rt.lineTerminatorsPattern)this.config.lineTerminatorsPattern=vrt;else if(this.config.lineTerminatorCharacters===$rt.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config. a boolean 2nd argument is no longer supported`);this.config=aP({},zrt,a);var t=this.config.traceInitPerf;!0===t?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof t&&(this.traceInitMaxIdent=t,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,t=!0,i=(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===zrt.lineTerminatorsPattern)this.config.lineTerminatorsPattern=xrt;else if(this.config.lineTerminatorCharacters===zrt.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),r=KT(n)?{modes:{defaultMode:t$(n)},defaultMode:prt}:(t=!1,t$(n))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(ert(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(rrt(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes||{},v(r.modes,(t,e)=>{r.modes[e]=jj(t,t=>pq(t))}),eP(r.modes)),e;if(v(r.modes,(e,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat($et(e,i))}),nq(this.lexerDefinitionErrors)){Ert(e);let t;this.TRACE_INIT("analyzeTokenTypes",()=>{t=Fet(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=t.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=t.charCodeToPatternIdxToConfig,this.emptyGroups=nP({},this.emptyGroups,t.emptyGroups),this.hasCustom=t.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=t.canBeOptimized}})}),this.defaultMode=r.defaultMode,!nq(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw e=b(this.lexerDefinitionErrors,t=>t.message).join(`----------------------- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),r=KT(n)?{modes:{defaultMode:e$(n)},defaultMode:grt}:(t=!1,e$(n))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(rrt(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(irt(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes||{},v(r.modes,(t,e)=>{r.modes[e]=Wj(t,t=>gq(t))}),rP(r.modes)),e;if(v(r.modes,(e,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(zet(e,i))}),aq(this.lexerDefinitionErrors)){Crt(e);let t;this.TRACE_INIT("analyzeTokenTypes",()=>{t=$et(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=t.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=t.charCodeToPatternIdxToConfig,this.emptyGroups=aP({},this.emptyGroups,t.emptyGroups),this.hasCustom=t.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=t.canBeOptimized}})}),this.defaultMode=r.defaultMode,!aq(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw e=x(this.lexerDefinitionErrors,t=>t.message).join(`-----------------------
`),new Error(`Errors detected in definition of Lexer: `),new Error(`Errors detected in definition of Lexer:
`+e);v(this.lexerDefinitionWarning,t=>{Ltt(t.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(frt?(this.chopInput=L8,this.match=this.matchWithTest):(this.updateLastIndex=CO,this.match=this.matchWithExec),t&&(this.handleModes=CO),!1===this.trackStartLines&&(this.computeNewColumn=L8),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=CO),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{var t=Uj(this.canModeBeOptimized,(t,e,r)=>(!1===e&&t.push(r),t),[]);if(a.ensureOptimizations&&!nq(t))throw Error(`Lexer Modes: < ${t.join(", ")} > cannot be optimized. `+e);v(this.lexerDefinitionWarning,t=>{Ntt(t.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(mrt?(this.chopInput=L8,this.match=this.matchWithTest):(this.updateLastIndex=SO,this.match=this.matchWithExec),t&&(this.handleModes=SO),!1===this.trackStartLines&&(this.computeNewColumn=L8),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=SO),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{var t=Uj(this.canModeBeOptimized,(t,e,r)=>(!1===e&&t.push(r),t),[]);if(a.ensureOptimizations&&!aq(t))throw Error(`Lexer Modes: < ${t.join(", ")} > cannot be optimized.
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{ket()}),this.TRACE_INIT("toFastProperties",()=>{Rtt(this)})})}tokenize(t,e=this.defaultMode){if(nq(this.lexerDefinitionErrors))return this.tokenizeInternal(t,e);throw t=b(this.lexerDefinitionErrors,t=>t.message).join(`----------------------- Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Tet()}),this.TRACE_INIT("toFastProperties",()=>{Dtt(this)})})}tokenize(t,e=this.defaultMode){if(aq(this.lexerDefinitionErrors))return this.tokenizeInternal(t,e);throw t=x(this.lexerDefinitionErrors,t=>t.message).join(`-----------------------
`),new Error(`Unable to Tokenize because Errors detected in definition of Lexer: `),new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+t)}tokenizeInternal(n,P){let t,a,e,r,i,s,o,l,c,h,B,u,d,F,p,g=n,$=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(n.length/10),y=new Array(z),v=[],b=this.trackStartLines?1:void 0,x=this.trackStartLines?1:void 0,w=irt(this.emptyGroups),U=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,E=[],_=[],C=[],G=[];Object.freeze(G);let S;function A(){return E}function L(t){return t=hrt(t),void 0===(t=_[t])?G:t}me(A,"getPossiblePatternsSlow"),me(L,"getPossiblePatternsOptimized");var q=me(t=>{var e;1===C.length&&void 0===t.tokenType.PUSH_MODE?(e=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t),v.push({offset:t.startOffset,line:t.startLine,column:t.startColumn,length:t.image.length,message:e})):(C.pop(),t=xU(C),E=this.patternIdxToConfig[t],_=this.charCodeToPatternIdxToConfig[t],T=E.length,e=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=_&&e?L:A)},"pop_mode");function N(t){C.push(t),_=this.charCodeToPatternIdxToConfig[t],E=this.patternIdxToConfig[t],T=E.length,T=E.length,t=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=_&&t?L:A}me(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<$;){s=null;var Y=g.charCodeAt(f),W=S(Y),H=W.length;for(t=0;t<H;t++){var M=(I=W[t]).pattern,V=(o=null,I.short);if(!1!==V?Y===V&&(s=M):!0===I.isCustom?null!==(p=M.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(M,f),s=this.match(M,n,f)),null!==s){if(void 0!==(i=I.longerAlt)){var X=i.length;for(e=0;e<X;e++){var R=E[i[e]],D=R.pattern;if(!(l=null)===R.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,n,f)),r&&r.length>s.length){s=r,o=l,I=R;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,b,x,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),n=this.chopInput(n,c),f+=c,x=this.computeNewColumn(x,c),!0===U&&!0===I.canLineTerminator){let t=0,e,r;for(k.lastIndex=0;!0===(e=k.test(s))&&(r=k.lastIndex-1,t++),!0===e;);0!==t&&(b+=t,x=c-r,this.updateTokenEndLineColumnLocation(u,h,r,t,b,x,c))}this.handleModes(I,q,N,u)}else{let t=f,e=b,r=x,i=!1===j;for(;!1===i&&f<$;)for(n=this.chopInput(n,1),f++,a=0;a<T;a++){var O=E[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(i=!0):i=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(n)),!0===i)break}if(d=f-t,x=this.computeNewColumn(x,d),F=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,t,d,e,r),v.push({offset:t,line:e,column:r,length:d,message:F}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(t,e,r,i){var n;!0===t.pop?(n=t.push,e(i),void 0!==n&&r.call(this,n)):void 0!==t.push&&r.call(this,t.push)}chopInput(t,e){return t.substring(e)}updateLastIndex(t,e){t.lastIndex=e}updateTokenEndLineColumnLocation(t,e,r,i,n,a,s){void 0!==e&&(r=(e=r===s-1)?-1:0,1===i&&1==e||(t.endLine=n+r,t.endColumn=a-1-r))}computeNewColumn(t,e){return t+e}createOffsetOnlyToken(t,e,r,i){return{image:t,startOffset:e,tokenTypeIdx:r,tokenType:i}}createStartOnlyToken(t,e,r,i,n,a){return{image:t,startOffset:e,startLine:n,startColumn:a,tokenTypeIdx:r,tokenType:i}}createFullToken(t,e,r,i,n,a,s){return{image:t,startOffset:e,endOffset:e+s-1,startLine:n,endLine:n,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:i}}addTokenUsingPush(t,e,r){return t.push(r),e}addTokenUsingMemberAccess(t,e,r){return t[e]=r,++e}handlePayloadNoCustom(t,e){}handlePayloadWithCustom(t,e){null!==e&&(t.payload=e)}matchWithTest(t,e,r){return!0===t.test(e)?e.substring(r,t.lastIndex):null}matchWithExec(t,e){return null!==(t=t.exec(e))?t[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",zrt.NA=/NOT_APPLICABLE/});function jrt(t){return Yrt(t)?t.LABEL:t.name}function Yrt(t){return $G(t.LABEL)&&""!==t.LABEL}function Wrt(t){return Hrt(t)}function Hrt(t){var e=t.pattern,r={};if(r.name=t.name,pq(e)||(r.PATTERN=e),PG(t,Krt))throw`The parent property is no longer supported. `+t)}tokenizeInternal(n,P){let t,a,e,r,i,s,o,l,c,h,B,u,d,F,p,g=n,$=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(n.length/10),y=new Array(z),v=[],x=this.trackStartLines?1:void 0,b=this.trackStartLines?1:void 0,w=nrt(this.emptyGroups),G=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,E=[],C=[],_=[],U=[];Object.freeze(U);let S;function A(){return E}function L(t){return t=urt(t),void 0===(t=C[t])?U:t}me(A,"getPossiblePatternsSlow"),me(L,"getPossiblePatternsOptimized");var q=me(t=>{var e;1===_.length&&void 0===t.tokenType.PUSH_MODE?(e=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t),v.push({offset:t.startOffset,line:t.startLine,column:t.startColumn,length:t.image.length,message:e})):(_.pop(),t=wG(_),E=this.patternIdxToConfig[t],C=this.charCodeToPatternIdxToConfig[t],T=E.length,e=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=C&&e?L:A)},"pop_mode");function N(t){_.push(t),C=this.charCodeToPatternIdxToConfig[t],E=this.patternIdxToConfig[t],T=E.length,T=E.length,t=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=C&&t?L:A}me(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<$;){s=null;var W=g.charCodeAt(f),Y=S(W),H=Y.length;for(t=0;t<H;t++){var R=(I=Y[t]).pattern,V=(o=null,I.short);if(!1!==V?W===V&&(s=R):!0===I.isCustom?null!==(p=R.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(R,f),s=this.match(R,n,f)),null!==s){if(void 0!==(i=I.longerAlt)){var X=i.length;for(e=0;e<X;e++){var M=E[i[e]],D=M.pattern;if(!(l=null)===M.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,n,f)),r&&r.length>s.length){s=r,o=l,I=M;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,x,b,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),n=this.chopInput(n,c),f+=c,b=this.computeNewColumn(b,c),!0===G&&!0===I.canLineTerminator){let t=0,e,r;for(k.lastIndex=0;!0===(e=k.test(s))&&(r=k.lastIndex-1,t++),!0===e;);0!==t&&(x+=t,b=c-r,this.updateTokenEndLineColumnLocation(u,h,r,t,x,b,c))}this.handleModes(I,q,N,u)}else{let t=f,e=x,r=b,i=!1===j;for(;!1===i&&f<$;)for(n=this.chopInput(n,1),f++,a=0;a<T;a++){var O=E[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(i=!0):i=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(n)),!0===i)break}if(d=f-t,b=this.computeNewColumn(b,d),F=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,t,d,e,r),v.push({offset:t,line:e,column:r,length:d,message:F}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(t,e,r,i){var n;!0===t.pop?(n=t.push,e(i),void 0!==n&&r.call(this,n)):void 0!==t.push&&r.call(this,t.push)}chopInput(t,e){return t.substring(e)}updateLastIndex(t,e){t.lastIndex=e}updateTokenEndLineColumnLocation(t,e,r,i,n,a,s){void 0!==e&&(r=(e=r===s-1)?-1:0,1===i&&1==e||(t.endLine=n+r,t.endColumn=a-1-r))}computeNewColumn(t,e){return t+e}createOffsetOnlyToken(t,e,r,i){return{image:t,startOffset:e,tokenTypeIdx:r,tokenType:i}}createStartOnlyToken(t,e,r,i,n,a){return{image:t,startOffset:e,startLine:n,startColumn:a,tokenTypeIdx:r,tokenType:i}}createFullToken(t,e,r,i,n,a,s){return{image:t,startOffset:e,endOffset:e+s-1,startLine:n,endLine:n,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:i}}addTokenUsingPush(t,e,r){return t.push(r),e}addTokenUsingMemberAccess(t,e,r){return t[e]=r,++e}handlePayloadNoCustom(t,e){}handlePayloadWithCustom(t,e){null!==e&&(t.payload=e)}matchWithTest(t,e,r){return!0===t.test(e)?e.substring(r,t.lastIndex):null}matchWithExec(t,e){return null!==(t=t.exec(e))?t[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Grt.NA=/NOT_APPLICABLE/});function Wrt(t){return Yrt(t)?t.LABEL:t.name}function Yrt(t){return zU(t.LABEL)&&""!==t.LABEL}function Hrt(t){return Vrt(t)}function Vrt(t){var e=t.pattern,r={};if(r.name=t.name,gq(e)||(r.PATTERN=e),BU(t,Zrt))throw`The parent property is no longer supported.
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return PG(t,Zrt)&&(r.CATEGORIES=t[Zrt]),Ert([r]),PG(t,Qrt)&&(r.LABEL=t[Qrt]),PG(t,Jrt)&&(r.GROUP=t[Jrt]),PG(t,eit)&&(r.POP_MODE=t[eit]),PG(t,tit)&&(r.PUSH_MODE=t[tit]),PG(t,rit)&&(r.LONGER_ALT=t[rit]),PG(t,iit)&&(r.LINE_BREAKS=t[iit]),PG(t,nit)&&(r.START_CHARS_HINT=t[nit]),r}function Vrt(t,e,r,i,n,a,s,o){return{image:e,startOffset:r,endOffset:i,startLine:n,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function Xrt(t,e){return krt(t,e)}var Krt,Zrt,Qrt,Jrt,tit,eit,rit,iit,nit,ait,sit,oit,lit,cit=t(()=>{LY(),qrt(),Urt(),me(jrt,"tokenLabel"),me(Yrt,"hasTokenLabel"),Krt="parent",Zrt="categories",Qrt="label",Jrt="group",tit="push_mode",eit="pop_mode",rit="longer_alt",iit="line_breaks",nit="start_chars_hint",me(Wrt,"createToken"),me(Hrt,"createTokenInternal"),Ert([ait=Wrt({name:"EOF",pattern:zrt.NA})]),me(Vrt,"createTokenInstance"),me(Xrt,"tokenMatcher")}),hit=t(()=>{cit(),LY(),aet(),sit={buildMismatchTokenMessage({expected:t,actual:e}){return`Expecting ${Yrt(t)?`--> ${jrt(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,customUserDescription:r}){var i="Expecting: ",e=` See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return BU(t,Qrt)&&(r.CATEGORIES=t[Qrt]),Crt([r]),BU(t,Jrt)&&(r.LABEL=t[Jrt]),BU(t,tit)&&(r.GROUP=t[tit]),BU(t,rit)&&(r.POP_MODE=t[rit]),BU(t,eit)&&(r.PUSH_MODE=t[eit]),BU(t,iit)&&(r.LONGER_ALT=t[iit]),BU(t,nit)&&(r.LINE_BREAKS=t[nit]),BU(t,ait)&&(r.START_CHARS_HINT=t[ait]),r}function Xrt(t,e,r,i,n,a,s,o){return{image:e,startOffset:r,endOffset:i,startLine:n,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function Krt(t,e){return Trt(t,e)}var Zrt,Qrt,Jrt,tit,eit,rit,iit,nit,ait,sit,oit,lit,cit,hit=t(()=>{NW(),jrt(),Urt(),me(Wrt,"tokenLabel"),me(Yrt,"hasTokenLabel"),Zrt="parent",Qrt="categories",Jrt="label",tit="group",eit="push_mode",rit="pop_mode",iit="longer_alt",nit="line_breaks",ait="start_chars_hint",me(Hrt,"createToken"),me(Vrt,"createTokenInternal"),Crt([sit=Hrt({name:"EOF",pattern:Grt.NA})]),me(Xrt,"createTokenInstance"),me(Krt,"tokenMatcher")}),uit=t(()=>{hit(),NW(),set(),oit={buildMismatchTokenMessage({expected:t,actual:e}){return`Expecting ${Yrt(t)?`--> ${Wrt(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,customUserDescription:r}){var i="Expecting: ",e=`
but found: '`+sG(e).image+"'";return r?i+r+e:(r=Uj(t,(t,e)=>t.concat(e),[]),t=b(r,t=>`[${b(t,t=>jrt(t)).join(", ")}]`),i+`one of these possible Token sequences: but found: '`+oU(e).image+"'";return r?i+r+e:(r=Uj(t,(t,e)=>t.concat(e),[]),t=x(r,t=>`[${x(t,t=>Wrt(t)).join(", ")}]`),i+`one of these possible Token sequences:
`+b(t,(t,e)=>` ${e+1}. `+t).join(` `+x(t,(t,e)=>` ${e+1}. `+t).join(`
`)+e)},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r}){var i="Expecting: ",e=` `)+e)},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r}){var i="Expecting: ",e=`
but found: '`+sG(e).image+"'";return r?i+r+e:i+`expecting at least one iteration which starts with one of these possible Token sequences:: but found: '`+oU(e).image+"'";return r?i+r+e:i+`expecting at least one iteration which starts with one of these possible Token sequences::
<${b(t,t=>`[${b(t,t=>jrt(t)).join(",")}]`).join(" ,")}>`+e}},Object.freeze(sit),oit={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- <${x(t,t=>`[${x(t,t=>Wrt(t)).join(",")}]`).join(" ,")}>`+e}},Object.freeze(oit),lit={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
inside top level rule: ->`+t.name+"<-"}},lit={buildDuplicateFoundError(t,e){function r(t){return t instanceof Ktt?t.terminalType.name:t instanceof Utt?t.nonTerminalName:""}me(r,"getExtraProductionArgument");let i=t.name,n=sG(e),a=n.idx,s=iet(n),o=r(n),l=0<a,c=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""} inside top level rule: ->`+t.name+"<-"}},cit={buildDuplicateFoundError(t,e){function r(t){return t instanceof Ztt?t.terminalType.name:t instanceof Utt?t.nonTerminalName:""}me(r,"getExtraProductionArgument");let i=t.name,n=oU(e),a=n.idx,s=net(n),o=r(n),l=0<a,c=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""}
appears more than once (${e.length} times) in the top level rule: ->${i}<-. appears more than once (${e.length} times) in the top level rule: ->${i}<-.
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
`;return c=(c=c.replace(/[ \t]+/g," ")).replace(/\s\s+/g,` `;return c=(c=c.replace(/[ \t]+/g," ")).replace(/\s\s+/g,`
@@ -752,78 +752,78 @@ inside top level rule: ->`+t.name+"<-"}},lit={buildDuplicateFoundError(t,e){func
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>. The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>.
To resolve this make sure each Terminal and Non-Terminal names are unique To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){var e=b(t.prefixPath,t=>jrt(t)).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){var e=x(t.prefixPath,t=>Wrt(t)).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix
in <OR${r}> inside <${t.topLevelRule.name}> Rule, in <OR${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives. <${e}> may appears as a prefix path in all these alternatives.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`},buildAlternationAmbiguityError(t){var e=b(t.prefixPath,t=>jrt(t)).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${t.topLevelRule.name}> Rule, For Further details.`},buildAlternationAmbiguityError(t){var e=x(t.prefixPath,t=>Wrt(t)).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives. <${e}> may appears as a prefix path in all these alternatives.
`+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES `+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`},buildEmptyRepetitionError(t){let e=iet(t.repetition);return 0!==t.repetition.idx&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens. For Further details.`},buildEmptyRepetitionError(t){let e=net(t.repetition);return 0!==t.repetition.idx&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens.
This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule. This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives: Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives:
<OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule. <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){var e=t.topLevelRule.name;return`Left Recursion found in grammar. has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){var e=t.topLevelRule.name;return`Left Recursion found in grammar.
rule: <${e}> can be invoked from itself (directly or indirectly) rule: <${e}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is: without consuming any Tokens. The grammar path that causes this is:
${e+" --\x3e "+b(t.leftRecursionPath,t=>t.name).concat([e]).join(" --\x3e ")} ${e+" --\x3e "+x(t.leftRecursionPath,t=>t.name).concat([e]).join(" --\x3e ")}
To fix this refactor your grammar to remove the left recursion. To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){return`Duplicate definition, rule: ->${t.topLevelRule instanceof Gtt?t.topLevelRule.name:t.topLevelRule}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function uit(t,e){return(t=new dit(t,e)).resolveRefs(),t.errors}var dit,pit=t(()=>{Iat(),LY(),aet(),me(uit,"resolveGrammar"),dit=class extends Ztt{static{me(this,"GastRefResolverVisitor")}constructor(t,e){super(),this.nameToTopRule=t,this.errMsgProvider=e,this.errors=[]}resolveRefs(){v(YG(this.nameToTopRule),t=>{(this.currTopLevel=t).accept(this)})}visitNonTerminal(t){var e=this.nameToTopRule[t.nonTerminalName];e?t.referencedRule=e:(e=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t),this.errors.push({message:e,type:Aat.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName}))}}});function git(e,r,i=[]){i=t$(i);let n=[],a=0;function s(t){return t.concat(TU(e,a+1))}function o(t){return t=git(s(t),r,i),n.concat(t)}for(me(s,"remainingPathWith"),me(o,"getAlternativesForProd");i.length<r&&a<e.length;){var t=e[a];if(t instanceof qtt)return o(t.definition);if(t instanceof Utt)return o(t.definition);if(t instanceof jtt)n=o(t.definition);else{if(t instanceof Ytt)return o(t.definition.concat([new Htt({definition:t.definition})]));if(t instanceof Wtt)return o([new qtt({definition:t.definition}),new Htt({definition:[new Ktt({terminalType:t.separator})].concat(t.definition)})]);if(t instanceof Vtt){var l=t.definition.concat([new Htt({definition:[new Ktt({terminalType:t.separator})].concat(t.definition)})]);n=o(l)}else if(t instanceof Htt)l=t.definition.concat([new Htt({definition:t.definition})]),n=o(l);else{if(t instanceof Xtt)return v(t.definition,t=>{!1===nq(t.definition)&&(n=o(t.definition))}),n;if(!(t instanceof Ktt))throw Error("non exhaustive match");i.push(t.terminalType)}}a++}return n.push({partialPath:i,suffixDef:TU(e,a)}),n}function fit(t,e,r,i){let n="EXIT_NONE_TERMINAL",a=[n],s="EXIT_ALTERNATIVE",o=!1,l=e.length,c=l-i-1,h=[],u=[];for(u.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!nq(u);)if((v=u.pop())===s)o&&xU(u).idx<=c&&u.pop();else{var d=v.def,p=v.idx,g=v.ruleStack,f=v.occurrenceStack;if(!nq(d)){var m=d[0];if(m===n)v={idx:p,def:TU(d),ruleStack:CU(g),occurrenceStack:CU(f)},u.push(v);else if(m instanceof Ktt)if(p<l-1)r(e[v=p+1],m.terminalType)&&(v={idx:v,def:TU(d),ruleStack:g,occurrenceStack:f},u.push(v));else{if(p!==l-1)throw Error("non exhaustive match");h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:g,occurrenceStack:f}),o=!0}else if(m instanceof Utt){(v=t$(g)).push(m.nonTerminalName);var y=t$(f),v=(y.push(m.idx),{idx:p,def:m.definition.concat(a,TU(d)),ruleStack:v,occurrenceStack:y});u.push(v)}else if(m instanceof jtt)y={idx:p,def:TU(d),ruleStack:g,occurrenceStack:f},u.push(y),u.push(s),v={idx:p,def:m.definition.concat(TU(d)),ruleStack:g,occurrenceStack:f},u.push(v);else if(m instanceof Ytt)v=new Htt({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],TU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Wtt)v=new Ktt({terminalType:m.separator}),v=new Htt({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],TU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Vtt)v={idx:p,def:TU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new Ktt({terminalType:m.separator}),v=new Htt({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],TU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Htt)v={idx:p,def:TU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new Htt({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],TU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Xtt)for(let t=m.definition.length-1;0<=t;t--){var b={idx:p,def:m.definition[t].definition.concat(TU(d)),ruleStack:g,occurrenceStack:f};u.push(b),u.push(s)}else if(m instanceof qtt)u.push({idx:p,def:m.definition.concat(TU(d)),ruleStack:g,occurrenceStack:f});else{if(!(m instanceof Gtt))throw Error("non exhaustive match");u.push(mit(m,p,g,f))}}}return h}function mit(t,e,r,i){return(r=t$(r)).push(t.name),(i=t$(i)).push(1),{idx:e,def:t.definition,ruleStack:r,occurrenceStack:i}}var yit,vit,bit,xit,wit,kit,Tit=t(()=>{LY(),fet(),cet(),aet(),vit=class extends oet{static{me(this,"AbstractNextPossibleTokensWalker")}constructor(t,e){super(),this.topProd=t,this.path=e,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=t$(this.path.ruleStack).reverse(),this.occurrenceStack=t$(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.u Line truncated see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){return`Duplicate definition, rule: ->${t.topLevelRule instanceof qtt?t.topLevelRule.name:t.topLevelRule}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function dit(t,e){return(t=new pit(t,e)).resolveRefs(),t.errors}var pit,git=t(()=>{Rat(),NW(),set(),me(dit,"resolveGrammar"),pit=class extends Qtt{static{me(this,"GastRefResolverVisitor")}constructor(t,e){super(),this.nameToTopRule=t,this.errMsgProvider=e,this.errors=[]}resolveRefs(){v(YU(this.nameToTopRule),t=>{(this.currTopLevel=t).accept(this)})}visitNonTerminal(t){var e=this.nameToTopRule[t.nonTerminalName];e?t.referencedRule=e:(e=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t),this.errors.push({message:e,type:Lat.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName}))}}});function fit(e,r,i=[]){i=e$(i);let n=[],a=0;function s(t){return t.concat(EG(e,a+1))}function o(t){return t=fit(s(t),r,i),n.concat(t)}for(me(s,"remainingPathWith"),me(o,"getAlternativesForProd");i.length<r&&a<e.length;){var t=e[a];if(t instanceof jtt)return o(t.definition);if(t instanceof Utt)return o(t.definition);if(t instanceof Wtt)n=o(t.definition);else{if(t instanceof Ytt)return o(t.definition.concat([new Vtt({definition:t.definition})]));if(t instanceof Htt)return o([new jtt({definition:t.definition}),new Vtt({definition:[new Ztt({terminalType:t.separator})].concat(t.definition)})]);if(t instanceof Xtt){var l=t.definition.concat([new Vtt({definition:[new Ztt({terminalType:t.separator})].concat(t.definition)})]);n=o(l)}else if(t instanceof Vtt)l=t.definition.concat([new Vtt({definition:t.definition})]),n=o(l);else{if(t instanceof Ktt)return v(t.definition,t=>{!1===aq(t.definition)&&(n=o(t.definition))}),n;if(!(t instanceof Ztt))throw Error("non exhaustive match");i.push(t.terminalType)}}a++}return n.push({partialPath:i,suffixDef:EG(e,a)}),n}function mit(t,e,r,i){let n="EXIT_NONE_TERMINAL",a=[n],s="EXIT_ALTERNATIVE",o=!1,l=e.length,c=l-i-1,h=[],u=[];for(u.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!aq(u);)if((v=u.pop())===s)o&&wG(u).idx<=c&&u.pop();else{var d=v.def,p=v.idx,g=v.ruleStack,f=v.occurrenceStack;if(!aq(d)){var m=d[0];if(m===n)v={idx:p,def:EG(d),ruleStack:SG(g),occurrenceStack:SG(f)},u.push(v);else if(m instanceof Ztt)if(p<l-1)r(e[v=p+1],m.terminalType)&&(v={idx:v,def:EG(d),ruleStack:g,occurrenceStack:f},u.push(v));else{if(p!==l-1)throw Error("non exhaustive match");h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:g,occurrenceStack:f}),o=!0}else if(m instanceof Utt){(v=e$(g)).push(m.nonTerminalName);var y=e$(f),v=(y.push(m.idx),{idx:p,def:m.definition.concat(a,EG(d)),ruleStack:v,occurrenceStack:y});u.push(v)}else if(m instanceof Wtt)y={idx:p,def:EG(d),ruleStack:g,occurrenceStack:f},u.push(y),u.push(s),v={idx:p,def:m.definition.concat(EG(d)),ruleStack:g,occurrenceStack:f},u.push(v);else if(m instanceof Ytt)v=new Vtt({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],EG(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Htt)v=new Ztt({terminalType:m.separator}),v=new Vtt({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],EG(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Xtt)v={idx:p,def:EG(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new Ztt({terminalType:m.separator}),v=new Vtt({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],EG(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Vtt)v={idx:p,def:EG(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new Vtt({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],EG(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof Ktt)for(let t=m.definition.length-1;0<=t;t--){var x={idx:p,def:m.definition[t].definition.concat(EG(d)),ruleStack:g,occurrenceStack:f};u.push(x),u.push(s)}else if(m instanceof jtt)u.push({idx:p,def:m.definition.concat(EG(d)),ruleStack:g,occurrenceStack:f});else{if(!(m instanceof qtt))throw Error("non exhaustive match");u.push(yit(m,p,g,f))}}}return h}function yit(t,e,r,i){return(r=e$(r)).push(t.name),(i=e$(i)).push(1),{idx:e,def:t.definition,ruleStack:r,occurrenceStack:i}}var vit,xit,bit,wit,kit,Tit,Eit=t(()=>{NW(),met(),het(),set(),xit=class extends cet{static{me(this,"AbstractNextPossibleTokensWalker")}constructor(t,e){super(),this.topProd=t,this.path=e,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=e$(this.path.ruleStack).reverse(),this.occurrenceStack=e$(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.u Line truncated
`+t.join(` `+t.join(`
`).replace(/\n/g,` `).replace(/\n/g,`
`))},"validateVisitor")});return r.prototype=t,(r.prototype.constructor=r)._RULE_NAMES=e,r}function Wnt(t,e,r){var i=me(function(){},"derivedConstructor");Unt(i,t+"BaseSemanticsWithDefaults");let n=Object.create(r.prototype);return v(e,t=>{n[t]=jnt}),i.prototype=n,i.prototype.constructor=i}function Hnt(t,e){return Vnt(t,e)}function Vnt(e,t){return t=HU(t,t=>!1===_6(e[t])),t=b(t,t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Xnt.MISSING_METHOD,methodName:t})),s$(t)}var Xnt,Knt,Znt,Qnt,Jnt,tat,eat,rat=t(()=>{var t;LY(),qnt(),me(jnt,"defaultVisit"),me(Ynt,"createBaseSemanticVisitorConstructor"),me(Wnt,"createBaseVisitorConstructorWithDefaults"),(t=Xnt=Xnt||{})[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD",me(Hnt,"validateVisitor"),me(Vnt,"validateMissingCstMethods")}),iat=t(()=>{znt(),LY(),rat(),Iat(),Knt=class{static{me(this,"TreeBuilder")}initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=(PG(t,"nodeLocationTracking")?t:Cat).nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Bnt,this.setNodeLocationFromNode=Bnt,this.cstPostRule=CO,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=CO,this.setNodeLocationFromNode=CO,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Pnt,this.setNodeLocationFromNode=Pnt,this.cstPostRule=CO,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=CO,this.setNodeLocationFromNode=CO,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`);this.setNodeLocationFromToken=CO,this.setNodeLocationFromNode=CO,this.cstPostRule=CO,this.setInitialNodeLocation=CO}else this.cstInvocationStateUpdate=CO,this.cstFinallyStateUpdate=CO,this.cstPostTerminal=CO,this.cstPostNonTerminal=CO,this.cstPostRule=CO}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){var e=this.LA(1);t.location={startOffset:e.startOffset,startLine:e.startLine,startColumn:e.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){t={name:t,children:Object.create(null)},this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){var e=this.LA(0);(t=t.location).startOffset<=e.startOffset?(t.endOffset=e.endOffset,t.endLine=e.endLine,t.endColumn=e.endColumn):(t.startOffset=NaN,t.startLine=NaN,t.startColumn=NaN)}cstPostRuleOnlyOffset(t){var e=this.LA(0);(t=t.location).startOffset<=e.startOffset?t.endOffset=e.endOffset:t.startOffset=NaN}cstPostTerminal(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];Fnt(r,e,t),this.setNodeLocationFromToken(r.location,e)}cstPostNonTerminal(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];$nt(r,e,t),this.setNodeLocationFromNode(r.location,t.location)}getBaseCstVisitorConstructor(){var t;return pq(this.baseCstVisitorConstructor)?(t=Ynt(this.className,eP(this.gastProductionsCache)),this.baseCstVisitorConstructor=t):this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){var t;return pq(this.baseCstVisitorWithDefaultsConstructor)?(t=Wnt(this.className,eP(this.gastProductionsCache),this.getBaseCstVisitorConstructor()),this.baseCstVisitorWithDefaultsConstructor=t):this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){var t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){var t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}}}),nat=t(()=>{Iat(),Znt=class{static{me(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):_at}LA(t){return(t=this.currIdx+t)<0||this.tokVectorLength<=t?_at:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx= Line truncated `))},"validateVisitor")});return r.prototype=t,(r.prototype.constructor=r)._RULE_NAMES=e,r}function Hnt(t,e,r){var i=me(function(){},"derivedConstructor");Unt(i,t+"BaseSemanticsWithDefaults");let n=Object.create(r.prototype);return v(e,t=>{n[t]=Wnt}),i.prototype=n,i.prototype.constructor=i}function Vnt(t,e){return Xnt(t,e)}function Xnt(e,t){return t=VG(t,t=>!1===C6(e[t])),t=x(t,t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Knt.MISSING_METHOD,methodName:t})),o$(t)}var Knt,Znt,Qnt,Jnt,tat,eat,rat,iat=t(()=>{var t;NW(),jnt(),me(Wnt,"defaultVisit"),me(Ynt,"createBaseSemanticVisitorConstructor"),me(Hnt,"createBaseVisitorConstructorWithDefaults"),(t=Knt=Knt||{})[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD",me(Vnt,"validateVisitor"),me(Xnt,"validateMissingCstMethods")}),nat=t(()=>{Gnt(),NW(),iat(),Rat(),Znt=class{static{me(this,"TreeBuilder")}initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=(BU(t,"nodeLocationTracking")?t:Sat).nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Fnt,this.setNodeLocationFromNode=Fnt,this.cstPostRule=SO,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=SO,this.setNodeLocationFromNode=SO,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Bnt,this.setNodeLocationFromNode=Bnt,this.cstPostRule=SO,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=SO,this.setNodeLocationFromNode=SO,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`);this.setNodeLocationFromToken=SO,this.setNodeLocationFromNode=SO,this.cstPostRule=SO,this.setInitialNodeLocation=SO}else this.cstInvocationStateUpdate=SO,this.cstFinallyStateUpdate=SO,this.cstPostTerminal=SO,this.cstPostNonTerminal=SO,this.cstPostRule=SO}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){var e=this.LA(1);t.location={startOffset:e.startOffset,startLine:e.startLine,startColumn:e.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){t={name:t,children:Object.create(null)},this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){var e=this.LA(0);(t=t.location).startOffset<=e.startOffset?(t.endOffset=e.endOffset,t.endLine=e.endLine,t.endColumn=e.endColumn):(t.startOffset=NaN,t.startLine=NaN,t.startColumn=NaN)}cstPostRuleOnlyOffset(t){var e=this.LA(0);(t=t.location).startOffset<=e.startOffset?t.endOffset=e.endOffset:t.startOffset=NaN}cstPostTerminal(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];$nt(r,e,t),this.setNodeLocationFromToken(r.location,e)}cstPostNonTerminal(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];znt(r,e,t),this.setNodeLocationFromNode(r.location,t.location)}getBaseCstVisitorConstructor(){var t;return gq(this.baseCstVisitorConstructor)?(t=Ynt(this.className,rP(this.gastProductionsCache)),this.baseCstVisitorConstructor=t):this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){var t;return gq(this.baseCstVisitorWithDefaultsConstructor)?(t=Hnt(this.className,rP(this.gastProductionsCache),this.getBaseCstVisitorConstructor()),this.baseCstVisitorWithDefaultsConstructor=t):this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){var t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){var t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}}}),aat=t(()=>{Rat(),Qnt=class{static{me(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):_at}LA(t){return(t=this.currIdx+t)<0||this.tokVectorLength<=t?_at:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx= Line truncated
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details.`);if(KT(t)){if(nq(t))throw Error(`A Token Vocabulary cannot be empty. For Further details.`);if(KT(t)){if(aq(t))throw Error(`A Token Vocabulary cannot be empty.
Note that the first argument for the parser constructor Note that the first argument for the parser constructor
is no longer a Token vector (since v4.0).`);if("number"==typeof t[0].startOffset)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. is no longer a Token vector (since v4.0).`);if("number"==typeof t[0].startOffset)throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
For Further details.`)}if(KT(t))this.tokensMap=Uj(t,(t,e)=>(t[e.name]=e,t),{});else if(PG(t,"modes")&&UU(WP(YG(t.modes)),Drt))e=WP(YG(t.modes)),e=gY(e),this.tokensMap=Uj(e,(t,e)=>(t[e.name]=e,t),{});else{if(!k6(t))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=t$(t)}this.tokensMap.EOF=ait,e=PG(t,"modes")?WP(YG(t.modes)):YG(t),t=UU(e,t=>nq(t.categoryMatches)),this.tokenMatcher=t?Trt:krt,Ert(YG(this.tokensMap))}defineRule(r,i,t){if(this.selfAnalysisDone)throw Error(`Grammar rule <${r}> may not be defined after the 'performSelfAnalysis' method has been called' For Further details.`)}if(KT(t))this.tokensMap=Uj(t,(t,e)=>(t[e.name]=e,t),{});else if(BU(t,"modes")&&UG(HP(YU(t.modes)),Ort))e=HP(YU(t.modes)),e=fW(e),this.tokensMap=Uj(e,(t,e)=>(t[e.name]=e,t),{});else{if(!k6(t))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=e$(t)}this.tokensMap.EOF=sit,e=BU(t,"modes")?HP(YU(t.modes)):YU(t),t=UG(e,t=>aq(t.categoryMatches)),this.tokenMatcher=t?Ert:Trt,Crt(YU(this.tokensMap))}defineRule(r,i,t){if(this.selfAnalysisDone)throw Error(`Grammar rule <${r}> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=(PG(t,"resyncEnabled")?t:Sat).resyncEnabled,a=(PG(t,"recoveryValueFunc")?t:Sat).recoveryValueFunc,s=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=r,this.fullRuleNameToShort[r]=s,t=!0===this.outputCst?me(function(...t){try{this.ruleInvocationStateUpdate(s,r,this.subruleIdx),i.apply(this,t);var e=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(e),e}catch(t){return this.invokeRuleCatch(t,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):me(function(...t){try{return this.ruleInvocationStateUpdate(s,r,this.subruleIdx),i.apply(this,t)}catch(t){return this.invokeRuleCatch(t,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(t,{ruleName:r,originalGrammarAction:i})}invokeRuleCatch(t,e,r){var i=1===this.RULE_STACK.length,e=e&&!this.isBackTracking()&&this.recoveryEnabled;if(pnt(t)){var n=t;if(e){if(e=this.findReSyncTokenType(),this.isInCurrentRuleReSyncSet(e))return n.resyncedTokens=this.reSyncTo(e),this.outputCst?((e=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,e):r(t);this.outputCst&&((e=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,n.partialCstResult=e)}else if(i)return this.moveToTerminatedState(),r(t);throw n}throw t}optionInternal(t,e){var r=this.getKeyForAutomaticLookahead(512,e);return this.optionInternalLogic(t,e,r)}optionInternalLogic(t,e,r){let i=this.getLaFuncFromCache(r),n;if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=t;if(!0===i.call(this))return n.call(this)}atLeastOneInternal(t,e){var r=this.getKeyForAutomaticLookahead(1024,t);return this.atLeastOneInternalLogic(t,e,r)}atLeastOneInternalLogic(t,r,e){let i=this.getLaFuncFromCache(e),n;if("function"!=typeof r){n=r.DEF;let e=r.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=r;if(!0!==i.call(this))throw this.raiseEarlyExitException(t,$it.REPETITION_MANDATORY,r.ERR_MSG);{let t=this.doSingleRepetition(n);for(;!0===i.call(this)&&!0===t;)t=this.doSingleRepetition(n)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],i,1024,t,wit)}atLeastOneSepFirstInternal(t,e){var r=this.getKeyForAutomaticLookahead(1536,t);this.atLeastOneSepFirstInternalLogic(t,e,r)}atLeastOneSepFirstInternalLogic(t,e,r){let i=e.DEF,n=e.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(t,$it.REPETITION_MANDATORY_WITH_SEPARATOR,e.ERR_MSG);for(i.call(this),r=me(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,r,i,kit],r,1536,t,kit)}manyInternal(t,e){var r=this.getKeyForAutomaticLookahead(768,t);return this.manyInternalLogic(t,e,r)}manyInternalLogic(t,r,e){let i=this.getLaFuncFromCache(e),n;if("function"!=typeof r){n=r.DEF;let e=r.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else n=r;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],i,768,t,bit,a)}manySepFirstInternal(t,e){var r=this.getKeyForAutomaticLookahead(1280,t);this.manySepFirstInternalLogic(t,e,r)}manySepFirstInternalLogic(t,e,r){let i=e.DEF,n=e.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){for(i.call(this),e=me(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,e,i,xit],e,1280,t,xit)}}repetitionSepSecondInternal(t,e,r,i,n){for(;r();)this.CONSUME(e),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,e,r,i,n],r,1536,t,n)}doSingleRepetition(t){var e=this.getLexerPosition();return t.call(this),this.getLexerPosition()>e}orInternal(t,e){var r=this.getKeyForAutomaticLookahead(256,e),i=KT(t)?t:t.DEF;if(void 0!==(r=this.getLaFuncFromCache(r).call(this,i)))return i[r].ALT.call(this);this.raiseNoAltException(e,t.ERR_MSG)}ruleFinallyStateUpdate(){var t,e;this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()&&(t=this.LA(1),e=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new vnt(e,t)))}subruleInternal(t,e,r){var i;try{var n=void 0!==r?r.ARGS:void 0;return this.subruleIdx=e,i=t.apply(this,n),this.cstPostNonTerminal(i,void 0!==r&&void 0!==r.LABEL?r.LABEL:t.ruleName),i}catch(e){throw this.subruleInternalError(e,r,t.ruleName)}}subruleInternalError(t,e,r){throw pnt(t)&&void 0!==t.partialCstResult&&(this.cstPostNonTerminal(t.partialCstResult,void 0!==e&&void 0!==e.LABEL?e.LABEL:r),delete t.partialCstResult),t}consumeInternal(t,e,r){let i;try{var n=this Line truncated Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=(BU(t,"resyncEnabled")?t:Aat).resyncEnabled,a=(BU(t,"recoveryValueFunc")?t:Aat).recoveryValueFunc,s=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=r,this.fullRuleNameToShort[r]=s,t=!0===this.outputCst?me(function(...t){try{this.ruleInvocationStateUpdate(s,r,this.subruleIdx),i.apply(this,t);var e=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(e),e}catch(t){return this.invokeRuleCatch(t,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):me(function(...t){try{return this.ruleInvocationStateUpdate(s,r,this.subruleIdx),i.apply(this,t)}catch(t){return this.invokeRuleCatch(t,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(t,{ruleName:r,originalGrammarAction:i})}invokeRuleCatch(t,e,r){var i=1===this.RULE_STACK.length,e=e&&!this.isBackTracking()&&this.recoveryEnabled;if(gnt(t)){var n=t;if(e){if(e=this.findReSyncTokenType(),this.isInCurrentRuleReSyncSet(e))return n.resyncedTokens=this.reSyncTo(e),this.outputCst?((e=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,e):r(t);this.outputCst&&((e=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,n.partialCstResult=e)}else if(i)return this.moveToTerminatedState(),r(t);throw n}throw t}optionInternal(t,e){var r=this.getKeyForAutomaticLookahead(512,e);return this.optionInternalLogic(t,e,r)}optionInternalLogic(t,e,r){let i=this.getLaFuncFromCache(r),n;if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=t;if(!0===i.call(this))return n.call(this)}atLeastOneInternal(t,e){var r=this.getKeyForAutomaticLookahead(1024,t);return this.atLeastOneInternalLogic(t,e,r)}atLeastOneInternalLogic(t,r,e){let i=this.getLaFuncFromCache(e),n;if("function"!=typeof r){n=r.DEF;let e=r.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=r;if(!0!==i.call(this))throw this.raiseEarlyExitException(t,zit.REPETITION_MANDATORY,r.ERR_MSG);{let t=this.doSingleRepetition(n);for(;!0===i.call(this)&&!0===t;)t=this.doSingleRepetition(n)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],i,1024,t,kit)}atLeastOneSepFirstInternal(t,e){var r=this.getKeyForAutomaticLookahead(1536,t);this.atLeastOneSepFirstInternalLogic(t,e,r)}atLeastOneSepFirstInternalLogic(t,e,r){let i=e.DEF,n=e.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(t,zit.REPETITION_MANDATORY_WITH_SEPARATOR,e.ERR_MSG);for(i.call(this),r=me(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,r,i,Tit],r,1536,t,Tit)}manyInternal(t,e){var r=this.getKeyForAutomaticLookahead(768,t);return this.manyInternalLogic(t,e,r)}manyInternalLogic(t,r,e){let i=this.getLaFuncFromCache(e),n;if("function"!=typeof r){n=r.DEF;let e=r.GATE;if(void 0!==e){let t=i;i=me(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else n=r;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],i,768,t,bit,a)}manySepFirstInternal(t,e){var r=this.getKeyForAutomaticLookahead(1280,t);this.manySepFirstInternalLogic(t,e,r)}manySepFirstInternalLogic(t,e,r){let i=e.DEF,n=e.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){for(i.call(this),e=me(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,e,i,wit],e,1280,t,wit)}}repetitionSepSecondInternal(t,e,r,i,n){for(;r();)this.CONSUME(e),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,e,r,i,n],r,1536,t,n)}doSingleRepetition(t){var e=this.getLexerPosition();return t.call(this),this.getLexerPosition()>e}orInternal(t,e){var r=this.getKeyForAutomaticLookahead(256,e),i=KT(t)?t:t.DEF;if(void 0!==(r=this.getLaFuncFromCache(r).call(this,i)))return i[r].ALT.call(this);this.raiseNoAltException(e,t.ERR_MSG)}ruleFinallyStateUpdate(){var t,e;this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()&&(t=this.LA(1),e=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new xnt(e,t)))}subruleInternal(t,e,r){var i;try{var n=void 0!==r?r.ARGS:void 0;return this.subruleIdx=e,i=t.apply(this,n),this.cstPostNonTerminal(i,void 0!==r&&void 0!==r.LABEL?r.LABEL:t.ruleName),i}catch(e){throw this.subruleInternalError(e,r,t.ruleName)}}subruleInternalError(t,e,r){throw gnt(t)&&void 0!==t.partialCstResult&&(this.cstPostNonTerminal(t.partialCstResult,void 0!==e&&void 0!==e.LABEL?e.LABEL:r),delete t.partialCstResult),t}consumeInternal(t,e,r){let i;try{var n=this Line truncated
Idx value must be a none negative value smaller than `+(gat+1))).KNOWN_RECORDER_ERROR=!0,t}var pat,gat,fat,mat,yat,vat,bat,xat=t(()=>{LY(),aet(),qrt(),Urt(),cit(),Iat(),Lnt(),pat={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(pat),gat=Math.pow(2,8)-1,Ert([fat=Wrt({name:"RECORDING_PHASE_TOKEN",pattern:zrt.NA})]),mat=Vrt(fat,`This IToken indicates the Parser is in Recording Phase Idx value must be a none negative value smaller than `+(fat+1))).KNOWN_RECORDER_ERROR=!0,t}var gat,fat,mat,yat,vat,xat,bat,wat=t(()=>{NW(),set(),jrt(),Urt(),hit(),Rat(),Nnt(),gat={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(gat),fat=Math.pow(2,8)-1,Crt([mat=Hrt({name:"RECORDING_PHASE_TOKEN",pattern:Grt.NA})]),yat=Xrt(mat,`This IToken indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(mat),yat={name:`This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(yat),vat={name:`This CSTNode indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},vat=class{static{me(this,"GastRecorder")}initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let r=0;r<10;r++){var t=0<r?r:"";this["CONSUME"+t]=function(t,e){return this.consumeInternalRecord(t,r,e)},this["SUBRULE"+t]=function(t,e){return this.subruleInternalRecord(t,r,e)},this["OPTION"+t]=function(t){return this.optionInternalRecord(t,r)},this["OR"+t]=function(t){return this.orInternalRecord(t,r)},this["MANY"+t]=function(t){this.manyInternalRecord(r,t)},this["MANY_SEP"+t]=function(t){this.manySepFirstInternalRecord(r,t)},this["AT_LEAST_ONE"+t]=function(t){this.atLeastOneInternalRecord(r,t)},this["AT_LEAST_ONE_SEP"+t]=function(t){this.atLeastOneSepFirstInternalRecord(r,t)}}this.consume=function(t,e,r){return this.consumeInternalRecord(e,t,r)},this.subrule=function(t,e,r){return this.subruleInternalRecord(e,t,r)},this.option=function(t,e){return this.optionInternalRecord(e,t)},this.or=function(t,e){return this.orInternalRecord(e,t)},this.many=function(t,e){this.manyInternalRecord(t,e)},this.atLeastOne=function(t,e){this.atLeastOneInternalRecord(t,e)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{var e=this;for(let t=0;t<10;t++){var r=0<t?t:"";delete e["CONSUME"+r],delete e["SUBRULE"+r],delete e["OPTION"+r],delete e["OR"+r],delete e["MANY"+r],delete e["MANY_SEP"+r],delete e["AT_LEAST_ONE"+r],delete e["AT_LEAST_ONE_SEP"+r]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,e){return()=>!0}LA_RECORD(t){return _at}topLevelRuleRecord(t,e){try{var r=new Gtt({definition:[],name:t});return r.name=t,this.recordingProdStack.push(r),e.call(this),this.recordingProdStack.pop(),r}catch(t){if(!0!==t.KNOWN_RECORDER_ERROR)try{t.message=t.message+` See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},xat=class{static{me(this,"GastRecorder")}initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let r=0;r<10;r++){var t=0<r?r:"";this["CONSUME"+t]=function(t,e){return this.consumeInternalRecord(t,r,e)},this["SUBRULE"+t]=function(t,e){return this.subruleInternalRecord(t,r,e)},this["OPTION"+t]=function(t){return this.optionInternalRecord(t,r)},this["OR"+t]=function(t){return this.orInternalRecord(t,r)},this["MANY"+t]=function(t){this.manyInternalRecord(r,t)},this["MANY_SEP"+t]=function(t){this.manySepFirstInternalRecord(r,t)},this["AT_LEAST_ONE"+t]=function(t){this.atLeastOneInternalRecord(r,t)},this["AT_LEAST_ONE_SEP"+t]=function(t){this.atLeastOneSepFirstInternalRecord(r,t)}}this.consume=function(t,e,r){return this.consumeInternalRecord(e,t,r)},this.subrule=function(t,e,r){return this.subruleInternalRecord(e,t,r)},this.option=function(t,e){return this.optionInternalRecord(e,t)},this.or=function(t,e){return this.orInternalRecord(e,t)},this.many=function(t,e){this.manyInternalRecord(t,e)},this.atLeastOne=function(t,e){this.atLeastOneInternalRecord(t,e)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{var e=this;for(let t=0;t<10;t++){var r=0<t?t:"";delete e["CONSUME"+r],delete e["SUBRULE"+r],delete e["OPTION"+r],delete e["OR"+r],delete e["MANY"+r],delete e["MANY_SEP"+r],delete e["AT_LEAST_ONE"+r],delete e["AT_LEAST_ONE_SEP"+r]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,e){return()=>!0}LA_RECORD(t){return _at}topLevelRuleRecord(t,e){try{var r=new qtt({definition:[],name:t});return r.name=t,this.recordingProdStack.push(r),e.call(this),this.recordingProdStack.pop(),r}catch(t){if(!0!==t.KNOWN_RECORDER_ERROR)try{t.message=t.message+`
This error was thrown during the "grammar recording phase" For more info see: This error was thrown during the "grammar recording phase" For more info see:
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{}throw t}}optionInternalRecord(t,e){return cat.call(this,jtt,t,e)}atLeastOneInternalRecord(t,e){cat.call(this,Ytt,e,t)}atLeastOneSepFirstInternalRecord(t,e){cat.call(this,Wtt,e,t,!0)}manyInternalRecord(t,e){cat.call(this,Htt,e,t)}manySepFirstInternalRecord(t,e){cat.call(this,Vtt,e,t,!0)}orInternalRecord(t,e){return hat.call(this,t,e)}subruleInternalRecord(t,e,r){var i,n;if(dat(e),t&&!1!==PG(t,"ruleName"))return i=xU(this.recordingProdStack),n=t.ruleName,n=new Utt({idx:e,nonTerminalName:n,label:r?.LABEL,referencedRule:void 0}),i.definition.push(n),this.outputCst?yat:pat;throw(r=new Error(`<SUBRULE${uat(e)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}> https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{}throw t}}optionInternalRecord(t,e){return hat.call(this,Wtt,t,e)}atLeastOneInternalRecord(t,e){hat.call(this,Ytt,e,t)}atLeastOneSepFirstInternalRecord(t,e){hat.call(this,Htt,e,t,!0)}manyInternalRecord(t,e){hat.call(this,Vtt,e,t)}manySepFirstInternalRecord(t,e){hat.call(this,Xtt,e,t,!0)}orInternalRecord(t,e){return uat.call(this,t,e)}subruleInternalRecord(t,e,r){var i,n;if(pat(e),t&&!1!==BU(t,"ruleName"))return i=wG(this.recordingProdStack),n=t.ruleName,n=new Utt({idx:e,nonTerminalName:n,label:r?.LABEL,referencedRule:void 0}),i.definition.push(n),this.outputCst?vat:gat;throw(r=new Error(`<SUBRULE${dat(e)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}>
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,r}consumeInternalRecord(t,e,r){var i;if(dat(e),Nrt(t))return i=xU(this.recordingProdStack),r=new Ktt({idx:e,terminalType:t,label:r?.LABEL}),i.definition.push(r),mat;throw(i=new Error(`<CONSUME${uat(e)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}> inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,r}consumeInternalRecord(t,e,r){var i;if(pat(e),Irt(t))return i=wG(this.recordingProdStack),r=new Ztt({idx:e,terminalType:t,label:r?.LABEL}),i.definition.push(r),yat;throw(i=new Error(`<CONSUME${dat(e)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}>
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,i}},me(cat,"recordProd"),me(hat,"recordOrProd"),me(uat,"getIdxSuffix"),me(dat,"assertMethodIdxIsValid")}),wat=t(()=>{LY(),Ott(),Iat(),bat=class{static{me(this,"PerformanceTracer")}initPerformanceTracer(t){var e;PG(t,"traceInitPerf")?(t=t.traceInitPerf,this.traceInitMaxIdent=(e="number"==typeof t)?t:1/0,this.traceInitPerf=e?0<t:t):(this.traceInitMaxIdent=0,this.traceInitPerf=Cat.traceInitPerf),this.traceInitIndent=-1}TRACE_INIT(t,e){var r,i,n,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:i,value:n}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${t}>`),Itt(e)),a=10<i?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${t}> time: ${i}ms`),this.traceInitIndent--,n):e()}}});function kat(n,t){t.forEach(r=>{let i=r.prototype;Object.getOwnPropertyNames(i).forEach(t=>{var e;"constructor"!==t&&((e=Object.getOwnPropertyDescriptor(i,t))&&(e.get||e.set)?Object.defineProperty(n.prototype,t,e):n.prototype[t]=r.prototype[t])})})}var Tat=t(()=>{me(kat,"applyMixins")});function Eat(t=void 0){return function(){return t}}var _at,Cat,Sat,Aat,Lat,Nat,Iat=t(()=>{var t;LY(),Ott(),xet(),cit(),hit(),dnt(),Cnt(),Ont(),iat(),nat(),aat(),sat(),oat(),lat(),xat(),wat(),Tat(),cnt(),_at=Vrt(ait,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(_at),Cat=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:sit,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Sat=Object.freeze({recoveryValueFunc:me(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(t=Aat=Aat||{})[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",me(Eat,"EMPTY_ALT"),(Lat=class e{static{me(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{var t;this.selfAnalysisDone=!0;let r=this.className,i=(this.TRACE_INIT("toFastProps",()=>{Rtt(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),v(this.definedRulesNames,t=>{let e=this[t].originalGrammarAction,r;this.TRACE_INIT(t+" Rule",()=>{r=this.topLevelRuleRecord(t,e)}),this.gastProductionsCache[t]=r})}finally{this.disableRecording()}}),[]);if(this.TRACE_INIT("Grammar Resolving",()=>{i=hnt({rules:YG(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{var t,e;nq(i)&&!1===this.skipValidations&&(t=unt({rules:YG(this.gastProductionsCache),tokenTypes:YG(this.tokensMap),errMsgProvider:lit,grammarName:r}),e=qit({lookaheadStrategy:this.lookaheadStrategy,rules:YG(this.gastProductionsCache),tokenTypes:YG(this.tokensMap),grammarName:r}),this.definitionErrors=this.definitionErrors.concat(t,e))}),nq(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var t=yet(YG(this.gastProductionsCache));this.resyncFollows=t}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var t,e;null!=(e=(t=this.lookaheadStrategy).initialize)&&e.call(t,{rules:YG(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(YG(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!nq(this.definitionErrors))throw t=b(this.definitionErrors,t=>t.message),new Error(`Parser Definition Errors detected: inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,i}},me(hat,"recordProd"),me(uat,"recordOrProd"),me(dat,"getIdxSuffix"),me(pat,"assertMethodIdxIsValid")}),kat=t(()=>{NW(),Ptt(),Rat(),bat=class{static{me(this,"PerformanceTracer")}initPerformanceTracer(t){var e;BU(t,"traceInitPerf")?(t=t.traceInitPerf,this.traceInitMaxIdent=(e="number"==typeof t)?t:1/0,this.traceInitPerf=e?0<t:t):(this.traceInitMaxIdent=0,this.traceInitPerf=Sat.traceInitPerf),this.traceInitIndent=-1}TRACE_INIT(t,e){var r,i,n,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:i,value:n}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${t}>`),Rtt(e)),a=10<i?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${t}> time: ${i}ms`),this.traceInitIndent--,n):e()}}});function Tat(n,t){t.forEach(r=>{let i=r.prototype;Object.getOwnPropertyNames(i).forEach(t=>{var e;"constructor"!==t&&((e=Object.getOwnPropertyDescriptor(i,t))&&(e.get||e.set)?Object.defineProperty(n.prototype,t,e):n.prototype[t]=r.prototype[t])})})}var Eat=t(()=>{me(Tat,"applyMixins")});function Cat(t=void 0){return function(){return t}}var _at,Sat,Aat,Lat,Nat,Iat,Rat=t(()=>{var t;NW(),Ptt(),wet(),hit(),uit(),pnt(),Snt(),Pnt(),nat(),aat(),sat(),oat(),lat(),cat(),wat(),kat(),Eat(),hnt(),_at=Xrt(sit,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(_at),Sat=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:oit,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Aat=Object.freeze({recoveryValueFunc:me(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(t=Lat=Lat||{})[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",me(Cat,"EMPTY_ALT"),(Nat=class e{static{me(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{var t;this.selfAnalysisDone=!0;let r=this.className,i=(this.TRACE_INIT("toFastProps",()=>{Dtt(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),v(this.definedRulesNames,t=>{let e=this[t].originalGrammarAction,r;this.TRACE_INIT(t+" Rule",()=>{r=this.topLevelRuleRecord(t,e)}),this.gastProductionsCache[t]=r})}finally{this.disableRecording()}}),[]);if(this.TRACE_INIT("Grammar Resolving",()=>{i=unt({rules:YU(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{var t,e;aq(i)&&!1===this.skipValidations&&(t=dnt({rules:YU(this.gastProductionsCache),tokenTypes:YU(this.tokensMap),errMsgProvider:cit,grammarName:r}),e=jit({lookaheadStrategy:this.lookaheadStrategy,rules:YU(this.gastProductionsCache),tokenTypes:YU(this.tokensMap),grammarName:r}),this.definitionErrors=this.definitionErrors.concat(t,e))}),aq(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var t=vet(YU(this.gastProductionsCache));this.resyncFollows=t}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var t,e;null!=(e=(t=this.lookaheadStrategy).initialize)&&e.call(t,{rules:YU(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(YU(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!aq(this.definitionErrors))throw t=x(this.definitionErrors,t=>t.message),new Error(`Parser Definition Errors detected:
`+t.join(` `+t.join(`
------------------------------- -------------------------------
`))})}constructor(t,e){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(e),this.initLexerAdapter(),this.initLooksAhead(e),this.initRecognizerEngine(t,e),this.initRecoverable(e),this.initTreeBuilder(e),this.initContentAssist(),this.initGastRecorder(e),this.initPerformanceTracer(e),PG(e,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated. `))})}constructor(t,e){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(e),this.initLexerAdapter(),this.initLooksAhead(e),this.initRecognizerEngine(t,e),this.initRecoverable(e),this.initTreeBuilder(e),this.initContentAssist(),this.initGastRecorder(e),this.initPerformanceTracer(e),BU(e,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead. Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details.`);this.skipValidations=(PG(e,"skipValidations")?e:Cat).skipValidations}}).DEFER_DEFINITION_ERRORS_HANDLING=!1,kat(Lat,[_nt,Mnt,Knt,Znt,Jnt,Qnt,tat,eat,vat,bat]),Nat=class extends Lat{static{me(this,"EmbeddedActionsParser")}constructor(t,e=Cat){(e=t$(e)).outputCst=!1,super(t,e)}}}),Mat=t(()=>{aet()}),Rat=t(()=>{}),Dat=t(()=>{Mat(),Rat()}),Oat=t(()=>{Stt()}),Pat=t(()=>{Stt(),Iat(),qrt(),cit(),Git(),Nnt(),hit(),xnt(),Grt(),aet(),aet(),Dat(),Oat()});function Bat(t,e,r){return t.name+`_${e}_`+r}function Fat(e){var r={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]},i=($at(r,e),e.length);for(let t=0;t<i;t++){var n=e[t],a=Hat(r,n,n);void 0!==a&&ist(r,n,a)}return r}function $at(e,r){var i=r.length;for(let t=0;t<i;t++){var n=r[t],a=ast(e,n,void 0,{type:cst}),s=ast(e,n,void 0,{type:dst});a.stop=s,e.ruleToStartState.set(n,a),e.ruleToStopState.set(n,s)}}function zat(t,e,r){return r instanceof Ktt?est(t,e,r.terminalType,r):(r instanceof Utt?rst:r instanceof Xtt?Yat:r instanceof jtt?Wat:r instanceof Htt?Uat:r instanceof Vtt?Gat:r instanceof Ytt?qat:r instanceof Wtt?jat:Hat)(t,e,r)}function Uat(t,e,r){var i=ast(t,e,r,{type:ust});return Zat(t,i),Xat(t,e,r,Qat(t,e,i,r,Hat(t,e,r)))}function Gat(t,e,r){var i=ast(t,e,r,{type:ust});return Zat(t,i),Xat(t,e,r,Qat(t,e,i,r,Hat(t,e,r)),est(t,e,r.separator,r))}function qat(t,e,r){var i=ast(t,e,r,{type:hst});return Zat(t,i),Vat(t,e,r,Qat(t,e,i,r,Hat(t,e,r)))}function jat(t,e,r){var i=ast(t,e,r,{type:hst});return Zat(t,i),Vat(t,e,r,Qat(t,e,i,r,Hat(t,e,r)),est(t,e,r.separator,r))}function Yat(e,r,t){var i=ast(e,r,t,{type:lst}),n=(Zat(e,i),b(t.definition,t=>zat(e,r,t)));return Qat(e,r,i,t,...n)}function Wat(t,e,r){var i=ast(t,e,r,{type:lst});return Zat(t,i),Kat(t,e,r,Qat(t,e,i,r,Hat(t,e,r)))}function Hat(e,r,t){return 1===(t=HU(b(t.definition,t=>zat(e,r,t)),t=>void 0!==t)).length?t[0]:0===t.length?void 0:tst(e,t)}function Vat(t,e,r,i,n){var a=i.left,i=i.right,s=ast(t,e,r,{type:mst}),o=(Zat(t,s),ast(t,e,r,{type:yst}));return a.loopback=s,o.loopback=s,nst(i,t.decisionMap[Bat(e,n?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=s),void 0===n?(nst(s,a),nst(s,o)):(nst(s,o),nst(s,n.left),nst(n.right,a)),{left:a,right:o}}function Xat(t,e,r,i,n){var a=i.left,i=i.right,s=ast(t,e,r,{type:fst}),o=(Zat(t,s),ast(t,e,r,{type:yst})),l=ast(t,e,r,{type:gst});return s.loopback=l,o.loopback=l,nst(s,a),nst(s,o),nst(i,l),void 0!==n?(nst(l,o),nst(l,n.left),nst(n.right,a)):nst(l,s),{left:t.decisionMap[Bat(e,n?"RepetitionWithSeparator":"Repetition",r.idx)]=s,right:o}}function Kat(t,e,r,i){var n=i.left;return nst(n,i.right),t.decisionMap[Bat(e,"Option",r.idx)]=n,i}function Zat(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function Qat(t,e,r,i,...n){var a,s=ast(t,e,i,{type:pst,start:r});r.end=s;for(a of n)void 0!==a?(nst(r,a.left),nst(a.right,s)):nst(r,s);return n={left:r,right:s},t.decisionMap[Bat(e,Jat(i),i.idx)]=r,n}function Jat(t){if(t instanceof Xtt)return"Alternation";if(t instanceof jtt)return"Option";if(t instanceof Htt)return"Repetition";if(t instanceof Vtt)return"RepetitionWithSeparator";if(t instanceof Ytt)return"RepetitionMandatory";if(t instanceof Wtt)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function tst(e,r){var i=r.length;for(let t=0;t<i-1;t++){var n,a=r[t],s=(n=1===a.left.transitions.length?a.left.transitions[0]:void 0)instanceof wst,o=n,l=r[t+1].left;a.left.type===lst&&a.right.type===lst&&void 0!==n&&(s&&o.followState===a.right||n.target===a.right)?(s?o.followState=l:n.target=l,ost(e,a.right)):nst(a.right,l)}return{left:r[0].left,right:r[i-1].right}}function est(t,e,r,i){var n=ast(t,e,i,{type:lst}),t=ast(t,e,i,{type:lst});return sst(n,new bst(t,r)),{left:n,right:t}}function rst(t,e,r){var i=r.referencedRule,n=t.ruleToStartState.get(i),a=ast(t,e,r,{type:lst}),t=ast(t,e,r,{type:lst});return sst(a,new wst(n,i,t)),{left:a,right:t}}function ist(t,e,r){var i=t.ruleToStartState.get(e),t=(nst(i,r.left),t.ruleToStopState.get(e));return nst(r.right,t),{left:i,right:t}}function nst(t,e){sst(t,new xst(e))}function ast(t,e,r,i){return r=Object.assign({atn:t,production:r,epsilonOnlyTransitions:!1,rule:e,transitions:[],nextTokenWithinRule:[],stateNumber:t.states.length},i),t.states.push(r),r}function sst(t,e){0===t.transitions.length&&(t.epsilonOnlyTransitions=e.isEpsilon()),t.transitions.push(e)}function ost(t,e){t.states.splice(t.states.indexOf(e),1)}var lst,cst,hst,ust,dst,pst,gst,fst,mst,yst,vst,bst,xst,wst,kst=t(()=>{pG(),VU(),Pat(),me(Bat,"buildATNKey"),lst=1,cst=2,hst=4,ust=5,dst=7,pst=8,gst=9,fst=10,mst=11,yst=12,vst=class{static{me(this,"AbstractTransition")}constructor(t){this.target=t}isEpsilon(){return!1}},bst=class extends vst{static{me(this,"AtomTransition")}constructor(t,e){super(t),this.tokenType=e}},xst=class extends vst{static{me(this,"EpsilonTransition")}constructor(t){super(t)}isEpsilon(){return!0}},wst=class extends Line truncated For further details.`);this.skipValidations=(BU(e,"skipValidations")?e:Sat).skipValidations}}).DEFER_DEFINITION_ERRORS_HANDLING=!1,Tat(Nat,[_nt,Mnt,Znt,Qnt,tat,Jnt,eat,rat,xat,bat]),Iat=class extends Nat{static{me(this,"EmbeddedActionsParser")}constructor(t,e=Sat){(e=e$(e)).outputCst=!1,super(t,e)}}}),Mat=t(()=>{set()}),Dat=t(()=>{}),Oat=t(()=>{Mat(),Dat()}),Pat=t(()=>{Att()}),Bat=t(()=>{Att(),Rat(),jrt(),hit(),qit(),Int(),uit(),wnt(),qrt(),set(),set(),Oat(),Pat()});function Fat(t,e,r){return t.name+`_${e}_`+r}function $at(e){var r={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]},i=(zat(r,e),e.length);for(let t=0;t<i;t++){var n=e[t],a=Vat(r,n,n);void 0!==a&&nst(r,n,a)}return r}function zat(e,r){var i=r.length;for(let t=0;t<i;t++){var n=r[t],a=sst(e,n,void 0,{type:hst}),s=sst(e,n,void 0,{type:pst});a.stop=s,e.ruleToStartState.set(n,a),e.ruleToStopState.set(n,s)}}function Gat(t,e,r){return r instanceof Ztt?rst(t,e,r.terminalType,r):(r instanceof Utt?ist:r instanceof Ktt?Yat:r instanceof Wtt?Hat:r instanceof Vtt?Uat:r instanceof Xtt?qat:r instanceof Ytt?jat:r instanceof Htt?Wat:Vat)(t,e,r)}function Uat(t,e,r){var i=sst(t,e,r,{type:dst});return Qat(t,i),Kat(t,e,r,Jat(t,e,i,r,Vat(t,e,r)))}function qat(t,e,r){var i=sst(t,e,r,{type:dst});return Qat(t,i),Kat(t,e,r,Jat(t,e,i,r,Vat(t,e,r)),rst(t,e,r.separator,r))}function jat(t,e,r){var i=sst(t,e,r,{type:ust});return Qat(t,i),Xat(t,e,r,Jat(t,e,i,r,Vat(t,e,r)))}function Wat(t,e,r){var i=sst(t,e,r,{type:ust});return Qat(t,i),Xat(t,e,r,Jat(t,e,i,r,Vat(t,e,r)),rst(t,e,r.separator,r))}function Yat(e,r,t){var i=sst(e,r,t,{type:cst}),n=(Qat(e,i),x(t.definition,t=>Gat(e,r,t)));return Jat(e,r,i,t,...n)}function Hat(t,e,r){var i=sst(t,e,r,{type:cst});return Qat(t,i),Zat(t,e,r,Jat(t,e,i,r,Vat(t,e,r)))}function Vat(e,r,t){return 1===(t=VG(x(t.definition,t=>Gat(e,r,t)),t=>void 0!==t)).length?t[0]:0===t.length?void 0:est(e,t)}function Xat(t,e,r,i,n){var a=i.left,i=i.right,s=sst(t,e,r,{type:yst}),o=(Qat(t,s),sst(t,e,r,{type:vst}));return a.loopback=s,o.loopback=s,ast(i,t.decisionMap[Fat(e,n?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=s),void 0===n?(ast(s,a),ast(s,o)):(ast(s,o),ast(s,n.left),ast(n.right,a)),{left:a,right:o}}function Kat(t,e,r,i,n){var a=i.left,i=i.right,s=sst(t,e,r,{type:mst}),o=(Qat(t,s),sst(t,e,r,{type:vst})),l=sst(t,e,r,{type:fst});return s.loopback=l,o.loopback=l,ast(s,a),ast(s,o),ast(i,l),void 0!==n?(ast(l,o),ast(l,n.left),ast(n.right,a)):ast(l,s),{left:t.decisionMap[Fat(e,n?"RepetitionWithSeparator":"Repetition",r.idx)]=s,right:o}}function Zat(t,e,r,i){var n=i.left;return ast(n,i.right),t.decisionMap[Fat(e,"Option",r.idx)]=n,i}function Qat(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function Jat(t,e,r,i,...n){var a,s=sst(t,e,i,{type:gst,start:r});r.end=s;for(a of n)void 0!==a?(ast(r,a.left),ast(a.right,s)):ast(r,s);return n={left:r,right:s},t.decisionMap[Fat(e,tst(i),i.idx)]=r,n}function tst(t){if(t instanceof Ktt)return"Alternation";if(t instanceof Wtt)return"Option";if(t instanceof Vtt)return"Repetition";if(t instanceof Xtt)return"RepetitionWithSeparator";if(t instanceof Ytt)return"RepetitionMandatory";if(t instanceof Htt)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function est(e,r){var i=r.length;for(let t=0;t<i-1;t++){var n,a=r[t],s=(n=1===a.left.transitions.length?a.left.transitions[0]:void 0)instanceof kst,o=n,l=r[t+1].left;a.left.type===cst&&a.right.type===cst&&void 0!==n&&(s&&o.followState===a.right||n.target===a.right)?(s?o.followState=l:n.target=l,lst(e,a.right)):ast(a.right,l)}return{left:r[0].left,right:r[i-1].right}}function rst(t,e,r,i){var n=sst(t,e,i,{type:cst}),t=sst(t,e,i,{type:cst});return ost(n,new bst(t,r)),{left:n,right:t}}function ist(t,e,r){var i=r.referencedRule,n=t.ruleToStartState.get(i),a=sst(t,e,r,{type:cst}),t=sst(t,e,r,{type:cst});return ost(a,new kst(n,i,t)),{left:a,right:t}}function nst(t,e,r){var i=t.ruleToStartState.get(e),t=(ast(i,r.left),t.ruleToStopState.get(e));return ast(r.right,t),{left:i,right:t}}function ast(t,e){ost(t,new wst(e))}function sst(t,e,r,i){return r=Object.assign({atn:t,production:r,epsilonOnlyTransitions:!1,rule:e,transitions:[],nextTokenWithinRule:[],stateNumber:t.states.length},i),t.states.push(r),r}function ost(t,e){0===t.transitions.length&&(t.epsilonOnlyTransitions=e.isEpsilon()),t.transitions.push(e)}function lst(t,e){t.states.splice(t.states.indexOf(e),1)}var cst,hst,ust,dst,pst,gst,fst,mst,yst,vst,xst,bst,wst,kst,Tst=t(()=>{gU(),XG(),Bat(),me(Fat,"buildATNKey"),cst=1,hst=2,ust=4,dst=5,pst=7,gst=8,fst=9,mst=10,yst=11,vst=12,xst=class{static{me(this,"AbstractTransition")}constructor(t){this.target=t}isEpsilon(){return!1}},bst=class extends xst{static{me(this,"AtomTransition")}constructor(t,e){super(t),this.tokenType=e}},wst=class extends xst{static{me(this,"EpsilonTransition")}constructor(t){super(t)}isEpsilon(){return!0}},kst=class extends Line truncated
<${e}> may appears as a prefix path in all these alternatives. <${e}> may appears as a prefix path in all these alternatives.
`+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES `+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`}function Ost(t){if(t instanceof Utt)return"SUBRULE";if(t instanceof jtt)return"OPTION";if(t instanceof Xtt)return"OR";if(t instanceof Ytt)return"AT_LEAST_ONE";if(t instanceof Wtt)return"AT_LEAST_ONE_SEP";if(t instanceof Vtt)return"MANY_SEP";if(t instanceof Htt)return"MANY";if(t instanceof Ktt)return"CONSUME";throw Error("non exhaustive match")}function Pst(t,e,r){return e=fG(e.configs.elements,t=>t.state.transitions),{actualToken:r,possibleTokenTypes:yY(e.filter(t=>t instanceof bst).map(t=>t.tokenType),t=>t.tokenTypeIdx),tokenPath:t}}function Bst(t,e){return t.edges[e.tokenTypeIdx]}function Fst(t,e,r){var i,n=new _st,a=[];for(i of t.elements)if(!1!==r.is(i.alt))if(i.state.type===dst)a.push(i);else{var s=i.state.transitions.length;for(let t=0;t<s;t++){var o=$st(i.state.transitions[t],e);void 0!==o&&n.add({state:o,alt:i.alt,stack:i.stack})}}let l;if(void 0===(l=0===a.length&&1===n.size?n:l)){l=new _st;for(var c of n.elements)Yst(c,l)}if(0<a.length&&!Hst(l))for(var h of a)l.add(h);return l}function $st(t,e){if(t instanceof bst&&Xrt(e,t.tokenType))return t.target}function zst(t,e){let r;for(var i of t.elements)if(!0===e.is(i.alt))if(void 0===r)r=i.alt;else if(r!==i.alt)return;return r}function Ust(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Gst(t,e,r,i){return i=qst(t,i),e.edges[r.tokenTypeIdx]=i}function qst(t,e){var r,i;return e===Est?e:(r=e.configs.key,void 0!==(i=t.states[r])?i:(e.configs.finalize(),t.states[r]=e))}function jst(e){var r=new _st,i=e.transitions.length;for(let t=0;t<i;t++)Yst({state:e.transitions[t].target,alt:t,stack:[]},r);return r}function Yst(e,r){var t,i=e.state;if(i.type===dst)0<e.stack.length?Yst({state:(t=[...e.stack]).pop(),alt:e.alt,stack:t},r):r.add(e);else{i.epsilonOnlyTransitions||r.add(e);var n=i.transitions.length;for(let t=0;t<n;t++){var a=Wst(e,i.transitions[t]);void 0!==a&&Yst(a,r)}}}function Wst(t,e){var r;return e instanceof xst?{state:e.target,alt:t.alt,stack:t.stack}:e instanceof wst?(r=[...t.stack,e.followState],{state:e.target,alt:t.alt,stack:r}):void 0}function Hst(t){for(var e of t.elements)if(e.state.type===dst)return!0;return!1}function Vst(t){for(var e of t.elements)if(e.state.type!==dst)return!1;return!0}function Xst(t){return!!Vst(t)||Zst(t=Kst(t.elements))&&!Qst(t)}function Kst(t){var r,i=new Map;for(r of t){let t=Tst(r,!1),e=i.get(t);void 0===e&&(e={},i.set(t,e)),e[r.alt]=!0}return i}function Zst(t){for(var e of Array.from(t.values()))if(1<Object.keys(e).length)return!0;return!1}function Qst(t){for(var e of Array.from(t.values()))if(1===Object.keys(e).length)return!0;return!1}var Jst,tot,eot,rot,iot,not,aot,sot,oot,lot,cot,hot,uot,dot,pot,got,fot,mot,yot,vot,bot,xot,wot,kot,Tot,Eot,_ot,Cot,Sot,Aot,Lot,Not,Iot,Mot,Rot,Dot,Oot,Pot,Bot,Fot,$ot,zot,Uot,Got,qot,jot,Yot,Wot,Hot,Vot,Xot,Kot,Zot,Qot,Jot,tlt,elt,rlt,ilt,nlt,alt,slt,olt,llt,clt,hlt,ult,dlt,plt,glt,flt,mlt,ylt,vlt,blt,xlt,wlt,klt,Tlt,Elt,_lt,ye,Clt,Slt,Alt,Llt,Nlt,Ilt,Mlt=t(()=>{Pat(),kst(),Cst(),Lq(),mG(),vY(),pG(),HP(),MU(),aq(),Gj(),me(Sst,"createDFACache"),Jst=class{static{me(this,"PredicateSet")}constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,e){this.predicates[t]=e}toString(){let e="",r=this.predicates.length;for(let t=0;t<r;t++)e+=!0===this.predicates[t]?"1":"0";return e}},tot=new Jst,eot=class extends Ant{static{me(this,"LLStarLookaheadStrategy")}constructor(t){super(),this.logging=null!=(t=t?.logging)?t:t=>console.log(t)}initialize(t){this.atn=Fat(t.rules),this.dfas=Lst(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){let{prodOccurrence:e,rule:r,hasPredicates:i,dynamicTokensEnabled:n}=t,a=this.dfas,s=this.logging,o=Bat(r,"Alternation",e),l=this.atn.decisionMap[o].decision,c=b(_it({maxLookahead:1,occurrence:e,prodType:"Alternation",rule:r}),t=>b(t,t=>t[0]));if(!Ast(c,!1)||n)return i?function(e){var r=new Jst,i=void 0===e?0:e.length;for(let t=0;t<i;t++){var n=e?.[t].GATE;r.set(t,void 0===n||n.call(this))}var t=Nst.call(this,a,l,r,s);return"number"==typeof t?t:void 0}:function(){var t=Nst.call(this,a,l,tot,s);return"number"==typeof t?t:void 0};{let r=Uj(c,(e,t,r)=>(v(t,t=>{t&&(e[t.tokenTypeIdx]=r,v(t.categoryMatches,t=>{e[t]=r}))}),e),{});return i?function(t){var e=this.LA(1),e=r[e.tokenTypeIdx];if(void 0===t||void 0===e||void 0===(t=null==(t=t[e])?void 0:t.GATE)||!1!==t.call(this))return e}:function(){var t=this.LA(1);return r[t.tokenTypeIdx]}}}buildLookaheadForOptional(r){let{prodOccurrence:t,rule:e,prodType:i,dynamicTokensEnabled:n}=r,a=this.dfas,s=this.logging,o=Bat(e,i,t),l=this.atn.decisionMap[o].decision,c=b(_it({maxLookahead:1,occurrence:t,prodType:i,rule:e}),t=>b(t,t=>t[0]));if(Ast(c)&&c[0][0]&&!n){if(r=c[0],1===(r=WP(r)).length&&nq(r[0].categoryMatches)){let t=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===t}}{let e=Uj(r,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,v(t.categoryMatches,t=>{e Line truncated For Further details.`}function Pst(t){if(t instanceof Utt)return"SUBRULE";if(t instanceof Wtt)return"OPTION";if(t instanceof Ktt)return"OR";if(t instanceof Ytt)return"AT_LEAST_ONE";if(t instanceof Htt)return"AT_LEAST_ONE_SEP";if(t instanceof Xtt)return"MANY_SEP";if(t instanceof Vtt)return"MANY";if(t instanceof Ztt)return"CONSUME";throw Error("non exhaustive match")}function Bst(t,e,r){return e=mU(e.configs.elements,t=>t.state.transitions),{actualToken:r,possibleTokenTypes:vW(e.filter(t=>t instanceof bst).map(t=>t.tokenType),t=>t.tokenTypeIdx),tokenPath:t}}function Fst(t,e){return t.edges[e.tokenTypeIdx]}function $st(t,e,r){var i,n=new _st,a=[];for(i of t.elements)if(!1!==r.is(i.alt))if(i.state.type===pst)a.push(i);else{var s=i.state.transitions.length;for(let t=0;t<s;t++){var o=zst(i.state.transitions[t],e);void 0!==o&&n.add({state:o,alt:i.alt,stack:i.stack})}}let l;if(void 0===(l=0===a.length&&1===n.size?n:l)){l=new _st;for(var c of n.elements)Yst(c,l)}if(0<a.length&&!Vst(l))for(var h of a)l.add(h);return l}function zst(t,e){if(t instanceof bst&&Krt(e,t.tokenType))return t.target}function Gst(t,e){let r;for(var i of t.elements)if(!0===e.is(i.alt))if(void 0===r)r=i.alt;else if(r!==i.alt)return;return r}function Ust(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function qst(t,e,r,i){return i=jst(t,i),e.edges[r.tokenTypeIdx]=i}function jst(t,e){var r,i;return e===Cst?e:(r=e.configs.key,void 0!==(i=t.states[r])?i:(e.configs.finalize(),t.states[r]=e))}function Wst(e){var r=new _st,i=e.transitions.length;for(let t=0;t<i;t++)Yst({state:e.transitions[t].target,alt:t,stack:[]},r);return r}function Yst(e,r){var t,i=e.state;if(i.type===pst)0<e.stack.length?Yst({state:(t=[...e.stack]).pop(),alt:e.alt,stack:t},r):r.add(e);else{i.epsilonOnlyTransitions||r.add(e);var n=i.transitions.length;for(let t=0;t<n;t++){var a=Hst(e,i.transitions[t]);void 0!==a&&Yst(a,r)}}}function Hst(t,e){var r;return e instanceof wst?{state:e.target,alt:t.alt,stack:t.stack}:e instanceof kst?(r=[...t.stack,e.followState],{state:e.target,alt:t.alt,stack:r}):void 0}function Vst(t){for(var e of t.elements)if(e.state.type===pst)return!0;return!1}function Xst(t){for(var e of t.elements)if(e.state.type!==pst)return!1;return!0}function Kst(t){return!!Xst(t)||Qst(t=Zst(t.elements))&&!Jst(t)}function Zst(t){var r,i=new Map;for(r of t){let t=Est(r,!1),e=i.get(t);void 0===e&&(e={},i.set(t,e)),e[r.alt]=!0}return i}function Qst(t){for(var e of Array.from(t.values()))if(1<Object.keys(e).length)return!0;return!1}function Jst(t){for(var e of Array.from(t.values()))if(1===Object.keys(e).length)return!0;return!1}var tot,eot,rot,iot,not,aot,sot,oot,lot,cot,hot,uot,dot,pot,got,fot,mot,yot,vot,xot,bot,wot,kot,Tot,Eot,Cot,_ot,Sot,Aot,Lot,Not,Iot,Rot,Mot,Dot,Oot,Pot,Bot,Fot,$ot,zot,Got,Uot,qot,jot,Wot,Yot,Hot,Vot,Xot,Kot,Zot,Qot,Jot,tlt,elt,rlt,ilt,nlt,alt,slt,olt,llt,clt,hlt,ult,dlt,plt,glt,flt,mlt,ylt,vlt,xlt,blt,wlt,klt,Tlt,Elt,Clt,_lt,ye,Slt,Alt,Llt,Nlt,Ilt,Rlt,Mlt=t(()=>{Bat(),Tst(),Sst(),Nq(),yU(),xW(),gU(),VP(),MG(),sq(),qj(),me(Ast,"createDFACache"),tot=class{static{me(this,"PredicateSet")}constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,e){this.predicates[t]=e}toString(){let e="",r=this.predicates.length;for(let t=0;t<r;t++)e+=!0===this.predicates[t]?"1":"0";return e}},eot=new tot,rot=class extends Lnt{static{me(this,"LLStarLookaheadStrategy")}constructor(t){super(),this.logging=null!=(t=t?.logging)?t:t=>console.log(t)}initialize(t){this.atn=$at(t.rules),this.dfas=Nst(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){let{prodOccurrence:e,rule:r,hasPredicates:i,dynamicTokensEnabled:n}=t,a=this.dfas,s=this.logging,o=Fat(r,"Alternation",e),l=this.atn.decisionMap[o].decision,c=x(_it({maxLookahead:1,occurrence:e,prodType:"Alternation",rule:r}),t=>x(t,t=>t[0]));if(!Lst(c,!1)||n)return i?function(e){var r=new tot,i=void 0===e?0:e.length;for(let t=0;t<i;t++){var n=e?.[t].GATE;r.set(t,void 0===n||n.call(this))}var t=Ist.call(this,a,l,r,s);return"number"==typeof t?t:void 0}:function(){var t=Ist.call(this,a,l,eot,s);return"number"==typeof t?t:void 0};{let r=Uj(c,(e,t,r)=>(v(t,t=>{t&&(e[t.tokenTypeIdx]=r,v(t.categoryMatches,t=>{e[t]=r}))}),e),{});return i?function(t){var e=this.LA(1),e=r[e.tokenTypeIdx];if(void 0===t||void 0===e||void 0===(t=null==(t=t[e])?void 0:t.GATE)||!1!==t.call(this))return e}:function(){var t=this.LA(1);return r[t.tokenTypeIdx]}}}buildLookaheadForOptional(r){let{prodOccurrence:t,rule:e,prodType:i,dynamicTokensEnabled:n}=r,a=this.dfas,s=this.logging,o=Fat(e,i,t),l=this.atn.decisionMap[o].decision,c=x(_it({maxLookahead:1,occurrence:t,prodType:i,rule:e}),t=>x(t,t=>t[0]));if(Lst(c)&&c[0][0]&&!n){if(r=c[0],1===(r=HP(r)).length&&aq(r[0].categoryMatches)){let t=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===t}}{let e=Uj(r,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,v(t.categoryMatches,t=>{e Line truncated
`,"\r"===n&&t+1<r.length&&r.charAt(t+1)===` `,"\r"===n&&t+1<r.length&&r.charAt(t+1)===`
`&&t++}i&&0<r.length&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let e=this.getLineOffsets(),r=0,i=e.length;if(0===i)return sot.create(0,t);for(;r<i;){var n=Math.floor((r+i)/2);e[n]>t?i=n:r=n+1}var a=r-1;return sot.create(a,t-e[a])}offsetAt(t){var e,r=this.getLineOffsets();return t.line>=r.length?this._content.length:t.line<0?0:(e=r[t.line],r=t.line+1<r.length?r[t.line+1]:this._content.length,Math.max(Math.min(e+t.character,r),e))}get lineCount(){return this.getLineOffsets().length}};{var O=ye=ye||{};let i=Object.prototype.toString;function ae(t){return typeof t<"u"}function se(t){return"u"<typeof t}function oe(t){return!0===t||!1===t}function le(t){return"[object String]"===i.call(t)}function ce(t){return"[object Number]"===i.call(t)}function he(t,e,r){return"[object Number]"===i.call(t)&&e<=t&&t<=r}function ue(t){return"[object Number]"===i.call(t)&&-2147483648<=t&&t<=2147483647}function de(t){return"[object Number]"===i.call(t)&&0<=t&&t<=2147483647}function pe(t){return"[object Function]"===i.call(t)}function ge(t){return null!==t&&"object"==typeof t}function fe(t,e){return Array.isArray(t)&&t.every(e)}me(ae,"defined"),O.defined=ae,me(se,"undefined"),O.undefined=se,me(oe,"boolean"),O.boolean=oe,me(le,"string"),O.string=le,me(ce,"number"),O.number=ce,me(he,"numberRange"),O.numberRange=he,me(ue,"integer"),O.integer=ue,me(de,"uinteger"),O.uinteger=de,me(pe,"func"),O.func=pe,me(ge,"objectLiteral"),O.objectLiteral=ge,me(fe,"typedArray"),O.typedArray=fe}}),Olt=t(()=>{Dlt(),XK(),Clt=class{static{me(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){var t;return null!=(t=this.nodeStack[this.nodeStack.length-1])?t:this.rootNode}buildRootNode(t){return this.rootNode=new Ilt(t),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(t){var e=new Llt;return e.grammarSource=t,e.root=this.rootNode,this.current.content.push(e),this.nodeStack.push(e),e}buildLeafNode(t,e){return(t=new Alt(t.startOffset,t.image.length,IK(t),t.tokenType,!e)).grammarSource=e,t.root=this.rootNode,this.current.content.push(t),t}removeNode(t){var e=t.container;e&&0<=(t=e.content.indexOf(t))&&e.content.splice(t,1)}addHiddenNodes(t){var e,r=[];for(e of t){var i=new Alt(e.startOffset,e.image.length,IK(e),e.tokenType,!0);i.root=this.rootNode,r.push(i)}let n=this.current,a=!1;if(0<n.content.length)n.content.push(...r);else{for(;n.container;){var s=n.container.content.indexOf(n);if(0<s){n.container.content.splice(s,0,...r),a=!0;break}n=n.container}a||this.rootNode.content.unshift(...r)}}construct(t){var e=this.current;"string"==typeof t.$type&&(this.current.astNode=t),t.$cstNode=e,0===(t=this.nodeStack.pop())?.content.length&&this.removeNode(t)}},Slt=class{static{me(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var t="string"==typeof(null==(t=this._astNode)?void 0:t.$type)?this._astNode:null==(t=this.container)?void 0:t.astNode;if(t)return t;throw new Error("This node has no associated AST element")}set astNode(t){this._astNode=t}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},Alt=class extends Slt{static{me(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(t,e,r,i,n=!1){super(),this._hidden=n,this._offset=t,this._tokenType=i,this._length=e,this._range=r}},Llt=class extends Slt{static{me(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new Nlt(this)}get children(){return this.content}get offset(){var t;return null!=(t=null==(t=this.firstNonHiddenNode)?void 0:t.offset)?t:0}get length(){return this.end-this.offset}get end(){var t;return null!=(t=null==(t=this.lastNonHiddenNode)?void 0:t.end)?t:0}get range(){var t=this.firstNonHiddenNode,e=this.lastNonHiddenNode;return t&&e?(void 0===this._rangeCache&&(t=t.range,e=e.range,this._rangeCache={start:t.start,end:e.end.line<t.start.line?t.start:e.end}),this._rangeCache):{start:sot.create(0,0),end:sot.create(0,0)}}get firstNonHiddenNode(){for(var t of this.content)if(!t.hidden)return t;return this.content[0]}get lastNonHiddenNode(){for(let t=this.content.length-1;0<=t;t--){var e=this.content[t];if(!e.hidden)return e}return this.content[this.content.length-1]}},Nlt=class e extends Array{static{me(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,e,...r){return this.addParents(r),super.splice(t,e,...r)}addParents(t){for(var e of t)e.container=this.parent}},Ilt=class extends Llt{static{me(this,"RootCstNodeImpl")}get text(){return this._tex Line truncated `&&t++}i&&0<r.length&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let e=this.getLineOffsets(),r=0,i=e.length;if(0===i)return oot.create(0,t);for(;r<i;){var n=Math.floor((r+i)/2);e[n]>t?i=n:r=n+1}var a=r-1;return oot.create(a,t-e[a])}offsetAt(t){var e,r=this.getLineOffsets();return t.line>=r.length?this._content.length:t.line<0?0:(e=r[t.line],r=t.line+1<r.length?r[t.line+1]:this._content.length,Math.max(Math.min(e+t.character,r),e))}get lineCount(){return this.getLineOffsets().length}};{var O=ye=ye||{};let i=Object.prototype.toString;function ae(t){return typeof t<"u"}function se(t){return"u"<typeof t}function oe(t){return!0===t||!1===t}function le(t){return"[object String]"===i.call(t)}function ce(t){return"[object Number]"===i.call(t)}function he(t,e,r){return"[object Number]"===i.call(t)&&e<=t&&t<=r}function ue(t){return"[object Number]"===i.call(t)&&-2147483648<=t&&t<=2147483647}function de(t){return"[object Number]"===i.call(t)&&0<=t&&t<=2147483647}function pe(t){return"[object Function]"===i.call(t)}function ge(t){return null!==t&&"object"==typeof t}function fe(t,e){return Array.isArray(t)&&t.every(e)}me(ae,"defined"),O.defined=ae,me(se,"undefined"),O.undefined=se,me(oe,"boolean"),O.boolean=oe,me(le,"string"),O.string=le,me(ce,"number"),O.number=ce,me(he,"numberRange"),O.numberRange=he,me(ue,"integer"),O.integer=ue,me(de,"uinteger"),O.uinteger=de,me(pe,"func"),O.func=pe,me(ge,"objectLiteral"),O.objectLiteral=ge,me(fe,"typedArray"),O.typedArray=fe}}),Plt=t(()=>{Olt(),KK(),Slt=class{static{me(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){var t;return null!=(t=this.nodeStack[this.nodeStack.length-1])?t:this.rootNode}buildRootNode(t){return this.rootNode=new Rlt(t),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(t){var e=new Nlt;return e.grammarSource=t,e.root=this.rootNode,this.current.content.push(e),this.nodeStack.push(e),e}buildLeafNode(t,e){return(t=new Llt(t.startOffset,t.image.length,RK(t),t.tokenType,!e)).grammarSource=e,t.root=this.rootNode,this.current.content.push(t),t}removeNode(t){var e=t.container;e&&0<=(t=e.content.indexOf(t))&&e.content.splice(t,1)}addHiddenNodes(t){var e,r=[];for(e of t){var i=new Llt(e.startOffset,e.image.length,RK(e),e.tokenType,!0);i.root=this.rootNode,r.push(i)}let n=this.current,a=!1;if(0<n.content.length)n.content.push(...r);else{for(;n.container;){var s=n.container.content.indexOf(n);if(0<s){n.container.content.splice(s,0,...r),a=!0;break}n=n.container}a||this.rootNode.content.unshift(...r)}}construct(t){var e=this.current;"string"==typeof t.$type&&(this.current.astNode=t),t.$cstNode=e,0===(t=this.nodeStack.pop())?.content.length&&this.removeNode(t)}},Alt=class{static{me(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var t="string"==typeof(null==(t=this._astNode)?void 0:t.$type)?this._astNode:null==(t=this.container)?void 0:t.astNode;if(t)return t;throw new Error("This node has no associated AST element")}set astNode(t){this._astNode=t}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},Llt=class extends Alt{static{me(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(t,e,r,i,n=!1){super(),this._hidden=n,this._offset=t,this._tokenType=i,this._length=e,this._range=r}},Nlt=class extends Alt{static{me(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new Ilt(this)}get children(){return this.content}get offset(){var t;return null!=(t=null==(t=this.firstNonHiddenNode)?void 0:t.offset)?t:0}get length(){return this.end-this.offset}get end(){var t;return null!=(t=null==(t=this.lastNonHiddenNode)?void 0:t.end)?t:0}get range(){var t=this.firstNonHiddenNode,e=this.lastNonHiddenNode;return t&&e?(void 0===this._rangeCache&&(t=t.range,e=e.range,this._rangeCache={start:t.start,end:e.end.line<t.start.line?t.start:e.end}),this._rangeCache):{start:oot.create(0,0),end:oot.create(0,0)}}get firstNonHiddenNode(){for(var t of this.content)if(!t.hidden)return t;return this.content[0]}get lastNonHiddenNode(){for(let t=this.content.length-1;0<=t;t--){var e=this.content[t];if(!e.hidden)return e}return this.content[this.content.length-1]}},Ilt=class e extends Array{static{me(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,e,...r){return this.addParents(r),super.splice(t,e,...r)}addParents(t){for(var e of t)e.container=this.parent}},Rlt=class extends Nlt{static{me(this,"RootCstNodeImpl")}get text(){return this._tex Line truncated
`;case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return t}}function e(t){return"^"===t.charAt(0)?t.substring(1):t}function r(t){return parseInt(t)}function i(t){return BigInt(t)}function n(t){return new Date(t)}function s(t){return Number(t)}function o(t){return"true"===t.toLowerCase()}var l;qQ(),Ett(),mct=class{static{me(this,"DefaultValueConverter")}convert(t,e){var r=e.grammarSource;if(UZ(r=OZ(r)?jJ(r):r)){if(r=r.rule.ref)return this.runConverter(r,t,e);throw new Error("This cst node was not parsed by a rule.")}return t}runConverter(t,e,r){switch(t.name.toUpperCase()){case"INT":return yct.convertInt(e);case"STRING":return yct.convertString(e);case"ID":return yct.convertID(e)}switch(null==(t=ptt(t))?void 0:t.toLowerCase()){case"number":return yct.convertNumber(e);case"boolean":return yct.convertBoolean(e);case"bigint":return yct.convertBigint(e);case"date":return yct.convertDate(e);default:return e}}},l=yct=yct||{},me(t,"convertString"),l.convertString=t,me(a,"convertEscapeCharacter"),me(e,"convertID"),l.convertID=e,me(r,"convertInt"),l.convertInt=r,me(i,"convertBigint"),l.convertBigint=i,me(n,"convertDate"),l.convertDate=n,me(s,"convertNumber"),l.convertNumber=s,me(o,"convertBoolean"),l.convertBoolean=o}),wct=hOt(t=>{var e,r;function i(){if(void 0===e)throw new Error("No runtime abstraction layer installed");return e}function n(t){if(void 0===t)throw new Error("No runtime abstraction layer provided");e=t}Object.defineProperty(t,"__esModule",{value:!0}),me(i,"RAL"),r=i,me(n,"install"),r.install=n,t.default=i}),kct=hOt(t=>{function e(t){return!0===t||!1===t}function r(t){return"string"==typeof t||t instanceof String}function i(t){return"number"==typeof t||t instanceof Number}function n(t){return t instanceof Error}function a(t){return"function"==typeof t}function s(t){return Array.isArray(t)}function o(t){return s(t)&&t.every(t=>r(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,me(e,"boolean"),t.boolean=e,me(r,"string"),t.string=r,me(i,"number"),t.number=i,me(n,"error"),t.error=n,me(a,"func"),t.func=a,me(s,"array"),t.array=s,me(o,"stringArray"),t.stringArray=o}),Tct=hOt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var s=wct();{var r=e.Event={};let t={dispose(){}};r.None=function(){return t}}var n=class{static{me(this,"CallbackList")}add(t,e=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(e),Array.isArray(r)&&r.push({dispose:me(()=>this.remove(t,e),"dispose")})}remove(i,n=null){if(this._callbacks){let r=!1;for(let t=0,e=this._callbacks.length;t<e;t++)if(this._callbacks[t]===i){if(this._contexts[t]===n)return this._callbacks.splice(t,1),void this._contexts.splice(t,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...r){if(!this._callbacks)return[];var i=[],n=this._callbacks.slice(0),a=this._contexts.slice(0);for(let t=0,e=n.length;t<e;t++)try{i.push(n[t].apply(a[t],r))}catch(t){(0,s.default)().console.error(t)}return i}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},r=class a{static{me(this,"Emitter")}constructor(t){this._options=t}get event(){return this._event||(this._event=(t,e,r)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,e);let i={dispose:me(()=>{this._callbacks&&(this._callbacks.remove(t,e),i.dispose=a._noop,this._options)&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this)},"dispose")};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};(e.Emitter=r)._noop=function(){}}),Ect=hOt(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e,r,i=wct(),n=kct(),a=Tct();function s(t){return t&&(t===r.None||t===r.Cancelled||n.boolean(t.isCancellationRequested)&&!!t.onCancellationRequested)}(r=e||(t.CancellationToken=e={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),me(s,"is"),r.is=s;var o=Object.freeze(function(t,e){let r=(0,i.default)().timer.setTimeout(t.bind(e),0);return{dispose(){r.dispose()}}}),l=class{static{me(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new a.Emitter),this._emitt Line truncated `;case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return t}}function e(t){return"^"===t.charAt(0)?t.substring(1):t}function r(t){return parseInt(t)}function i(t){return BigInt(t)}function n(t){return new Date(t)}function s(t){return Number(t)}function o(t){return"true"===t.toLowerCase()}var l;jQ(),Ctt(),yct=class{static{me(this,"DefaultValueConverter")}convert(t,e){var r=e.grammarSource;if(UZ(r=PZ(r)?WJ(r):r)){if(r=r.rule.ref)return this.runConverter(r,t,e);throw new Error("This cst node was not parsed by a rule.")}return t}runConverter(t,e,r){switch(t.name.toUpperCase()){case"INT":return vct.convertInt(e);case"STRING":return vct.convertString(e);case"ID":return vct.convertID(e)}switch(null==(t=gtt(t))?void 0:t.toLowerCase()){case"number":return vct.convertNumber(e);case"boolean":return vct.convertBoolean(e);case"bigint":return vct.convertBigint(e);case"date":return vct.convertDate(e);default:return e}}},l=vct=vct||{},me(t,"convertString"),l.convertString=t,me(a,"convertEscapeCharacter"),me(e,"convertID"),l.convertID=e,me(r,"convertInt"),l.convertInt=r,me(i,"convertBigint"),l.convertBigint=i,me(n,"convertDate"),l.convertDate=n,me(s,"convertNumber"),l.convertNumber=s,me(o,"convertBoolean"),l.convertBoolean=o}),kct=iPt(t=>{var e,r;function i(){if(void 0===e)throw new Error("No runtime abstraction layer installed");return e}function n(t){if(void 0===t)throw new Error("No runtime abstraction layer provided");e=t}Object.defineProperty(t,"__esModule",{value:!0}),me(i,"RAL"),r=i,me(n,"install"),r.install=n,t.default=i}),Tct=iPt(t=>{function e(t){return!0===t||!1===t}function r(t){return"string"==typeof t||t instanceof String}function i(t){return"number"==typeof t||t instanceof Number}function n(t){return t instanceof Error}function a(t){return"function"==typeof t}function s(t){return Array.isArray(t)}function o(t){return s(t)&&t.every(t=>r(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,me(e,"boolean"),t.boolean=e,me(r,"string"),t.string=r,me(i,"number"),t.number=i,me(n,"error"),t.error=n,me(a,"func"),t.func=a,me(s,"array"),t.array=s,me(o,"stringArray"),t.stringArray=o}),Ect=iPt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var s=kct();{var r=e.Event={};let t={dispose(){}};r.None=function(){return t}}var n=class{static{me(this,"CallbackList")}add(t,e=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(e),Array.isArray(r)&&r.push({dispose:me(()=>this.remove(t,e),"dispose")})}remove(i,n=null){if(this._callbacks){let r=!1;for(let t=0,e=this._callbacks.length;t<e;t++)if(this._callbacks[t]===i){if(this._contexts[t]===n)return this._callbacks.splice(t,1),void this._contexts.splice(t,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...r){if(!this._callbacks)return[];var i=[],n=this._callbacks.slice(0),a=this._contexts.slice(0);for(let t=0,e=n.length;t<e;t++)try{i.push(n[t].apply(a[t],r))}catch(t){(0,s.default)().console.error(t)}return i}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},r=class a{static{me(this,"Emitter")}constructor(t){this._options=t}get event(){return this._event||(this._event=(t,e,r)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,e);let i={dispose:me(()=>{this._callbacks&&(this._callbacks.remove(t,e),i.dispose=a._noop,this._options)&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this)},"dispose")};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};(e.Emitter=r)._noop=function(){}}),Cct=iPt(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e,r,i=kct(),n=Tct(),a=Ect();function s(t){return t&&(t===r.None||t===r.Cancelled||n.boolean(t.isCancellationRequested)&&!!t.onCancellationRequested)}(r=e||(t.CancellationToken=e={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),me(s,"is"),r.is=s;var o=Object.freeze(function(t,e){let r=(0,i.default)().timer.setTimeout(t.bind(e),0);return{dispose(){r.dispose()}}}),l=class{static{me(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new a.Emitter),this._emitt Line truncated
`)?` `)?`
`:` `:`
`}var Nut,Iut,Mut,Rut,Dut,Out,Put,But,Fut,$ut,zut,Uut,Gut,qut,jut,Yut=t(()=>{Dlt(),FJ(),tht(),me(uut,"parseJSDoc"),me(dut,"isJSDoc"),me(put,"getLines"),Nut=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Iut=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,me(gut,"tokenize"),me(fut,"buildInlineTokens"),Mut=/\S/,Rut=/\s*$/,me(mut,"skipWhitespace"),me(yut,"lastCharacter"),me(vut,"parseJSDocComment"),me(but,"parseJSDocElement"),me(xut,"appendEmptyLine"),me(wut,"parseJSDocText"),me(kut,"parseJSDocInline"),me(Tut,"parseJSDocTag"),me(Eut,"parseJSDocLine"),me(_ut,"normalizeOptions"),me(Cut,"normalizeOption"),Dut=class{static{me(this,"JSDocCommentImpl")}constructor(t,e){this.elements=t,this.range=e}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(var e of this.elements)0===t.length?t=e.toString():(e=e.toString(),t+=Lut(t)+e);return t.trim()}toMarkdown(t){let e="";for(var r of this.elements)0===e.length?e=r.toMarkdown(t):(r=r.toMarkdown(t),e+=Lut(e)+r);return e.trim()}},Out=class{static{me(this,"JSDocTagImpl")}constructor(t,e,r,i){this.name=t,this.content=e,this.inline=r,this.range=i}toString(){let t="@"+this.name,e=this.content.toString();return 1===this.content.inlines.length?t=t+" "+e:1<this.content.inlines.length&&(t=t+` `}var Iut,Rut,Mut,Dut,Out,Put,But,Fut,$ut,zut,Gut,Uut,qut,jut,Wut,Yut=t(()=>{Olt(),$J(),eht(),me(dut,"parseJSDoc"),me(put,"isJSDoc"),me(gut,"getLines"),Iut=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Rut=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,me(fut,"tokenize"),me(mut,"buildInlineTokens"),Mut=/\S/,Dut=/\s*$/,me(yut,"skipWhitespace"),me(vut,"lastCharacter"),me(xut,"parseJSDocComment"),me(but,"parseJSDocElement"),me(wut,"appendEmptyLine"),me(kut,"parseJSDocText"),me(Tut,"parseJSDocInline"),me(Eut,"parseJSDocTag"),me(Cut,"parseJSDocLine"),me(_ut,"normalizeOptions"),me(Sut,"normalizeOption"),Out=class{static{me(this,"JSDocCommentImpl")}constructor(t,e){this.elements=t,this.range=e}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(var e of this.elements)0===t.length?t=e.toString():(e=e.toString(),t+=Nut(t)+e);return t.trim()}toMarkdown(t){let e="";for(var r of this.elements)0===e.length?e=r.toMarkdown(t):(r=r.toMarkdown(t),e+=Nut(e)+r);return e.trim()}},Put=class{static{me(this,"JSDocTagImpl")}constructor(t,e,r,i){this.name=t,this.content=e,this.inline=r,this.range=i}toString(){let t="@"+this.name,e=this.content.toString();return 1===this.content.inlines.length?t=t+" "+e:1<this.content.inlines.length&&(t=t+`
`+e),this.inline?`{${t}}`:t}toMarkdown(t){var e;return null!=(e=null==(e=t?.renderTag)?void 0:e.call(t,this))?e:this.toMarkdownDefault(t)}toMarkdownDefault(t){var e=this.content.toMarkdown(t);if(this.inline){var r=Sut(this.name,e,t??{});if("string"==typeof r)return r}let i="",n=("italic"===t?.tag||void 0===t?.tag?i="*":"bold"===t?.tag?i="**":"bold-italic"===t?.tag&&(i="***"),i+"@"+this.name+i);return 1===this.content.inlines.length?n=n+" — "+e:1<this.content.inlines.length&&(n=n+` `+e),this.inline?`{${t}}`:t}toMarkdown(t){var e;return null!=(e=null==(e=t?.renderTag)?void 0:e.call(t,this))?e:this.toMarkdownDefault(t)}toMarkdownDefault(t){var e=this.content.toMarkdown(t);if(this.inline){var r=Aut(this.name,e,t??{});if("string"==typeof r)return r}let i="",n=("italic"===t?.tag||void 0===t?.tag?i="*":"bold"===t?.tag?i="**":"bold-italic"===t?.tag&&(i="***"),i+"@"+this.name+i);return 1===this.content.inlines.length?n=n+" — "+e:1<this.content.inlines.length&&(n=n+`
`+e),this.inline?`{${n}}`:n}},me(Sut,"renderInlineTag"),me(Aut,"renderLinkDefault"),Put=class{static{me(this,"JSDocTextImpl")}constructor(t,e){this.inlines=t,this.range=e}toString(){let e="";for(let t=0;t<this.inlines.length;t++){var r=this.inlines[t],i=this.inlines[t+1];e+=r.toString(),i&&i.range.start.line>r.range.start.line&&(e+=` `+e),this.inline?`{${n}}`:n}},me(Aut,"renderInlineTag"),me(Lut,"renderLinkDefault"),But=class{static{me(this,"JSDocTextImpl")}constructor(t,e){this.inlines=t,this.range=e}toString(){let e="";for(let t=0;t<this.inlines.length;t++){var r=this.inlines[t],i=this.inlines[t+1];e+=r.toString(),i&&i.range.start.line>r.range.start.line&&(e+=`
`)}return e}toMarkdown(e){let r="";for(let t=0;t<this.inlines.length;t++){var i=this.inlines[t],n=this.inlines[t+1];r+=i.toMarkdown(e),n&&n.range.start.line>i.range.start.line&&(r+=` `)}return e}toMarkdown(e){let r="";for(let t=0;t<this.inlines.length;t++){var i=this.inlines[t],n=this.inlines[t+1];r+=i.toMarkdown(e),n&&n.range.start.line>i.range.start.line&&(r+=`
`)}return r}},But=class{static{me(this,"JSDocLineImpl")}constructor(t,e){this.text=t,this.range=e}toString(){return this.text}toMarkdown(){return this.text}},me(Lut,"fillNewlines")}),Wut=t(()=>{aJ(),Yut(),Fut=class{static{me(this,"JSDocDocumentationProvider")}constructor(t){this.indexManager=t.shared.workspace.IndexManager,this.commentProvider=t.documentation.CommentProvider}getDocumentation(r){var t=this.commentProvider.getComment(r);if(t&&dut(t))return uut(t).toMarkdown({renderLink:me((t,e)=>this.documentationLinkRenderer(r,t,e),"renderLink"),renderTag:me(t=>this.documentationTagRenderer(r,t),"renderTag")})}documentationLinkRenderer(t,e,r){var i=null!=(i=this.findNameInPrecomputedScopes(t,e))?i:this.findNameInGlobalScope(t,e);return i&&i.nameSegment?(t=i.nameSegment.range.start.line+1,e=i.nameSegment.range.start.character+1,`[${r}](${i.documentUri.with({fragment:`L${t},`+e}).toString()})`):void 0}documentationTagRenderer(t,e){}findNameInPrecomputedScopes(e,r){var i=VQ(e).precomputedScopes;if(i){let t=e;do{var n=i.get(t).find(t=>t.name===r);if(n)return n}while(t=t.$container)}}findNameInGlobalScope(t,e){return this.indexManager.allElements().find(t=>t.name===e)}}}),Hut=t(()=>{Lht(),XK(),$ut=class{static{me(this,"DefaultCommentProvider")}constructor(t){this.grammarConfig=()=>t.parser.GrammarConfig}getComment(t){return _ht(t)?t.$comment:null==(t=PK(t.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:t.text}}}),Vut=t(()=>{Pct(),Qht(),zut=class{static{me(this,"DefaultAsyncParser")}constructor(t){this.syncParser=t.parser.LangiumParser}parse(t,e){return Promise.resolve(this.syncParser.parse(t))}},Uut=class{static{me(this,"AbstractThreadedAsyncParser")}constructor(t){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=t.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let e=this.createWorker();e.onReady(()=>{var t;0<this.queue.length&&(t=this.queue.shift())&&(e.lock(),t.resolve(e))}),this.workerPool.push(e)}}async parse(t,e){let r=await this.acquireParserWorker(e),i=new Oct,n,a=e.onCancellationRequested(()=>{n=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(t).then(t=>{t=this.hydrator.hydrate(t),i.resolve(t)}).catch(t=>{i.reject(t)}).finally(()=>{a.dispose(),clearTimeout(n)}),i.promise}terminateWorker(t){t.terminate(),0<=(t=this.workerPool.indexOf(t))&&this.workerPool.splice(t,1)}async acquireParserWorker(t){this.initializeWorkers();for(var e of this.workerPool)if(e.ready)return e.lock(),e;let r=new Oct;return t.onCancellationRequested(()=>{var t=this.queue.indexOf(r);0<=t&&this.queue.splice(t,1),r.reject(Dct)}),this.queue.push(r),r.promise}},Gut=class{static{me(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(t,e,r,i){this.onReadyEmitter=new Zht.Emitter,this.deferred=new Oct,this._ready=!0,this._parsing=!1,this.sendMessage=t,this._terminate=i,e(t=>{this.deferred.resolve(t),this.unlock()}),r(t=>{this.deferred.reject(t),this.unlock()})}terminate(){this.deferred.reject(Dct),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(t){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Oct,this.sendMessage(t),this.deferred.promise}}}),Xut=t(()=>{Cct(),Pct(),qut=class{static{me(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new _ct.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(t){this.cancelWrite();var e=Act();return this.previousTokenSource=e,this.enqueue(this.writeQueue,t,e.token)}read(t){return this.enqueue(this.readQueue,t)}enqueue(t,e,r=_ct.CancellationToken.None){var i=new Oct;return t.push({action:e,deferred:i,cancellationToken:r}),this.performNextOperation(),i.promise}async performNextOperation(){if(this.done){var t=[];if(0<this.writeQueue.length)t.push(this.writeQueue.shift());else{if(!(0<this.readQueue.length))return;t.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(t.map(async({action:t,deferred:e,cancellationToken:r})=>{try{var i=await Promise.resolve().then(()=>t(r));e.resolve(i)}catch(t){Nct(t)?e.resolve(void 0):e.reject(t)}})),this.done=!0,this.performNextOperation()}}cancelWrite(){this.previousTokenSource.cancel()}}}),Kut=t(()=>{Olt(),qQ(),yK(),aJ(),xht(),XK(),jut=class{static{me(this,"DefaultHydrator")}constructor(t){this.grammarElementIdMap=new oht,this.tokenTypeIdMap=new oht,this.grammar=t.Grammar,this.lexer=t.parser.Lexer,this.linker=t.references.Linker}dehydrate(t){return{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport?this.dehydrateLexerReport(t.lexerReport):void 0,parserErrors:t.parserErrors.map(t=>Object.assign(Object.assign({},t),{message:t.message})),value:this.dehydrateAstNode(t.value,this.createDehyrationContext(t.value))}}dehydrateLexerReport(t){return t}createDehyrationContext(t){var e,r=new Map,i=new Map;fo Line truncated `)}return r}},Fut=class{static{me(this,"JSDocLineImpl")}constructor(t,e){this.text=t,this.range=e}toString(){return this.text}toMarkdown(){return this.text}},me(Nut,"fillNewlines")}),Hut=t(()=>{sJ(),Yut(),$ut=class{static{me(this,"JSDocDocumentationProvider")}constructor(t){this.indexManager=t.shared.workspace.IndexManager,this.commentProvider=t.documentation.CommentProvider}getDocumentation(r){var t=this.commentProvider.getComment(r);if(t&&put(t))return dut(t).toMarkdown({renderLink:me((t,e)=>this.documentationLinkRenderer(r,t,e),"renderLink"),renderTag:me(t=>this.documentationTagRenderer(r,t),"renderTag")})}documentationLinkRenderer(t,e,r){var i=null!=(i=this.findNameInPrecomputedScopes(t,e))?i:this.findNameInGlobalScope(t,e);return i&&i.nameSegment?(t=i.nameSegment.range.start.line+1,e=i.nameSegment.range.start.character+1,`[${r}](${i.documentUri.with({fragment:`L${t},`+e}).toString()})`):void 0}documentationTagRenderer(t,e){}findNameInPrecomputedScopes(e,r){var i=XQ(e).precomputedScopes;if(i){let t=e;do{var n=i.get(t).find(t=>t.name===r);if(n)return n}while(t=t.$container)}}findNameInGlobalScope(t,e){return this.indexManager.allElements().find(t=>t.name===e)}}}),Vut=t(()=>{Nht(),KK(),zut=class{static{me(this,"DefaultCommentProvider")}constructor(t){this.grammarConfig=()=>t.parser.GrammarConfig}getComment(t){return _ht(t)?t.$comment:null==(t=BK(t.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:t.text}}}),Xut=t(()=>{Bct(),Jht(),Gut=class{static{me(this,"DefaultAsyncParser")}constructor(t){this.syncParser=t.parser.LangiumParser}parse(t,e){return Promise.resolve(this.syncParser.parse(t))}},Uut=class{static{me(this,"AbstractThreadedAsyncParser")}constructor(t){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=t.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let e=this.createWorker();e.onReady(()=>{var t;0<this.queue.length&&(t=this.queue.shift())&&(e.lock(),t.resolve(e))}),this.workerPool.push(e)}}async parse(t,e){let r=await this.acquireParserWorker(e),i=new Pct,n,a=e.onCancellationRequested(()=>{n=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(t).then(t=>{t=this.hydrator.hydrate(t),i.resolve(t)}).catch(t=>{i.reject(t)}).finally(()=>{a.dispose(),clearTimeout(n)}),i.promise}terminateWorker(t){t.terminate(),0<=(t=this.workerPool.indexOf(t))&&this.workerPool.splice(t,1)}async acquireParserWorker(t){this.initializeWorkers();for(var e of this.workerPool)if(e.ready)return e.lock(),e;let r=new Pct;return t.onCancellationRequested(()=>{var t=this.queue.indexOf(r);0<=t&&this.queue.splice(t,1),r.reject(Oct)}),this.queue.push(r),r.promise}},qut=class{static{me(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(t,e,r,i){this.onReadyEmitter=new Qht.Emitter,this.deferred=new Pct,this._ready=!0,this._parsing=!1,this.sendMessage=t,this._terminate=i,e(t=>{this.deferred.resolve(t),this.unlock()}),r(t=>{this.deferred.reject(t),this.unlock()})}terminate(){this.deferred.reject(Oct),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(t){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Pct,this.sendMessage(t),this.deferred.promise}}}),Kut=t(()=>{Sct(),Bct(),jut=class{static{me(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new _ct.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(t){this.cancelWrite();var e=Lct();return this.previousTokenSource=e,this.enqueue(this.writeQueue,t,e.token)}read(t){return this.enqueue(this.readQueue,t)}enqueue(t,e,r=_ct.CancellationToken.None){var i=new Pct;return t.push({action:e,deferred:i,cancellationToken:r}),this.performNextOperation(),i.promise}async performNextOperation(){if(this.done){var t=[];if(0<this.writeQueue.length)t.push(this.writeQueue.shift());else{if(!(0<this.readQueue.length))return;t.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(t.map(async({action:t,deferred:e,cancellationToken:r})=>{try{var i=await Promise.resolve().then(()=>t(r));e.resolve(i)}catch(t){Ict(t)?e.resolve(void 0):e.reject(t)}})),this.done=!0,this.performNextOperation()}}cancelWrite(){this.previousTokenSource.cancel()}}}),Zut=t(()=>{Plt(),jQ(),vK(),sJ(),wht(),KK(),Wut=class{static{me(this,"DefaultHydrator")}constructor(t){this.grammarElementIdMap=new lht,this.tokenTypeIdMap=new lht,this.grammar=t.Grammar,this.lexer=t.parser.Lexer,this.linker=t.references.Linker}dehydrate(t){return{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport?this.dehydrateLexerReport(t.lexerReport):void 0,parserErrors:t.parserErrors.map(t=>Object.assign(Object.assign({},t),{message:t.message})),value:this.dehydrateAstNode(t.value,this.createDehyrationContext(t.value))}}dehydrateLexerReport(t){return t}createDehyrationContext(t){var e,r=new Map,i=new Map;fo Line truncated
`.includes(t[e-1])}matchWhitespace(t,e,r,i){return this.whitespaceRegExp.lastIndex=e,{currIndentLevel:null!=(t=(e=this.whitespaceRegExp.exec(t))?.[0].length)?t:0,prevIndentLevel:this.indentationStack.at(-1),match:e}}createIndentationTokenInstance(t,e,r,i){return e=this.getLineNumber(e,i),Vrt(t,r,i,i+r.length,e,e,1,r.length)}getLineNumber(t,e){return t.substring(0,e).split(/\r\n|\r|\n/).length}indentMatcher(t,e,r,i){return!this.isStartOfLine(t,e)||({currIndentLevel:t,prevIndentLevel:e,match:r}=this.matchWhitespace(t,e,r,i),t<=e)?null:(this.indentationStack.push(t),r)}dedentMatcher(e,r,i,t){if(this.isStartOfLine(e,r)){var{currIndentLevel:t,prevIndentLevel:n,match:a}=this.matchWhitespace(e,r,i,t);if(!(n<=t))if(-1===(n=this.indentationStack.lastIndexOf(t)))this.diagnostics.push({severity:"error",message:`Invalid dedent level ${t} at offset: ${r}. Current indentation stack: `+this.indentationStack,offset:r,length:null!=(a=null==(t=a?.[0])?void 0:t.length)?a:0,line:this.getLineNumber(e,r),column:1});else{var s=this.indentationStack.length-n-1,o=null!=(a=null==(t=e.substring(0,r).match(/[\r\n]+$/))?void 0:t[0].length)?a:1;for(let t=0;t<s;t++){var l=this.createIndentationTokenInstance(this.dedentTokenType,e,"",r-(o-1));i.push(l),this.indentationStack.pop()}}}return null}buildTerminalToken(t){var t=super.buildTerminalToken(t),{indentTokenName:e,dedentTokenName:r,whitespaceTokenName:i}=this.options;return t.name===e?this.indentTokenType:t.name===r?this.dedentTokenType:t.name===i?Wrt({name:i,pattern:this.whitespaceRegExp,group:zrt.SKIPPED}):t}flushRemainingDedents(t){for(var e=[];1<this.indentationStack.length;)e.push(this.createIndentationTokenInstance(this.dedentTokenType,t,"",t.length)),this.indentationStack.pop();return this.indentationStack=[0],e}},udt=class extends cut{static{me(this,"IndentationAwareLexer")}constructor(t){if(super(t),!(t.parser.TokenBuilder instanceof hdt))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=t.parser.TokenBuilder}tokenize(t,e=lut){var r=super.tokenize(t),t=r.report,{indentTokenType:e,dedentTokenType:t}=("full"===e?.mode&&r.tokens.push(...t.remainingDedents),t.remainingDedents=[],this.indentationTokenBuilder),i=e.tokenTypeIdx,n=t.tokenTypeIdx,a=[],s=r.tokens.length-1;for(let t=0;t<s;t++){var o=r.tokens[t],l=r.tokens[t+1];o.tokenTypeIdx===i&&l.tokenTypeIdx===n?t++:a.push(o)}return 0<=s&&a.push(r.tokens[s]),r.tokens=a,r}}}),xdt=t(()=>{}),wdt=t(()=>{Vut(),dct(),Olt(),bdt(),vct(),Wlt(),hut(),hct(),xdt(),bct(),xct()}),kdt=t(()=>{rht(),vht(),bht(),kht(),wht(),Eht()}),Tdt=t(()=>{Kut(),Lht()}),Edt=t(()=>{ddt=class{static{me(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},pdt={fileSystemProvider:me(()=>new ddt,"fileSystemProvider")}});function _dt(){var t=tdt(Qut(pdt),Adt),e=tdt(Zut({shared:t}),Sdt);return t.ServiceRegistry.register(e),e}function Cdt(t){var e=_dt(),t=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(t,jct.parse(`memory://${null!=(e=t.name)?e:"grammar"}.langium`)),t}var Sdt,Adt,Ldt=t(()=>{Jut(),gdt(),qQ(),Edt(),tht(),Sdt={Grammar:me(()=>{},"Grammar"),LanguageMetaData:me(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Adt={AstReflection:me(()=>new UQ,"AstReflection")},me(_dt,"createMinimalGrammarServices"),me(Cdt,"loadGrammarFromJson")}),Ndt={},Idt=(fOt(Ndt,{AstUtils:()=>jQ,BiMap:()=>oht,Cancellation:()=>_ct,ContextCache:()=>ght,CstUtils:()=>SK,DONE_RESULT:()=>TK,Deferred:()=>Oct,Disposable:()=>jht,DisposableCache:()=>dht,DocumentCache:()=>fht,EMPTY_STREAM:()=>kK,ErrorWithLocation:()=>ZK,GrammarUtils:()=>$J,MultiMap:()=>sht,OperationCancelled:()=>Dct,Reduction:()=>_K,RegExpUtils:()=>_J,SimpleCache:()=>pht,StreamImpl:()=>wK,TreeStreamImpl:()=>EK,URI:()=>jct,UriUtils:()=>Wct,WorkspaceCache:()=>mht,assertUnreachable:()=>KK,delayNextTick:()=>Sct,interruptAndCheck:()=>Ict,isOperationCancelled:()=>Nct,loadGrammarFromJson:()=>Cdt,setInterruptionPeriod:()=>Lct,startCancelableOperation:()=>Act,stream:()=>xK}),t(()=>{Tht(),Qht(),H(Ndt,Zht),xht(),tut(),QK(),Ldt(),Pct(),CK(),tht(),aJ(),Cct(),XK(),Ett(),FJ()})),Mdt=t(()=>{Vht(),Dht()}),Rdt=t(()=>{Xht(),Kht(),Jht(),eut(),eht(),Edt(),rut(),Xut(),iut()}),Ddt={},Odt=(fOt(Ddt,{AbstractAstReflection:()=>mK,AbstractCstNode:()=>Slt,AbstractLangiumParser:()=>$lt,AbstractParserErrorMessageProvider:()=>Ult,AbstractThreadedAsyncParser:()=>Uut,AstUtils:()=>jQ,BiMap:()=>oht,Cancellation:()=>_ct,CompositeCstNodeImpl:()=>Llt,ContextCache:()=>ght,CstNodeBuilder:()=>Clt,CstUtils:()=>SK,DEFAULT_TOKENIZE_OPTIONS:()=>lut,DONE_RESULT:()=>TK,DatatypeSymbol:()=>Blt,DefaultAstNodeDescriptionProvider:()=>zht,DefaultAstNodeLocator:()=>Ght,DefaultAsyncParser:()=>zut,DefaultCommentProvider:()=>$ut,DefaultConfigurationProvider:()=>qht,DefaultDocumentBuilder:()=>Yht,DefaultDocumentValidator:()=>Fht,DefaultHydrator:()=>jut Line truncated `.includes(t[e-1])}matchWhitespace(t,e,r,i){return this.whitespaceRegExp.lastIndex=e,{currIndentLevel:null!=(t=(e=this.whitespaceRegExp.exec(t))?.[0].length)?t:0,prevIndentLevel:this.indentationStack.at(-1),match:e}}createIndentationTokenInstance(t,e,r,i){return e=this.getLineNumber(e,i),Xrt(t,r,i,i+r.length,e,e,1,r.length)}getLineNumber(t,e){return t.substring(0,e).split(/\r\n|\r|\n/).length}indentMatcher(t,e,r,i){return!this.isStartOfLine(t,e)||({currIndentLevel:t,prevIndentLevel:e,match:r}=this.matchWhitespace(t,e,r,i),t<=e)?null:(this.indentationStack.push(t),r)}dedentMatcher(e,r,i,t){if(this.isStartOfLine(e,r)){var{currIndentLevel:t,prevIndentLevel:n,match:a}=this.matchWhitespace(e,r,i,t);if(!(n<=t))if(-1===(n=this.indentationStack.lastIndexOf(t)))this.diagnostics.push({severity:"error",message:`Invalid dedent level ${t} at offset: ${r}. Current indentation stack: `+this.indentationStack,offset:r,length:null!=(a=null==(t=a?.[0])?void 0:t.length)?a:0,line:this.getLineNumber(e,r),column:1});else{var s=this.indentationStack.length-n-1,o=null!=(a=null==(t=e.substring(0,r).match(/[\r\n]+$/))?void 0:t[0].length)?a:1;for(let t=0;t<s;t++){var l=this.createIndentationTokenInstance(this.dedentTokenType,e,"",r-(o-1));i.push(l),this.indentationStack.pop()}}}return null}buildTerminalToken(t){var t=super.buildTerminalToken(t),{indentTokenName:e,dedentTokenName:r,whitespaceTokenName:i}=this.options;return t.name===e?this.indentTokenType:t.name===r?this.dedentTokenType:t.name===i?Hrt({name:i,pattern:this.whitespaceRegExp,group:Grt.SKIPPED}):t}flushRemainingDedents(t){for(var e=[];1<this.indentationStack.length;)e.push(this.createIndentationTokenInstance(this.dedentTokenType,t,"",t.length)),this.indentationStack.pop();return this.indentationStack=[0],e}},ddt=class extends hut{static{me(this,"IndentationAwareLexer")}constructor(t){if(super(t),!(t.parser.TokenBuilder instanceof udt))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=t.parser.TokenBuilder}tokenize(t,e=cut){var r=super.tokenize(t),t=r.report,{indentTokenType:e,dedentTokenType:t}=("full"===e?.mode&&r.tokens.push(...t.remainingDedents),t.remainingDedents=[],this.indentationTokenBuilder),i=e.tokenTypeIdx,n=t.tokenTypeIdx,a=[],s=r.tokens.length-1;for(let t=0;t<s;t++){var o=r.tokens[t],l=r.tokens[t+1];o.tokenTypeIdx===i&&l.tokenTypeIdx===n?t++:a.push(o)}return 0<=s&&a.push(r.tokens[s]),r.tokens=a,r}}}),wdt=t(()=>{}),kdt=t(()=>{Xut(),pct(),Plt(),bdt(),xct(),Hlt(),uut(),uct(),wdt(),bct(),wct()}),Tdt=t(()=>{iht(),xht(),bht(),Tht(),kht(),Cht()}),Edt=t(()=>{Zut(),Nht()}),Cdt=t(()=>{pdt=class{static{me(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},gdt={fileSystemProvider:me(()=>new pdt,"fileSystemProvider")}});function _dt(){var t=edt(Jut(gdt),Ldt),e=edt(Qut({shared:t}),Adt);return t.ServiceRegistry.register(e),e}function Sdt(t){var e=_dt(),t=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(t,Wct.parse(`memory://${null!=(e=t.name)?e:"grammar"}.langium`)),t}var Adt,Ldt,Ndt=t(()=>{tdt(),fdt(),jQ(),Cdt(),eht(),Adt={Grammar:me(()=>{},"Grammar"),LanguageMetaData:me(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Ldt={AstReflection:me(()=>new UQ,"AstReflection")},me(_dt,"createMinimalGrammarServices"),me(Sdt,"loadGrammarFromJson")}),Idt={},Rdt=(lPt(Idt,{AstUtils:()=>WQ,BiMap:()=>lht,Cancellation:()=>_ct,ContextCache:()=>fht,CstUtils:()=>AK,DONE_RESULT:()=>EK,Deferred:()=>Pct,Disposable:()=>Wht,DisposableCache:()=>pht,DocumentCache:()=>mht,EMPTY_STREAM:()=>TK,ErrorWithLocation:()=>QK,GrammarUtils:()=>zJ,MultiMap:()=>oht,OperationCancelled:()=>Oct,Reduction:()=>_K,RegExpUtils:()=>_J,SimpleCache:()=>ght,StreamImpl:()=>kK,TreeStreamImpl:()=>CK,URI:()=>Wct,UriUtils:()=>Hct,WorkspaceCache:()=>yht,assertUnreachable:()=>ZK,delayNextTick:()=>Act,interruptAndCheck:()=>Rct,isOperationCancelled:()=>Ict,loadGrammarFromJson:()=>Sdt,setInterruptionPeriod:()=>Nct,startCancelableOperation:()=>Lct,stream:()=>wK}),t(()=>{Eht(),Jht(),H(Idt,Qht),wht(),eut(),JK(),Ndt(),Bct(),SK(),eht(),sJ(),Sct(),KK(),Ctt(),$J()})),Mdt=t(()=>{Xht(),Oht()}),Ddt=t(()=>{Kht(),Zht(),tut(),rut(),rht(),Cdt(),iut(),Kut(),nut()}),Odt={},Pdt=(lPt(Odt,{AbstractAstReflection:()=>yK,AbstractCstNode:()=>Alt,AbstractLangiumParser:()=>zlt,AbstractParserErrorMessageProvider:()=>Ult,AbstractThreadedAsyncParser:()=>Uut,AstUtils:()=>WQ,BiMap:()=>lht,Cancellation:()=>_ct,CompositeCstNodeImpl:()=>Nlt,ContextCache:()=>fht,CstNodeBuilder:()=>Slt,CstUtils:()=>AK,DEFAULT_TOKENIZE_OPTIONS:()=>cut,DONE_RESULT:()=>EK,DatatypeSymbol:()=>Flt,DefaultAstNodeDescriptionProvider:()=>Ght,DefaultAstNodeLocator:()=>qht,DefaultAsyncParser:()=>Gut,DefaultCommentProvider:()=>zut,DefaultConfigurationProvider:()=>jht,DefaultDocumentBuilder:()=>Yht,DefaultDocumentValidator:()=>$ht,DefaultHydrator:()=>Wut Line truncated
`):void 0:void 0}},O0t=class extends D0t{static{me(this,"CommonValueConverter")}static{Vdt(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},P0t=class extends fct{static{me(this,"AbstractMermaidTokenBuilder")}static{Vdt(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){return(t=super.buildKeywordTokens(t,e,r)).forEach(t=>{this.keywords.has(t.name)&&void 0!==t.PATTERN&&(t.PATTERN=new RegExp(t.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),t}},class extends P0t{static{me(this,"CommonTokenBuilder")}static{Vdt(this,"CommonTokenBuilder")}}});function F0t(t=pdt){var t=tdt(Qut(t),S0t),e=tdt(Zut({shared:t}),M0t,z0t);return t.ServiceRegistry.register(e),{shared:t,GitGraph:e}}var $0t,z0t,U0t=t(()=>{B0t(),Odt(),$0t=class extends P0t{static{me(this,"GitGraphTokenBuilder")}static{Vdt(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},z0t={parser:{TokenBuilder:Vdt(()=>new $0t,"TokenBuilder"),ValueConverter:Vdt(()=>new O0t,"ValueConverter")}},me(F0t,"createGitGraphServices"),Vdt(F0t,"createGitGraphServices")});function G0t(t=pdt){var t=tdt(Qut(t),S0t),e=tdt(Zut({shared:t}),A0t,j0t);return t.ServiceRegistry.register(e),{shared:t,Info:e}}var q0t,j0t,Y0t=t(()=>{B0t(),Odt(),q0t=class extends P0t{static{me(this,"InfoTokenBuilder")}static{Vdt(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},j0t={parser:{TokenBuilder:Vdt(()=>new q0t,"TokenBuilder"),ValueConverter:Vdt(()=>new O0t,"ValueConverter")}},me(G0t,"createInfoServices"),Vdt(G0t,"createInfoServices")});function W0t(t=pdt){var t=tdt(Qut(t),S0t),e=tdt(Zut({shared:t}),L0t,V0t);return t.ServiceRegistry.register(e),{shared:t,Packet:e}}var H0t,V0t,X0t=t(()=>{B0t(),Odt(),H0t=class extends P0t{static{me(this,"PacketTokenBuilder")}static{Vdt(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},V0t={parser:{TokenBuilder:Vdt(()=>new H0t,"TokenBuilder"),ValueConverter:Vdt(()=>new O0t,"ValueConverter")}},me(W0t,"createPacketServices"),Vdt(W0t,"createPacketServices")});function K0t(t=pdt){var t=tdt(Qut(t),S0t),e=tdt(Zut({shared:t}),N0t,J0t);return t.ServiceRegistry.register(e),{shared:t,Pie:e}}var Z0t,Q0t,J0t,tpt=t(()=>{B0t(),Odt(),Z0t=class extends P0t{static{me(this,"PieTokenBuilder")}static{Vdt(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Q0t=class extends D0t{static{me(this,"PieValueConverter")}static{Vdt(this,"PieValueConverter")}runCustomConverter(t,e,r){if("PIE_SECTION_LABEL"===t.name)return e.replace(/"/g,"").trim()}},J0t={parser:{TokenBuilder:Vdt(()=>new Z0t,"TokenBuilder"),ValueConverter:Vdt(()=>new Q0t,"ValueConverter")}},me(K0t,"createPieServices"),Vdt(K0t,"createPieServices")});function ept(t=pdt){var t=tdt(Qut(t),S0t),e=tdt(Zut({shared:t}),I0t,npt);return t.ServiceRegistry.register(e),{shared:t,Architecture:e}}var rpt,ipt,npt,apt=t(()=>{B0t(),Odt(),rpt=class extends P0t{static{me(this,"ArchitectureTokenBuilder")}static{Vdt(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},ipt=class extends D0t{static{me(this,"ArchitectureValueConverter")}static{Vdt(this,"ArchitectureValueConverter")}runCustomConverter(t,e,r){return"ARCH_ICON"===t.name?e.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===t.name?e.replace(/["()]/g,""):"ARCH_TITLE"===t.name?e.replace(/[[\]]/g,"").trim():void 0}},npt={parser:{TokenBuilder:Vdt(()=>new rpt,"TokenBuilder"),ValueConverter:Vdt(()=>new ipt,"ValueConverter")}},me(ept,"createArchitectureServices"),Vdt(ept,"createArchitectureServices")}),spt={},opt=(fOt(spt,{InfoModule:()=>j0t,createInfoServices:()=>G0t}),t(()=>{Y0t(),B0t()})),lpt={},cpt=(fOt(lpt,{PacketModule:()=>V0t,createPacketServices:()=>W0t}),t(()=>{X0t(),B0t()})),hpt={},upt=(fOt(hpt,{PieModule:()=>J0t,createPieServices:()=>K0t}),t(()=>{tpt(),B0t()})),dpt={},ppt=(fOt(dpt,{ArchitectureModule:()=>npt,createArchitectureServices:()=>ept}),t(()=>{apt(),B0t()})),gpt={},fpt=(fOt(gpt,{GitGraphModule:()=>z0t,createGitGraphServices:()=>F0t}),t(()=>{U0t(),B0t()}));async function mpt(t,e){var r=vpt[t];if(!r)throw new Error("Unknown diagram type: "+t);if(ypt[t]||await r(),0<(r=ypt[t].parse(e)).lexerErrors.length||0<r.parserErrors.length)throw new bpt(r);return r.value}var ypt,vpt,bpt,xpt=t(()=>{U0t(),Y0t(),X0t(),tpt(),apt(),B0t(),ypt={},vpt={info:Vdt(async()=>{var t=(t=(await Promise.resolve().then(()=>(opt(),spt))).createInfoServices)().Info.parser.LangiumParser;ypt.info=t},"info"),packet:Vdt(async()=>{var t=(t=(await Promise.resolve().then(()=>(cpt(),lpt))).createPacketServices)().Packet.parser.LangiumParser;ypt.packet=t},"packet"),pie:Vdt(async()=>{var t=(t=(await Promise.resolve().then(()=>(upt(),hpt))).createPieServices)().Pie.parser.LangiumParser;ypt.pie=t},"pie"),architecture:Vdt(async()=>{var t=(t=(await Promise.resolve().then(()=>(ppt(),dpt))).createArchitectureServices)().Architecture.parser.LangiumParser;ypt.architecture=t},"architecture"),gitGraph:Vdt(async()=>{var t=(t=(await Promise.resolve().then(()=>(fpt(),gpt))).createGitGraphServices)().GitGra Line truncated `):void 0:void 0}},G0t=class extends z0t{static{me(this,"CommonValueConverter")}static{s(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},U0t=class extends mct{static{me(this,"AbstractMermaidTokenBuilder")}static{s(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){return(t=super.buildKeywordTokens(t,e,r)).forEach(t=>{this.keywords.has(t.name)&&void 0!==t.PATTERN&&(t.PATTERN=new RegExp(t.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),t}},class extends U0t{static{me(this,"CommonTokenBuilder")}static{s(this,"CommonTokenBuilder")}}});function j0t(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),B0t,Y0t);return t.ServiceRegistry.register(e),{shared:t,GitGraph:e}}var W0t,Y0t,H0t=t(()=>{q0t(),Pdt(),W0t=class extends U0t{static{me(this,"GitGraphTokenBuilder")}static{s(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},Y0t={parser:{TokenBuilder:s(()=>new W0t,"TokenBuilder"),ValueConverter:s(()=>new G0t,"ValueConverter")}},me(j0t,"createGitGraphServices"),s(j0t,"createGitGraphServices")});function V0t(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),M0t,K0t);return t.ServiceRegistry.register(e),{shared:t,Info:e}}var X0t,K0t,Z0t=t(()=>{q0t(),Pdt(),X0t=class extends U0t{static{me(this,"InfoTokenBuilder")}static{s(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},K0t={parser:{TokenBuilder:s(()=>new X0t,"TokenBuilder"),ValueConverter:s(()=>new G0t,"ValueConverter")}},me(V0t,"createInfoServices"),s(V0t,"createInfoServices")});function Q0t(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),D0t,tpt);return t.ServiceRegistry.register(e),{shared:t,Packet:e}}var J0t,tpt,ept=t(()=>{q0t(),Pdt(),J0t=class extends U0t{static{me(this,"PacketTokenBuilder")}static{s(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},tpt={parser:{TokenBuilder:s(()=>new J0t,"TokenBuilder"),ValueConverter:s(()=>new G0t,"ValueConverter")}},me(Q0t,"createPacketServices"),s(Q0t,"createPacketServices")});function rpt(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),O0t,apt);return t.ServiceRegistry.register(e),{shared:t,Pie:e}}var ipt,npt,apt,spt=t(()=>{q0t(),Pdt(),ipt=class extends U0t{static{me(this,"PieTokenBuilder")}static{s(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},npt=class extends z0t{static{me(this,"PieValueConverter")}static{s(this,"PieValueConverter")}runCustomConverter(t,e,r){if("PIE_SECTION_LABEL"===t.name)return e.replace(/"/g,"").trim()}},apt={parser:{TokenBuilder:s(()=>new ipt,"TokenBuilder"),ValueConverter:s(()=>new npt,"ValueConverter")}},me(rpt,"createPieServices"),s(rpt,"createPieServices")});function opt(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),P0t,hpt);return t.ServiceRegistry.register(e),{shared:t,Architecture:e}}var lpt,cpt,hpt,upt=t(()=>{q0t(),Pdt(),lpt=class extends U0t{static{me(this,"ArchitectureTokenBuilder")}static{s(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},cpt=class extends z0t{static{me(this,"ArchitectureValueConverter")}static{s(this,"ArchitectureValueConverter")}runCustomConverter(t,e,r){return"ARCH_ICON"===t.name?e.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===t.name?e.replace(/["()]/g,""):"ARCH_TITLE"===t.name?e.replace(/[[\]]/g,"").trim():void 0}},hpt={parser:{TokenBuilder:s(()=>new lpt,"TokenBuilder"),ValueConverter:s(()=>new cpt,"ValueConverter")}},me(opt,"createArchitectureServices"),s(opt,"createArchitectureServices")});function dpt(t=gdt){var t=edt(Jut(t),R0t),e=edt(Qut({shared:t}),F0t,gpt);return t.ServiceRegistry.register(e),{shared:t,Radar:e}}var ppt,gpt,fpt=t(()=>{q0t(),Pdt(),ppt=class extends U0t{static{me(this,"RadarTokenBuilder")}static{s(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},gpt={parser:{TokenBuilder:s(()=>new ppt,"TokenBuilder"),ValueConverter:s(()=>new G0t,"ValueConverter")}},me(dpt,"createRadarServices"),s(dpt,"createRadarServices")}),mpt={},ypt=(lPt(mpt,{InfoModule:()=>K0t,createInfoServices:()=>V0t}),t(()=>{Z0t(),q0t()})),vpt={},xpt=(lPt(vpt,{PacketModule:()=>tpt,createPacketServices:()=>Q0t}),t(()=>{ept(),q0t()})),bpt={},wpt=(lPt(bpt,{PieModule:()=>apt,createPieServices:()=>rpt}),t(()=>{spt(),q0t()})),kpt={},Tpt=(lPt(kpt,{ArchitectureModule:()=>hpt,createArchitectureServices:()=>opt}),t(()=>{upt(),q0t()})),Ept={},Cpt=(lPt(Ept,{GitGraphModule:()=>Y0t,createGitGraphServices:()=>j0t}),t(()=>{H0t(),q0t()})),_pt={},Spt=(lPt(_pt,{RadarModule:()=>gpt,createRadarServices:()=>dpt}),t(()=>{fpt(),q0t()}));async function Apt(t,e){var r=Npt[t];if(!r)throw new Error("Unknown diagram type: "+t);if(Lpt[t]||await r(),0<(r=Lpt[t].parse(e)).lexerErrors.length||0<r.parserErrors.length)throw new Ipt(r);return r.value}var Lpt,Npt,Ipt,Rpt=t(()=>{H0t(),Z0t(),ept(),spt(),upt(),fpt(),q0t(),Lpt={},Npt={info:s(async()=>{var t=(t=(await Promise.resolve().then(()=>(ypt(),mpt))).createInfoServices)().Info.parser.LangiumParser;Lpt.info=t},"info"),packet:s(async()=>{var t=(t=(await Promise.resolve().then(()=>(xpt(),vpt))).creat Line truncated
`)} `+t.parserErrors.map(t=>t.message).join(` `)} `+t.parserErrors.map(t=>t.message).join(`
`)),this.result=t}static{Vdt(this,"MermaidParseError")}}});function wpt(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var kpt,Tpt,Ept=t(()=>{me(wpt,"populateCommonDb")}),_pt=t(()=>{kpt={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),Cpt=t(()=>{Tpt=class{constructor(t){this.init=t,this.records=this.init()}static{me(this,"ImperativeState")}reset(){this.records=this.init()}}});function Spt(){return OE({length:7})}function Apt(t,i){let n=Object.create(null);return t.reduce((t,e)=>{var r=i(e);return n[r]||(n[r]=!0,t.push(e)),t},[])}function Lpt(t,e,r){-1===(e=t.indexOf(e))?t.push(r):t.splice(e,1,r)}function Npt(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+="\t*":r+="\t|"});var i,n=[r,e.id,e.seq];for(i in x.records.branches)x.records.branches.get(i)===e.id&&n.push(i);if(R.debug(n.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){var a=x.records.commits.get(e.parents[0]);Lpt(t,e,a),e.parents[1]&&t.push(x.records.commits.get(e.parents[1]))}else{if(0==e.parents.length)return;e.parents[0]&&(a=x.records.commits.get(e.parents[0]),Lpt(t,e,a))}Npt(t=Apt(t,t=>t.id))}var Ipt,Mpt,x,Rpt,Dpt,Opt,Ppt,Bpt,Fpt,$pt,zpt,Upt,Gpt,qpt,jpt,Ypt,Wpt,Hpt,Vpt,Xpt,Kpt,Zpt,Qpt,Jpt,t1t,e1t,r1t,i1t,n1t,a1t,s1t,o1t,l1t,c1t,h1t,u1t,d1t,p1t,g1t,f1t,m1t,y1t,v1t,b1t,x1t,w1t,k1t,T1t,E1t,_1t,C1t,S1t,A1t,L1t,N1t,I1t,M1t,R1t,D1t,O1t,P1t,B1t,F1t=t(()=>{e(),KE(),Ai(),Jc(),gu(),_pt(),Cpt(),Ci(),Ipt=mr.gitGraph,Mpt=me(()=>bE({...Ipt,...Nr().gitGraph}),"getConfig"),x=new Tpt(()=>{var t=(e=Mpt()).mainBranchName,e=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:e}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}}),me(Spt,"getID"),me(Apt,"uniqBy"),Rpt=me(function(t){x.records.direction=t},"setDirection"),Dpt=me(function(t){R.debug("options str",t),t=t?.trim()||"{}";try{x.records.options=JSON.parse(t)}catch(t){R.error("error while parsing gitGraph options",t.message)}},"setOptions"),Opt=me(function(){return x.records.options},"getOptions"),Ppt=me(function(t){let e=t.msg,r=t.id,i=t.type,n=t.tags,a=(R.info("commit",e,r,i,n),R.debug("Entering commit:",e,r,i,n),Mpt());r=L.sanitizeText(r,a),e=L.sanitizeText(e,a),n=n?.map(t=>L.sanitizeText(t,a)),t={id:r||x.records.seq+"-"+Spt(),message:e,seq:x.records.seq++,type:i??kpt.NORMAL,tags:n??[],parents:null==x.records.head?[]:[x.records.head.id],branch:x.records.currBranch},x.records.head=t,R.info("main branch",a.mainBranchName),x.records.commits.set(t.id,t),x.records.branches.set(x.records.currBranch,t.id),R.debug("in pushCommit "+t.id)},"commit"),Bpt=me(function(t){var e=t.name,t=t.order,e=L.sanitizeText(e,Mpt());if(x.records.branches.has(e))throw 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 ${e}")`);x.records.branches.set(e,null!=x.records.head?x.records.head.id:null),x.records.branchConfig.set(e,{name:e,order:t}),zpt(e),R.debug("in createBranch")},"branch"),Fpt=me(t=>{var e=t.branch,r=t.id,i=t.type,n=t.tags,a=Mpt(),e=L.sanitizeText(e,a),r=r&&L.sanitizeText(r,a),t=x.records.branches.get(x.records.currBranch),a=x.records.branches.get(e),t=t?x.records.commits.get(t):void 0,s=a?x.records.commits.get(a):void 0;if(t&&s&&t.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(x.records.currBranch===e)throw(o=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+e,token:"merge "+e,expected:["branch abc"]},o;if(void 0===t||!t)throw(o=new Error(`Incorrect usage of "merge". Current branch (${x.records.currBranch})has no commits`)).hash={text:"merge "+e,token:"merge "+e,expected:["commit"]},o;if(!x.records.branches.has(e))throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist")).hash={text:"merge "+e,token:"merge "+e,expected:["branch "+e]},o;if(void 0===s||!s)throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits")).hash={text:"merge "+e,token:"merge "+e,expected:['"commit"']},o;if(t===s)throw(o=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+e,token:"merge "+e,expected:["branch abc"]},o;if(r&&x.records.commits.has(r))throw(t=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id")).hash={text:`merge ${e} ${r} ${i} `+n?.join(" "),token:`merge ${e} ${r} ${i} `+n?.join(" "),expected:[`merge ${e} ${r}_UNIQUE ${i} `+n?.join(" ")]},t;var s=a||"",o={id:r||x.records.seq+"-"+Spt(),message:`merged branch ${e} into `+x.records.currBranch,seq:x.records.seq++,parents:null==x.records.head?[]:[x.records.head.id,s],branch:x.records.currBranch,type:kpt.MERGE,customType:i,customId:!!r,tags:n??[]};x.records.head=o,x.records.commits.set(o.id,o),x.records.branches.set(x.records.currBranch,o.id),R.debug(x.records.branc Line truncated `)),this.result=t}static{s(this,"MermaidParseError")}}});function Mpt(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var Dpt,Opt,Ppt=t(()=>{me(Mpt,"populateCommonDb")}),Bpt=t(()=>{Dpt={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),Fpt=t(()=>{Opt=class{constructor(t){this.init=t,this.records=this.init()}static{me(this,"ImperativeState")}reset(){this.records=this.init()}}});function $pt(){return OE({length:7})}function zpt(t,i){let n=Object.create(null);return t.reduce((t,e)=>{var r=i(e);return n[r]||(n[r]=!0,t.push(e)),t},[])}function Gpt(t,e,r){-1===(e=t.indexOf(e))?t.push(r):t.splice(e,1,r)}function Upt(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+="\t*":r+="\t|"});var i,n=[r,e.id,e.seq];for(i in b.records.branches)b.records.branches.get(i)===e.id&&n.push(i);if(M.debug(n.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){var a=b.records.commits.get(e.parents[0]);Gpt(t,e,a),e.parents[1]&&t.push(b.records.commits.get(e.parents[1]))}else{if(0==e.parents.length)return;e.parents[0]&&(a=b.records.commits.get(e.parents[0]),Gpt(t,e,a))}Upt(t=zpt(t,t=>t.id))}var qpt,jpt,b,Wpt,Ypt,Hpt,Vpt,Xpt,Kpt,Zpt,Qpt,Jpt,tgt,egt,rgt,igt,ngt,agt,sgt,ogt,lgt,cgt,hgt,ugt,dgt,pgt,ggt,fgt,mgt,ygt,vgt,xgt,bgt,wgt,kgt,Tgt,Egt,Cgt,_gt,Sgt,Agt,Lgt,Ngt,Igt,Rgt,Mgt,Dgt,Ogt,Pgt,Bgt,Fgt,$gt,zgt,Ggt,Ugt,qgt,jgt,Wgt,Ygt,Hgt,Vgt,Xgt,Kgt=t(()=>{e(),KE(),Ai(),Jc(),gu(),Bpt(),Fpt(),_i(),qpt=mr.gitGraph,jpt=me(()=>xE({...qpt,...Nr().gitGraph}),"getConfig"),b=new Opt(()=>{var t=(e=jpt()).mainBranchName,e=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:e}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}}),me($pt,"getID"),me(zpt,"uniqBy"),Wpt=me(function(t){b.records.direction=t},"setDirection"),Ypt=me(function(t){M.debug("options str",t),t=t?.trim()||"{}";try{b.records.options=JSON.parse(t)}catch(t){M.error("error while parsing gitGraph options",t.message)}},"setOptions"),Hpt=me(function(){return b.records.options},"getOptions"),Vpt=me(function(t){let e=t.msg,r=t.id,i=t.type,n=t.tags,a=(M.info("commit",e,r,i,n),M.debug("Entering commit:",e,r,i,n),jpt());r=L.sanitizeText(r,a),e=L.sanitizeText(e,a),n=n?.map(t=>L.sanitizeText(t,a)),t={id:r||b.records.seq+"-"+$pt(),message:e,seq:b.records.seq++,type:i??Dpt.NORMAL,tags:n??[],parents:null==b.records.head?[]:[b.records.head.id],branch:b.records.currBranch},b.records.head=t,M.info("main branch",a.mainBranchName),b.records.commits.set(t.id,t),b.records.branches.set(b.records.currBranch,t.id),M.debug("in pushCommit "+t.id)},"commit"),Xpt=me(function(t){var e=t.name,t=t.order,e=L.sanitizeText(e,jpt());if(b.records.branches.has(e))throw 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 ${e}")`);b.records.branches.set(e,null!=b.records.head?b.records.head.id:null),b.records.branchConfig.set(e,{name:e,order:t}),Qpt(e),M.debug("in createBranch")},"branch"),Kpt=me(t=>{var e=t.branch,r=t.id,i=t.type,n=t.tags,a=jpt(),e=L.sanitizeText(e,a),r=r&&L.sanitizeText(r,a),t=b.records.branches.get(b.records.currBranch),a=b.records.branches.get(e),t=t?b.records.commits.get(t):void 0,s=a?b.records.commits.get(a):void 0;if(t&&s&&t.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(b.records.currBranch===e)throw(o=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+e,token:"merge "+e,expected:["branch abc"]},o;if(void 0===t||!t)throw(o=new Error(`Incorrect usage of "merge". Current branch (${b.records.currBranch})has no commits`)).hash={text:"merge "+e,token:"merge "+e,expected:["commit"]},o;if(!b.records.branches.has(e))throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist")).hash={text:"merge "+e,token:"merge "+e,expected:["branch "+e]},o;if(void 0===s||!s)throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits")).hash={text:"merge "+e,token:"merge "+e,expected:['"commit"']},o;if(t===s)throw(o=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+e,token:"merge "+e,expected:["branch abc"]},o;if(r&&b.records.commits.has(r))throw(t=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id")).hash={text:`merge ${e} ${r} ${i} `+n?.join(" "),token:`merge ${e} ${r} ${i} `+n?.join(" "),expected:[`merge ${e} ${r}_UNIQUE ${i} `+n?.join(" ")]},t;var s=a||"",o={id:r||b.records.seq+"-"+$pt(),message:`merged branch ${e} into `+b.records.currBranch,seq:b.records.seq++,parents:null==b.records.head?[]:[b.records.head.id,s],branch:b.records.currBranch,type:Dpt.MERGE,customType:i,customId:!!r,tags:n??[]};b.records.head=o,b.records.commits.set(o.id,o),b.records.branches.set(b.records.currBranch,o.id),M.debug(b.records.branche Line truncated
${o-e/2-2},${2+y} ${o-e/2-2},${2+y}
${o-e/2-2},${y-2} ${o-e/2-2},${y-2}
${s.posWithOffset-e/2-4},${y-m-2} ${s.posWithOffset-e/2-4},${y-m-2}
${s.posWithOffset+e/2+4},${y-m-2} ${s.posWithOffset+e/2+4},${y-m-2}
${s.posWithOffset+e/2+4},${y+m+2} ${s.posWithOffset+e/2+4},${y+m+2}
${s.posWithOffset-e/2-4},`+(y+m+2)),p.attr("cy",y).attr("cx",o-e/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==u1t&&"BT"!==u1t||(y=o+f,g.attr("class","tag-label-bkg").attr("points",` ${s.posWithOffset-e/2-4},`+(y+m+2)),p.attr("cy",y).attr("cx",o-e/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"!==Tgt&&"BT"!==Tgt||(y=o+f,g.attr("class","tag-label-bkg").attr("points",`
${s.x},${y+2} ${s.x},${y+2}
${s.x},${y-2} ${s.x},${y-2}
${s.x+10},${y-m-2} ${s.x+10},${y-m-2}
${s.x+10+e+4},${y-m-2} ${s.x+10+e+4},${y-m-2}
${s.x+10+e+4},${y+m+2} ${s.x+10+e+4},${y+m+2}
${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),E1t=me(t=>{switch(t.customType??t.type){case kpt.NORMAL:return"commit-normal";case kpt.REVERSE:return"commit-reverse";case kpt.HIGHLIGHT:return"commit-highlight";case kpt.MERGE:return"commit-merge";case kpt.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),_1t=me((t,e,r,i)=>{var n,a={x:0,y:0};return 0<t.parents.length?(n=g1t(t.parents))?(n=i.get(n)??a,"TB"===e?n.y+40:"BT"===e?(i.get(t.id)??a).y-40:n.x+40):0:"TB"===e?30:"BT"===e?(i.get(t.id)??a).y-40:0},"calculatePosition"),C1t=me((t,e,r)=>{var r="BT"===u1t&&r?e:e+10,e="TB"===u1t||"BT"===u1t?r:s1t.get(t.branch)?.pos,i="TB"===u1t||"BT"===u1t?s1t.get(t.branch)?.pos:r;if(void 0===i||void 0===e)throw new Error("Position were undefined for commit "+t.id);return{x:i,y:e,posWithOffset:r}},"getCommitPosition"),S1t=me((t,a,s)=>{if(!a1t)throw new Error("GitGraph config not found");let o=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c="TB"===u1t||"BT"===u1t?30:0,e=[...a.keys()],h=a1t?.parallelCommits??!1,r=me((t,e)=>(t=a.get(t)?.seq,e=a.get(e)?.seq,void 0!==t&&void 0!==e?t-e:0),"sortKeys"),i=e.sort(r);"BT"===u1t&&(h&&m1t(i,a,c),i=i.reverse()),i.forEach(t=>{var e=a.get(t);if(!e)throw new Error("Commit not found for key "+t);h&&(c=_1t(e,u1t,c,o1t));var r,i,n,t=C1t(e,c,h);s&&(r=E1t(e),i=e.customType??e.type,n=s1t.get(e.branch)?.index??0,w1t(o,e,t,r,n,i),k1t(l,e,t,c),T1t(l,e,t,c)),"TB"===u1t||"BT"===u1t?o1t.set(e.id,{x:t.x,y:t.posWithOffset}):o1t.set(e.id,{x:t.posWithOffset,y:t.y}),(c="BT"===u1t&&h?c+40:c+40+10)>h1t&&(h1t=c)})},"drawCommits"),A1t=me((e,r,t,i,n)=>{let a=(("TB"===u1t||"BT"===u1t?t.x<i.x:t.y<i.y)?r:e).branch,s=me(t=>t.branch===a,"isOnBranchToGetCurve"),o=me(t=>t.seq>e.seq&&t.seq<r.seq,"isBetweenCommits");return[...n.values()].some(t=>o(t)&&s(t))},"shouldRerouteArrow"),L1t=me((t,e,r=0)=>{let i=t+Math.abs(t-e)/2,n;return 5<r?i:c1t.every(t=>10<=Math.abs(t-i))?(c1t.push(i),i):(n=Math.abs(t-e),L1t(t,e-n/5,r+1))},"findLane"),N1t=me((t,e,r,i)=>{var n,a=o1t.get(e.id),s=o1t.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commit positions not found for commits ${e.id} and `+r.id);let o=A1t(e,r,a,s,i),l="",c="",h=0,u=0,d=s1t.get(r.branch)?.index;r.type===kpt.MERGE&&e.id!==r.parents[0]&&(d=s1t.get(e.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,i=a.y<s.y?L1t(a.y,s.y):L1t(s.y,a.y),n=a.x<s.x?L1t(a.x,s.x):L1t(s.x,a.x),p="TB"===u1t?a.x<s.x?`M ${a.x} ${a.y} L ${n-h} ${a.y} ${c} ${n} ${a.y+u} L ${n} ${s.y-h} ${l} ${n+u} ${s.y} L ${s.x} `+s.y:(d=s1t.get(e.branch)?.index,`M ${a.x} ${a.y} L ${n+h} ${a.y} ${l} ${n} ${a.y+u} L ${n} ${s.y-h} ${c} ${n-u} ${s.y} L ${s.x} `+s.y):"BT"===u1t?a.x<s.x?`M ${a.x} ${a.y} L ${n-h} ${a.y} ${l} ${n} ${a.y-u} L ${n} ${s.y+h} ${c} ${n+u} ${s.y} L ${s.x} `+s.y:(d=s1t.get(e.branch)?.index,`M ${a.x} ${a.y} L ${n+h} ${a.y} ${c} ${n} ${a.y-u} L ${n} ${s.y+h} ${l} ${n-u} ${s.y} L ${s.x} `+s.y):a.y<s.y?`M ${a.x} ${a.y} L ${a.x} ${i-h} ${l} ${a.x+u} ${i} L ${s.x-h} ${i} ${c} ${s.x} ${i+u} L ${s.x} `+s.y:(d=s1t.get(e.branch)?.index,`M ${a.x} ${a.y} L ${a.x} ${i+h} ${c} ${a.x+u} ${i} L ${s.x-h} ${i} ${l} ${s.x} ${i-u} L ${s.x} `+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===u1t?(a.x<s.x&&(p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${c} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x+h} ${a.y} ${l} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):"BT"===u1t?(a.x<s.x&&(p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${l} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):(a.y<s.y&&(p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y>s.y&&(p=r.type===kpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y===s.y&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y))),void 0===p)throw new Er Line truncated ${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),Pgt=me(t=>{switch(t.customType??t.type){case Dpt.NORMAL:return"commit-normal";case Dpt.REVERSE:return"commit-reverse";case Dpt.HIGHLIGHT:return"commit-highlight";case Dpt.MERGE:return"commit-merge";case Dpt.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bgt=me((t,e,r,i)=>{var n,a={x:0,y:0};return 0<t.parents.length?(n=_gt(t.parents))?(n=i.get(n)??a,"TB"===e?n.y+40:"BT"===e?(i.get(t.id)??a).y-40:n.x+40):0:"TB"===e?30:"BT"===e?(i.get(t.id)??a).y-40:0},"calculatePosition"),Fgt=me((t,e,r)=>{var r="BT"===Tgt&&r?e:e+10,e="TB"===Tgt||"BT"===Tgt?r:vgt.get(t.branch)?.pos,i="TB"===Tgt||"BT"===Tgt?vgt.get(t.branch)?.pos:r;if(void 0===i||void 0===e)throw new Error("Position were undefined for commit "+t.id);return{x:i,y:e,posWithOffset:r}},"getCommitPosition"),$gt=me((t,a,s)=>{if(!ygt)throw new Error("GitGraph config not found");let o=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c="TB"===Tgt||"BT"===Tgt?30:0,e=[...a.keys()],h=ygt?.parallelCommits??!1,r=me((t,e)=>(t=a.get(t)?.seq,e=a.get(e)?.seq,void 0!==t&&void 0!==e?t-e:0),"sortKeys"),i=e.sort(r);"BT"===Tgt&&(h&&Agt(i,a,c),i=i.reverse()),i.forEach(t=>{var e=a.get(t);if(!e)throw new Error("Commit not found for key "+t);h&&(c=Bgt(e,Tgt,c,xgt));var r,i,n,t=Fgt(e,c,h);s&&(r=Pgt(e),i=e.customType??e.type,n=vgt.get(e.branch)?.index??0,Mgt(o,e,t,r,n,i),Dgt(l,e,t,c),Ogt(l,e,t,c)),"TB"===Tgt||"BT"===Tgt?xgt.set(e.id,{x:t.x,y:t.posWithOffset}):xgt.set(e.id,{x:t.posWithOffset,y:t.y}),(c="BT"===Tgt&&h?c+40:c+40+10)>kgt&&(kgt=c)})},"drawCommits"),zgt=me((e,r,t,i,n)=>{let a=(("TB"===Tgt||"BT"===Tgt?t.x<i.x:t.y<i.y)?r:e).branch,s=me(t=>t.branch===a,"isOnBranchToGetCurve"),o=me(t=>t.seq>e.seq&&t.seq<r.seq,"isBetweenCommits");return[...n.values()].some(t=>o(t)&&s(t))},"shouldRerouteArrow"),Ggt=me((t,e,r=0)=>{let i=t+Math.abs(t-e)/2,n;return 5<r?i:wgt.every(t=>10<=Math.abs(t-i))?(wgt.push(i),i):(n=Math.abs(t-e),Ggt(t,e-n/5,r+1))},"findLane"),Ugt=me((t,e,r,i)=>{var n,a=xgt.get(e.id),s=xgt.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commit positions not found for commits ${e.id} and `+r.id);let o=zgt(e,r,a,s,i),l="",c="",h=0,u=0,d=vgt.get(r.branch)?.index;r.type===Dpt.MERGE&&e.id!==r.parents[0]&&(d=vgt.get(e.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,i=a.y<s.y?Ggt(a.y,s.y):Ggt(s.y,a.y),n=a.x<s.x?Ggt(a.x,s.x):Ggt(s.x,a.x),p="TB"===Tgt?a.x<s.x?`M ${a.x} ${a.y} L ${n-h} ${a.y} ${c} ${n} ${a.y+u} L ${n} ${s.y-h} ${l} ${n+u} ${s.y} L ${s.x} `+s.y:(d=vgt.get(e.branch)?.index,`M ${a.x} ${a.y} L ${n+h} ${a.y} ${l} ${n} ${a.y+u} L ${n} ${s.y-h} ${c} ${n-u} ${s.y} L ${s.x} `+s.y):"BT"===Tgt?a.x<s.x?`M ${a.x} ${a.y} L ${n-h} ${a.y} ${l} ${n} ${a.y-u} L ${n} ${s.y+h} ${c} ${n+u} ${s.y} L ${s.x} `+s.y:(d=vgt.get(e.branch)?.index,`M ${a.x} ${a.y} L ${n+h} ${a.y} ${c} ${n} ${a.y-u} L ${n} ${s.y+h} ${l} ${n-u} ${s.y} L ${s.x} `+s.y):a.y<s.y?`M ${a.x} ${a.y} L ${a.x} ${i-h} ${l} ${a.x+u} ${i} L ${s.x-h} ${i} ${c} ${s.x} ${i+u} L ${s.x} `+s.y:(d=vgt.get(e.branch)?.index,`M ${a.x} ${a.y} L ${a.x} ${i+h} ${c} ${a.x+u} ${i} L ${s.x-h} ${i} ${l} ${s.x} ${i-u} L ${s.x} `+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===Tgt?(a.x<s.x&&(p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${c} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x+h} ${a.y} ${l} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):"BT"===Tgt?(a.x<s.x&&(p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${l} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):(a.y<s.y&&(p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y>s.y&&(p=r.type===Dpt.MERGE&&e.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y===s.y&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y))),void 0===p)throw new Er Line truncated
`,"id:",e,r),!a1t)throw new Error("GitGraph config not found");let s=a1t.rotateCommitLabel??!1,n=i.db,o=(l1t=n.getCommits(),t=n.getBranchesAsObjArray(),u1t=n.getDirection(),j(`[id="${e}"]`)),l=0;t.forEach((t,e)=>{var r=p1t(t.name),i=o.append("g"),n=i.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=R1t(t.name,l,e,r,s),a.remove(),n.remove(),i.remove()}),S1t(o,l1t,!1),a1t.showBranches&&M1t(o,t),I1t(o,l1t),S1t(o,l1t,!0),WE.insertTitle(o,"gitTitleText",a1t.titleTopMargin??0,n.getDiagramTitle()),bh(void 0,o,a1t.diagramPadding,a1t.useMaxWidth)},"draw"),O1t={draw:D1t}}),U1t=t(()=>{P1t=me(e=>` `,"id:",e,r),!ygt)throw new Error("GitGraph config not found");let s=ygt.rotateCommitLabel??!1,n=i.db,o=(bgt=n.getCommits(),t=n.getBranchesAsObjArray(),Tgt=n.getDirection(),j(`[id="${e}"]`)),l=0;t.forEach((t,e)=>{var r=Cgt(t.name),i=o.append("g"),n=i.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=Wgt(t.name,l,e,r,s),a.remove(),n.remove(),i.remove()}),$gt(o,bgt,!1),ygt.showBranches&&jgt(o,t),qgt(o,bgt),$gt(o,bgt,!0),YE.insertTitle(o,"gitTitleText",ygt.titleTopMargin??0,n.getDiagramTitle()),xh(void 0,o,ygt.diagramPadding,ygt.useMaxWidth)},"draw"),Hgt={draw:Ygt}}),Jgt=t(()=>{Vgt=me(e=>`
.commit-id, .commit-id,
.commit-msg, .commit-msg,
.branch-label { .branch-label {
@@ -874,12 +874,12 @@ For Further details.`}function Ost(t){if(t instanceof Utt)return"SUBRULE";if(t i
font-size: 18px; font-size: 18px;
fill: ${e.textColor}; fill: ${e.textColor};
} }
`,"getStyles"),B1t=P1t}),G1t={};fOt(G1t,{diagram:()=>q1t});var q1t,j1t,Y1t,W1t=t(()=>{$1t(),F1t(),z1t(),U1t(),q1t={parser:n1t,db:Kpt,renderer:O1t,styles:B1t}}),H1t=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],n=[1,27],a=[1,28],s=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,33],u=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],m=[1,13],y=[1,14],v=[1,15],b=[1,16],x=[1,19],w=[1,20],k=[1,21],T=[1,22],E=[1,23],_=[1,25],C=[1,35],i={trace:me(function(){},"trace"),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,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$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",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"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],[19,1],[19,1],[9,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],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:i.TopAxis(),this.$=a[o].substr(8);break;case 20:i.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:i.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:i.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:i.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:i.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:i.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:i.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],i.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],null),i.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2],a[o-1]),i.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],i.setClickEvent(a[o-2],a[o],null),i.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-1],a[o]),i.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:n,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:b,30:x,31:w,33:k,35:T,36:E,37:24,38:_,40:C},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:i,13:n,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:b,30:x,31:w,33:k,35:T,36:E,37:24,38:_,40:C},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,1 Line truncated `,"getStyles"),Xgt=Vgt}),t1t={};lPt(t1t,{diagram:()=>e1t});var e1t,r1t,i1t,n1t=t(()=>{Zgt(),Kgt(),Qgt(),Jgt(),e1t={parser:mgt,db:lgt,renderer:Hgt,styles:Xgt}}),a1t=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],n=[1,27],a=[1,28],s=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,33],u=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],m=[1,13],y=[1,14],v=[1,15],x=[1,16],b=[1,19],w=[1,20],k=[1,21],T=[1,22],E=[1,23],C=[1,25],_=[1,35],i={trace:me(function(){},"trace"),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,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$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",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"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],[19,1],[19,1],[9,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],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:i.TopAxis(),this.$=a[o].substr(8);break;case 20:i.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:i.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:i.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:i.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:i.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:i.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:i.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],i.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],null),i.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2],a[o-1]),i.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],i.setClickEvent(a[o-2],a[o],null),i.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-1],a[o]),i.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:n,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:_},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:i,13:n,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:_},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,1 Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;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:case 9:case 10:break;case 11:return 10;case 12:case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};i.lexer=n,me(t,"Parser"),(j1t=new((t.prototype=i).Parser=t)).parser=j1t,Y1t=j1t}),V1t=hOt((t,e)=>{function r(){return function(t,e,n){var a=me(function(t){return t.add(4-t.isoWeekday(),"day")},"a"),s=((e=e.prototype).isoWeekYear=function(){return a(this).year()},e.isoWeek=function(t){var e,r,i;return this.$utils().u(t)?(r=a(this),i=this.isoWeekYear(),e=4-(i=(this.$u?n.utc:n)().year(i).startOf("year")).isoWeekday(),4<i.isoWeekday()&&(e+=7),i=i.add(e,"day"),r.diff(i,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var r=this.$utils(),i=!!r.u(e)||e;return"isoweek"===r.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(t,e)}}}"object"==typeof t&&typeof e<"u"?e.exports=r():"function"==typeof define&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=r()}),X1t=hOt((t,e)=>{function r(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1, Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;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:case 9:case 10:break;case 11:return 10;case 12:case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};i.lexer=n,me(t,"Parser"),(r1t=new((t.prototype=i).Parser=t)).parser=r1t,i1t=r1t}),s1t=iPt((t,e)=>{function r(){return function(t,e,n){var a=me(function(t){return t.add(4-t.isoWeekday(),"day")},"a"),s=((e=e.prototype).isoWeekYear=function(){return a(this).year()},e.isoWeek=function(t){var e,r,i;return this.$utils().u(t)?(r=a(this),i=this.isoWeekYear(),e=4-(i=(this.$u?n.utc:n)().year(i).startOf("year")).isoWeekday(),4<i.isoWeekday()&&(e+=7),i=i.add(e,"day"),r.diff(i,"week")+1):this.add(7*(t-this.isoWeek()),"day")},e.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)},e.startOf);e.startOf=function(t,e){var r=this.$utils(),i=!!r.u(e)||e;return"isoweek"===r.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(t,e)}}}"object"==typeof t&&typeof e<"u"?e.exports=r():"function"==typeof define&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=r()}),o1t=iPt((t,e)=>{function r(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1, Line truncated
.mermaid-main-font { .mermaid-main-font {
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
} }
@@ -1130,8 +1130,8 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
fill: ${t.titleColor||t.textColor}; fill: ${t.titleColor||t.textColor};
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
} }
`,"getStyles"),Eft=Tft}),Aft={};fOt(Aft,{diagram:()=>Lft});var Lft,Nft,Ift,Mft,Rft,Dft,Oft,Pft,Bft,Fft=t(()=>{H1t(),_ft(),Cft(),Sft(),Lft={parser:Y1t,db:fft,renderer:kft,styles:Eft}}),$ft=t(()=>{xpt(),e(),Nft={parse:me(async t=>{t=await mpt("info",t),R.debug(t)},"parse")}}),zft=t(()=>{Ift={name:"mermaid",version:"11.5.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}}),Uft=t(()=>{zft(),Mft={version:Ift.version},Rft=me(()=>Mft.version,"getVersion"),Dft={getVersion:Rft}}),Gft=t(()=>{Z3(),fu(),Oft=me(t=>{let e=D().securityLevel,r=j("body"),i;return"sandbox"===e&&(i=j("#i"+t).node()?.contentDocument??document,r=j(i.body)),r.select("#"+t)},"selectSvgElement")}),qft=t(()=>{e(),Gft(),th(),Pft=me((t,e,r)=>{R.debug(`rendering info diagram `,"getStyles"),Pft=Oft}),zft={};lPt(zft,{diagram:()=>Gft});var Gft,Uft,qft,jft,Wft,Yft,Hft,Vft,Xft,Kft=t(()=>{a1t(),Bft(),Fft(),$ft(),Gft={parser:i1t,db:Sft,renderer:Dft,styles:Pft}}),Zft=t(()=>{Rpt(),e(),Uft={parse:me(async t=>{t=await Apt("info",t),M.debug(t)},"parse")}}),Qft=t(()=>{qft={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}}),Jft=t(()=>{Qft(),jft={version:qft.version},Wft=me(()=>jft.version,"getVersion"),Yft={getVersion:Wft}}),tmt=t(()=>{Z3(),fu(),Hft=me(t=>{let e=D().securityLevel,r=j("body"),i;return"sandbox"===e&&(i=j("#i"+t).node()?.contentDocument??document,r=j(i.body)),r.select("#"+t)},"selectSvgElement")}),emt=t(()=>{e(),tmt(),th(),Vft=me((t,e,r)=>{M.debug(`rendering info diagram
`+t),t=Oft(e),Hc(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v"+r)},"draw"),Bft={draw:Pft}}),jft={};fOt(jft,{diagram:()=>Yft});var Yft,Wft,Hft,Vft,Xft,Kft,Zft,Qft,Jft,tmt,emt,rmt,imt,nmt,amt,smt,omt,lmt,cmt,hmt=t(()=>{$ft(),Uft(),qft(),Yft={parser:Nft,db:Dft,renderer:Bft}}),umt=t(()=>{e(),gu(),Ci(),Kft=mr.pie,Wft={sections:new Map,showData:!1,config:Kft},Hft=Wft.sections,Vft=Wft.showData,Xft=structuredClone(Kft),Kft=me(()=>structuredClone(Xft),"getConfig"),Zft=me(()=>{Hft=new Map,Vft=Wft.showData,oh()},"clear"),Qft=me(({label:t,value:e})=>{Hft.has(t)||(Hft.set(t,e),R.debug(`added new section: ${t}, with value: `+e))},"addSection"),Jft=me(()=>Hft,"getSections"),tmt=me(t=>{Vft=t},"setShowData"),emt=me(()=>Vft,"getShowData"),rmt={getConfig:Kft,clear:Zft,setDiagramTitle:dh,getDiagramTitle:ph,setAccTitle:lh,getAccTitle:ch,setAccDescription:hh,getAccDescription:uh,addSection:Qft,getSections:Jft,setShowData:tmt,getShowData:emt}}),dmt=t(()=>{xpt(),e(),Ept(),umt(),imt=me((t,e)=>{wpt(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),nmt={parse:me(async t=>{t=await mpt("pie",t),R.debug(t),imt(t,rmt)},"parse")}}),pmt=t(()=>{amt=me(t=>` `+t),t=Hft(e),Hc(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v"+r)},"draw"),Xft={draw:Vft}}),rmt={};lPt(rmt,{diagram:()=>imt});var imt,nmt,amt,smt,omt,lmt,cmt,hmt,umt,dmt,pmt,gmt,fmt,mmt,ymt,vmt,xmt,bmt,wmt,kmt=t(()=>{Zft(),Jft(),emt(),imt={parser:Uft,db:Yft,renderer:Xft}}),Tmt=t(()=>{e(),gu(),_i(),lmt=mr.pie,nmt={sections:new Map,showData:!1,config:lmt},amt=nmt.sections,smt=nmt.showData,omt=structuredClone(lmt),lmt=me(()=>structuredClone(omt),"getConfig"),cmt=me(()=>{amt=new Map,smt=nmt.showData,oh()},"clear"),hmt=me(({label:t,value:e})=>{amt.has(t)||(amt.set(t,e),M.debug(`added new section: ${t}, with value: `+e))},"addSection"),umt=me(()=>amt,"getSections"),dmt=me(t=>{smt=t},"setShowData"),pmt=me(()=>smt,"getShowData"),gmt={getConfig:lmt,clear:cmt,setDiagramTitle:dh,getDiagramTitle:ph,setAccTitle:lh,getAccTitle:ch,setAccDescription:hh,getAccDescription:uh,addSection:hmt,getSections:umt,setShowData:dmt,getShowData:pmt}}),Emt=t(()=>{Rpt(),e(),Ppt(),Tmt(),fmt=me((t,e)=>{Mpt(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),mmt={parse:me(async t=>{t=await Apt("pie",t),M.debug(t),fmt(t,gmt)},"parse")}}),Cmt=t(()=>{ymt=me(t=>`
.pieCircle{ .pieCircle{
stroke: ${t.pieStrokeColor}; stroke: ${t.pieStrokeColor};
stroke-width : ${t.pieStrokeWidth}; stroke-width : ${t.pieStrokeWidth};
@@ -1159,25 +1159,25 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
font-size: ${t.pieLegendTextSize}; font-size: ${t.pieLegendTextSize};
} }
`,"getStyles"),smt=amt}),gmt=t(()=>{Z3(),fu(),e(),Gft(),th(),KE(),omt=me(t=>(t=[...t.entries()].map(t=>({label:t[0],value:t[1]})).sort((t,e)=>e.value-t.value),e5().value(t=>t.value)(t)),"createPieArcs"),lmt=me((t,e,r,i)=>{R.debug(`rendering pie chart `,"getStyles"),vmt=ymt}),_mt=t(()=>{Z3(),fu(),e(),tmt(),th(),KE(),xmt=me(t=>(t=[...t.entries()].map(t=>({label:t[0],value:t[1]})).sort((t,e)=>e.value-t.value),e5().value(t=>t.value)(t)),"createPieArcs"),bmt=me((t,e,r,i)=>{M.debug(`rendering pie chart
`+t);let n=i.db,a=D(),s=bE(n.getConfig(),a.pie),o=Oft(e),l=o.append("g");l.attr("transform","translate(225,225)");var t=a.themeVariables,[i]=YE(t.pieOuterStrokeWidth);i??=2;let c=s.textPosition,h=Math.min(450,450)/2-40,u=$4().innerRadius(0).outerRadius(h),d=$4().innerRadius(h*c).outerRadius(h*c),p=(l.append("circle").attr("cx",0).attr("cy",0).attr("r",h+i/2).attr("class","pieOuterCircle"),n.getSections()),g=omt(p),f=[t.pie1,t.pie2,t.pie3,t.pie4,t.pie5,t.pie6,t.pie7,t.pie8,t.pie9,t.pie10,t.pie11,t.pie12],m=hv(f),y=(l.selectAll("mySlices").data(g).enter().append("path").attr("d",u).attr("fill",t=>m(t.data.label)).attr("class","pieCircle"),0);p.forEach(t=>{y+=t}),l.selectAll("mySlices").data(g).enter().append("text").text(t=>(t.data.value/y*100).toFixed(0)+"%").attr("transform",t=>"translate("+d.centroid(t)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),(e=l.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(t,e)=>"translate(216,"+(22*e-22*m.domain().length/2)+")")).append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),e.data(g).append("text").attr("x",22).attr("y",14).text(t=>{var{label:t,value:e}=t.data;return n.getShowData()?t+` [${e}]`:t}),t=512+(i=Math.max(...e.selectAll("text").nodes().map(t=>t?.getBoundingClientRect().width??0))),o.attr("viewBox",`0 0 ${t} 450`),Hc(o,450,t,s.useMaxWidth)},"draw"),cmt={draw:lmt}}),fmt={};fOt(fmt,{diagram:()=>mmt});var mmt,ymt,vmt,bmt,xmt,wmt=t(()=>{dmt(),umt(),pmt(),gmt(),mmt={parser:nmt,db:rmt,renderer:cmt,styles:smt}}),kmt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,3],i=[1,4],n=[1,5],a=[1,6],s=[1,7],P=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],B=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[55,56,57],F=[2,36],l=[1,37],c=[1,36],h=[1,38],u=[1,35],d=[1,43],p=[1,41],$=[1,14],z=[1,23],U=[1,18],G=[1,19],q=[1,20],j=[1,21],Y=[1,22],W=[1,24],H=[1,25],V=[1,26],X=[1,27],K=[1,28],Z=[1,29],g=[1,32],f=[1,33],m=[1,34],y=[1,39],v=[1,40],b=[1,42],x=[1,44],w=[1,62],k=[1,61],T=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],J=[1,66],tt=[1,67],et=[1,68],rt=[1,69],it=[1,70],nt=[1,71],at=[1,72],st=[1,73],ot=[1,74],lt=[1,75],ct=[1,76],E=[4,5,6,7,8,9,10,11,12,13,14,15,18],_=[1,90],C=[1,91],S=[1,92],A=[1,99],L=[1,93],N=[1,96],I=[1,94],M=[1,95],R=[1,97],D=[1,98],ht=[1,102],ut=[10,55,56,57],O=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 23:this.$=a[o];break;case 24:this.$=a[o-1]+""+a[o];break;case 26:this.$=a[o-1]+a[o];break;case 27:this.$=[a[o].trim()];break;case 28:a[o-2].push(a[o].trim()),this. Line truncated `+t);let n=i.db,a=D(),s=xE(n.getConfig(),a.pie),o=Hft(e),l=o.append("g");l.attr("transform","translate(225,225)");var t=a.themeVariables,[i]=WE(t.pieOuterStrokeWidth);i??=2;let c=s.textPosition,h=Math.min(450,450)/2-40,u=$4().innerRadius(0).outerRadius(h),d=$4().innerRadius(h*c).outerRadius(h*c),p=(l.append("circle").attr("cx",0).attr("cy",0).attr("r",h+i/2).attr("class","pieOuterCircle"),n.getSections()),g=xmt(p),f=[t.pie1,t.pie2,t.pie3,t.pie4,t.pie5,t.pie6,t.pie7,t.pie8,t.pie9,t.pie10,t.pie11,t.pie12],m=hv(f),y=(l.selectAll("mySlices").data(g).enter().append("path").attr("d",u).attr("fill",t=>m(t.data.label)).attr("class","pieCircle"),0);p.forEach(t=>{y+=t}),l.selectAll("mySlices").data(g).enter().append("text").text(t=>(t.data.value/y*100).toFixed(0)+"%").attr("transform",t=>"translate("+d.centroid(t)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),(e=l.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(t,e)=>"translate(216,"+(22*e-22*m.domain().length/2)+")")).append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),e.data(g).append("text").attr("x",22).attr("y",14).text(t=>{var{label:t,value:e}=t.data;return n.getShowData()?t+` [${e}]`:t}),t=512+(i=Math.max(...e.selectAll("text").nodes().map(t=>t?.getBoundingClientRect().width??0))),o.attr("viewBox",`0 0 ${t} 450`),Hc(o,450,t,s.useMaxWidth)},"draw"),wmt={draw:bmt}}),Smt={};lPt(Smt,{diagram:()=>Amt});var Amt,Lmt,Nmt,Imt,Rmt,Mmt=t(()=>{Emt(),Tmt(),Cmt(),_mt(),Amt={parser:mmt,db:gmt,renderer:wmt,styles:vmt}}),Dmt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,3],i=[1,4],n=[1,5],a=[1,6],s=[1,7],P=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],B=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[55,56,57],F=[2,36],l=[1,37],c=[1,36],h=[1,38],u=[1,35],d=[1,43],p=[1,41],$=[1,14],z=[1,23],G=[1,18],U=[1,19],q=[1,20],j=[1,21],W=[1,22],Y=[1,24],H=[1,25],V=[1,26],X=[1,27],K=[1,28],Z=[1,29],g=[1,32],f=[1,33],m=[1,34],y=[1,39],v=[1,40],x=[1,42],b=[1,44],w=[1,62],k=[1,61],T=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],J=[1,66],tt=[1,67],et=[1,68],rt=[1,69],it=[1,70],nt=[1,71],at=[1,72],st=[1,73],ot=[1,74],lt=[1,75],ct=[1,76],E=[4,5,6,7,8,9,10,11,12,13,14,15,18],C=[1,90],_=[1,91],S=[1,92],A=[1,99],L=[1,93],N=[1,96],I=[1,94],R=[1,95],M=[1,97],D=[1,98],ht=[1,102],ut=[10,55,56,57],O=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 23:this.$=a[o];break;case 24:this.$=a[o-1]+""+a[o];break;case 26:this.$=a[o-1]+a[o];break;case 27:this.$=[a[o].trim()];break;case 28:a[o-2].push(a[o].trim()),this. Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;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 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),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,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/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:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],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:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};r.lexer=i,me(t,"Parser"),(ymt=new((t.prototype=r).Parser=t)).parser=ymt,vmt=ymt}),Tmt=t(()=>{Z3(),Ci(),e(),wi(),bmt=sr(),xmt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{me(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:mr.quadrantChart?.chartWidth||500,chartWidth:mr.quadrantChart?.chartHeight||500,titlePadding:mr.quadrantChart?.titlePadding||10,titleFontSize:mr.quadrantChart?.titleFontSize||20,quadrantPadding:mr.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:mr.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:mr.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:mr.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:mr.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:mr.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:mr.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:mr.quadrantChart?.pointTextPadding||5,pointLabelFontSize:mr.quadrantChart?.pointLabelFontSize||12,pointRadius:mr.quadrantChart?.pointRadius||5,xAxisPosition:mr.quadrantChartLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;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 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),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,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/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:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],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:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};r.lexer=i,me(t,"Parser"),(Lmt=new((t.prototype=r).Parser=t)).parser=Lmt,Nmt=Lmt}),Omt=t(()=>{Z3(),_i(),e(),wi(),Imt=sr(),Rmt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{me(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:mr.quadrantChart?.chartWidth||500,chartWidth:mr.quadrantChart?.chartHeight||500,titlePadding:mr.quadrantChart?.titlePadding||10,titleFontSize:mr.quadrantChart?.titleFontSize||20,quadrantPadding:mr.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:mr.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:mr.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:mr.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:mr.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:mr.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:mr.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:mr.quadrantChart?.pointTextPadding||5,pointLabelFontSize:mr.quadrantChart?.pointLabelFontSize||12,pointRadius:mr.quadrantChart?.pointRadius||5,xAxisPosition:mr.quadrantChartLine truncated
`+t);let l=o.securityLevel,c;"sandbox"===l&&(c=j("#i"+e));var e=(t=j("sandbox"===l?c.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)).append("g").attr("class","main"),h=o.quadrantChart?.chartWidth??500,u=o.quadrantChart?.chartHeight??500,o=(Hc(t,u,h,o.quadrantChart?.useMaxWidth??!0),t.attr("viewBox","0 0 "+h+" "+u),i.db.setHeight(u),i.db.setWidth(h),i.db.getQuadrantData()),t=e.append("g").attr("class","quadrants"),u=e.append("g").attr("class","border"),h=e.append("g").attr("class","data-points"),i=e.append("g").attr("class","labels"),e=e.append("g").attr("class","title");o.title&&e.append("text").attr("x",0).attr("y",0).attr("fill",o.title.fill).attr("font-size",o.title.fontSize).attr("dominant-baseline",n(o.title.horizontalPos)).attr("text-anchor",a(o.title.verticalPos)).attr("transform",s(o.title)).text(o.title.text),o.borderLines&&u.selectAll("line").data(o.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth),(e=t.selectAll("g.quadrant").data(o.quadrants).enter().append("g").attr("class","quadrant")).append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),e.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>n(t.text.horizontalPos)).attr("text-anchor",t=>a(t.text.verticalPos)).attr("transform",t=>s(t.text)).text(t=>t.text.text),i.selectAll("g.label").data(o.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>n(t.horizontalPos)).attr("text-anchor",t=>a(t.verticalPos)).attr("transform",t=>s(t)),(u=h.selectAll("g.data-point").data(o.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),u.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>n(t.text.horizontalPos)).attr("text-anchor",t=>a(t.text.verticalPos)).attr("transform",t=>s(t.text))},"draw"),Xmt={draw:Vmt}}),Qmt={};fOt(Qmt,{diagram:()=>Jmt});var Jmt,tyt,eyt,ryt=t(()=>{kmt(),Kmt(),Zmt(),Jmt={parser:vmt,db:Hmt,renderer:Xmt,styles:me(()=>"","styles")}}),iyt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,10,12,14,16,18,19,21,23],i=[2,6],n=[1,3],a=[1,5],s=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],h=[1,26],u=[1,28],d=[1,29],p=[1,30],g=[1,31],f=[1,32],m=[1,33],y=[1,34],v=[1,35],b=[1,36],x=[1,37],w=[1,43],k=[1,42],T=[1,47],E=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[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],A=[1,64],i={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 5:i.setOrientation(a[o]);break;case 9:i.setDiagramTitle(a[o].text.trim());break;case 12:i.setLineData({text:"",type:"text"},a[o]);break;case 13:i.setLineData(a[o-1],a[o]);break;case 14:i.setBarData({text:"",type:"text"},a[o]);break;case 15:i.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),i.setAccTitle(this.$);b Line truncated `+t);let l=o.securityLevel,c;"sandbox"===l&&(c=j("#i"+e));var e=(t=j("sandbox"===l?c.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)).append("g").attr("class","main"),h=o.quadrantChart?.chartWidth??500,u=o.quadrantChart?.chartHeight??500,o=(Hc(t,u,h,o.quadrantChart?.useMaxWidth??!0),t.attr("viewBox","0 0 "+h+" "+u),i.db.setHeight(u),i.db.setWidth(h),i.db.getQuadrantData()),t=e.append("g").attr("class","quadrants"),u=e.append("g").attr("class","border"),h=e.append("g").attr("class","data-points"),i=e.append("g").attr("class","labels"),e=e.append("g").attr("class","title");o.title&&e.append("text").attr("x",0).attr("y",0).attr("fill",o.title.fill).attr("font-size",o.title.fontSize).attr("dominant-baseline",n(o.title.horizontalPos)).attr("text-anchor",a(o.title.verticalPos)).attr("transform",s(o.title)).text(o.title.text),o.borderLines&&u.selectAll("line").data(o.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth),(e=t.selectAll("g.quadrant").data(o.quadrants).enter().append("g").attr("class","quadrant")).append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),e.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>n(t.text.horizontalPos)).attr("text-anchor",t=>a(t.text.verticalPos)).attr("transform",t=>s(t.text)).text(t=>t.text.text),i.selectAll("g.label").data(o.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>n(t.horizontalPos)).attr("text-anchor",t=>a(t.verticalPos)).attr("transform",t=>s(t)),(u=h.selectAll("g.data-point").data(o.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),u.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>n(t.text.horizontalPos)).attr("text-anchor",t=>a(t.text.verticalPos)).attr("transform",t=>s(t.text))},"draw"),oyt={draw:syt}}),hyt={};lPt(hyt,{diagram:()=>uyt});var uyt,dyt,pyt,gyt=t(()=>{Dmt(),lyt(),cyt(),uyt={parser:Nmt,db:ayt,renderer:oyt,styles:me(()=>"","styles")}}),fyt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,10,12,14,16,18,19,21,23],i=[2,6],n=[1,3],a=[1,5],s=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],h=[1,26],u=[1,28],d=[1,29],p=[1,30],g=[1,31],f=[1,32],m=[1,33],y=[1,34],v=[1,35],x=[1,36],b=[1,37],w=[1,43],k=[1,42],T=[1,47],E=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],_=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[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],A=[1,64],i={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 5:i.setOrientation(a[o]);break;case 9:i.setDiagramTitle(a[o].text.trim());break;case 12:i.setLineData({text:"",type:"text"},a[o]);break;case 13:i.setLineData(a[o-1],a[o]);break;case 14:i.setBarData({text:"",type:"text"},a[o]);break;case 15:i.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),i.setAccTitle(this.$);b Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2: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}},"anonymous"),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}}};i.lexer=n,me(t,"Parser"),(tyt=new((t.prototype=i).Parser=t)).parser=tyt,eyt=tyt});function nyt(t){return"bar"===t.type}function ayt(t){return"band"===t.type}function syt(t){return"linear"===t.type}var oyt,lyt,cyt,hyt,uyt=t(()=>{me(nyt,"isBarPlot"),me(ayt,"isBandAxisData"),me(syt,"isLinearAxisData")}),dyt=t(()=>{Y9(),oyt=class{constructor(t){this.parentGroup=t}static{me(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((t,e)=>Math.max(e.length,t),0)*e,height:e};var r,i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(r of t){var a=(s=z9(n,1,r))?s.width:r.length*e,s=s?s.height:e;i.width=Math.max(i.width,a),i.height=Math.max(i.height,s)}return n.remove(),i}}}),pyt=t(()=>{lyt=class{constructor(t,e,r,i){this.axisConfig=t,this.title=e,this.textDimensionCalculator=r,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2: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}},"anonymous"),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}}};i.lexer=n,me(t,"Parser"),(dyt=new((t.prototype=i).Parser=t)).parser=dyt,pyt=dyt});function myt(t){return"bar"===t.type}function yyt(t){return"band"===t.type}function vyt(t){return"linear"===t.type}var xyt,byt,wyt,kyt,Tyt=t(()=>{me(myt,"isBarPlot"),me(yyt,"isBandAxisData"),me(vyt,"isLinearAxisData")}),Eyt=t(()=>{W9(),xyt=class{constructor(t){this.parentGroup=t}static{me(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((t,e)=>Math.max(e.length,t),0)*e,height:e};var r,i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(r of t){var a=(s=z9(n,1,r))?s.width:r.length*e,s=s?s.height:e;i.width=Math.max(i.width,a),i.height=Math.max(i.height,s)}return n.remove(),i}}}),Cyt=t(()=>{byt=class{constructor(t,e,r,i){this.axisConfig=t,this.title=e,this.textDimensionCalculator=r,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextLine truncated
`+t);let h=Oft(e),u=h.append("g").attr("class","main"),d=u.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background"),p=(Hc(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} `+s.height),d.attr("fill",a.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group")),i.getDrawableElem()),g={};function f(e){let r=u,i="";for(var[n]of e.entries()){let t=u;0<n&&g[i]&&(t=g[i]),i+=e[n],r=(r=g[i])||(g[i]=t.append("g").attr("class",e[n]))}return r}me(f,"getGroup");for(n of p)if(0!==n.data.length){var m=f(n.groupTexts);switch(n.type){case"rect":m.selectAll("rect").data(n.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth);break;case"text":m.selectAll("text").data(n.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>o(t.verticalPos)).attr("text-anchor",t=>l(t.horizontalPos)).attr("transform",t=>c(t)).text(t=>t.text);break;case"path":m.selectAll("path").data(n.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill||"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw"),l2t={draw:o2t}}),u2t={};fOt(u2t,{diagram:()=>d2t});var d2t,p2t,g2t,f2t,m2t,y2t,v2t=t(()=>{iyt(),c2t(),h2t(),d2t={parser:eyt,db:s2t,renderer:l2t}}),b2t=t(()=>{function P(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],B=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],s=[2,7],o=[1,26],l=[1,27],c=[1,28],h=[1,29],u=[1,33],d=[1,34],p=[1,35],g=[1,36],f=[1,37],m=[1,38],y=[1,24],v=[1,31],b=[1,32],x=[1,30],w=[1,39],k=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],_=[89,90],F=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],$=[27,29],z=[1,70],U=[1,71],G=[1,72],q=[1,73],j=[1,74],Y=[1,75],W=[1,76],C=[1,83],S=[1,80],H=[1,84],V=[1,85],X=[1,86],K=[1,87],Z=[1,88],Q=[1,89],J=[1,90],tt=[1,91],et=[1,92],rt=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[63,64],it=[1,101],nt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],L=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],N=[1,110],I=[1,106],M=[1,107],R=[1,108],D=[1,109],O=[1,111],at=[1,116],st=[1,117],ot=[1,114],lt=[1,115],e={trace:me(function(){},"trace"),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,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$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",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"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],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[ Line truncated `+t);let h=Hft(e),u=h.append("g").attr("class","main"),d=u.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background"),p=(Hc(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} `+s.height),d.attr("fill",a.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group")),i.getDrawableElem()),g={};function f(e){let r=u,i="";for(var[n]of e.entries()){let t=u;0<n&&g[i]&&(t=g[i]),i+=e[n],r=(r=g[i])||(g[i]=t.append("g").attr("class",e[n]))}return r}me(f,"getGroup");for(n of p)if(0!==n.data.length){var m=f(n.groupTexts);switch(n.type){case"rect":m.selectAll("rect").data(n.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth);break;case"text":m.selectAll("text").data(n.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>o(t.verticalPos)).attr("text-anchor",t=>l(t.horizontalPos)).attr("transform",t=>c(t)).text(t=>t.text);break;case"path":m.selectAll("path").data(n.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill||"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw"),b2t={draw:x2t}}),T2t={};lPt(T2t,{diagram:()=>E2t});var E2t,C2t,_2t,S2t,A2t,L2t,N2t=t(()=>{fyt(),w2t(),k2t(),E2t={parser:pyt,db:v2t,renderer:b2t}}),I2t=t(()=>{function P(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],B=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],s=[2,7],o=[1,26],l=[1,27],c=[1,28],h=[1,29],u=[1,33],d=[1,34],p=[1,35],g=[1,36],f=[1,37],m=[1,38],y=[1,24],v=[1,31],x=[1,32],b=[1,30],w=[1,39],k=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],C=[89,90],F=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],$=[27,29],z=[1,70],G=[1,71],U=[1,72],q=[1,73],j=[1,74],W=[1,75],Y=[1,76],_=[1,83],S=[1,80],H=[1,84],V=[1,85],X=[1,86],K=[1,87],Z=[1,88],Q=[1,89],J=[1,90],tt=[1,91],et=[1,92],rt=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[63,64],it=[1,101],nt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],L=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],N=[1,110],I=[1,106],R=[1,107],M=[1,108],D=[1,109],O=[1,111],at=[1,116],st=[1,117],ot=[1,114],lt=[1,115],e={trace:me(function(){},"trace"),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,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$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",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"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],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[ Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){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 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return e.yytext=e.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),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,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/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,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],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,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};e.lexer=B,me(P,"Parser"),(p2t=new((P.prototype=e).Parser=P)).parser=p2t,g2t=p2t}),x2t=t(()=>{fu(),e(),gu(),f2t=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"An Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){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 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return e.yytext=e.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),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,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/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,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],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,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};e.lexer=B,me(P,"Parser"),(C2t=new((P.prototype=e).Parser=P)).parser=C2t,_2t=C2t}),R2t=t(()=>{fu(),e(),gu(),S2t=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"An Line truncated
marker { marker {
fill: ${t.relationColor}; fill: ${t.relationColor};
@@ -1235,12 +1235,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
background-color: ${t.edgeLabelBackground}; background-color: ${t.edgeLabelBackground};
} }
`,"getStyles"),y2t=m2t}),k2t={};fOt(k2t,{draw:()=>T2t});var T2t,E2t=t(()=>{fu(),e(),GR(),$X(),zX(),KE(),T2t=me(async function(t,e,r,i){R.info("REF0:"),R.info("Drawing requirement diagram (unified)",e);var{securityLevel:n,state:a,layout:s}=D(),o=i.db.getData(),n=LR(e,n);o.type=i.type,o.layoutAlgorithm=EX(s),o.nodeSpacing=a?.nodeSpacing??50,o.rankSpacing=a?.rankSpacing??50,o.markers=["requirement_contains","requirement_arrow"],o.diagramId=e,await TX(o,n),WE.insertTitle(n,"requirementDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),_X(n,8,"requirementDiagram",a?.useMaxWidth??!0)},"draw")}),_2t={};fOt(_2t,{diagram:()=>C2t});var C2t,S2t,A2t,L2t,N2t,I2t,M2t,R2t,D2t,O2t,P2t,B2t,F2t,$2t,z2t,U2t,G2t,q2t,j2t,Y2t,W2t,H2t,V2t,X2t,K2t,Z2t,Q2t,J2t,tvt,evt,rvt,ivt,nvt,avt,svt,ovt,lvt,cvt,hvt,uvt,dvt=t(()=>{b2t(),x2t(),w2t(),E2t(),C2t={parser:g2t,get db(){return new f2t},renderer:k2t,styles:y2t}}),pvt=t(()=>{function P(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,2],B=[1,3],F=[1,4],r=[2,4],i=[1,9],n=[1,11],a=[1,13],s=[1,14],o=[1,16],l=[1,17],c=[1,18],h=[1,24],u=[1,25],d=[1,26],p=[1,27],g=[1,28],f=[1,29],m=[1,30],y=[1,31],v=[1,32],b=[1,33],x=[1,34],w=[1,35],k=[1,36],T=[1,37],E=[1,38],_=[1,39],C=[1,41],S=[1,42],A=[1,43],L=[1,44],N=[1,45],I=[1,46],M=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],R=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],U=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],G=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],D=[68,69,70],O=[1,122],e={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:return i.apply(a[o]),a[o];case 4:case 9:this.$=[];break;case 5:case 10:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:case 11:case 12:this.$=a[o];break;case 8:case 13:this.$=[];break;case 15:a[o].type="createParticipant",this.$=a[o];break;case 16:a[o-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[o-2])}),a[o-1].push({type:"boxEnd",boxText:a[o-2]}),this.$=a[o-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-2]),sequenceIndexStep:Number(a[o-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-1]),sequenceIndexStep:1,sequenceVi Line truncated `,"getStyles"),L2t=A2t}),D2t={};lPt(D2t,{draw:()=>O2t});var O2t,P2t=t(()=>{fu(),e(),qM(),zX(),GX(),KE(),O2t=me(async function(t,e,r,i){M.info("REF0:"),M.info("Drawing requirement diagram (unified)",e);var{securityLevel:n,state:a,layout:s}=D(),o=i.db.getData(),n=NM(e,n);o.type=i.type,o.layoutAlgorithm=CX(s),o.nodeSpacing=a?.nodeSpacing??50,o.rankSpacing=a?.rankSpacing??50,o.markers=["requirement_contains","requirement_arrow"],o.diagramId=e,await EX(o,n),YE.insertTitle(n,"requirementDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),_X(n,8,"requirementDiagram",a?.useMaxWidth??!0)},"draw")}),B2t={};lPt(B2t,{diagram:()=>F2t});var F2t,$2t,z2t,G2t,U2t,q2t,j2t,W2t,Y2t,H2t,V2t,X2t,K2t,Z2t,Q2t,J2t,tvt,evt,rvt,ivt,nvt,avt,svt,ovt,lvt,cvt,hvt,uvt,dvt,pvt,gvt,fvt,mvt,yvt,vvt,xvt,bvt,wvt,kvt,Tvt,Evt=t(()=>{I2t(),R2t(),M2t(),P2t(),F2t={parser:_2t,get db(){return new S2t},renderer:D2t,styles:L2t}}),Cvt=t(()=>{function P(){this.yy={}}var t=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,2],B=[1,3],F=[1,4],r=[2,4],i=[1,9],n=[1,11],a=[1,13],s=[1,14],o=[1,16],l=[1,17],c=[1,18],h=[1,24],u=[1,25],d=[1,26],p=[1,27],g=[1,28],f=[1,29],m=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],k=[1,36],T=[1,37],E=[1,38],C=[1,39],_=[1,41],S=[1,42],A=[1,43],L=[1,44],N=[1,45],I=[1,46],R=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],M=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],G=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],U=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],D=[68,69,70],O=[1,122],e={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:return i.apply(a[o]),a[o];case 4:case 9:this.$=[];break;case 5:case 10:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:case 11:case 12:this.$=a[o];break;case 8:case 13:this.$=[];break;case 15:a[o].type="createParticipant",this.$=a[o];break;case 16:a[o-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[o-2])}),a[o-1].push({type:"boxEnd",boxText:a[o-2]}),this.$=a[o-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-2]),sequenceIndexStep:Number(a[o-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-1]),sequenceIndexStep:1,sequenceVi Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return 5;case 1:case 2:case 3:case 4: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 e.yytext=e.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 e.yytext=e.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 66:return 5;case 67:return"INVALID"}},"anonymous"),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,/^(?:->)/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,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};e.lexer=B,me(P,"Parser"),(S2t=new((P.prototype=e).Parser=P)).parser=S2t,A2t=S2t}),gvt=t(()=>{fu(),e(),Cpt(),Jc(),gu(),L2t={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTION Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return 5;case 1:case 2:case 3:case 4: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 e.yytext=e.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 e.yytext=e.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 66:return 5;case 67:return"INVALID"}},"anonymous"),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,/^(?:->)/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,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};e.lexer=B,me(P,"Parser"),($2t=new((P.prototype=e).Parser=P)).parser=$2t,z2t=$2t}),_vt=t(()=>{fu(),e(),Fpt(),Jc(),gu(),G2t={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTION Line truncated
stroke: ${t.actorBorder}; stroke: ${t.actorBorder};
fill: ${t.actorBkg}; fill: ${t.actorBkg};
} }
@@ -1356,12 +1356,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
fill: ${t.actorBkg}; fill: ${t.actorBkg};
stroke-width: 2px; stroke-width: 2px;
} }
`,"getStyles"),D2t=R2t}),mvt=t(()=>{function e(t,e,r,i,n,a,s){g(e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").text(t),s)}function l(t,e,r,i,n,a,s,o){var{actorFontSize:l,actorFontFamily:c,actorFontWeight:h}=o,u=t.split(L.lineBreakRegex);for(let t=0;t<u.length;t++){var d=t*l-l*(u.length-1)/2,p=e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("x",r).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){(n=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),l(t,e,r,i,0,a,s,o),g(n,s)}function g(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}function i(t,e,r,i,n,a,s){f(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o){var{actorFontSize:o,actorFontFamily:l,actorFontWeight:c}=o,[h,u]=YE(o),d=t.split(L.lineBreakRegex);for(let t=0;t<d.length;t++){var p=t*h-h*(d.length-1)/2,g=e.append("text").attr("x",r+n/2).attr("y",i).style("text-anchor","middle").style("font-size",u).style("font-weight",c).style("font-family",l);g.append("tspan").attr("x",r+n/2).attr("dy",p).text(d[t]),g.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(g,s)}}function n(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),f(l,s)}async function a(t,e,r,i,n,a,s,o){var l=await qc(t,Nr());(l=(e=e.append("switch")).append("foreignObject").attr("x",r+n/2-l.width/2).attr("y",i+a/2-l.height/2).attr("width",l.width).attr("height",l.height).append("xhtml:div").style("height","100%").style("width","100%")).append("div").style("text-align","center").style("vertical-align","middle").html(await jc(t,Nr())),c(t,e,r,i,n,a,s,o),f(l,s)}function f(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}Jc(),t6(),KE(),O2t=tt(J3(),1),Ai(),P2t=36,B2t="actor-bottom",F2t=me(function(t,e){return y3(t,e)},"drawRect"),$2t=me(function(t,e,r,i,n){if(null==e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,s=e.actorCnt,o=e.rectData,e="none",l=(n&&(e="block !important"),t.append("g")),n=(l.attr("id","actor"+s+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",e),""),c=(void 0!==o.class&&(n=" "+o.class),o.width>r?o.width:r);if((t=l.append("rect")).attr("class","actorPopupMenuPanel"+n),t.attr("x",o.x),t.attr("y",o.height),t.attr("fill",o.fill),t.attr("stroke",o.stroke),t.attr("width",c),t.attr("height",o.height),t.attr("rx",o.rx),t.attr("ry",o.ry),null!=a){var h,u=20;for(h in a){var d=l.append("a"),p=(0,O2t.sanitizeUrl)(a[h]);d.attr("xlink:href",p),d.attr("target","_blank"),hvt(i)(h,d,o.x+10,o.height+u,c,20,{class:"actor"},i),u+=30}}return t.attr("height",u),{height:o.height+u,width:c}},"drawPopup"),z2t=me(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),U2t=me(async function(i,n,a=null){var s=i.append("foreignObject"),o=await jc(n.text,Nr()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===n.class)(i=i.node().firstChild).setAttribute("height",o.height+2*n.textMargin),i=i.getBBox(),s.attr("x",Math.round(i.x+i.width/2-o.width/2)).attr("y",Math.round(i.y+i.height/2-o.height/2));else if(a){let{startx:t,stopx:e,starty:r}=a;t>e&&(i=t,t=e,e=i),s.attr("x",Math.round(t+Math.abs(t-e)/2-o.width/2)),"loopText"===n.class?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},"drawKatex"),G2t=me(function(t,e){let r=0,i=0,n=e.text.split(L.lineBreakRegex),[a,s]=YE(e.fontSize),o=[],l=0,c=me(()=>e.y,"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&0<e.textMargin)switch(e.valign){case"top":case"start":c=me(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":c=me(()=>Math.round(e.y+(r+i+e.textMargin)/2),"yfunc");break;case"bottom":case"end":c=me(()=>Math.round(e.y+(r+i+2*e.textMargin)-e.textMargin),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle Line truncated `,"getStyles"),Y2t=W2t}),Avt=t(()=>{function e(t,e,r,i,n,a,s){g(e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").text(t),s)}function l(t,e,r,i,n,a,s,o){var{actorFontSize:l,actorFontFamily:c,actorFontWeight:h}=o,u=t.split(L.lineBreakRegex);for(let t=0;t<u.length;t++){var d=t*l-l*(u.length-1)/2,p=e.append("text").attr("x",r).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("x",r).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){(n=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),l(t,e,r,i,0,a,s,o),g(n,s)}function g(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}function i(t,e,r,i,n,a,s){f(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o){var{actorFontSize:o,actorFontFamily:l,actorFontWeight:c}=o,[h,u]=WE(o),d=t.split(L.lineBreakRegex);for(let t=0;t<d.length;t++){var p=t*h-h*(d.length-1)/2,g=e.append("text").attr("x",r+n/2).attr("y",i).style("text-anchor","middle").style("font-size",u).style("font-weight",c).style("font-family",l);g.append("tspan").attr("x",r+n/2).attr("dy",p).text(d[t]),g.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(g,s)}}function n(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),f(l,s)}async function a(t,e,r,i,n,a,s,o){var l=await qc(t,Nr());(l=(e=e.append("switch")).append("foreignObject").attr("x",r+n/2-l.width/2).attr("y",i+a/2-l.height/2).attr("width",l.width).attr("height",l.height).append("xhtml:div").style("height","100%").style("width","100%")).append("div").style("text-align","center").style("vertical-align","middle").html(await jc(t,Nr())),c(t,e,r,i,n,a,s,o),f(l,s)}function f(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}Jc(),t6(),KE(),H2t=tt(J3(),1),Ai(),V2t=36,X2t="actor-bottom",K2t=me(function(t,e){return y3(t,e)},"drawRect"),Z2t=me(function(t,e,r,i,n){if(null==e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,s=e.actorCnt,o=e.rectData,e="none",l=(n&&(e="block !important"),t.append("g")),n=(l.attr("id","actor"+s+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",e),""),c=(void 0!==o.class&&(n=" "+o.class),o.width>r?o.width:r);if((t=l.append("rect")).attr("class","actorPopupMenuPanel"+n),t.attr("x",o.x),t.attr("y",o.height),t.attr("fill",o.fill),t.attr("stroke",o.stroke),t.attr("width",c),t.attr("height",o.height),t.attr("rx",o.rx),t.attr("ry",o.ry),null!=a){var h,u=20;for(h in a){var d=l.append("a"),p=(0,H2t.sanitizeUrl)(a[h]);d.attr("xlink:href",p),d.attr("target","_blank"),kvt(i)(h,d,o.x+10,o.height+u,c,20,{class:"actor"},i),u+=30}}return t.attr("height",u),{height:o.height+u,width:c}},"drawPopup"),Q2t=me(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),J2t=me(async function(i,n,a=null){var s=i.append("foreignObject"),o=await jc(n.text,Nr()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===n.class)(i=i.node().firstChild).setAttribute("height",o.height+2*n.textMargin),i=i.getBBox(),s.attr("x",Math.round(i.x+i.width/2-o.width/2)).attr("y",Math.round(i.y+i.height/2-o.height/2));else if(a){let{startx:t,stopx:e,starty:r}=a;t>e&&(i=t,t=e,e=i),s.attr("x",Math.round(t+Math.abs(t-e)/2-o.width/2)),"loopText"===n.class?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},"drawKatex"),tvt=me(function(t,e){let r=0,i=0,n=e.text.split(L.lineBreakRegex),[a,s]=WE(e.fontSize),o=[],l=0,c=me(()=>e.y,"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&0<e.textMargin)switch(e.valign){case"top":case"start":c=me(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":c=me(()=>Math.round(e.y+(r+i+e.textMargin)/2),"yfunc");break;case"bottom":case"end":c=me(()=>Math.round(e.y+(r+i+2*e.textMargin)-e.textMargin),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;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: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 77;case 22:this.popState();break;case 23:return 78;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 75;case 68:case 69:return 67;case 70:case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:case 85:return 88;case 86:return 89;case 87:case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:case 96:return 87;case 97:return 9}},"anonymous"),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)/,/^(?:classDef\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)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;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: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 77;case 22:this.popState();break;case 23:return 78;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 75;case 68:case 69:return 67;case 70:case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:case 85:return 88;case 86:return 89;case 87:case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:case 96:return 87;case 97:return 9}},"anonymous"),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)/,/^(?:classDef\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)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\Line truncated
fill: ${t.nodeBorder||t.classText}; fill: ${t.nodeBorder||t.classText};
stroke: none; stroke: none;
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
@@ -1519,12 +1519,12 @@ g.classGroup line {
font-size: 18px; font-size: 18px;
fill: ${t.textColor}; fill: ${t.textColor};
} }
`,"getStyles"),Zvt=Kvt}),obt=t(()=>{fu(),e(),GR(),$X(),zX(),KE(),Qvt=me((t,e="TB")=>{if(!t.doc)return e;let r=e;for(var i of t.doc)"dir"===i.stmt&&(r=i.value);return r},"getDir"),Jvt=me(function(t,e){return e.db.getClasses()},"getClasses"),tbt=me(async function(t,e,r,i){R.info("REF0:"),R.info("Drawing class diagram (v3)",e);var{securityLevel:n,state:a,layout:s}=D(),o=i.db.getData(),n=LR(e,n);o.type=i.type,o.layoutAlgorithm=EX(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await TX(o,n),WE.insertTitle(n,"classDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),_X(n,8,"classDiagram",a?.useMaxWidth??!0)},"draw"),ebt={getClasses:Jvt,draw:tbt,getDir:Qvt}}),lbt={};fOt(lbt,{diagram:()=>cbt});var cbt,hbt=t(()=>{ibt(),abt(),sbt(),obt(),cbt={parser:qvt,get db(){return new Xvt},renderer:ebt,styles:Zvt,init:me(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}),ubt={};fOt(ubt,{diagram:()=>dbt});var dbt,pbt,gbt,fbt,mbt,ybt,vbt,bbt,xbt,wbt,kbt,Tbt,Ebt,_bt,Cbt,Sbt,Abt,Lbt,Nbt,Ibt,Mbt,Rbt,Dbt,Obt,Pbt,Bbt,Fbt,$bt,zbt,Ubt,Gbt,qbt,jbt,Ybt,Wbt,Hbt,Vbt,Xbt,Kbt,Zbt=t(()=>{ibt(),abt(),sbt(),obt(),dbt={parser:qvt,get db(){return new Xvt},renderer:ebt,styles:Zvt,init:me(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}),Qbt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,2],i=[1,3],n=[1,4],a=[2,4],s=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,32],p=[1,20],g=[1,21],f=[1,22],m=[1,23],y=[1,24],v=[1,26],b=[1,27],x=[1,28],w=[1,29],k=[1,30],T=[1,31],E=[1,34],_=[1,35],C=[1,36],S=[1,37],A=[1,33],L=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],N=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],I=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"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,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],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:return i.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:this.$=a[o];break;case 8:this.$="nl";break;case 12:this.$=a[o];break;case 13:(c=a[o-1]).description=i.trimColon(a[o]),this.$=c;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:c=i.trimColon(a[o]),this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var l,c=a[o],h=a[o-2].trim();a[o].match(":")&&(c=(l=a[o].split(":"))[0],h=[h,l[1]]),this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 29:this.$=a[o].trim(),i.setA Line truncated `,"getStyles"),cxt=lxt}),xxt=t(()=>{fu(),e(),qM(),zX(),GX(),KE(),hxt=me((t,e="TB")=>{if(!t.doc)return e;let r=e;for(var i of t.doc)"dir"===i.stmt&&(r=i.value);return r},"getDir"),uxt=me(function(t,e){return e.db.getClasses()},"getClasses"),dxt=me(async function(t,e,r,i){M.info("REF0:"),M.info("Drawing class diagram (v3)",e);var{securityLevel:n,state:a,layout:s}=D(),o=i.db.getData(),n=NM(e,n);o.type=i.type,o.layoutAlgorithm=CX(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await EX(o,n),YE.insertTitle(n,"classDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),_X(n,8,"classDiagram",a?.useMaxWidth??!0)},"draw"),pxt={getClasses:uxt,draw:dxt,getDir:hxt}}),bxt={};lPt(bxt,{diagram:()=>wxt});var wxt,kxt=t(()=>{fxt(),yxt(),vxt(),xxt(),wxt={parser:ext,get db(){return new oxt},renderer:pxt,styles:cxt,init:me(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}),Txt={};lPt(Txt,{diagram:()=>Ext});var Ext,Cxt,_xt,Sxt,Axt,Lxt,Nxt,Ixt,Rxt,Mxt,Dxt,Oxt,Pxt,Bxt,Fxt,$xt,zxt,Gxt,Uxt,qxt,jxt,Wxt,Yxt,Hxt,Vxt,Xxt,Kxt,Zxt,Qxt,Jxt,tbt,ebt,rbt,ibt,nbt,abt,sbt,obt,lbt,cbt=t(()=>{fxt(),yxt(),vxt(),xxt(),Ext={parser:ext,get db(){return new oxt},renderer:pxt,styles:cxt,init:me(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}),hbt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,2],i=[1,3],n=[1,4],a=[2,4],s=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,32],p=[1,20],g=[1,21],f=[1,22],m=[1,23],y=[1,24],v=[1,26],x=[1,27],b=[1,28],w=[1,29],k=[1,30],T=[1,31],E=[1,34],C=[1,35],_=[1,36],S=[1,37],A=[1,33],L=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],N=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],I=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"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,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],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:return i.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:this.$=a[o];break;case 8:this.$="nl";break;case 12:this.$=a[o];break;case 13:(c=a[o-1]).description=i.trimColon(a[o]),this.$=c;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:c=i.trimColon(a[o]),this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var l,c=a[o],h=a[o-2].trim();a[o].match(":")&&(c=(l=a[o].split(":"))[0],h=[h,l[1]]),this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 29:this.$=a[o].trim(),i.setA Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return 41;case 1:return 48;case 2:return 49;case 3:return 50;case 4:return 51;case 5:case 6:break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),17;case 13:return 18;case 14:this.popState();break;case 15:return this.begin("acc_title"),33;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),35;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"),38;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),39;case 25:return this.popState(),40;case 26:return this.pushState("CLASS"),45;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;case 28:return this.popState(),47;case 29:return this.pushState("STYLE"),42;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;case 31:return this.popState(),44;case 32:return this.pushState("SCALE"),17;case 33:return 18;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 37:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 38:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 39:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 42:return 48;case 43:return 49;case 44:return 50;case 45:return 51;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";case 48:return this.popState(),"ID";case 49:this.popState();break;case 50:return"STATE_DESCR";case 51:return 19;case 52:this.popState();break;case 53:return this.popState(),this.pushState("struct"),20;case 54:break;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),56;case 59:return this.popState(),this.pushState("NOTE_ID"),57;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return this.popState(),"ID";case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 55;case 77:return 5;case 78:return"INVALID"}},"anonymous"),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,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\sLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return 41;case 1:return 48;case 2:return 49;case 3:return 50;case 4:return 51;case 5:case 6:break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),17;case 13:return 18;case 14:this.popState();break;case 15:return this.begin("acc_title"),33;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),35;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"),38;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),39;case 25:return this.popState(),40;case 26:return this.pushState("CLASS"),45;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;case 28:return this.popState(),47;case 29:return this.pushState("STYLE"),42;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;case 31:return this.popState(),44;case 32:return this.pushState("SCALE"),17;case 33:return 18;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 37:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 38:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 39:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 42:return 48;case 43:return 49;case 44:return 50;case 45:return 51;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";case 48:return this.popState(),"ID";case 49:this.popState();break;case 50:return"STATE_DESCR";case 51:return 19;case 52:this.popState();break;case 53:return this.popState(),this.pushState("struct"),20;case 54:break;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),56;case 59:return this.popState(),this.pushState("NOTE_ID"),57;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return this.popState(),"ID";case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 55;case 77:return 5;case 78:return"INVALID"}},"anonymous"),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,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\sLine truncated
defs #statediagram-barbEnd { defs #statediagram-barbEnd {
fill: ${t.transitionColor}; fill: ${t.transitionColor};
stroke: ${t.transitionColor}; stroke: ${t.transitionColor};
@@ -1738,12 +1738,12 @@ g.stateGroup line {
font-size: 18px; font-size: 18px;
fill: ${t.textColor}; fill: ${t.textColor};
} }
`,"getStyles"),wxt=xxt}),Kxt=t(()=>{kxt={},Txt=me((t,e)=>{kxt[t]=e},"set"),Ext=me(t=>kxt[t],"get"),_xt=me(()=>Object.keys(kxt),"keys"),Cxt=me(()=>_xt().length,"size"),Sxt={get:Ext,set:Txt,keys:_xt,size:Cxt}}),Zxt=t(()=>{Z3(),Kxt(),Vxt(),KE(),Jc(),fu(),e(),Axt=me(t=>t.append("circle").attr("class","start-state").attr("r",D().state.sizeUnit).attr("cx",D().state.padding+D().state.sizeUnit).attr("cy",D().state.padding+D().state.sizeUnit),"drawStartState"),Lxt=me(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",D().state.textHeight).attr("class","divider").attr("x2",2*D().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),Nxt=me((t,e)=>{var r=(e=t.append("text").attr("x",2*D().state.padding).attr("y",D().state.textHeight+2*D().state.padding).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.id)).node().getBBox();return t.insert("rect",":first-child").attr("x",D().state.padding).attr("y",D().state.padding).attr("width",r.width+2*D().state.padding).attr("height",r.height+2*D().state.padding).attr("rx",D().state.radius),e},"drawSimpleState"),Ixt=me((t,e)=>{let r=me(function(t,e,r){t=t.append("tspan").attr("x",2*D().state.padding).text(e),r||t.attr("dy",D().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*D().state.padding).attr("y",D().state.textHeight+1.3*D().state.padding).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),n=i.height,a=t.append("text").attr("x",D().state.padding).attr("y",n+.4*D().state.padding+D().state.dividerMargin+D().state.textHeight).attr("class","state-description"),s=!0,o=!0;e.descriptions.forEach(function(t){s||(r(a,t,o),o=!1),s=!1});var e=t.append("line").attr("x1",D().state.padding).attr("y1",D().state.padding+n+D().state.dividerMargin/2).attr("y2",D().state.padding+n+D().state.dividerMargin/2).attr("class","descr-divider"),l=a.node().getBBox(),c=Math.max(l.width,i.width);return e.attr("x2",c+3*D().state.padding),t.insert("rect",":first-child").attr("x",D().state.padding).attr("y",D().state.padding).attr("width",c+2*D().state.padding).attr("height",l.height+n+2*D().state.padding).attr("rx",D().state.radius),t},"drawDescrState"),Mxt=me((t,e,r)=>{let i=D().state.padding,n=2*D().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",D().state.titleShift).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.id),c=l.node().getBBox().width+n,h=Math.max(c,s);h===s&&(h+=n);let u,d=t.node().getBBox();return e.doc,u=o-i,s<c&&(u=(s-h)/2+i),Math.abs(o-d.x)<i&&s<c&&(u=o-(c-s)/2),e=1-D().state.textHeight,t.insert("rect",":first-child").attr("x",u).attr("y",e).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",d.height+D().state.textHeight+D().state.titleShift+1).attr("rx","0"),l.attr("x",u+i),c<=s&&l.attr("x",o+(h-n)/2-c/2+i),t.insert("rect",":first-child").attr("x",u).attr("y",D().state.titleShift-D().state.textHeight-D().state.padding).attr("width",h).attr("height",3*D().state.textHeight).attr("rx",D().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",D().state.titleShift-D().state.textHeight-D().state.padding).attr("width",h).attr("height",d.height+3+2*D().state.textHeight).attr("rx",D().state.radius),t},"addTitleAndBox"),Rxt=me(t=>(t.append("circle").attr("class","end-state-outer").attr("r",D().state.sizeUnit+D().state.miniPadding).attr("cx",D().state.padding+D().state.sizeUnit+D().state.miniPadding).attr("cy",D().state.padding+D().state.sizeUnit+D().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",D().state.sizeUnit).attr("cx",D().state.padding+D().state.sizeUnit+2).attr("cy",D().state.padding+D().state.sizeUnit+2)),"drawEndState"),Dxt=me((t,e)=>{let r=D().state.forkWidth,i=D().state.forkHeight;return e.parentId&&(e=r,r=i,i=e),t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",D().state.padding).attr("y",D().state.padding)},"drawForkJoinState"),Oxt=me((t,e,r,i)=>{let n=0,a=i.append("text"),s=(a.style("text-anchor","start"),a.attr("class","noteText"),t.replace(/\r\n/g,"<br/>")),o=(s=s.replace(/\n/g,"<br/>")).split(L.lineBreakRegex),l=1.25*D().state.noteMargin;for(var c of o){var h;0<(c=c.trim()).length&&((h=a.append("tspan")).text(c),0===l&&(c=h.node().getBBox(),l+=c.height),n+=l,h.attr("x",e+D().state.noteMargin),h.attr("y",r+n+1.25*D().state.noteMargin))}return{textWidth:a.node().getBBox().width,textHeight:n}},"_drawLongText"),Pxt=me((t,e)=>{e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",D().state.padding),e=e.append("g"),{textWidth:t,textHeight:e}=Oxt(t,0,0,e);return r.attr("height",e+2*D().state.noteMargin),r.attr("width",t+2*D().state.noteMargin),r},"drawNote"),Bxt=me(function(t,e){var r=e.id,i={id:r,label:e.id,width:0,height:0},t=t.append("g").attr("id",r).attr("class","stateGroup"),e=("start"===e.type&&Axt(t),"end"===e.type&&Rxt(t),"fork"!==e.type&&"join"!==e. Line truncated `,"getStyles"),Mbt=Rbt}),l4t=t(()=>{Dbt={},Obt=me((t,e)=>{Dbt[t]=e},"set"),Pbt=me(t=>Dbt[t],"get"),Bbt=me(()=>Object.keys(Dbt),"keys"),Fbt=me(()=>Bbt().length,"size"),$bt={get:Pbt,set:Obt,keys:Bbt,size:Fbt}}),c4t=t(()=>{Z3(),l4t(),s4t(),KE(),Jc(),fu(),e(),zbt=me(t=>t.append("circle").attr("class","start-state").attr("r",D().state.sizeUnit).attr("cx",D().state.padding+D().state.sizeUnit).attr("cy",D().state.padding+D().state.sizeUnit),"drawStartState"),Gbt=me(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",D().state.textHeight).attr("class","divider").attr("x2",2*D().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),Ubt=me((t,e)=>{var r=(e=t.append("text").attr("x",2*D().state.padding).attr("y",D().state.textHeight+2*D().state.padding).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.id)).node().getBBox();return t.insert("rect",":first-child").attr("x",D().state.padding).attr("y",D().state.padding).attr("width",r.width+2*D().state.padding).attr("height",r.height+2*D().state.padding).attr("rx",D().state.radius),e},"drawSimpleState"),qbt=me((t,e)=>{let r=me(function(t,e,r){t=t.append("tspan").attr("x",2*D().state.padding).text(e),r||t.attr("dy",D().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*D().state.padding).attr("y",D().state.textHeight+1.3*D().state.padding).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),n=i.height,a=t.append("text").attr("x",D().state.padding).attr("y",n+.4*D().state.padding+D().state.dividerMargin+D().state.textHeight).attr("class","state-description"),s=!0,o=!0;e.descriptions.forEach(function(t){s||(r(a,t,o),o=!1),s=!1});var e=t.append("line").attr("x1",D().state.padding).attr("y1",D().state.padding+n+D().state.dividerMargin/2).attr("y2",D().state.padding+n+D().state.dividerMargin/2).attr("class","descr-divider"),l=a.node().getBBox(),c=Math.max(l.width,i.width);return e.attr("x2",c+3*D().state.padding),t.insert("rect",":first-child").attr("x",D().state.padding).attr("y",D().state.padding).attr("width",c+2*D().state.padding).attr("height",l.height+n+2*D().state.padding).attr("rx",D().state.radius),t},"drawDescrState"),jbt=me((t,e,r)=>{let i=D().state.padding,n=2*D().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",D().state.titleShift).attr("font-size",D().state.fontSize).attr("class","state-title").text(e.id),c=l.node().getBBox().width+n,h=Math.max(c,s);h===s&&(h+=n);let u,d=t.node().getBBox();return e.doc,u=o-i,s<c&&(u=(s-h)/2+i),Math.abs(o-d.x)<i&&s<c&&(u=o-(c-s)/2),e=1-D().state.textHeight,t.insert("rect",":first-child").attr("x",u).attr("y",e).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",d.height+D().state.textHeight+D().state.titleShift+1).attr("rx","0"),l.attr("x",u+i),c<=s&&l.attr("x",o+(h-n)/2-c/2+i),t.insert("rect",":first-child").attr("x",u).attr("y",D().state.titleShift-D().state.textHeight-D().state.padding).attr("width",h).attr("height",3*D().state.textHeight).attr("rx",D().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",D().state.titleShift-D().state.textHeight-D().state.padding).attr("width",h).attr("height",d.height+3+2*D().state.textHeight).attr("rx",D().state.radius),t},"addTitleAndBox"),Wbt=me(t=>(t.append("circle").attr("class","end-state-outer").attr("r",D().state.sizeUnit+D().state.miniPadding).attr("cx",D().state.padding+D().state.sizeUnit+D().state.miniPadding).attr("cy",D().state.padding+D().state.sizeUnit+D().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",D().state.sizeUnit).attr("cx",D().state.padding+D().state.sizeUnit+2).attr("cy",D().state.padding+D().state.sizeUnit+2)),"drawEndState"),Ybt=me((t,e)=>{let r=D().state.forkWidth,i=D().state.forkHeight;return e.parentId&&(e=r,r=i,i=e),t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",D().state.padding).attr("y",D().state.padding)},"drawForkJoinState"),Hbt=me((t,e,r,i)=>{let n=0,a=i.append("text"),s=(a.style("text-anchor","start"),a.attr("class","noteText"),t.replace(/\r\n/g,"<br/>")),o=(s=s.replace(/\n/g,"<br/>")).split(L.lineBreakRegex),l=1.25*D().state.noteMargin;for(var c of o){var h;0<(c=c.trim()).length&&((h=a.append("tspan")).text(c),0===l&&(c=h.node().getBBox(),l+=c.height),n+=l,h.attr("x",e+D().state.noteMargin),h.attr("y",r+n+1.25*D().state.noteMargin))}return{textWidth:a.node().getBBox().width,textHeight:n}},"_drawLongText"),Vbt=me((t,e)=>{e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",D().state.padding),e=e.append("g"),{textWidth:t,textHeight:e}=Hbt(t,0,0,e);return r.attr("height",e+2*D().state.noteMargin),r.attr("width",t+2*D().state.noteMargin),r},"drawNote"),Xbt=me(function(t,e){var r=e.id,i={id:r,label:e.id,width:0,height:0},t=t.append("g").attr("id",r).attr("class","stateGroup"),e=("start"===e.type&&zbt(t),"end"===e.type&&Wbt(t),"fork"!==e.type&&"join"!==e. Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 10;case 3: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"}},"anonymous"),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}}};i.lexer=n,me(t,"Parser"),(n4t=new((t.prototype=i).Parser=t)).parser=n4t,a4t=n4t}),P4t=t(()=>{fu(),gu(),s4t="",o4t=[],l4t=[],c4t=[],h4t=me(function(){o4t.length=0,l4t.length=0,s4t="",c4t.length=0,oh()},"clear"),u4t=me(function(t){s4t=t,o4t.push(t)},"addSection"),d4t=me(function(){return o4t},"getSections"),p4t=me(function(){let t=y4t(),e=0;for(;!t&&e<100;)t=y4t(),e++;return l4t.push(...c4t),l4t},"getTasks"),g4t=me(function(){let e=[];return l4t.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},"updateActors"),f4t=me(function(t,e){let r=e.substr(1).split(":"),i=0;e=(1===r.length?(i=Number(r[0]),[]):(i=Number(r[0]),r[1].split(","))).map(t=>t.trim()),e={section:s4t,type:s4t,people:e,task:t,score:i},c4t.push(e)},"addTask"),m4t=me(function(t){t={section:s4t,type:s4t,description:t,task:t,classes:[]},l4t.push(t)},"addTaskOrg"),y4t=me(function(){let t=me(function(t){return c4t[t].processed},"compileTask"),e=!0;for(var[r,i]of c4t.entries())t(r),e=e&&i.processed;return e},"compileTasks"),v4t=me(function(){return g4t()},"getActors"),b4t={getConfig:me(()=>D().journey,"getConfig"),clear:h4t,setDiagramTitle:dh,getDiagramTitle:ph,setAccTitle:lh,getAccTitle:ch,setAccDescription:hh,getAccDescription:uh,addSection:u4t,getSections:d4t,getTasks:p4t,addTask:f4t,addTaskOrg:m4t,getActors:v4t}}),B4t=t(()=>{x4t=me(t=>`.label { `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 10;case 3: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"}},"anonymous"),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}}};i.lexer=n,me(t,"Parser"),(m4t=new((t.prototype=i).Parser=t)).parser=m4t,y4t=m4t}),V4t=t(()=>{fu(),gu(),v4t="",x4t=[],b4t=[],w4t=[],k4t=me(function(){x4t.length=0,b4t.length=0,v4t="",w4t.length=0,oh()},"clear"),T4t=me(function(t){v4t=t,x4t.push(t)},"addSection"),E4t=me(function(){return x4t},"getSections"),C4t=me(function(){let t=L4t(),e=0;for(;!t&&e<100;)t=L4t(),e++;return b4t.push(...w4t),b4t},"getTasks"),_4t=me(function(){let e=[];return b4t.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},"updateActors"),S4t=me(function(t,e){let r=e.substr(1).split(":"),i=0;e=(1===r.length?(i=Number(r[0]),[]):(i=Number(r[0]),r[1].split(","))).map(t=>t.trim()),e={section:v4t,type:v4t,people:e,task:t,score:i},w4t.push(e)},"addTask"),A4t=me(function(t){t={section:v4t,type:v4t,description:t,task:t,classes:[]},b4t.push(t)},"addTaskOrg"),L4t=me(function(){let t=me(function(t){return w4t[t].processed},"compileTask"),e=!0;for(var[r,i]of w4t.entries())t(r),e=e&&i.processed;return e},"compileTasks"),N4t=me(function(){return _4t()},"getActors"),I4t={getConfig:me(()=>D().journey,"getConfig"),clear:k4t,setDiagramTitle:dh,getDiagramTitle:ph,setAccTitle:lh,getAccTitle:ch,setAccDescription:hh,getAccDescription:uh,addSection:T4t,getSections:E4t,getTasks:C4t,addTask:S4t,addTaskOrg:A4t,getActors:N4t}}),X4t=t(()=>{R4t=me(t=>`.label {
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
color: ${t.textColor}; color: ${t.textColor};
} }
@@ -1875,12 +1875,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
.actor-5 { .actor-5 {
${t.actor5?"fill: "+t.actor5:""}; ${t.actor5?"fill: "+t.actor5:""};
} }
`,"getStyles"),w4t=x4t}),F4t=t(()=>{function e(t,e,r,i,n,a,s,o){g(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){var d=t*c-c*(u.length-1)/2,p=e.append("text").attr("x",r+n/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+n/2).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),g(l,s)}function g(t,e){for(var r in e)r in e&&t.attr(r,e[r])}Z3(),t6(),k4t=me(function(t,e){return y3(t,e)},"drawRect"),T4t=me(function(t,r){var e=t.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");function i(t){var e=$4().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}function n(t){var e=$4().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}function a(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return(t=t.append("g")).append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),me(i,"smile"),me(n,"sad"),me(a,"ambivalent"),(3<r.score?i:r.score<3?n:a)(t),e},"drawFace"),E4t=me(function(t,e){return(t=t.append("circle")).attr("cx",e.cx),t.attr("cy",e.cy),t.attr("class","actor-"+e.pos),t.attr("fill",e.fill),t.attr("stroke",e.stroke),t.attr("r",e.r),void 0!==t.class&&t.attr("class",t.class),void 0!==e.title&&t.append("title").text(e.title),t},"drawCircle"),_4t=me(function(t,e){return b3(t,e)},"drawText"),C4t=me(function(t,e){function r(t,e,r,i,n){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+i-n)+" "+(t+r-1.2*n)+","+(e+i)+" "+t+","+(e+i)}me(r,"genPoints");var i=t.append("polygon");i.attr("points",r(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,_4t(t,e)},"drawLabel"),S4t=me(function(t,e,r){var t=t.append("g"),i=k3();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,k4t(t,i),I4t(r)(e.text,t,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),A4t=-1,L4t=me(function(t,r,e){let i=r.x+e.width/2,n=t.append("g"),a=(A4t++,n.append("line").attr("id","task"+A4t).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),T4t(n,{cx:i,cy:300+30*(5-r.score),score:r.score}),(t=k3()).x=r.x,t.y=r.y,t.fill=r.fill,t.width=e.width,t.height=e.height,t.class="task task-type-"+r.num,t.rx=3,t.ry=3,k4t(n,t),r.x+14);r.people.forEach(t=>{var e=r.actors[t].color,e={cx:a,cy:r.y,r:7,fill:e,stroke:"#000",title:t,pos:r.actors[t].position};E4t(n,e),a+=10}),I4t(e)(r.task,n,t.x,t.y,t.width,t.height,{class:"task"},e,r.colour)},"drawTask"),N4t=me(function(t,e){v3(t,e)},"drawBackgroundRect"),me(e,"byText"),me(c,"byTspan"),me(r,"byFo"),me(g,"_setTextAttrs"),I4t=function(t){return"fo"===t.textPlacement?r:"old"===t.textPlacement?e:c},M4t=me(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),R4t={drawRect:k4t,drawCircle:E4t,drawSection:S4t,drawText:_4t,drawLabel:C4t,drawTask:L4t,drawBackgroundRect:N4t,initGraphics:M4t}});function $4t(r){let i=D().journey,n=60;Object.keys(U4t).forEach(t=>{var e=U4t[t].color,e={cx:20,cy:n,r:7,fill:e,stroke:"#000",pos:U4t[t].position},e=(R4t.drawCircle(r,e),{x:40,y:n+7,fill:"#666",text:t,textMargin:5|i.boxTextMargin});R4t.drawText(r,e),n+=20})}var z4t,U4t,G4t,q4t,j4t,Y4t,W4t,H4t,V4t,X4t,K4t=t(()=>{Z3(),F4t(),fu(),th(),z4t=me(function(e){Object.keys(e).forEach(function(t){G4t[t]=e[t]})},"setConf" Line truncated `,"getStyles"),M4t=R4t}),K4t=t(()=>{function e(t,e,r,i,n,a,s,o){g(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){var d=t*c-c*(u.length-1)/2,p=e.append("text").attr("x",r+n/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+n/2).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),g(l,s)}function g(t,e){for(var r in e)r in e&&t.attr(r,e[r])}Z3(),t6(),D4t=me(function(t,e){return y3(t,e)},"drawRect"),O4t=me(function(t,r){var e=t.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");function i(t){var e=$4().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}function n(t){var e=$4().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}function a(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return(t=t.append("g")).append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),me(i,"smile"),me(n,"sad"),me(a,"ambivalent"),(3<r.score?i:r.score<3?n:a)(t),e},"drawFace"),P4t=me(function(t,e){return(t=t.append("circle")).attr("cx",e.cx),t.attr("cy",e.cy),t.attr("class","actor-"+e.pos),t.attr("fill",e.fill),t.attr("stroke",e.stroke),t.attr("r",e.r),void 0!==t.class&&t.attr("class",t.class),void 0!==e.title&&t.append("title").text(e.title),t},"drawCircle"),B4t=me(function(t,e){return x3(t,e)},"drawText"),F4t=me(function(t,e){function r(t,e,r,i,n){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+i-n)+" "+(t+r-1.2*n)+","+(e+i)+" "+t+","+(e+i)}me(r,"genPoints");var i=t.append("polygon");i.attr("points",r(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,B4t(t,e)},"drawLabel"),$4t=me(function(t,e,r){var t=t.append("g"),i=k3();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,D4t(t,i),q4t(r)(e.text,t,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),z4t=-1,G4t=me(function(t,r,e){let i=r.x+e.width/2,n=t.append("g"),a=(z4t++,n.append("line").attr("id","task"+z4t).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),O4t(n,{cx:i,cy:300+30*(5-r.score),score:r.score}),(t=k3()).x=r.x,t.y=r.y,t.fill=r.fill,t.width=e.width,t.height=e.height,t.class="task task-type-"+r.num,t.rx=3,t.ry=3,D4t(n,t),r.x+14);r.people.forEach(t=>{var e=r.actors[t].color,e={cx:a,cy:r.y,r:7,fill:e,stroke:"#000",title:t,pos:r.actors[t].position};P4t(n,e),a+=10}),q4t(e)(r.task,n,t.x,t.y,t.width,t.height,{class:"task"},e,r.colour)},"drawTask"),U4t=me(function(t,e){v3(t,e)},"drawBackgroundRect"),me(e,"byText"),me(c,"byTspan"),me(r,"byFo"),me(g,"_setTextAttrs"),q4t=function(t){return"fo"===t.textPlacement?r:"old"===t.textPlacement?e:c},j4t=me(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),W4t={drawRect:D4t,drawCircle:P4t,drawSection:$4t,drawText:B4t,drawLabel:F4t,drawTask:G4t,drawBackgroundRect:U4t,initGraphics:j4t}});function Z4t(r){let i=D().journey,n=60;Object.keys(J4t).forEach(t=>{var e=J4t[t].color,e={cx:20,cy:n,r:7,fill:e,stroke:"#000",pos:J4t[t].position},e=(W4t.drawCircle(r,e),{x:40,y:n+7,fill:"#666",text:t,textMargin:5|i.boxTextMargin});W4t.drawText(r,e),n+=20})}var Q4t,J4t,t5t,e5t,r5t,i5t,n5t,a5t,s5t,o5t,l5t=t(()=>{Z3(),K4t(),fu(),th(),Q4t=me(function(e){Object.keys(e).forEach(function(t){t5t[t]=e[t]})},"setConf" Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/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}}};i.lexer=n,me(t,"Parser"),(J4t=new((t.prototype=i).Parser=t)).parser=J4t,t5t=J4t}),i5t={};fOt(i5t,{addEvent:()=>f5t,addSection:()=>u5t,addTask:()=>g5t,addTaskOrg:()=>m5t,clear:()=>h5t,default:()=>v5t,getCommonDb:()=>c5t,getSections:()=>d5t,getTasks:()=>p5t});var n5t,a5t,s5t,o5t,l5t,c5t,h5t,u5t,d5t,p5t,g5t,f5t,m5t,y5t,v5t,b5t=t(()=>{gu(),n5t="",a5t=0,s5t=[],o5t=[],l5t=[],c5t=me(()=>rh,"getCommonDb"),h5t=me(function(){s5t.length=0,o5t.length=0,n5t="",l5t.length=0,oh()},"clear"),u5t=me(function(t){n5t=t,s5t.push(t)},"addSection"),d5t=me(function(){return s5t},"getSections"),p5t=me(function(){let t=y5t(),e=0;for(;!t&&e<100;)t=y5t(),e++;return o5t.push(...l5t),o5t},"getTasks"),g5t=me(function(t,e,r){t={id:a5t++,section:n5t,type:n5t,task:t,score:e||0,events:r?[r]:[]},l5t.push(t)},"addTask"),f5t=me(function(t){l5t.find(t=>t.id===a5t-1).events.push(t)},"addEvent"),m5t=me(function(t){t={section:n5t,type:n5t,description:t,task:t,classes:[]},o5t.push(t)},"addTaskOrg"),y5t=me(function(){let t=me(function(t){return l5t[t].processed},"compileTask"),e=!0;for(var[r,i]of l5t.entries())t(r),e=e&&i.processed;return e},"compileTasks"),v5t={clear:h5t,getCommonDb:c5t,addSection:u5t,getSections:d5t,getTasks:p5t,addTask:g5t,addTaskOrg:m5t,addEvent:f5t}});function x5t(t,o){t.each(function(){var e,r=j(this),i=r.text().split(/(\s+|<br>)/).reverse(),n=[],a=r.attr("y"),t=parseFloat(r.attr("dy")),s=r.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",t+"em");for(let t=0;t<i.length;t++)e=i[i.length-1-t],n.push(e),s.text(n.join(" ").trim()),(s.node().getComputedTextLength()>o||"<br>"===e)&&(n.pop(),s.text(n.join(" ").trim()),n="<br>"===e?[""]:[e],s=r.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(e))})}var w5t,k5t,T5t,E5t,_5t,C5t,S5t,A5t,L5t,N5t,I5t,M5t,R5t,D5t,O5t,P5t,B5t,F5t,$5t,z5t,U5t,G5t,q5t,j5t,Y5t=t(()=>{function e(t,e,r,i,n,a,s,o){g(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){var d=t*c-c*(u.length-1)/2,p=e.append("text").attr("x",r+n/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+n/2).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),g(l,s)}function g(t,e){for(var r in e)r in e&&t.attr(r,e[r])}Z3(),w5t=me(function(t,e){return(t=t.append("rect")).attr("x",e.x),t.attr("y",e.y),t.attr("fill",e.fill),t.attr("stroke",e.stroke),t.attr("width",e.width),t.at Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/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}}};i.lexer=n,me(t,"Parser"),(u5t=new((t.prototype=i).Parser=t)).parser=u5t,d5t=u5t}),f5t={};lPt(f5t,{addEvent:()=>S5t,addSection:()=>T5t,addTask:()=>_5t,addTaskOrg:()=>A5t,clear:()=>k5t,default:()=>N5t,getCommonDb:()=>w5t,getSections:()=>E5t,getTasks:()=>C5t});var m5t,y5t,v5t,x5t,b5t,w5t,k5t,T5t,E5t,C5t,_5t,S5t,A5t,L5t,N5t,I5t=t(()=>{gu(),m5t="",y5t=0,v5t=[],x5t=[],b5t=[],w5t=me(()=>rh,"getCommonDb"),k5t=me(function(){v5t.length=0,x5t.length=0,m5t="",b5t.length=0,oh()},"clear"),T5t=me(function(t){m5t=t,v5t.push(t)},"addSection"),E5t=me(function(){return v5t},"getSections"),C5t=me(function(){let t=L5t(),e=0;for(;!t&&e<100;)t=L5t(),e++;return x5t.push(...b5t),x5t},"getTasks"),_5t=me(function(t,e,r){t={id:y5t++,section:m5t,type:m5t,task:t,score:e||0,events:r?[r]:[]},b5t.push(t)},"addTask"),S5t=me(function(t){b5t.find(t=>t.id===y5t-1).events.push(t)},"addEvent"),A5t=me(function(t){t={section:m5t,type:m5t,description:t,task:t,classes:[]},x5t.push(t)},"addTaskOrg"),L5t=me(function(){let t=me(function(t){return b5t[t].processed},"compileTask"),e=!0;for(var[r,i]of b5t.entries())t(r),e=e&&i.processed;return e},"compileTasks"),N5t={clear:k5t,getCommonDb:w5t,addSection:T5t,getSections:E5t,getTasks:C5t,addTask:_5t,addTaskOrg:A5t,addEvent:S5t}});function R5t(t,o){t.each(function(){var e,r=j(this),i=r.text().split(/(\s+|<br>)/).reverse(),n=[],a=r.attr("y"),t=parseFloat(r.attr("dy")),s=r.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",t+"em");for(let t=0;t<i.length;t++)e=i[i.length-1-t],n.push(e),s.text(n.join(" ").trim()),(s.node().getComputedTextLength()>o||"<br>"===e)&&(n.pop(),s.text(n.join(" ").trim()),n="<br>"===e?[""]:[e],s=r.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(e))})}var M5t,D5t,O5t,P5t,B5t,F5t,$5t,z5t,G5t,U5t,q5t,j5t,W5t,Y5t,H5t,V5t,X5t,K5t,Z5t,Q5t,J5t,t3t,e3t,r3t,i3t=t(()=>{function e(t,e,r,i,n,a,s,o){g(e.append("text").attr("x",r+n/2).attr("y",i+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),s)}function c(t,e,r,i,n,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){var d=t*c-c*(u.length-1)/2,p=e.append("text").attr("x",r+n/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+n/2).attr("dy",d).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(t,e,r,i,n,a,s,o){var l=(e=e.append("switch")).append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),c(t,e,r,i,n,a,s,o),g(l,s)}function g(t,e){for(var r in e)r in e&&t.attr(r,e[r])}Z3(),M5t=me(function(t,e){return(t=t.append("rect")).attr("x",e.x),t.attr("y",e.y),t.attr("fill",e.fill),t.attr("stroke",e.stroke),t.attr("width",e.width),t.at Line truncated
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} path { .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} path {
fill: ${e["cScale"+t]}; fill: ${e["cScale"+t]};
} }
@@ -1912,11 +1912,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
.disabled text { .disabled text {
fill: #efefef; fill: #efefef;
} }
`}return r},"genSections"),q5t=me(t=>` `}return r},"genSections"),e3t=me(t=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${G5t(t)} ${t3t(t)}
.section-root rect, .section-root path, .section-root circle { .section-root rect, .section-root path, .section-root circle {
fill: ${t.git0}; fill: ${t.git0};
} }
@@ -1935,18 +1935,18 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
.eventWrapper { .eventWrapper {
filter: brightness(120%); filter: brightness(120%);
} }
`,"getStyles"),j5t=q5t}),V5t={};fOt(V5t,{diagram:()=>X5t});var X5t,K5t,Z5t,Q5t,J5t,t3t,e3t,r3t,i3t,n3t,a3t,s3t,o3t,l3t,c3t,h3t,u3t,d3t,p3t=t(()=>{r5t(),b5t(),W5t(),H5t(),X5t={db:i5t,renderer:U5t,parser:t5t,styles:j5t}}),g3t=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,4],i=[1,13],n=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],r={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[o].id),i.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 16:i.getLogger().trace("Icon: ",a[o]),i.decorateNode({icon:a[o]});break;case 17:case 21:i.decorateNode({class:a[o]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",a[o].id),i.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 20:i.decorateNode({icon:a[o]});break;case 25:i.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 26:this.$={id:a[o],descr:a[o],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:i.getType(a[o-2],a[o])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:i,9:22,12:11,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:h,7:u,10:23,11:d},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:u,10:32,11:d},{1:[2,7],6:i,12:21,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},e(g,[2,14],{7:f,11:m}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(g,[2,13],{7:f,11:m}),e(y,[2,11]),e(y,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var b,x,w,k,T,E,_,C={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===b||"u"<typeof b)&&(b=v()),o[w]&&o[w][b]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),r3t=e3t}),s3t={};lPt(s3t,{diagram:()=>o3t});var o3t,l3t,c3t,h3t,u3t,d3t,p3t,g3t,f3t,m3t,y3t,v3t,x3t,b3t,w3t,k3t,T3t,E3t,C3t=t(()=>{g5t(),I5t(),n3t(),a3t(),o3t={db:f5t,renderer:J5t,parser:d5t,styles:r3t}}),_3t=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,4],i=[1,13],n=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],r={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[o].id),i.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 16:i.getLogger().trace("Icon: ",a[o]),i.decorateNode({icon:a[o]});break;case 17:case 21:i.decorateNode({class:a[o]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",a[o].id),i.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 20:i.decorateNode({icon:a[o]});break;case 25:i.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 26:this.$={id:a[o],descr:a[o],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:i.getType(a[o-2],a[o])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:i,9:22,12:11,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:h,7:u,10:23,11:d},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:u,10:32,11:d},{1:[2,7],6:i,12:21,13:n,14:14,15:a,16:s,17:17,18:18,19:o,22:l},e(g,[2,14],{7:f,11:m}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(g,[2,13],{7:f,11:m}),e(y,[2,11]),e(y,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return t.getLogger().trace("Found comment",e.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:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},"anonymous"),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}}};r.lexer=c,me(t,"Parser"),(K5t=new((t.prototype=r).Parser=t)).parser=K5t,Z5t=K5t}),f3t=t(()=>{fu(),Jc(),e(),Ci(),Q5t=[],J5t=0,t3t={},e3t=me(()=>{Q5t=[],J5t=0,t3t={}},"clear"),r3t=me(function(e){for(let t=Q5t.length-1;0<=t;t--)if(Q5t[t].level<e)return Q5t[t];return null},"getParent"),i3t=me(()=>0<Q5t.length?Q5t[0]:null,"getMindmap"),n3t=me((t,e,r,i)=>{R.info("addNode",t,e,r,i);let n=D(),a=n.mindmap?.padding??mr.mindmap.padding;switch(i){case a3t.ROUNDED_RECT:case a3t.RECT:case a3t.HEXAGON:a*=2}if(e={id:J5t++,nodeId:Cc(e,n),level:t,descr:Cc(r,n),type:i,children:[],width:n.mindmap?.maxNodeWidth??mr.mindmap.maxNodeWidth,padding:a},r=r3t(t))r.children.push(e);else if(0!==Q5t.length)throw new Error('There can be only one root. No parent could be found for ("'+e.descr+'")');Q5t.push(e)},"addNode"),a3t={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},s3t=me((t,e)=>{switch(R.debug("In get type",t,e),t){case"[":return a3t.RECT;case"(":return")"===e?a3t.ROUNDED_RECT:a3t.CLOUD;case"((":return a3t.CIRCLE;case")":return a3t.CLOUD;case"))":return a3t.BANG;case"{{":return a3t.HEXAGON;default:return a3t.DEFAULT}},"getType"),o3t=me((t,e)=>{t3t[t]=e},"setElementForId"),l3t=me(t=>{var e,r;t&&(e=D(),r=Q5t[Q5t.length-1],t.icon&&(r.icon=Cc(t.icon,e)),t.class)&&(r.class=Cc(t.class,e))},"decorateNode"),c3t=me(t=>{switch(t){case a3t.DEFAULT:return"no-border";case a3t.RECT:return"rect";case a3t.ROUNDED_RECT:return"rounded-rect";case a3t.CIRCLE:return"circle";case a3t.CLOUD:return"cloud";case a3t.BANG:return"bang";case a3t.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),h3t=me(()=>R,"getLogger"),u3t=me(t=>t3t[t],"getElementById"),d3tLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return t.getLogger().trace("Found comment",e.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:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},"anonymous"),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}}};r.lexer=c,me(t,"Parser"),(l3t=new((t.prototype=r).Parser=t)).parser=l3t,c3t=l3t}),S3t=t(()=>{fu(),Jc(),e(),_i(),h3t=[],u3t=0,d3t={},p3t=me(()=>{h3t=[],u3t=0,d3t={}},"clear"),g3t=me(function(e){for(let t=h3t.length-1;0<=t;t--)if(h3t[t].level<e)return h3t[t];return null},"getParent"),f3t=me(()=>0<h3t.length?h3t[0]:null,"getMindmap"),m3t=me((t,e,r,i)=>{M.info("addNode",t,e,r,i);let n=D(),a=n.mindmap?.padding??mr.mindmap.padding;switch(i){case y3t.ROUNDED_RECT:case y3t.RECT:case y3t.HEXAGON:a*=2}if(e={id:u3t++,nodeId:_c(e,n),level:t,descr:_c(r,n),type:i,children:[],width:n.mindmap?.maxNodeWidth??mr.mindmap.maxNodeWidth,padding:a},r=g3t(t))r.children.push(e);else if(0!==h3t.length)throw new Error('There can be only one root. No parent could be found for ("'+e.descr+'")');h3t.push(e)},"addNode"),y3t={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},v3t=me((t,e)=>{switch(M.debug("In get type",t,e),t){case"[":return y3t.RECT;case"(":return")"===e?y3t.ROUNDED_RECT:y3t.CLOUD;case"((":return y3t.CIRCLE;case")":return y3t.CLOUD;case"))":return y3t.BANG;case"{{":return y3t.HEXAGON;default:return y3t.DEFAULT}},"getType"),x3t=me((t,e)=>{d3t[t]=e},"setElementForId"),b3t=me(t=>{var e,r;t&&(e=D(),r=h3t[h3t.length-1],t.icon&&(r.icon=_c(t.icon,e)),t.class)&&(r.class=_c(t.class,e))},"decorateNode"),w3t=me(t=>{switch(t){case y3t.DEFAULT:return"no-border";case y3t.RECT:return"rect";case y3t.ROUNDED_RECT:return"rounded-rect";case y3t.CIRCLE:return"circle";case y3t.CLOUD:return"cloud";case y3t.BANG:return"bang";case y3t.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),k3t=me(()=>M,"getLogger"),T3t=me(t=>d3t[t],"getElementById"),E3tLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U3t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I3t(t,e){var r,i,n,a,s=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(s)return i=!(r=!0),{s:me(function(){s=s.call(t)},"s"),n:me(function(){var t=s.next();return r=t.done,t},"n"),e:me(function(t){i=!0,n=t},"e"),f:me(function(){try{r||null==s.return||s.return()}finally{if(i)throw n}},"f")};if(Array.isArray(t)||(s=S3t(t))||e&&t&&"number"==typeof t.length)return s&&(t=s),a=0,{s:e=me(function(){},"F"),n:me(function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},"n"),e:me(function(t){throw t},"e"),f:e};throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q3t(t,e){var r,i,n,a,s=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(s)return i=!(r=!0),{s:me(function(){s=s.call(t)},"s"),n:me(function(){var t=s.next();return r=t.done,t},"n"),e:me(function(t){i=!0,n=t},"e"),f:me(function(){try{r||null==s.return||s.return()}finally{if(i)throw n}},"f")};if(Array.isArray(t)||(s=$3t(t))||e&&t&&"number"==typeof t.length)return s&&(t=s),a=0,{s:e=me(function(){},"F"),n:me(function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},"n"),e:me(function(t){throw t},"e"),f:e};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M3t(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function R3t(t,e){return t(e={exports:{}},e.exports),e.exports}function D3t(t){for(var e=t.length;e--&&cTt.test(t.charAt(e)););return e}function O3t(t){return t&&t.slice(0,hTt(t)+1).replace(uTt,"")}function P3t(t){var e=pTt.call(t,fTt),r=t[fTt];try{var i=!(t[fTt]=void 0)}catch{}var n=gTt.call(t);return i&&(e?t[fTt]=r:delete t[fTt]),n}function B3t(t){return yTt.call(t)}function F3t(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(bTt&&bTt in Object(t)?mTt:vTt)(t)}function $3t(t){return null!=t&&"object"==typeof t}function z3t(t){return"symbol"==typeof t||wTt(t)&&"[object Symbol]"==xTt(t)}function U3t(t){if("number"==typeof t)return t;if(kTt(t))return TTt;if(aTt(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=aTt(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=dTt(t);var e=_Tt.test(t);return e||CTt.test(t)?STt(t.slice(2),e?2:8):ETt.test(t)?TTt:+t}function G3t(i,r,t){var n,a,s,o,l,c,h=0,e=!1,u=!1,d=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function p(t){var e=n,r=a;return n=a=void 0,h=t,o=i.apply(r,e)}function g(t){return h=t,l=setTimeout(y,r),e?p(t):o}function f(t){var e=r-(t-c);return u?NTt(e,s-(t-h)):e}function m(t){var e=t-c;return void 0===c||r<=e||e<0||u&&s<=t-h}function y(){var t=lTt();if(m(t))return v(t);l=setTimeout(y,f(t))}function v(t){return l=void 0,d&&n?p(t):(n=a=void 0,o)}function b(){void 0!==l&&clearTimeout(l),n=c=a=l=void(h=0)}function x(){return void 0===l?o:v(lTt())}function w(){var t=lTt(),e=m(t);if(n=arguments,a=this,c=t,e){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,r),p(c)}return void 0===l&&(l=setTimeout(y,r)),o}return r=ATt(r)||0,aTt(t)&&(e=!!t.leading,u="maxWait"in t,s=u?LTt(ATt(t.maxWait)||0,r):s,d="trailing"in t?!!t.trailing:d),me(p,"invokeFunc"),me(g,"leadingEdge"),me(f,"remainingWait"),me(m,"shouldInvoke"),me(y,"timerExpired"),me(v,"trailingEdge"),me(b,"cancel"),me(x,"flush"),me(w,"debounced"),w.cancel=b,w.flush=x,w}function q3t(t,e,r,i,n,a){var s=_kt(t)?t:rEt[t]||rEt.euclidean;return 0===e&&_kt(t)?s(n,a):s(e,r,i,n,a)}function j3t(t,e){var r;return!GEt(t)&&(!("number"!=(r=typeof t)&&"symbol"!=r&&"boolean"!=r&&null!=t&&!kTt(t))||jEt.test(t)||!qEt.test(t)||null!=e&&t in Object(e))}function Y3t(t){return!!aTt(t)&&("[object Function]"==(t=xTt(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function W3t(t){return!!HEt&&HEt in t}function H3t(t){if(null!=t){try{return XEt.call(t)}catch{}try{return t+""}catch{}}return""}function V3t(t){return!(!aTt(t)||VEt(t))&&(WEt(t)?QEt:ZEt).test(KEt(t))}function X3t(t,e){return t?.[e]}function K3t(t,e){return t=t_t(t,e),JEt(t)?t:void 0}function Z3t(){this.__data__=r_t?r_t(null):{},this.size=0}function Q3t(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}function J3t(t){var e,r=this.__data__;return r_t?"__lodash_hash_undefined__"===(e=r[t])?void 0:e:i_t.call(r,t)?r[t]:void 0}function t6t(t){var e=this.__data__;return r_t?void 0!==e[t]:n_t.call(e,t)}function e6t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=r_t&&void 0===e?"__lodash_hash_undefined__":e,this}function r6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function i6t(){this.__data__=[],this.size=0}function n6t(t,e){return t===e||t!=t&&e!=e}function a6t(t,e){for(var r=t.length;r--;)if(s_t(t[r][0],e))return r;return-1}function s6t(t){var e=this.__data__;return!((t=o_t(e,t))<0||(t==e.length-1?e.pop():l_t.call(e,t,1),--this.size,0))}function o6t(t){var e=this.__data__;return(t=o_t(e,t))<0?void 0:e[t][1]}function l6t(t){return-1<o_t(this.__data__,t)}function c6t(t,e){var r=this.__data__,i=o_t(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function h6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function u6t(){this.size=0,this.__data__={hash:new a_t,map:new(h_t||c_t),string:new a_t}}function d6t(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function p6t(t,e){return t=t.__data__,u_t(e)?t["string"==typeof e?"string":"hash"]:t.map}function g6t(t){return t=d_t(this,t).delete(t),this.size-=t?1:0,t}function f6t(t){return d_t(this,t).get(t)}function m6t(t){return d_t(this,t).has(t)}function y6t(t,e){var r=d_t(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function v6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function b6t(i,n){if("function"!=typeof i||null!=n&&"function"!=typeof n)throw new TypeError(g_t);var a=me(function(){var t=arguments,e=n?n.apply(this,t):t[0],r=a.cache;return r.has(e)?r.get(e):(t=i.apply(this,t),a.cache=r.set(e,t)||r,t)},"memoized");return a.cache=new(b6t.Cache||p_t),a}function x6t(t){var e=(t=f_t(t,function(t){return 500===e.size&&e.clear(),t})).cache; Line truncated In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j3t(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function W3t(t,e){return t(e={exports:{}},e.exports),e.exports}function Y3t(t){for(var e=t.length;e--&&wTt.test(t.charAt(e)););return e}function H3t(t){return t&&t.slice(0,kTt(t)+1).replace(TTt,"")}function V3t(t){var e=CTt.call(t,STt),r=t[STt];try{var i=!(t[STt]=void 0)}catch{}var n=_Tt.call(t);return i&&(e?t[STt]=r:delete t[STt]),n}function X3t(t){return LTt.call(t)}function K3t(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(ITt&&ITt in Object(t)?ATt:NTt)(t)}function Z3t(t){return null!=t&&"object"==typeof t}function Q3t(t){return"symbol"==typeof t||MTt(t)&&"[object Symbol]"==RTt(t)}function J3t(t){if("number"==typeof t)return t;if(DTt(t))return OTt;if(yTt(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=yTt(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=ETt(t);var e=BTt.test(t);return e||FTt.test(t)?$Tt(t.slice(2),e?2:8):PTt.test(t)?OTt:+t}function t6t(i,r,t){var n,a,s,o,l,c,h=0,e=!1,u=!1,d=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function p(t){var e=n,r=a;return n=a=void 0,h=t,o=i.apply(r,e)}function g(t){return h=t,l=setTimeout(y,r),e?p(t):o}function f(t){var e=r-(t-c);return u?UTt(e,s-(t-h)):e}function m(t){var e=t-c;return void 0===c||r<=e||e<0||u&&s<=t-h}function y(){var t=bTt();if(m(t))return v(t);l=setTimeout(y,f(t))}function v(t){return l=void 0,d&&n?p(t):(n=a=void 0,o)}function x(){void 0!==l&&clearTimeout(l),n=c=a=l=void(h=0)}function b(){return void 0===l?o:v(bTt())}function w(){var t=bTt(),e=m(t);if(n=arguments,a=this,c=t,e){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,r),p(c)}return void 0===l&&(l=setTimeout(y,r)),o}return r=zTt(r)||0,yTt(t)&&(e=!!t.leading,u="maxWait"in t,s=u?GTt(zTt(t.maxWait)||0,r):s,d="trailing"in t?!!t.trailing:d),me(p,"invokeFunc"),me(g,"leadingEdge"),me(f,"remainingWait"),me(m,"shouldInvoke"),me(y,"timerExpired"),me(v,"trailingEdge"),me(x,"cancel"),me(b,"flush"),me(w,"debounced"),w.cancel=x,w.flush=b,w}function e6t(t,e,r,i,n,a){var s=Bkt(t)?t:gEt[t]||gEt.euclidean;return 0===e&&Bkt(t)?s(n,a):s(e,r,i,n,a)}function r6t(t,e){var r;return!tCt(t)&&(!("number"!=(r=typeof t)&&"symbol"!=r&&"boolean"!=r&&null!=t&&!DTt(t))||rCt.test(t)||!eCt.test(t)||null!=e&&t in Object(e))}function i6t(t){return!!yTt(t)&&("[object Function]"==(t=RTt(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function n6t(t){return!!aCt&&aCt in t}function a6t(t){if(null!=t){try{return oCt.call(t)}catch{}try{return t+""}catch{}}return""}function s6t(t){return!(!yTt(t)||sCt(t))&&(nCt(t)?hCt:cCt).test(lCt(t))}function o6t(t,e){return t?.[e]}function l6t(t,e){return t=dCt(t,e),uCt(t)?t:void 0}function c6t(){this.__data__=gCt?gCt(null):{},this.size=0}function h6t(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}function u6t(t){var e,r=this.__data__;return gCt?"__lodash_hash_undefined__"===(e=r[t])?void 0:e:fCt.call(r,t)?r[t]:void 0}function d6t(t){var e=this.__data__;return gCt?void 0!==e[t]:mCt.call(e,t)}function p6t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gCt&&void 0===e?"__lodash_hash_undefined__":e,this}function g6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function f6t(){this.__data__=[],this.size=0}function m6t(t,e){return t===e||t!=t&&e!=e}function y6t(t,e){for(var r=t.length;r--;)if(vCt(t[r][0],e))return r;return-1}function v6t(t){var e=this.__data__;return!((t=xCt(e,t))<0||(t==e.length-1?e.pop():bCt.call(e,t,1),--this.size,0))}function x6t(t){var e=this.__data__;return(t=xCt(e,t))<0?void 0:e[t][1]}function b6t(t){return-1<xCt(this.__data__,t)}function w6t(t,e){var r=this.__data__,i=xCt(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function k6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function T6t(){this.size=0,this.__data__={hash:new yCt,map:new(kCt||wCt),string:new yCt}}function E6t(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function C6t(t,e){return t=t.__data__,TCt(e)?t["string"==typeof e?"string":"hash"]:t.map}function _6t(t){return t=ECt(this,t).delete(t),this.size-=t?1:0,t}function S6t(t){return ECt(this,t).get(t)}function A6t(t){return ECt(this,t).has(t)}function L6t(t,e){var r=ECt(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function N6t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function I6t(i,n){if("function"!=typeof i||null!=n&&"function"!=typeof n)throw new TypeError(_Ct);var a=me(function(){var t=arguments,e=n?n.apply(this,t):t[0],r=a.cache;return r.has(e)?r.get(e):(t=i.apply(this,t),a.cache=r.set(e,t)||r,t)},"memoized");return a.cache=new(I6t.Cache||CCt),a}function R6t(t){var e=(t=SCt(t,function(t){return 500===e.size&&e.clear(),t})).cache; Line truncated
`),l=t.pstyle("text-max-width").pfValue,c="anywhere"===t.pstyle("text-overflow-wrap").value,h=[],u=/[\s\u200b]+|$/g,d=0;d<o.length;d++){var p=o[d],g=this.calculateLabelDimensions(t,p).width;if(c&&(p=p.split("").join("​")),l<g){var f,m="",y=0,v=I3t(p.matchAll(u));try{for(v.s();!(f=v.n()).done;){var b=f.value,x=b[0],w=p.substring(y,b.index),y=b.index+x.length,k=0===m.length?w:m+w+x;this.calculateLabelDimensions(t,k).width<=l?m+=w+x:(m&&h.push(m),m=w+x)}}catch(t){v.e(t)}finally{v.f()}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(p)}a("labelWrapCachedLines",h),e=a("labelWrapCachedText",h.join(` `),l=t.pstyle("text-max-width").pfValue,c="anywhere"===t.pstyle("text-overflow-wrap").value,h=[],u=/[\s\u200b]+|$/g,d=0;d<o.length;d++){var p=o[d],g=this.calculateLabelDimensions(t,p).width;if(c&&(p=p.split("").join("​")),l<g){var f,m="",y=0,v=q3t(p.matchAll(u));try{for(v.s();!(f=v.n()).done;){var x=f.value,b=x[0],w=p.substring(y,x.index),y=x.index+b.length,k=0===m.length?w:m+w+b;this.calculateLabelDimensions(t,k).width<=l?m+=w+b:(m&&h.push(m),m=w+b)}}catch(t){v.e(t)}finally{v.f()}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(p)}a("labelWrapCachedLines",h),e=a("labelWrapCachedText",h.join(`
`)),a("labelWrapKey",s)}else if("ellipsis"===n){var T=t.pstyle("text-max-width").pfValue,E="",_=!1;if(this.calculateLabelDimensions(t,e).width<T)return e;for(var C=0;C<e.length&&!(T<this.calculateLabelDimensions(t,E+e[C]+"…").width);C++)E+=e[C],C===e.length-1&&(_=!0);return _||(E+="…"),E}return e},Q.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},Q.calculateLabelDimensions=function(t,e){var r=this.cy.window().document,i=jTt(e,t._private.labelDimsKey),n=this.labelDimCache||(this.labelDimCache=[]);if(null!=(a=n[i]))return a;var a=t.pstyle("font-style").strValue,s=t.pstyle("font-size").pfValue,o=t.pstyle("font-family").strValue,t=t.pstyle("font-weight").strValue,l=this.labelCalcCanvas,c=this.labelCalcCanvasContext;l||(l=this.labelCalcCanvas=r.createElement("canvas"),c=this.labelCalcCanvasContext=l.getContext("2d"),(r=l.style).position="absolute",r.left="-9999px",r.top="-9999px",r.zIndex="-1",r.visibility="hidden",r.pointerEvents="none"),c.font="".concat(a," ").concat(t," ").concat(s,"px ").concat(o);for(var h=0,u=0,d=e.split(` `)),a("labelWrapKey",s)}else if("ellipsis"===n){var T=t.pstyle("text-max-width").pfValue,E="",C=!1;if(this.calculateLabelDimensions(t,e).width<T)return e;for(var _=0;_<e.length&&!(T<this.calculateLabelDimensions(t,E+e[_]+"…").width);_++)E+=e[_],_===e.length-1&&(C=!0);return C||(E+="…"),E}return e},Q.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},Q.calculateLabelDimensions=function(t,e){var r=this.cy.window().document,i=r7t(e,t._private.labelDimsKey),n=this.labelDimCache||(this.labelDimCache=[]);if(null!=(a=n[i]))return a;var a=t.pstyle("font-style").strValue,s=t.pstyle("font-size").pfValue,o=t.pstyle("font-family").strValue,t=t.pstyle("font-weight").strValue,l=this.labelCalcCanvas,c=this.labelCalcCanvasContext;l||(l=this.labelCalcCanvas=r.createElement("canvas"),c=this.labelCalcCanvasContext=l.getContext("2d"),(r=l.style).position="absolute",r.left="-9999px",r.top="-9999px",r.zIndex="-1",r.visibility="hidden",r.pointerEvents="none"),c.font="".concat(a," ").concat(t," ").concat(s,"px ").concat(o);for(var h=0,u=0,d=e.split(`
`),p=0;p<d.length;p++){var g=d[p],g=c.measureText(g),g=Math.ceil(g.width),f=s,h=Math.max(g,h);u+=f}return n[i]={width:h+=0,height:u+=0}},Q.calculateLabelAngle=function(t,e){var r=t._private.rscratch,i=t.isEdge();return"none"===(e=(t=t.pstyle((e?e+"-":"")+"text-rotation")).strValue)?0:i&&"autorotate"===e?r.labelAutoAngle:"autorotate"===e?0:t.pfValue},QSt=!(Q.calculateLabelAngles=function(t){var e=t.isEdge(),r=t._private.rscratch;r.labelAngle=this.calculateLabelAngle(t),e&&(r.sourceLabelAngle=this.calculateLabelAngle(t,"source"),r.targetLabelAngle=this.calculateLabelAngle(t,"target"))}),JSt={},[bAt,xAt,wAt,kAt,TAt,Q,{getNodeShape:function(t){var e=t.pstyle("shape").value;return"cutrectangle"===e&&(t.width()<28||t.height()<28)?(QSt||(i7t("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),QSt=!0),"rectangle"):t.isParent()?"rectangle"===e||"roundrectangle"===e||"round-rectangle"===e||"cutrectangle"===e||"cut-rectangle"===e||"barrel"===e?e:"rectangle":"polygon"===e?(t=t.pstyle("shape-polygon-points").value,this.nodeShapes.makePolygon(t).name):e}},{registerCalculationListeners:function(){var s=this.cy,o=s.collection(),l=this,c=me(function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(o.merge(t),e)for(var r=0;r<t.length;r++){var i=t[r]._private.rstyle;i.clean=!1,i.cleanConnected=!1}},"enqueue"),t=(l.binder(s).on("bounds.* dirty.*",me(function(t){t=t.target,c(t)},"onDirtyBounds")).on("style.* background.*",me(function(t){t=t.target,c(t,!1)},"onDirtyStyle")),me(function(t){if(t){var e=l.onUpdateEleCalcsFns;o.cleanStyle();for(var r=0;r<o.length;r++){var i=o[r],n=i._private.rstyle;i.isNode()&&!n.cleanConnected&&(c(i.connectedEdges()),n.cleanConnected=!0)}if(e)for(var a=0;a<e.length;a++)(0,e[a])(t,o);l.recalculateRenderedStyle(o),o=s.collection()}},"updateEleCalcs"));l.flushRenderedStyleQueue=function(){t(!0)},l.beforeRender(t,l.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(t){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(t)},recalculateRenderedStyle:function(t,e){var r=me(function(t){return t._private.rstyle.cleanConnected},"isCleanConnected"),i=[],n=[];if(!this.destroyed){void 0===e&&(e=!0);for(var a=0;a<t.length;a++){var s=t[a],o=s._private,l=o.rstyle;!s.isEdge()||r(s.source())&&r(s.target())||(l.clean=!1),e&&l.clean||s.removed()||"none"===s.pstyle("display").value||(("nodes"===o.group?n:i).push(s),l.clean=!0)}for(var c=0;c<n.length;c++){var h=n[c],u=h._private.rstyle,d=h.position();this.recalculateNodeLabelProjection(h),u.nodeX=d.x,u.nodeY=d.y,u.nodeW=h.pstyle("width").pfValue,u.nodeH=h.pstyle("height").pfValue}this.recalculateEdgeProjections(i);for(var p=0;p<i.length;p++){var g=i[p]._private,f=g.rstyle;f.srcX=(g=g.rscratch).arrowStartX,f.srcY=g.arrowStartY,f.tgtX=g.arrowEndX,f.tgtY=g.arrowEndY,f.midX=g.midX,f.midY=g.midY,f.labelAngle=g.labelAngle,f.sourceLabelAngle=g.sourceLabelAngle,f.targetLabelAngle=g.targetLabelAngle}}}},{updateCachedGrabbedEles:function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var i=(n=t[r])._private.rscratch;(n.grabbed()&&!n.isParent()?e:i.inDragLayer?t.drag:t.nondrag).push(n)}for(r=0;r<e.length;r++){var n=e[r];t.drag.push(n)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(t){var e;return t||!this.cachedZSortedEles?((e=this.cy.mutableElements().toArray()).sort(OCt),e.interactive=e.filter(function(t){return t.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()):e=this.cachedZSortedEles,e}}].forEach(function(t){Kkt(JSt,t)}),OAt={getCachedImage:function(t,e,r){var i,n=this.imageCache=this.imageCache||{},a=n[t];return a?(a.image.complete||a.image.addEventListener("load",r),a.image):((i=(a=n[t]=n[t]||{}).image=new Image).addEventListener("load",r),i.addEventListener("error",function(){i.error=!0}),"data:"!==t.substring(0,"data:".length).toLowerCase()&&(i.crossOrigin=e="null"===e?null:e),i.src=t,i)}},GAt={registerBinding:function(t,e,r,i){var n=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(t)){for(var a=[],s=0;s<t.length;s++){var o,l=t[s];void 0!==l&&(o=this.binder(l),a.push(o.on.apply(o,n)))}return a}return(o=this.binder(t)).on.apply(o,n)},binder:function(n){var a=this,t=a.cy.window(),s=n===t||n===t.document||n===t.document.body||Fkt(n);if(null==a.supportsPassiveEvents){var e=!1;try{var r=Object.defineProperty({},"passive",{get:me(function(){return e=!0},"get")});t.addEventListener("test",null,r)}catch{}a.supportsPassiveEvents=e}return{on:t=me(function(t,e,r){var i=Array.prototype.slice.call(arguments);return s&&a.supportsPassiveEvents&&(i[2]={capture:r??!1,passive:!1,once:!1}),a.bindings.push({target:n,args:i}),(n.addEventListener||n.on).apply(n,i),this},"on"),addEventListener:t,addListener:t,bind:t}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()},load:func Line truncated `),p=0;p<d.length;p++){var g=d[p],g=c.measureText(g),g=Math.ceil(g.width),f=s,h=Math.max(g,h);u+=f}return n[i]={width:h+=0,height:u+=0}},Q.calculateLabelAngle=function(t,e){var r=t._private.rscratch,i=t.isEdge();return"none"===(e=(t=t.pstyle((e?e+"-":"")+"text-rotation")).strValue)?0:i&&"autorotate"===e?r.labelAutoAngle:"autorotate"===e?0:t.pfValue},hAt=!(Q.calculateLabelAngles=function(t){var e=t.isEdge(),r=t._private.rscratch;r.labelAngle=this.calculateLabelAngle(t),e&&(r.sourceLabelAngle=this.calculateLabelAngle(t,"source"),r.targetLabelAngle=this.calculateLabelAngle(t,"target"))}),uAt={},[IAt,RAt,MAt,DAt,OAt,Q,{getNodeShape:function(t){var e=t.pstyle("shape").value;return"cutrectangle"===e&&(t.width()<28||t.height()<28)?(hAt||(f7t("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),hAt=!0),"rectangle"):t.isParent()?"rectangle"===e||"roundrectangle"===e||"round-rectangle"===e||"cutrectangle"===e||"cut-rectangle"===e||"barrel"===e?e:"rectangle":"polygon"===e?(t=t.pstyle("shape-polygon-points").value,this.nodeShapes.makePolygon(t).name):e}},{registerCalculationListeners:function(){var s=this.cy,o=s.collection(),l=this,c=me(function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(o.merge(t),e)for(var r=0;r<t.length;r++){var i=t[r]._private.rstyle;i.clean=!1,i.cleanConnected=!1}},"enqueue"),t=(l.binder(s).on("bounds.* dirty.*",me(function(t){t=t.target,c(t)},"onDirtyBounds")).on("style.* background.*",me(function(t){t=t.target,c(t,!1)},"onDirtyStyle")),me(function(t){if(t){var e=l.onUpdateEleCalcsFns;o.cleanStyle();for(var r=0;r<o.length;r++){var i=o[r],n=i._private.rstyle;i.isNode()&&!n.cleanConnected&&(c(i.connectedEdges()),n.cleanConnected=!0)}if(e)for(var a=0;a<e.length;a++)(0,e[a])(t,o);l.recalculateRenderedStyle(o),o=s.collection()}},"updateEleCalcs"));l.flushRenderedStyleQueue=function(){t(!0)},l.beforeRender(t,l.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(t){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(t)},recalculateRenderedStyle:function(t,e){var r=me(function(t){return t._private.rstyle.cleanConnected},"isCleanConnected"),i=[],n=[];if(!this.destroyed){void 0===e&&(e=!0);for(var a=0;a<t.length;a++){var s=t[a],o=s._private,l=o.rstyle;!s.isEdge()||r(s.source())&&r(s.target())||(l.clean=!1),e&&l.clean||s.removed()||"none"===s.pstyle("display").value||(("nodes"===o.group?n:i).push(s),l.clean=!0)}for(var c=0;c<n.length;c++){var h=n[c],u=h._private.rstyle,d=h.position();this.recalculateNodeLabelProjection(h),u.nodeX=d.x,u.nodeY=d.y,u.nodeW=h.pstyle("width").pfValue,u.nodeH=h.pstyle("height").pfValue}this.recalculateEdgeProjections(i);for(var p=0;p<i.length;p++){var g=i[p]._private,f=g.rstyle;f.srcX=(g=g.rscratch).arrowStartX,f.srcY=g.arrowStartY,f.tgtX=g.arrowEndX,f.tgtY=g.arrowEndY,f.midX=g.midX,f.midY=g.midY,f.labelAngle=g.labelAngle,f.sourceLabelAngle=g.sourceLabelAngle,f.targetLabelAngle=g.targetLabelAngle}}}},{updateCachedGrabbedEles:function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var i=(n=t[r])._private.rscratch;(n.grabbed()&&!n.isParent()?e:i.inDragLayer?t.drag:t.nondrag).push(n)}for(r=0;r<e.length;r++){var n=e[r];t.drag.push(n)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(t){var e;return t||!this.cachedZSortedEles?((e=this.cy.mutableElements().toArray()).sort(H_t),e.interactive=e.filter(function(t){return t.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()):e=this.cachedZSortedEles,e}}].forEach(function(t){lTt(uAt,t)}),HAt={getCachedImage:function(t,e,r){var i,n=this.imageCache=this.imageCache||{},a=n[t];return a?(a.image.complete||a.image.addEventListener("load",r),a.image):((i=(a=n[t]=n[t]||{}).image=new Image).addEventListener("load",r),i.addEventListener("error",function(){i.error=!0}),"data:"!==t.substring(0,"data:".length).toLowerCase()&&(i.crossOrigin=e="null"===e?null:e),i.src=t,i)}},t9t={registerBinding:function(t,e,r,i){var n=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(t)){for(var a=[],s=0;s<t.length;s++){var o,l=t[s];void 0!==l&&(o=this.binder(l),a.push(o.on.apply(o,n)))}return a}return(o=this.binder(t)).on.apply(o,n)},binder:function(n){var a=this,t=a.cy.window(),s=n===t||n===t.document||n===t.document.body||Kkt(n);if(null==a.supportsPassiveEvents){var e=!1;try{var r=Object.defineProperty({},"passive",{get:me(function(){return e=!0},"get")});t.addEventListener("test",null,r)}catch{}a.supportsPassiveEvents=e}return{on:t=me(function(t,e,r){var i=Array.prototype.slice.call(arguments);return s&&a.supportsPassiveEvents&&(i[2]={capture:r??!1,passive:!1,once:!1}),a.bindings.push({target:n,args:i}),(n.addEventListener||n.on).apply(n,i),this},"on"),addEventListener:t,addListener:t,bind:t}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()},load:func Line truncated
precision highp float; precision highp float;
uniform mat3 uPanZoomMatrix; uniform mat3 uPanZoomMatrix;
@@ -2115,7 +2115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
vIndex = aIndex; vIndex = aIndex;
vVertType = aVertType; vVertType = aVertType;
} }
`),i=this.atlasManager.getIndexArray(),n=Awt(e,r,`#version 300 es `),i=this.atlasManager.getIndexArray(),n=zwt(e,r,`#version 300 es
precision highp float; precision highp float;
// define texture unit for each node in the batch // define texture unit for each node in the batch
@@ -2147,7 +2147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
`).concat(t.picking?`if(outColor.a == 0.0) discard; `).concat(t.picking?`if(outColor.a == 0.0) discard;
else outColor = vIndex;`:"",` else outColor = vIndex;`:"",`
} }
`));n.aPosition=e.getAttribLocation(n,"aPosition"),n.aIndex=e.getAttribLocation(n,"aIndex"),n.aVertType=e.getAttribLocation(n,"aVertType"),n.aAtlasId=e.getAttribLocation(n,"aAtlasId"),n.aTex1=e.getAttribLocation(n,"aTex1"),n.aTex2=e.getAttribLocation(n,"aTex2"),n.aScaleRotate1=e.getAttribLocation(n,"aScaleRotate1"),n.aTranslate1=e.getAttribLocation(n,"aTranslate1"),n.aScaleRotate2=e.getAttribLocation(n,"aScaleRotate2"),n.aTranslate2=e.getAttribLocation(n,"aTranslate2"),n.aPointAPointB=e.getAttribLocation(n,"aPointAPointB"),n.aPointCPointD=e.getAttribLocation(n,"aPointCPointD"),n.aLineWidth=e.getAttribLocation(n,"aLineWidth"),n.aEdgeColor=e.getAttribLocation(n,"aEdgeColor"),n.uPanZoomMatrix=e.getUniformLocation(n,"uPanZoomMatrix"),n.uAtlasSize=e.getUniformLocation(n,"uAtlasSize"),n.uBGColor=e.getUniformLocation(n,"uBGColor"),n.uTextures=[];for(var a=0;a<this.atlasManager.maxAtlases;a++)n.uTextures.push(e.getUniformLocation(n,"uTexture".concat(a)));return n},"createShaderProgram")},{key:"createVAO",value:me(function(){var t=[].concat(t=[0,0,1,0,1,1,0,0,1,1,0,1],t),e=(this.vertexCount=t.length/2,this.maxInstances),r=this.gl,i=this.program,n=r.createVertexArray();return r.bindVertexArray(n),$wt(r,"vec2",i.aPosition,t),this.indexBuffer=zwt(r,e,"vec4",i.aIndex),this.vertTypeBuffer=zwt(r,e,"int",i.aVertType),this.atlasIdBuffer=zwt(r,e,"int",i.aAtlasId),this.tex1Buffer=zwt(r,e,"vec4",i.aTex1),this.tex2Buffer=zwt(r,e,"vec4",i.aTex2),this.scaleRotate1Buffer=zwt(r,e,"vec4",i.aScaleRotate1),this.translate1Buffer=zwt(r,e,"vec2",i.aTranslate1),this.scaleRotate2Buffer=zwt(r,e,"vec4",i.aScaleRotate2),this.translate2Buffer=zwt(r,e,"vec2",i.aTranslate2),this.pointAPointBBuffer=zwt(r,e,"vec4",i.aPointAPointB),this.pointCPointDBuffer=zwt(r,e,"vec4",i.aPointCPointD),this.lineWidthBuffer=zwt(r,e,"float",i.aLineWidth),this.edgeColorBuffer=zwt(r,e,"vec4",i.aEdgeColor),r.bindVertexArray(null),n},"createVAO")},{key:"buffers",get:me(function(){var e=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(t){return t.endsWith("Buffer")}).map(function(t){return e[t]})),this._buffers},"get")},{key:"startFrame",value:me(function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:SAt.SCREEN;this.panZoomMatrix=t,this.debugInfo=e,this.renderTarget=r,this.startBatch()},"startFrame")},{key:"startBatch",value:me(function(){this.instanceCount=0,this.atlasManager.startBatch()},"startBatch")},{key:"endFrame",value:me(function(){this.endBatch()},"endFrame")},{key:"getTempMatrix",value:me(function(){return this.tempMatrix=this.tempMatrix||Gwt()},"getTempMatrix")},{key:"drawTexture",value:me(function(t,e,r){var i=this.atlasManager;if(i.isRenderable(t,r)){i.canAddToCurrentBatch(t,r)||this.endBatch();var n=this.instanceCount,a=(this.vertTypeBuffer.getView(n)[0]=0,Rwt(e,this.indexBuffer.getView(n)),i.getAtlasInfo(t,r,a)),e=a.atlasID,r=a.tex1,s=a.tex2;this.atlasIdBuffer.getView(n)[0]=e,(e=this.tex1Buffer.getView(n))[0]=r.x,e[1]=r.y,e[2]=r.w,e[3]=r.h,(e=this.tex2Buffer.getView(n))[0]=s.x,e[1]=s.y,e[2]=s.w,e[3]=s.h;for(var o=this.getTempMatrix(),l=0,c=[1,2];l<c.length;l++){var h=c[l],u=(i.setTransformMatrix(o,a,t,1===h),this["scaleRotate".concat(h,"Buffer")].getView(n));u[0]=o[0],u[1]=o[1],u[2]=o[3],u[3]=o[4],(u=this["translate".concat(h,"Buffer")].getView(n))[0]=o[6],u[1]=o[7]}this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawTexture")},{key:"drawEdgeArrow",value:me(function(t,e,r){var i,n,a,s,o=t._private.rscratch,o="source"===r?(n=o.arrowStartX,a=o.arrowStartY,o.srcArrowAngle):(n=o.arrowEndX,a=o.arrowEndY,o.tgtArrowAngle);isNaN(n)||null==n||isNaN(a)||null==a||isNaN(o)||null==o||"none"!==t.pstyle(r+"-arrow-shape").value&&(r=t.pstyle(r+"-arrow-color").value,i=t.pstyle("opacity").value*t.pstyle("line-opacity").value,s=t.pstyle("width").pfValue,t=t.pstyle("arrow-scale").value,s=this.r.getArrowWidth(s,t),qwt(t=this.getTempMatrix()),Ywt(t,t,[n,a]),Hwt(t,t,[s,s]),Wwt(t,t,o),n=this.instanceCount,this.vertTypeBuffer.getView(n)[0]=3,Rwt(e,this.indexBuffer.getView(n)),Mwt(r,i,this.edgeColorBuffer.getView(n)),(a=this.scaleRotate1Buffer.getView(n))[0]=t[0],a[1]=t[1],a[2]=t[3],a[3]=t[4],(s=this.translate1Buffer.getView(n))[0]=t[6],s[1]=t[7],this.instanceCount++,this.instanceCount>=this.maxInstances)&&this.endBatch()},"drawEdgeArrow")},{key:"drawEdgeLine",value:me(function(t,e){var r=t.pstyle("opacity").value,i=t.pstyle("line-opacity").value,n=t.pstyle("width").pfValue,a=t.pstyle("line-color").value,s=r*i,o=this.getEdgePoints(t);if(o.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==o.length)r=this.instanceCount,this.vertTypeBuffer.getView(r)[0]=1,Rwt(e,this.indexBuffer.getView(r)),Mwt(a,s,this.edgeColorBuffer.getView(r)),this.lineWidthBuffer.getView(r)[0]=n,(i=this.pointAPointBBuffer.getView(r))[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch();else for(var l=0;l<o.length-2;l+=2){var c=this.instanceCount,h=(this.ver Line truncated `));n.aPosition=e.getAttribLocation(n,"aPosition"),n.aIndex=e.getAttribLocation(n,"aIndex"),n.aVertType=e.getAttribLocation(n,"aVertType"),n.aAtlasId=e.getAttribLocation(n,"aAtlasId"),n.aTex1=e.getAttribLocation(n,"aTex1"),n.aTex2=e.getAttribLocation(n,"aTex2"),n.aScaleRotate1=e.getAttribLocation(n,"aScaleRotate1"),n.aTranslate1=e.getAttribLocation(n,"aTranslate1"),n.aScaleRotate2=e.getAttribLocation(n,"aScaleRotate2"),n.aTranslate2=e.getAttribLocation(n,"aTranslate2"),n.aPointAPointB=e.getAttribLocation(n,"aPointAPointB"),n.aPointCPointD=e.getAttribLocation(n,"aPointCPointD"),n.aLineWidth=e.getAttribLocation(n,"aLineWidth"),n.aEdgeColor=e.getAttribLocation(n,"aEdgeColor"),n.uPanZoomMatrix=e.getUniformLocation(n,"uPanZoomMatrix"),n.uAtlasSize=e.getUniformLocation(n,"uAtlasSize"),n.uBGColor=e.getUniformLocation(n,"uBGColor"),n.uTextures=[];for(var a=0;a<this.atlasManager.maxAtlases;a++)n.uTextures.push(e.getUniformLocation(n,"uTexture".concat(a)));return n},"createShaderProgram")},{key:"createVAO",value:me(function(){var t=[].concat(t=[0,0,1,0,1,1,0,0,1,1,0,1],t),e=(this.vertexCount=t.length/2,this.maxInstances),r=this.gl,i=this.program,n=r.createVertexArray();return r.bindVertexArray(n),Zwt(r,"vec2",i.aPosition,t),this.indexBuffer=Qwt(r,e,"vec4",i.aIndex),this.vertTypeBuffer=Qwt(r,e,"int",i.aVertType),this.atlasIdBuffer=Qwt(r,e,"int",i.aAtlasId),this.tex1Buffer=Qwt(r,e,"vec4",i.aTex1),this.tex2Buffer=Qwt(r,e,"vec4",i.aTex2),this.scaleRotate1Buffer=Qwt(r,e,"vec4",i.aScaleRotate1),this.translate1Buffer=Qwt(r,e,"vec2",i.aTranslate1),this.scaleRotate2Buffer=Qwt(r,e,"vec4",i.aScaleRotate2),this.translate2Buffer=Qwt(r,e,"vec2",i.aTranslate2),this.pointAPointBBuffer=Qwt(r,e,"vec4",i.aPointAPointB),this.pointCPointDBuffer=Qwt(r,e,"vec4",i.aPointCPointD),this.lineWidthBuffer=Qwt(r,e,"float",i.aLineWidth),this.edgeColorBuffer=Qwt(r,e,"vec4",i.aEdgeColor),r.bindVertexArray(null),n},"createVAO")},{key:"buffers",get:me(function(){var e=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(t){return t.endsWith("Buffer")}).map(function(t){return e[t]})),this._buffers},"get")},{key:"startFrame",value:me(function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:$At.SCREEN;this.panZoomMatrix=t,this.debugInfo=e,this.renderTarget=r,this.startBatch()},"startFrame")},{key:"startBatch",value:me(function(){this.instanceCount=0,this.atlasManager.startBatch()},"startBatch")},{key:"endFrame",value:me(function(){this.endBatch()},"endFrame")},{key:"getTempMatrix",value:me(function(){return this.tempMatrix=this.tempMatrix||tkt()},"getTempMatrix")},{key:"drawTexture",value:me(function(t,e,r){var i=this.atlasManager;if(i.isRenderable(t,r)){i.canAddToCurrentBatch(t,r)||this.endBatch();var n=this.instanceCount,a=(this.vertTypeBuffer.getView(n)[0]=0,Wwt(e,this.indexBuffer.getView(n)),i.getAtlasInfo(t,r,a)),e=a.atlasID,r=a.tex1,s=a.tex2;this.atlasIdBuffer.getView(n)[0]=e,(e=this.tex1Buffer.getView(n))[0]=r.x,e[1]=r.y,e[2]=r.w,e[3]=r.h,(e=this.tex2Buffer.getView(n))[0]=s.x,e[1]=s.y,e[2]=s.w,e[3]=s.h;for(var o=this.getTempMatrix(),l=0,c=[1,2];l<c.length;l++){var h=c[l],u=(i.setTransformMatrix(o,a,t,1===h),this["scaleRotate".concat(h,"Buffer")].getView(n));u[0]=o[0],u[1]=o[1],u[2]=o[3],u[3]=o[4],(u=this["translate".concat(h,"Buffer")].getView(n))[0]=o[6],u[1]=o[7]}this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawTexture")},{key:"drawEdgeArrow",value:me(function(t,e,r){var i,n,a,s,o=t._private.rscratch,o="source"===r?(n=o.arrowStartX,a=o.arrowStartY,o.srcArrowAngle):(n=o.arrowEndX,a=o.arrowEndY,o.tgtArrowAngle);isNaN(n)||null==n||isNaN(a)||null==a||isNaN(o)||null==o||"none"!==t.pstyle(r+"-arrow-shape").value&&(r=t.pstyle(r+"-arrow-color").value,i=t.pstyle("opacity").value*t.pstyle("line-opacity").value,s=t.pstyle("width").pfValue,t=t.pstyle("arrow-scale").value,s=this.r.getArrowWidth(s,t),ekt(t=this.getTempMatrix()),ikt(t,t,[n,a]),akt(t,t,[s,s]),nkt(t,t,o),n=this.instanceCount,this.vertTypeBuffer.getView(n)[0]=3,Wwt(e,this.indexBuffer.getView(n)),jwt(r,i,this.edgeColorBuffer.getView(n)),(a=this.scaleRotate1Buffer.getView(n))[0]=t[0],a[1]=t[1],a[2]=t[3],a[3]=t[4],(s=this.translate1Buffer.getView(n))[0]=t[6],s[1]=t[7],this.instanceCount++,this.instanceCount>=this.maxInstances)&&this.endBatch()},"drawEdgeArrow")},{key:"drawEdgeLine",value:me(function(t,e){var r=t.pstyle("opacity").value,i=t.pstyle("line-opacity").value,n=t.pstyle("width").pfValue,a=t.pstyle("line-color").value,s=r*i,o=this.getEdgePoints(t);if(o.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==o.length)r=this.instanceCount,this.vertTypeBuffer.getView(r)[0]=1,Wwt(e,this.indexBuffer.getView(r)),jwt(a,s,this.edgeColorBuffer.getView(r)),this.lineWidthBuffer.getView(r)[0]=n,(i=this.pointAPointBBuffer.getView(r))[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch();else for(var l=0;l<o.length-2;l+=2){var c=this.instanceCount,h=(this.ver Line truncated
a${o},${o} 1 0,1 ${.4*i},${-1*i*.1} a${o},${o} 1 0,1 ${.4*i},${-1*i*.1}
a${s},${s} 1 0,1 ${.35*i},${.2*+i} a${s},${s} 1 0,1 ${.35*i},${.2*+i}
@@ -2161,7 +2161,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
a${a},${a} 1 0,1 ${-1*i*.1},${-1*n*.35} a${a},${a} 1 0,1 ${-1*i*.1},${-1*n*.35}
a${l},${l} 1 0,1 ${.1*i},${-1*n*.65} a${l},${l} 1 0,1 ${.1*i},${-1*n*.65}
H0 V0 Z`)},"cloudBkg"),o9t=me(function(t,e,r){var i=r.width,n=r.height,a=.15*i;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 1 0,0 ${.25*i},${-1*n*.1} H0 V0 Z`)},"cloudBkg"),x9t=me(function(t,e,r){var i=r.width,n=r.height,a=.15*i;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 1 0,0 ${.25*i},${-1*n*.1}
a${a},${a} 1 0,0 ${.25*i},0 a${a},${a} 1 0,0 ${.25*i},0
a${a},${a} 1 0,0 ${.25*i},0 a${a},${a} 1 0,0 ${.25*i},0
a${a},${a} 1 0,0 ${.25*i},${.1*+n} a${a},${a} 1 0,0 ${.25*i},${.1*+n}
@@ -2179,9 +2179,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
a${.8*a},${.8*a} 1 0,0 0,${-1*n*.34} a${.8*a},${.8*a} 1 0,0 0,${-1*n*.34}
a${a},${a} 1 0,0 ${.1*i},${-1*n*.33} a${a},${a} 1 0,0 ${.1*i},${-1*n*.33}
H0 V0 Z`)},"bangBkg"),l9t=me(function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)},"circleBkg"),me(i9t,"insertPolygonShape"),c9t=me(function(t,e,r){var i=r.height,n=i/4,a=r.width-r.padding+2*n;i9t(e,a,i,[{x:n,y:0},{x:a-n,y:0},{x:a,y:-i/2},{x:a-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}],r)},"hexagonBkg"),h9t=me(function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},"roundedRectBkg"),u9t=me(async function(t,e,r,i,n){var a=n.htmlLabels,s=i%11,i=e.append("g");let o="section-"+(r.section=s);s<0&&(o+=" section-root"),i.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+o);var l=i.append("g"),e=i.append("g"),c=r.descr.replace(/(<br\/*>)/g,` H0 V0 Z`)},"bangBkg"),b9t=me(function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)},"circleBkg"),me(f9t,"insertPolygonShape"),w9t=me(function(t,e,r){var i=r.height,n=i/4,a=r.width-r.padding+2*n;f9t(e,a,i,[{x:n,y:0},{x:a-n,y:0},{x:a,y:-i/2},{x:a-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}],r)},"hexagonBkg"),k9t=me(function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},"roundedRectBkg"),T9t=me(async function(t,e,r,i,n){var a=n.htmlLabels,s=i%11,i=e.append("g");let o="section-"+(r.section=s);s<0&&(o+=" section-root"),i.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+o);var l=i.append("g"),e=i.append("g"),c=r.descr.replace(/(<br\/*>)/g,`
`),c=(await j9(e,c,{useHtmlLabels:a,width:r.width,classes:"mindmap-node-label"},n),a||e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.node().getBBox()),[n]=YE(n.fontSize);switch(r.height=c.height+1.1*n*.5+r.padding,r.width=c.width+2*r.padding,r.icon?r.type===t.nodeType.CIRCLE?(r.height+=50,r.width+=50,i.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),e.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")")):(r.width+=50,n=r.height,r.height=Math.max(n,60),n=Math.abs(r.height-n),i.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),e.attr("transform","translate("+(25+r.width/2)+", "+(n/2+r.padding/2)+")")):a?(n=(r.width-c.width)/2,a=(r.height-c.height)/2,e.attr("transform","translate("+n+", "+a+")")):(c=r.width/2,e.attr("transform","translate("+c+", "+r.padding/2+")")),r.type){case t.nodeType.DEFAULT:n9t(t,l,r,s);break;case t.nodeType.ROUNDED_RECT:h9t(t,l,r,s);break;case t.nodeType.RECT:a9t(t,l,r,s);break;case t.nodeType.CIRCLE:l.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),l9t(t,l,r,s);break;case t.nodeType.CLOUD:s9t(t,l,r,s);break;case t.nodeType.BANG:o9t(t,l,r,s);break;case t.nodeType.HEXAGON:c9t(t,l,r,s)}return t.setElementForId(r.id,i),r.height},"drawNode"),d9t=me(function(t,e){var t=t.getElementById(e.id),r=e.x||0;t.attr("transform","translate("+r+","+(e.y||0)+")")},"positionNode")});async function g9t(r,i,t,n,a){await u9t(r,i,t,n,a),t.children&&await Promise.all(t.children.map((t,e)=>g9t(r,i,t,n<0?e:n,a)))}function f9t(i,t){t.edges().map((t,e)=>{var r=t.data();t[0]._private.bodyBounds&&(t=t[0]._private.rscratch,R.trace("Edge: ",e,r),i.insert("path").attr("d",`M ${t.startX},${t.startY} L ${t.midX},${t.midY} L${t.endX},${t.endY} `).attr("class","edge section-edge-"+r.section+" edge-depth-"+r.depth))})}function m9t(e,r,i,n){r.add({group:"nodes",data:{id:e.id.toString(),labelText:e.descr,height:e.height,width:e.width,level:n,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(t=>{m9t(t,r,i,n+1),r.add({group:"edges",data:{id:e.id+"_"+t.id,source:e.id,target:t.id,depth:n,section:t.section}})})}function y9t(i,n){return new Promise(e=>{let t=j("body").append("div").attr("id","cy").attr("style","display:none"),r=QAt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});t.remove(),m9t(i,r,n,0),r.nodes().forEach(function(e){e.layoutDimensions=()=>{var t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready(t=>{R.info("Ready",t),e(r)})})}function v9t(n,t){t.nodes().map((t,e)=>{var r=t.data(),i=(r.x=t.position().x,r.y=t.position().y,d9t(n,r),n.getElementById(r.nodeId));R.info("Id:",e,"Position: (",t.position().x,", ",t.position().y,")",r),i.attr("transform",`translate(${t.position().x-r.width/2}, ${t.position().y-r.height/2})`),i.attr("attr",`apa-${e})`)})}var b9t,x9t,w9t,k9t,T9t,E9t=t(()=>{JAt(),b9t=tt(r9t(),1),Z3(),fu(),e(),Gft(),th(),p9t(),Ci(),QAt.use(b9t.default),me(g9t,"drawNodes"),me(f9t,"drawEdges"),me(m9t,"addNodes"),me(y9t,"layoutMindmap"),me(v9t,"positionNodes"),b9t=me(async(t,e,r,i)=>{var n,a,s;R.debug(`Rendering mindmap diagram `),c=(await j9(e,c,{useHtmlLabels:a,width:r.width,classes:"mindmap-node-label"},n),a||e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.node().getBBox()),[n]=WE(n.fontSize);switch(r.height=c.height+1.1*n*.5+r.padding,r.width=c.width+2*r.padding,r.icon?r.type===t.nodeType.CIRCLE?(r.height+=50,r.width+=50,i.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),e.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")")):(r.width+=50,n=r.height,r.height=Math.max(n,60),n=Math.abs(r.height-n),i.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),e.attr("transform","translate("+(25+r.width/2)+", "+(n/2+r.padding/2)+")")):a?(n=(r.width-c.width)/2,a=(r.height-c.height)/2,e.attr("transform","translate("+n+", "+a+")")):(c=r.width/2,e.attr("transform","translate("+c+", "+r.padding/2+")")),r.type){case t.nodeType.DEFAULT:m9t(t,l,r,s);break;case t.nodeType.ROUNDED_RECT:k9t(t,l,r,s);break;case t.nodeType.RECT:y9t(t,l,r,s);break;case t.nodeType.CIRCLE:l.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),b9t(t,l,r,s);break;case t.nodeType.CLOUD:v9t(t,l,r,s);break;case t.nodeType.BANG:x9t(t,l,r,s);break;case t.nodeType.HEXAGON:w9t(t,l,r,s)}return t.setElementForId(r.id,i),r.height},"drawNode"),E9t=me(function(t,e){var t=t.getElementById(e.id),r=e.x||0;t.attr("transform","translate("+r+","+(e.y||0)+")")},"positionNode")});async function _9t(r,i,t,n,a){await T9t(r,i,t,n,a),t.children&&await Promise.all(t.children.map((t,e)=>_9t(r,i,t,n<0?e:n,a)))}function S9t(i,t){t.edges().map((t,e)=>{var r=t.data();t[0]._private.bodyBounds&&(t=t[0]._private.rscratch,M.trace("Edge: ",e,r),i.insert("path").attr("d",`M ${t.startX},${t.startY} L ${t.midX},${t.midY} L${t.endX},${t.endY} `).attr("class","edge section-edge-"+r.section+" edge-depth-"+r.depth))})}function A9t(e,r,i,n){r.add({group:"nodes",data:{id:e.id.toString(),labelText:e.descr,height:e.height,width:e.width,level:n,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(t=>{A9t(t,r,i,n+1),r.add({group:"edges",data:{id:e.id+"_"+t.id,source:e.id,target:t.id,depth:n,section:t.section}})})}function L9t(i,n){return new Promise(e=>{let t=j("body").append("div").attr("id","cy").attr("style","display:none"),r=h9t({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});t.remove(),A9t(i,r,n,0),r.nodes().forEach(function(e){e.layoutDimensions=()=>{var t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready(t=>{M.info("Ready",t),e(r)})})}function N9t(n,t){t.nodes().map((t,e)=>{var r=t.data(),i=(r.x=t.position().x,r.y=t.position().y,E9t(n,r),n.getElementById(r.nodeId));M.info("Id:",e,"Position: (",t.position().x,", ",t.position().y,")",r),i.attr("transform",`translate(${t.position().x-r.width/2}, ${t.position().y-r.height/2})`),i.attr("attr",`apa-${e})`)})}var I9t,R9t,M9t,D9t,O9t,P9t=t(()=>{u9t(),I9t=tt(g9t(),1),Z3(),fu(),e(),tmt(),th(),C9t(),_i(),h9t.use(I9t.default),me(_9t,"drawNodes"),me(S9t,"drawEdges"),me(A9t,"addNodes"),me(L9t,"layoutMindmap"),me(N9t,"positionNodes"),I9t=me(async(t,e,r,i)=>{var n,a,s;M.debug(`Rendering mindmap diagram
`+t),(i=(t=i.db).getMindmap())&&((n=D()).htmlLabels=!1,(a=(e=Oft(e)).append("g")).attr("class","mindmap-edges"),(s=e.append("g")).attr("class","mindmap-nodes"),await g9t(t,s,i,-1,n),f9t(a,s=await y9t(i,n)),v9t(t,s),Vc(void 0,e,n.mindmap?.padding??mr.mindmap.padding,n.mindmap?.useMaxWidth??mr.mindmap.useMaxWidth))},"draw"),x9t={draw:b9t}}),_9t=t(()=>{mi(),w9t=me(e=>{let r="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],Ge(e["lineColor"+t])?e["lineColor"+t]=a(e["lineColor"+t],20):e["lineColor"+t]=He(e["lineColor"+t],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){var i=""+(17-3*t);r+=` `+t),(i=(t=i.db).getMindmap())&&((n=D()).htmlLabels=!1,(a=(e=Hft(e)).append("g")).attr("class","mindmap-edges"),(s=e.append("g")).attr("class","mindmap-nodes"),await _9t(t,s,i,-1,n),S9t(a,s=await L9t(i,n)),N9t(t,s),Vc(void 0,e,n.mindmap?.padding??mr.mindmap.padding,n.mindmap?.useMaxWidth??mr.mindmap.useMaxWidth))},"draw"),R9t={draw:I9t}}),B9t=t(()=>{mi(),M9t=me(e=>{let r="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],Ue(e["lineColor"+t])?e["lineColor"+t]=a(e["lineColor"+t],20):e["lineColor"+t]=He(e["lineColor"+t],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){var i=""+(17-3*t);r+=`
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path { .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
fill: ${e["cScale"+t]}; fill: ${e["cScale"+t]};
} }
@@ -2209,11 +2209,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
.disabled text { .disabled text {
fill: #efefef; fill: #efefef;
} }
`}return r},"genSections"),k9t=me(t=>` `}return r},"genSections"),D9t=me(t=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${w9t(t)} ${M9t(t)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon { .section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${t.git0}; fill: ${t.git0};
} }
@@ -2236,17 +2236,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
dominant-baseline: middle; dominant-baseline: middle;
text-align: center; text-align: center;
} }
`,"getStyles"),T9t=k9t}),C9t={};fOt(C9t,{diagram:()=>S9t});var S9t,A9t,L9t,N9t,I9t,M9t,R9t,D9t,O9t,P9t,B9t,F9t,$9t,z9t,U9t,G9t,q9t,j9t,Y9t,W9t,H9t,V9t,X9t,K9t,Z9t,Q9t=t(()=>{g3t(),f3t(),E9t(),_9t(),S9t={db:d3t,renderer:x9t,parser:Z5t,styles:T9t}}),J9t=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,4],i=[1,13],n=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],b=[1,6,7,11,13,16,17,20,23],x=[1,38],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[o-1].id),i.addNode(a[o-2].length,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 16:i.getLogger().info("Node: ",a[o].id),i.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 17:i.getLogger().trace("Icon: ",a[o]),i.decorateNode({icon:a[o]});break;case 18:case 23:i.decorateNode({class:a[o]});break;case 19:i.getLogger().trace("SPACELIST");break;case 20:i.getLogger().trace("Node: ",a[o-1].id),i.addNode(0,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 21:i.getLogger().trace("Node: ",a[o].id),i.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 22:i.decorateNode({icon:a[o]});break;case 27:i.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 28:this.$={id:a[o],descr:a[o],type:0};break;case 29:i.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 30:this.$=a[o-1]+a[o];break;case 31:this.$=a[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:i,9:22,12:11,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:h,7:u,10:23,11:d},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),e(p,[2,19]),e(p,[2,21],{15:30,24:g}),e(p,[2,22]),e(p,[2,23]),e(f,[2,25]),e(f,[2,26]),e(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:d},{1:[2,7],6:i,12:21,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},e(m,[2,14],{7:y,11:v}),e(b,[2,8]),e(b,[2,9]),e(b,[2,10]),e(p,[2,16],{15:37,24:g}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:x}),e(f,[2,31]),{21:[1,39]},{22:[1,40]},e(m,[2,13],{7:y,11:v}),e(b,[2,11]),e(b,[2,12]),e(p,[2,15],{24:x}),e(f,[2,30]),{22:[1,41]},e(f,[2,27]),e(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var b,x,w,k,T,E,_,C={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===b||"u"<typeof b)&&(b=v()),o[w]&&o[w][b]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),O9t=D9t}),F9t={};lPt(F9t,{diagram:()=>$9t});var $9t,z9t,G9t,U9t,q9t,j9t,W9t,Y9t,H9t,V9t,X9t,K9t,Z9t,Q9t,J9t,tLt,eLt,rLt,iLt,nLt,aLt,sLt,oLt,lLt,cLt,hLt=t(()=>{_3t(),S3t(),P9t(),B9t(),$9t={db:E3t,renderer:R9t,parser:c3t,styles:O9t}}),uLt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,4],i=[1,13],n=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],x=[1,6,7,11,13,16,17,20,23],b=[1,38],r={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[o-1].id),i.addNode(a[o-2].length,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 16:i.getLogger().info("Node: ",a[o].id),i.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 17:i.getLogger().trace("Icon: ",a[o]),i.decorateNode({icon:a[o]});break;case 18:case 23:i.decorateNode({class:a[o]});break;case 19:i.getLogger().trace("SPACELIST");break;case 20:i.getLogger().trace("Node: ",a[o-1].id),i.addNode(0,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 21:i.getLogger().trace("Node: ",a[o].id),i.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 22:i.decorateNode({icon:a[o]});break;case 27:i.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 28:this.$={id:a[o],descr:a[o],type:0};break;case 29:i.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:i.getType(a[o-2],a[o])};break;case 30:this.$=a[o-1]+a[o];break;case 31:this.$=a[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:i,9:22,12:11,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:h,7:u,10:23,11:d},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),e(p,[2,19]),e(p,[2,21],{15:30,24:g}),e(p,[2,22]),e(p,[2,23]),e(f,[2,25]),e(f,[2,26]),e(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:d},{1:[2,7],6:i,12:21,13:n,14:14,16:a,17:s,18:17,19:18,20:o,23:l},e(m,[2,14],{7:y,11:v}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(p,[2,16],{15:37,24:g}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(f,[2,31]),{21:[1,39]},{22:[1,40]},e(m,[2,13],{7:y,11:v}),e(x,[2,11]),e(x,[2,12]),e(p,[2,15],{24:b}),e(f,[2,30]),{22:[1,41]},e(f,[2,27]),e(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\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:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};r.lexer=c,me(t,"Parser"),(A9t=new((t.prototype=r).Parser=t)).parser=A9t,L9t=A9t}),tLt=t(()=>{fu(),Jc(),e(),Ci(),IA(),N9t=[],I9t=[],M9t=0,R9t={},D9t=me(()=>{N9t=[],I9t=[],M9t=0,R9t={}},"clear"),O9t=me(t=>{if(0===N9t.length)return null;let e=N9t[0].level,r=null;for(let t=N9t.length-1;0<=t;t--)if(N9t[t].level===e&&(r=r||N9t[t]),N9t[t].level<e)throw new Error('Items without section detected, found section ("'+N9t[t].label+'")');return t===r?.level?null:r},"getSection"),P9t=me(function(){return I9t},"getSections"),B9t=me(function(){var t=[],r=P9t(),i=D();for(let e of r){var n,a={id:e.id,label:Cc(e.label??"",i),isGroup:!0,ticket:e.ticket,shape:"kanbanSection",level:e.level,look:i.look};t.push(a);for(n of N9t.filter(t=>t.parentId===e.id)){var s={id:n.id,parentId:e.id,label:Cc(n.label??"",i),isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:"kanbanItem",level:n.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(s)}}return{nodes:t,edges:[],other:{},config:D()}},"getData"),F9t=me((t,e,r,i,n)=>{let a=D(),s=a.mindmap?.padding??mr.mindmap.padding;switch(i){case $9t.ROUNDED_RECT:case $9t.RECT:case $9t.HEXAGON:s*=2}if(i={id:Cc(e,a)||"kbn"+M9t++,level:t,label:Cc(r,a),widthLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\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:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};r.lexer=c,me(t,"Parser"),(z9t=new((t.prototype=r).Parser=t)).parser=z9t,G9t=z9t}),dLt=t(()=>{fu(),Jc(),e(),_i(),IA(),U9t=[],q9t=[],j9t=0,W9t={},Y9t=me(()=>{U9t=[],q9t=[],j9t=0,W9t={}},"clear"),H9t=me(t=>{if(0===U9t.length)return null;let e=U9t[0].level,r=null;for(let t=U9t.length-1;0<=t;t--)if(U9t[t].level===e&&(r=r||U9t[t]),U9t[t].level<e)throw new Error('Items without section detected, found section ("'+U9t[t].label+'")');return t===r?.level?null:r},"getSection"),V9t=me(function(){return q9t},"getSections"),X9t=me(function(){var t=[],r=V9t(),i=D();for(let e of r){var n,a={id:e.id,label:_c(e.label??"",i),isGroup:!0,ticket:e.ticket,shape:"kanbanSection",level:e.level,look:i.look};t.push(a);for(n of U9t.filter(t=>t.parentId===e.id)){var s={id:n.id,parentId:e.id,label:_c(n.label??"",i),isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:"kanbanItem",level:n.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(s)}}return{nodes:t,edges:[],other:{},config:D()}},"getData"),K9t=me((t,e,r,i,n)=>{let a=D(),s=a.mindmap?.padding??mr.mindmap.padding;switch(i){case Z9t.ROUNDED_RECT:case Z9t.RECT:case Z9t.HEXAGON:s*=2}if(i={id:_c(e,a)||"kbn"+j9t++,level:t,label:_c(r,a),widthLine truncated
`)?n+` `)?n+`
`:`{ `:`{
`+n+` `+n+`
}`,(e=NA(n,{schema:LA})).shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`No such shape: ${e.shape}. Shape names should be lowercase.`);e?.shape&&"kanbanItem"===e.shape&&(i.shape=e?.shape),e?.label&&(i.label=e?.label),e?.icon&&(i.icon=e?.icon.toString()),e?.assigned&&(i.assigned=e?.assigned.toString()),e?.ticket&&(i.ticket=e?.ticket.toString()),e?.priority&&(i.priority=e?.priority)}(r=O9t(t))?i.parentId=r.id||"kbn"+M9t++:I9t.push(i),N9t.push(i)},"addNode"),$9t={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},z9t=me((t,e)=>{switch(R.debug("In get type",t,e),t){case"[":return $9t.RECT;case"(":return")"===e?$9t.ROUNDED_RECT:$9t.CLOUD;case"((":return $9t.CIRCLE;case")":return $9t.CLOUD;case"))":return $9t.BANG;case"{{":return $9t.HEXAGON;default:return $9t.DEFAULT}},"getType"),U9t=me((t,e)=>{R9t[t]=e},"setElementForId"),G9t=me(t=>{var e,r;t&&(e=D(),r=N9t[N9t.length-1],t.icon&&(r.icon=Cc(t.icon,e)),t.class)&&(r.cssClasses=Cc(t.class,e))},"decorateNode"),q9t=me(t=>{switch(t){case $9t.DEFAULT:return"no-border";case $9t.RECT:return"rect";case $9t.ROUNDED_RECT:return"rounded-rect";case $9t.CIRCLE:return"circle";case $9t.CLOUD:return"cloud";case $9t.BANG:return"bang";case $9t.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),j9t=me(()=>R,"getLogger"),Y9t=me(t=>R9t[t],"getElementById"),W9t={clear:D9t,addNode:F9t,getSections:P9t,getData:B9t,nodeType:$9t,getType:z9t,setElementForId:U9t,decorateNode:G9t,type2Str:q9t,getLogger:j9t,getElementById:Y9t}}),eLt=t(()=>{fu(),e(),Gft(),th(),Ci(),jR(),zD(),H9t=me(async(t,e,r,i)=>{R.debug(`Rendering kanban diagram }`,(e=NA(n,{schema:LA})).shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`No such shape: ${e.shape}. Shape names should be lowercase.`);e?.shape&&"kanbanItem"===e.shape&&(i.shape=e?.shape),e?.label&&(i.label=e?.label),e?.icon&&(i.icon=e?.icon.toString()),e?.assigned&&(i.assigned=e?.assigned.toString()),e?.ticket&&(i.ticket=e?.ticket.toString()),e?.priority&&(i.priority=e?.priority)}(r=H9t(t))?i.parentId=r.id||"kbn"+j9t++:q9t.push(i),U9t.push(i)},"addNode"),Z9t={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Q9t=me((t,e)=>{switch(M.debug("In get type",t,e),t){case"[":return Z9t.RECT;case"(":return")"===e?Z9t.ROUNDED_RECT:Z9t.CLOUD;case"((":return Z9t.CIRCLE;case")":return Z9t.CLOUD;case"))":return Z9t.BANG;case"{{":return Z9t.HEXAGON;default:return Z9t.DEFAULT}},"getType"),J9t=me((t,e)=>{W9t[t]=e},"setElementForId"),tLt=me(t=>{var e,r;t&&(e=D(),r=U9t[U9t.length-1],t.icon&&(r.icon=_c(t.icon,e)),t.class)&&(r.cssClasses=_c(t.class,e))},"decorateNode"),eLt=me(t=>{switch(t){case Z9t.DEFAULT:return"no-border";case Z9t.RECT:return"rect";case Z9t.ROUNDED_RECT:return"rounded-rect";case Z9t.CIRCLE:return"circle";case Z9t.CLOUD:return"cloud";case Z9t.BANG:return"bang";case Z9t.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),rLt=me(()=>M,"getLogger"),iLt=me(t=>W9t[t],"getElementById"),nLt={clear:Y9t,addNode:K9t,getSections:V9t,getData:X9t,nodeType:Z9t,getType:Q9t,setElementForId:J9t,decorateNode:tLt,type2Str:eLt,getLogger:rLt,getElementById:iLt}}),pLt=t(()=>{fu(),e(),tmt(),th(),_i(),WM(),GD(),aLt=me(async(t,e,r,i)=>{M.debug(`Rendering kanban diagram
`+t);var n,a=i.db.getData(),s=D(),o=(s.htmlLabels=!1,(t=Oft(e)).append("g")),l=(o.attr("class","sections"),t.append("g"));l.attr("class","items");let c=a.nodes.filter(t=>t.isGroup),h=0,u=[],d=25;for(n of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,n.x=p*h+10*(h-1)/2,n.width=p,n.y=0,n.height=3*p,n.rx=5,n.ry=5,n.cssClasses=n.cssClasses+" section-"+h,await FR(o,n));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let n of c){var f,m=u[g];g+=1;let t=s?.kanban?.sectionWidth||200,e=3*-t/2+d,r=e,i=a.nodes.filter(t=>t.parentId===n.id);for(f of i){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=n.x,f.width=t-15;var y=(await DD(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await FD(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-e+30,50)+(d-25);m.attr("height",v)}Vc(void 0,t,s.mindmap?.padding??mr.kanban.padding,s.mindmap?.useMaxWidth??mr.kanban.useMaxWidth)},"draw"),V9t={draw:H9t}}),rLt=t(()=>{mi(),X9t=me(r=>{let e="";for(let t=0;t<r.THEME_COLOR_LIMIT;t++)r["lineColor"+t]=r["lineColor"+t]||r["cScaleInv"+t],Ge(r["lineColor"+t])?r["lineColor"+t]=a(r["lineColor"+t],20):r["lineColor"+t]=He(r["lineColor"+t],20);var i=me((t,e)=>(r.darkMode?He:a)(t,e),"adjuster");for(let t=0;t<r.THEME_COLOR_LIMIT;t++){var n=""+(17-3*t);e+=` `+t);var n,a=i.db.getData(),s=D(),o=(s.htmlLabels=!1,(t=Hft(e)).append("g")),l=(o.attr("class","sections"),t.append("g"));l.attr("class","items");let c=a.nodes.filter(t=>t.isGroup),h=0,u=[],d=25;for(n of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,n.x=p*h+10*(h-1)/2,n.width=p,n.y=0,n.height=3*p,n.rx=5,n.ry=5,n.cssClasses=n.cssClasses+" section-"+h,await $M(o,n));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let n of c){var f,m=u[g];g+=1;let t=s?.kanban?.sectionWidth||200,e=3*-t/2+d,r=e,i=a.nodes.filter(t=>t.parentId===n.id);for(f of i){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=n.x,f.width=t-15;var y=(await OD(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await $D(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-e+30,50)+(d-25);m.attr("height",v)}Vc(void 0,t,s.mindmap?.padding??mr.kanban.padding,s.mindmap?.useMaxWidth??mr.kanban.useMaxWidth)},"draw"),sLt={draw:aLt}}),gLt=t(()=>{mi(),oLt=me(r=>{let e="";for(let t=0;t<r.THEME_COLOR_LIMIT;t++)r["lineColor"+t]=r["lineColor"+t]||r["cScaleInv"+t],Ue(r["lineColor"+t])?r["lineColor"+t]=a(r["lineColor"+t],20):r["lineColor"+t]=He(r["lineColor"+t],20);var i=me((t,e)=>(r.darkMode?He:a)(t,e),"adjuster");for(let t=0;t<r.THEME_COLOR_LIMIT;t++){var n=""+(17-3*t);e+=`
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path { .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
fill: ${i(r["cScale"+t],10)}; fill: ${i(r["cScale"+t],10)};
stroke: ${i(r["cScale"+t],10)}; stroke: ${i(r["cScale"+t],10)};
@@ -2292,11 +2292,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
stroke: ${r.nodeBorder}; stroke: ${r.nodeBorder};
text-decoration: underline; text-decoration: underline;
} }
`}return e},"genSections"),K9t=me(t=>` `}return e},"genSections"),lLt=me(t=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${X9t(t)} ${oLt(t)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon { .section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${t.git0}; fill: ${t.git0};
} }
@@ -2323,18 +2323,18 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
dominant-baseline: middle; dominant-baseline: middle;
text-align: center; text-align: center;
} }
`,"getStyles"),Z9t=K9t}),iLt={};fOt(iLt,{diagram:()=>nLt});var nLt,aLt,sLt,oLt,lLt,cLt,hLt,uLt,dLt,pLt,gLt,fLt,mLt,yLt,vLt,bLt=t(()=>{J9t(),tLt(),eLt(),rLt(),nLt={db:W9t,renderer:V9t,parser:L9t,styles:Z9t}}),xLt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,9],i=[1,10],n=[1,5,10,12],n={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 7:var l=i.findOrCreateNode(a[o-4].trim().replaceAll('""','"')),c=i.findOrCreateNode(a[o-2].trim().replaceAll('""','"')),h=parseFloat(a[o].trim());i.addLink(l,c,h);break;case 8:case 9:case 11:this.$=a[o];break;case 10:this.$=a[o-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},e(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(n,[2,8]),e(n,[2,9]),{19:[1,16]},e(n,[2,11]),{1:[2,1]},{1:[2,5]},e(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},e(i,[2,3]),{12:[1,20]},e(n,[2,10]),{15:21,16:7,17:8,18:r,20:i},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var b,x,w,k,T,E,_,C={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===b||"u"<typeof b)&&(b=v()),o[w]&&o[w][b]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),cLt=lLt}),fLt={};lPt(fLt,{diagram:()=>mLt});var mLt,yLt,vLt,xLt,bLt,wLt,kLt,TLt,ELt,CLt,_Lt,SLt,ALt,LLt,NLt,ILt=t(()=>{uLt(),dLt(),pLt(),gLt(),mLt={db:nLt,renderer:sLt,parser:G9t,styles:cLt}}),RLt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,9],i=[1,10],n=[1,5,10,12],n={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 7:var l=i.findOrCreateNode(a[o-4].trim().replaceAll('""','"')),c=i.findOrCreateNode(a[o-2].trim().replaceAll('""','"')),h=parseFloat(a[o].trim());i.addLink(l,c,h);break;case 8:case 9:case 11:this.$=a[o];break;case 10:this.$=a[o-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},e(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(n,[2,8]),e(n,[2,9]),{19:[1,16]},e(n,[2,11]),{1:[2,1]},{1:[2,5]},e(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},e(i,[2,3]),{12:[1,20]},e(n,[2,10]),{15:21,16:7,17:8,18:r,20:i},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:me(function(t,e){var r;if(!e.recoverable)throw(r=new Error(t)).hash=e,r;this.trace(t)},"parseError"),parse:me(function(t){var e,r=this,i=[0],n=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(f.yy[e]=this.yy[e]);g.setInput(t,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var t=n.pop()||g.lex()||d;return"number"!=typeof t&&(t instanceof Array&&(t=(n=t).pop()),t=r.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,me(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),me(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=i[i.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){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}},"anonymous"),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}}};n.lexer=r,me(t,"Parser"),(aLt=new((t.prototype=n).Parser=t)).parser=aLt,sLt=aLt}),wLt=t(()=>{fu(),Jc(),gu(),oLt=[],lLt=[],cLt=new Map,hLt=me(()=>{oLt=[],lLt=[],cLt=new Map,oh()},"clear"),uLt=class{constructor(t,e,r=0){this.source=t,this.target=e,this.value=r}static{me(this,"SankeyLink")}},dLt=me((t,e,r)=>{oLt.push(new uLt(t,e,r))},"addLink"),pLt=class{constructor(t){this.ID=t}static{me(this,"SankeyNode")}},gLt=me(t=>{t=L.sanitizeText(t,D());let e=cLt.get(t);return void 0===e&&(e=new pLt(t),cLt.set(t,e),lLt.push(e)),e},"findOrCreateNode"),fLt=me(()=>lLt,"getNodes"),mLt=me(()=>oLt,"getLinks"),yLt=me(()=>({nodes:lLt.map(t=>({id:t.ID})),links:oLt.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),vLt={nodesMap:cLt,getConfig:me(()=>D().sankey,"getConfig"),getNodes:fLt,getLinks:mLt,getGraph:yLt,addLink:dLt,findOrCreateNode:gLt,getAccTitle:ch,setAccTitle:lh,getAccDescription:uh,setAccDescription:hh,getDiagramTitle:ph,setDiagramTitle:dh,clear:hLt}});function kLt(e,r){let i;if(void 0===r)for(var t of e)null!=t&&(i<t||void 0===i&&t<=t)&&(i=t);else{let t=-1;for(var n of e)null!=(n=r(n,++t,e))&&(i<n||void 0===i&&n<=n)&&(i=n)}return i}var TLt=t(()=>{me(kLt,"max")});function ELt(e,r){let i;if(void 0===r)for(var t of e)null!=t&&(i>t||void 0===i&&t<=t)&&(i=t);else{let t=-1;for(var n of e)null!=(n=r(n,++t,e))&&(i>n||void 0===i&&n<=n)&&(i=n)}return i}var _Lt=t(()=>{me(ELt,"min")});function CLt(e,r){let i=0;if(void 0===r)for(var t of e)(t=+t)&&(i+=t);else{let t=-1;for(var n of e)(n=+r(n,++t,e))&&(i+=n)}return i}var SLt=t(()=>{me(CLt,"sum")}),ALt=t(()=>{TLt(),_Lt(),SLt()});function LLt(t){return t.target.depth}function NLt(t){return t.depth}function ILt(t,e){return e-1-t.height}function MLt(t,e){return t.sourceLinks.length?t.depth:e-1}function RLt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ELt(t.sourceLinks,LLt)-1:0}var DLt=t(()=>{ALt(),me(LLt,"targetDepth"),me(NLt,"left"),me(ILt,"right"),me(MLt,"justify"),me(RLt,"center")});function OLt(t){return function(){return t}}var PLt=t(()=>{me(OLt,"constant")});function BLt(t,e){return $Lt(t.source,e.source)||t.index-e.index}function FLt(t,e){return $Lt(t.target,e.target)||t.index-e.index}function $Lt(t,e){return t.y0-e.y0}function zLt(t){return t.value}function ULt(t){return t.index}function GLt(t){return t.nodes}function qLt(t){return t.links}function jLt(t,e){if(t=t.get(e))return t;throw new Error("missing: "+e)}function YLt({nodes:t}){for(var r of t){let t=r.y0,e=t;for(var i of r.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(var n of r.targetLinks)n.y1=e+n.width/2,e+=n.width}}function WLt(){let o=0,l=0,c=1,h=1,u=24,n=8,d,p=ULt,g=MLt,f,m,e=GLt,r=qLt,a=6;function i(){var t={nodes:e.apply(null,arguments),links:r.apply(null,arguments)};return s(t),y(t),v(t),b(t),k(t),YLt(t),t}function s({nodes:r,links:t}){for(var[e,i]of r.entries())i.index=e,i.sourceLinks=[],i.targetLinks=[];var n,a,s=new Map(r.map((t,e)=>[p(t,e,r),t]));for([n,a]of t.entries()){a.index=n;let{source:t,target:e}=a;"object"!=typeof t&&(t=a.source=jLt(s,t)),"object"!=typeof e&&(e=a.target=jLt(s,e)),t.sourceLinks.push(a),e.targetLinks.push(a)}if(null!=m)for(var{sourceLinks:o,targetLinks:l}of r)o.sort(m),l.sort(m)}function y({nodes:t}){for(var e of t)e.value=void 0===e.fixedValue?Math.max(CLt(e.sourceLinks,zLt),CLt(e.targetLinks,zLt)):e.fixedValue}function v({nodes:t}){let e=t.length,r=new Set(t),i=new Set,n=0;for(;r.size;){for(var a of r){a.depth=n;for(var{target:s}of Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,i){switch(r){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}},"anonymous"),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}}};n.lexer=r,me(t,"Parser"),(yLt=new((t.prototype=n).Parser=t)).parser=yLt,vLt=yLt}),MLt=t(()=>{fu(),Jc(),gu(),xLt=[],bLt=[],wLt=new Map,kLt=me(()=>{xLt=[],bLt=[],wLt=new Map,oh()},"clear"),TLt=class{constructor(t,e,r=0){this.source=t,this.target=e,this.value=r}static{me(this,"SankeyLink")}},ELt=me((t,e,r)=>{xLt.push(new TLt(t,e,r))},"addLink"),CLt=class{constructor(t){this.ID=t}static{me(this,"SankeyNode")}},_Lt=me(t=>{t=L.sanitizeText(t,D());let e=wLt.get(t);return void 0===e&&(e=new CLt(t),wLt.set(t,e),bLt.push(e)),e},"findOrCreateNode"),SLt=me(()=>bLt,"getNodes"),ALt=me(()=>xLt,"getLinks"),LLt=me(()=>({nodes:bLt.map(t=>({id:t.ID})),links:xLt.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),NLt={nodesMap:wLt,getConfig:me(()=>D().sankey,"getConfig"),getNodes:SLt,getLinks:ALt,getGraph:LLt,addLink:ELt,findOrCreateNode:_Lt,getAccTitle:ch,setAccTitle:lh,getAccDescription:uh,setAccDescription:hh,getDiagramTitle:ph,setDiagramTitle:dh,clear:kLt}});function DLt(e,r){let i;if(void 0===r)for(var t of e)null!=t&&(i<t||void 0===i&&t<=t)&&(i=t);else{let t=-1;for(var n of e)null!=(n=r(n,++t,e))&&(i<n||void 0===i&&n<=n)&&(i=n)}return i}var OLt=t(()=>{me(DLt,"max")});function PLt(e,r){let i;if(void 0===r)for(var t of e)null!=t&&(i>t||void 0===i&&t<=t)&&(i=t);else{let t=-1;for(var n of e)null!=(n=r(n,++t,e))&&(i>n||void 0===i&&n<=n)&&(i=n)}return i}var BLt=t(()=>{me(PLt,"min")});function FLt(e,r){let i=0;if(void 0===r)for(var t of e)(t=+t)&&(i+=t);else{let t=-1;for(var n of e)(n=+r(n,++t,e))&&(i+=n)}return i}var $Lt=t(()=>{me(FLt,"sum")}),zLt=t(()=>{OLt(),BLt(),$Lt()});function GLt(t){return t.target.depth}function ULt(t){return t.depth}function qLt(t,e){return e-1-t.height}function jLt(t,e){return t.sourceLinks.length?t.depth:e-1}function WLt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?PLt(t.sourceLinks,GLt)-1:0}var YLt=t(()=>{zLt(),me(GLt,"targetDepth"),me(ULt,"left"),me(qLt,"right"),me(jLt,"justify"),me(WLt,"center")});function HLt(t){return function(){return t}}var VLt=t(()=>{me(HLt,"constant")});function XLt(t,e){return ZLt(t.source,e.source)||t.index-e.index}function KLt(t,e){return ZLt(t.target,e.target)||t.index-e.index}function ZLt(t,e){return t.y0-e.y0}function QLt(t){return t.value}function JLt(t){return t.index}function tNt(t){return t.nodes}function eNt(t){return t.links}function rNt(t,e){if(t=t.get(e))return t;throw new Error("missing: "+e)}function iNt({nodes:t}){for(var r of t){let t=r.y0,e=t;for(var i of r.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(var n of r.targetLinks)n.y1=e+n.width/2,e+=n.width}}function nNt(){let o=0,l=0,c=1,h=1,u=24,n=8,d,p=JLt,g=jLt,f,m,e=tNt,r=eNt,a=6;function i(){var t={nodes:e.apply(null,arguments),links:r.apply(null,arguments)};return s(t),y(t),v(t),x(t),k(t),iNt(t),t}function s({nodes:r,links:t}){for(var[e,i]of r.entries())i.index=e,i.sourceLinks=[],i.targetLinks=[];var n,a,s=new Map(r.map((t,e)=>[p(t,e,r),t]));for([n,a]of t.entries()){a.index=n;let{source:t,target:e}=a;"object"!=typeof t&&(t=a.source=rNt(s,t)),"object"!=typeof e&&(e=a.target=rNt(s,e)),t.sourceLinks.push(a),e.targetLinks.push(a)}if(null!=m)for(var{sourceLinks:o,targetLinks:l}of r)o.sort(m),l.sort(m)}function y({nodes:t}){for(var e of t)e.value=void 0===e.fixedValue?Math.max(FLt(e.sourceLinks,QLt),FLt(e.targetLinks,QLt)):e.fixedValue}function v({nodes:t}){let e=t.length,r=new Set(t),i=new Set,n=0;for(;r.size;){for(var a of r){a.depth=n;for(var{target:s}of Line truncated
`+g+Math.round(100*e)/100+f:t,"getText"),i=(c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(y.nodes).join("text").attr("x",t=>t.x0<h/2?t.x1+6:t.x0-6).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",t=>t.x0<h/2?"start":"end").text(e),c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(y.links).join("g").attr("class","link").style("mix-blend-mode","multiply")),x=a?.linkColor??"gradient";"gradient"===x&&((e=i.append("linearGradient").attr("id",t=>(t.uid=bNt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0)).append("stop").attr("offset","0%").attr("stop-color",t=>b(t.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",t=>b(t.target.id)));let w;switch(x){case"gradient":w=me(t=>t.uid,"coloring");break;case"source":w=me(t=>b(t.source.id),"coloring");break;case"target":w=me(t=>b(t.target.id),"coloring");break;default:w=x}i.append("path").attr("d",vNt()).attr("stroke",w).attr("stroke-width",t=>Math.max(1,t.width)),Vc(void 0,c,0,d)},"draw"),kNt={draw:wNt}}),NNt=t(()=>{TNt=me(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` `+g+Math.round(100*e)/100+f:t,"getText"),i=(c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(y.nodes).join("text").attr("x",t=>t.x0<h/2?t.x1+6:t.x0-6).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",t=>t.x0<h/2?"start":"end").text(e),c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(y.links).join("g").attr("class","link").style("mix-blend-mode","multiply")),b=a?.linkColor??"gradient";"gradient"===b&&((e=i.append("linearGradient").attr("id",t=>(t.uid=INt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0)).append("stop").attr("offset","0%").attr("stop-color",t=>x(t.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",t=>x(t.target.id)));let w;switch(b){case"gradient":w=me(t=>t.uid,"coloring");break;case"source":w=me(t=>x(t.source.id),"coloring");break;case"target":w=me(t=>x(t.target.id),"coloring");break;default:w=b}i.append("path").attr("d",NNt()).attr("stroke",w).attr("stroke-width",t=>Math.max(1,t.width)),Vc(void 0,c,0,d)},"draw"),DNt={draw:MNt}}),UNt=t(()=>{ONt=me(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),"prepareTextForParsing")}),INt=t(()=>{ENt=me(t=>`.label { `).trim(),"prepareTextForParsing")}),qNt=t(()=>{PNt=me(t=>`.label {
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
}`,"getStyles"),_Nt=ENt}),MNt={};fOt(MNt,{diagram:()=>DNt});var RNt,DNt,ONt,PNt,BNt,FNt,$Nt,zNt,UNt,GNt,qNt,jNt,YNt,WNt,HNt,VNt,XNt,KNt,ZNt=t(()=>{xLt(),wLt(),LNt(),NNt(),INt(),RNt=sLt.parse.bind(sLt),sLt.parse=t=>RNt(TNt(t)),DNt={styles:_Nt,parser:sLt,db:vLt,renderer:kNt}}),QNt=t(()=>{Ai(),Ci(),KE(),gu(),ONt={packet:[]},PNt=structuredClone(ONt),BNt=mr.packet,FNt=me(()=>{var t=bE({...BNt,...Nr().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),$Nt=me(()=>PNt.packet,"getPacket"),zNt=me(t=>{0<t.length&&PNt.packet.push(t)},"pushWord"),UNt=me(()=>{oh(),PNt=structuredClone(ONt)},"clear"),GNt={pushWord:zNt,getPacket:$Nt,getConfig:FNt,clear:UNt,setAccTitle:lh,getAccTitle:ch,setDiagramTitle:dh,getDiagramTitle:ph,getAccDescription:uh,setAccDescription:hh}}),JNt=t(()=>{xpt(),e(),Ept(),QNt(),qNt=me(t=>{wpt(t,GNt);let e=-1,r=[],i=1,n=GNt.getConfig().bitsPerRow;for(var{start:a,end:s,label:o}of t.blocks){if(s&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a!==e+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${e+1}.`);for(e=s??a,R.debug(`Packet block ${a} - ${e} with label `+o);r.length<=n+1&&GNt.getPacket().length<1e4;){var[l,c]=jNt({start:a,end:s,label:o},i,n);if(r.push(l),l.end+1===i*n&&(GNt.pushWord(r),r=[],i++),!c)break;({start:a,end:s,label:o}=c)}}GNt.pushWord(r)},"populate"),jNt=me((t,e,r)=>{if(void 0===t.end&&(t.end=t.start),t.end<t.start)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*r?[t,void 0]:[{start:t.start,end:e*r-1,label:t.label},{start:e*r,end:t.end,label:t.label}]},"getNextFittingBlock"),YNt={parse:me(async t=>{t=await mpt("packet",t),R.debug(t),qNt(t)},"parse")}}),tIt=t(()=>{Gft(),th(),WNt=me((t,e,r,i)=>{var n,a,s=(i=i.db).getConfig(),{rowHeight:o,paddingY:l,bitWidth:c,bitsPerRow:h}=s,u=i.getPacket(),i=i.getDiagramTitle(),o=(l=o+l)*(u.length+1)-(i?0:o),c=c*h+2,d=Oft(e);d.attr("viewbox",`0 0 ${c} `+o),Hc(d,o,c,s.useMaxWidth);for([n,a]of u.entries())HNt(d,a,n,s);d.append("text").text(i).attr("x",c/2).attr("y",o-l/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),HNt=me((t,e,r,{rowHeight:i,paddingX:n,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{var c,h=t.append("g"),u=r*(i+a)+a;for(c of e){var d,p,g=c.start%o*s+1,f=(c.end-c.start+1)*s-n;h.append("rect").attr("x",g).attr("y",u).attr("width",f).attr("height",i).attr("class","packetBlock"),h.append("text").attr("x",g+f/2).attr("y",u+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),l&&(d=c.end===c.start,p=u-2,h.append("text").attr("x",g+(d?f/2:0)).attr("y",p).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",d?"middle":"start").text(c.start),d||h.append("text").attr("x",g+f).attr("y",p).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end))}},"drawWord"),VNt={draw:WNt}}),eIt=t(()=>{KE(),XNt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},KNt=me(({packet:t}={})=>` }`,"getStyles"),BNt=PNt}),jNt={};lPt(jNt,{diagram:()=>YNt});var WNt,YNt,HNt,VNt,XNt,KNt,ZNt,QNt,JNt,tIt,eIt,rIt,iIt,nIt,aIt,sIt,oIt,lIt,cIt=t(()=>{RLt(),MLt(),GNt(),UNt(),qNt(),WNt=vLt.parse.bind(vLt),vLt.parse=t=>WNt(ONt(t)),YNt={styles:BNt,parser:vLt,db:NLt,renderer:DNt}}),hIt=t(()=>{Ai(),_i(),KE(),gu(),HNt={packet:[]},VNt=structuredClone(HNt),XNt=mr.packet,KNt=me(()=>{var t=xE({...XNt,...Nr().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),ZNt=me(()=>VNt.packet,"getPacket"),QNt=me(t=>{0<t.length&&VNt.packet.push(t)},"pushWord"),JNt=me(()=>{oh(),VNt=structuredClone(HNt)},"clear"),tIt={pushWord:QNt,getPacket:ZNt,getConfig:KNt,clear:JNt,setAccTitle:lh,getAccTitle:ch,setDiagramTitle:dh,getDiagramTitle:ph,getAccDescription:uh,setAccDescription:hh}}),uIt=t(()=>{Rpt(),e(),Ppt(),hIt(),eIt=me(t=>{Mpt(t,tIt);let e=-1,r=[],i=1,n=tIt.getConfig().bitsPerRow;for(var{start:a,end:s,label:o}of t.blocks){if(s&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a!==e+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${e+1}.`);for(e=s??a,M.debug(`Packet block ${a} - ${e} with label `+o);r.length<=n+1&&tIt.getPacket().length<1e4;){var[l,c]=rIt({start:a,end:s,label:o},i,n);if(r.push(l),l.end+1===i*n&&(tIt.pushWord(r),r=[],i++),!c)break;({start:a,end:s,label:o}=c)}}tIt.pushWord(r)},"populate"),rIt=me((t,e,r)=>{if(void 0===t.end&&(t.end=t.start),t.end<t.start)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*r?[t,void 0]:[{start:t.start,end:e*r-1,label:t.label},{start:e*r,end:t.end,label:t.label}]},"getNextFittingBlock"),iIt={parse:me(async t=>{t=await Apt("packet",t),M.debug(t),eIt(t)},"parse")}}),dIt=t(()=>{tmt(),th(),nIt=me((t,e,r,i)=>{var n,a,s=(i=i.db).getConfig(),{rowHeight:o,paddingY:l,bitWidth:c,bitsPerRow:h}=s,u=i.getPacket(),i=i.getDiagramTitle(),o=(l=o+l)*(u.length+1)-(i?0:o),c=c*h+2,d=Hft(e);d.attr("viewbox",`0 0 ${c} `+o),Hc(d,o,c,s.useMaxWidth);for([n,a]of u.entries())aIt(d,a,n,s);d.append("text").text(i).attr("x",c/2).attr("y",o-l/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),aIt=me((t,e,r,{rowHeight:i,paddingX:n,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{var c,h=t.append("g"),u=r*(i+a)+a;for(c of e){var d,p,g=c.start%o*s+1,f=(c.end-c.start+1)*s-n;h.append("rect").attr("x",g).attr("y",u).attr("width",f).attr("height",i).attr("class","packetBlock"),h.append("text").attr("x",g+f/2).attr("y",u+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),l&&(d=c.end===c.start,p=u-2,h.append("text").attr("x",g+(d?f/2:0)).attr("y",p).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",d?"middle":"start").text(c.start),d||h.append("text").attr("x",g+f).attr("y",p).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end))}},"drawWord"),sIt={draw:nIt}}),pIt=t(()=>{KE(),oIt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},lIt=me(({packet:t}={})=>`
.packetByte { .packetByte {
font-size: ${(t=bE(XNt,t)).byteFontSize}; font-size: ${(t=xE(oIt,t)).byteFontSize};
} }
.packetByte.start { .packetByte.start {
fill: ${t.startByteColor}; fill: ${t.startByteColor};
@@ -2355,12 +2355,54 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
stroke-width: ${t.blockStrokeWidth}; stroke-width: ${t.blockStrokeWidth};
fill: ${t.blockFillColor}; fill: ${t.blockFillColor};
} }
`,"styles")}),rIt={};fOt(rIt,{diagram:()=>iIt});var iIt,nIt,aIt,sIt=t(()=>{QNt(),JNt(),tIt(),eIt(),iIt={parser:YNt,db:GNt,renderer:VNt,styles:KNt}}),oIt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,7],i=[1,13],n=[1,14],a=[1,15],s=[1,19],o=[1,16],l=[1,17],c=[1,18],h=[8,30],u=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],g=[8,15,16,21,28,29,30,31,32,40,44,47],f=[8,15,16,21,27,28,29,30,31,32,40,44,47],m=[1,49],h={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",a[o-1]),i.setHierarchy(a[o-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",a[o]),"number"==typeof a[o].length?this.$=a[o]:this.$=[a[o]];break;case 13:i.getLogger().debug("Rule: statement #2: ",a[o-1]),this.$=[a[o-1]].concat(a[o]);break;case 14:i.getLogger().debug("Rule: link: ",a[o],t),this.$={edgeTypeStr:a[o],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",a[o-3],a[o-1],a[o]),this.$={edgeTypeStr:a[o],label:a[o-1]};break;case 18:var l=parseInt(a[o]),c=i.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",a[o-2],a[o-1],a[o]," typestr: ",a[o-1].edgeTypeStr),c=i.edgeStrToEdgeData(a[o-1].edgeTypeStr),this.$=[{id:a[o-2].id,label:a[o-2].label,type:a[o-2].type,directions:a[o-2].directions},{id:a[o-2].id+"-"+a[o].id,start:a[o-2].id,end:a[o].id,label:a[o-1].label,type:"edge",directions:a[o].directions,arrowTypeEnd:c,arrowTypeStart:"arrow_open"},{id:a[o].id,label:a[o].label,type:i.typeStr2Type(a[o].typeStr),directions:a[o].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[o-1],a[o]),this.$={id:a[o-1].id,label:a[o-1].label,type:i.typeStr2Type(a[o-1].typeStr),directions:a[o-1].directions,widthInColumns:parseInt(a[o],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",a[o]),this.$={id:a[o].id,label:a[o].label,type:i.typeStr2Type(a[o].typeStr),directions:a[o].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this||"na"),i.getLogger().debug("COLUMNS: ",a[o]),this.$={type:"column-setting",columns:"auto"===a[o]?-1:parseInt(a[o])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",a[o-2],a[o-1]),i.generateId(),this.$={...a[o-2],type:"composite",children:a[o-1]};break;case 28:i.getLogger().debug("Rule: blockStatement : ",a[o-2],a[o-1],a[o]),l=i.generateId(),this.$={id:l,type:"composite",label:"",children:a[o-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",a[o]),this.$={id:a[o]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[o-1],a[o]),this.$={id:a[o-1],label:a[o].label,typeStr:a[o].typeStr,directions:a[o].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",a[o]),this.$=[a[o]];break;case 32:i.getLogger().debug("Rule: dirList: ",a[o-1],a[o]),this.$=[a[o-1]].concat(a[o]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",a[o-2],a[o-1],a[o]),this.$={typeStr:a[o-2]+a[o],label:a[o-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[o-3],a Line truncated `,"styles")}),gIt={};lPt(gIt,{diagram:()=>fIt});var fIt,mIt,yIt,vIt,xIt,bIt,wIt,kIt,TIt,EIt,CIt,_It,SIt,AIt,LIt,NIt,IIt,RIt=t(()=>{hIt(),uIt(),dIt(),pIt(),fIt={parser:iIt,db:tIt,renderer:sIt,styles:lIt}}),MIt=t(()=>{Ai(),_i(),KE(),gu(),yIt={axes:[],curves:[],options:mIt={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"}},vIt=structuredClone(yIt),xIt=mr.radar,bIt=me(()=>xE({...xIt,...Nr().radar}),"getConfig"),wIt=me(()=>vIt.axes,"getAxes"),kIt=me(()=>vIt.curves,"getCurves"),TIt=me(()=>vIt.options,"getOptions"),EIt=me(t=>{vIt.axes=t.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),CIt=me(t=>{vIt.curves=t.map(t=>({name:t.name,label:t.label??t.name,entries:_It(t.entries)}))},"setCurves"),_It=me(r=>{if(null==r[0].axis)return r.map(t=>t.value);var t=wIt();if(0===t.length)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{var t=r.find(t=>t.axis?.$refText===e.name);if(void 0===t)throw new Error("Missing entry for axis "+e.label);return t.value})},"computeCurveEntries"),SIt=me(t=>{t=t.reduce((t,e)=>(t[e.name]=e,t),{}),vIt.options={showLegend:t.showLegend?.value??mIt.showLegend,ticks:t.ticks?.value??mIt.ticks,max:t.max?.value??mIt.max,min:t.min?.value??mIt.min,graticule:t.graticule?.value??mIt.graticule}},"setOptions"),AIt=me(()=>{oh(),vIt=structuredClone(yIt)},"clear"),LIt={getAxes:wIt,getCurves:kIt,getOptions:TIt,setAxes:EIt,setCurves:CIt,setOptions:SIt,getConfig:bIt,clear:AIt,setAccTitle:lh,getAccTitle:ch,setDiagramTitle:dh,getDiagramTitle:ph,getAccDescription:uh,setAccDescription:hh}}),DIt=t(()=>{Rpt(),e(),Ppt(),MIt(),NIt=me(t=>{Mpt(t,LIt);var{axes:t,curves:e,options:r}=t;LIt.setAxes(t),LIt.setCurves(e),LIt.setOptions(r)},"populate"),IIt={parse:me(async t=>{t=await Apt("radar",t),M.debug(t),NIt(t)},"parse")}});function OIt(r,t,e,i,n,a,s){let o=t.length,l=Math.min(s.width,s.height)/2;e.forEach((t,e)=>{t.entries.length===o&&(t=t.entries.map((t,e)=>(e=2*Math.PI*e/o-Math.PI/2,{x:(t=PIt(t,i,n,l))*Math.cos(e),y:t*Math.sin(e)})),"circle"===a?r.append("path").attr("d",BIt(t,s.curveTension)).attr("class","radarCurve-"+e):"polygon"===a&&r.append("polygon").attr("points",t.map(t=>t.x+","+t.y).join(" ")).attr("class","radarCurve-"+e))})}function PIt(t,e,r,i){return i*(Math.min(Math.max(t,e),r)-e)/(r-e)}function BIt(e,r){let i=e.length,n=`M${e[0].x},`+e[0].y;for(let t=0;t<i;t++){var a=e[(t-1+i)%i],s=e[t],o=e[(t+1)%i],l=e[(t+2)%i],c=s.x+(o.x-a.x)*r,a=s.y+(o.y-a.y)*r,h=o.x-(l.x-s.x)*r;n+=` C${c},${a} ${h},${o.y-(l.y-s.y)*r} ${o.x},`+o.y}return n+" Z"}function FIt(a,t,e,r){if(e){let i=3*(r.width/2+r.marginRight)/4,n=3*-(r.height/2+r.marginTop)/4;t.forEach((t,e)=>{var r=a.append("g").attr("transform",`translate(${i}, ${n+20*e})`);r.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-"+e),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(t.label)})}}var $It,zIt,GIt,UIt,qIt,jIt,WIt,YIt,HIt=t(()=>{tmt(),$It=me((t,e,r,i)=>{var n=(i=i.db).getAxes(),a=i.getCurves(),s=i.getOptions(),o=i.getConfig(),i=i.getDiagramTitle(),e=Hft(e),e=zIt(e,o),l=s.max??Math.max(...a.map(t=>Math.max(...t.entries))),c=s.min,h=Math.min(o.width,o.height)/2;GIt(e,n,h,s.ticks,s.graticule),UIt(e,n,h,o),OIt(e,n,a,c,l,s.graticule,o),FIt(e,a,s.showLegend,o),e.append("text").attr("class","radarTitle").text(i).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),zIt=me((t,e)=>{var r=e.width+e.marginLeft+e.marginRight,i=e.height+e.marginTop+e.marginBottom,n=e.marginLeft+e.width/2,e=e.marginTop+e.height/2;return t.attr("viewbox",`0 0 ${r} `+i).attr("width",r).attr("height",i),t.append("g").attr("transform",`translate(${n}, ${e})`)},"drawFrame"),GIt=me((n,a,s,o,t)=>{if("circle"===t)for(let t=0;t<o;t++){var e=s*(t+1)/o;n.append("circle").attr("r",e).attr("class","radarGraticule")}else if("polygon"===t){let i=a.length;for(let e=0;e<o;e++){let r=s*(e+1)/o,t=a.map((t,e)=>(e=2*e*Math.PI/i-Math.PI/2,r*Math.cos(e)+","+r*Math.sin(e))).join(" ");n.append("polygon").attr("points",t).attr("class","radarGraticule")}}},"drawGraticule"),UIt=me((e,r,i,n)=>{var a=r.length;for(let t=0;t<a;t++){var s=r[t].label,o=2*t*Math.PI/a-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",i*n.axisScaleFactor*Math.cos(o)).attr("y2",i*n.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),e.append("text").text(s).attr("x",i*n.axisLabelFactor*Math.cos(o)).attr("y",i*n.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes"),me(OIt,"drawCurves"),me(PIt,"relativeRadius"),me(BIt,"closedRoundCurve"),me(FIt,"drawLegend"),qIt={draw:$It}}),VIt=t(()=>{KE(),wi(),Ai(),jIt=me((e,r)=>{let i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++){var n=e["cScale"+t];i+=`
.radarCurve-${t} {
color: ${n};
fill: ${n};
fill-opacity: ${r.curveOpacity};
stroke: ${n};
stroke-width: ${r.curveStrokeWidth};
}
.radarLegendBox-${t} {
fill: ${n};
fill-opacity: ${r.curveOpacity};
stroke: ${n};
}
`}return i},"genIndexStyles"),WIt=me(t=>{var e=xE(sr(),Nr().themeVariables);return{themeVariables:e,radarOptions:xE(e.radar,t)}},"buildRadarStyleOptions"),YIt=me(({radar:t}={})=>{var{themeVariables:t,radarOptions:e}=WIt(t);return`
.radarTitle {
font-size: ${t.fontSize};
color: ${t.titleColor};
dominant-baseline: hanging;
text-anchor: middle;
}
.radarAxisLine {
stroke: ${e.axisColor};
stroke-width: ${e.axisStrokeWidth};
}
.radarAxisLabel {
dominant-baseline: middle;
text-anchor: middle;
font-size: ${e.axisLabelFontSize}px;
color: ${e.axisColor};
}
.radarGraticule {
fill: ${e.graticuleColor};
fill-opacity: ${e.graticuleOpacity};
stroke: ${e.graticuleColor};
stroke-width: ${e.graticuleStrokeWidth};
}
.radarLegendText {
text-anchor: start;
font-size: ${e.legendFontSize}px;
dominant-baseline: hanging;
}
${jIt(t,e)}
`},"styles")}),XIt={};lPt(XIt,{diagram:()=>KIt});var KIt,ZIt,QIt,JIt=t(()=>{MIt(),DIt(),HIt(),VIt(),KIt={parser:IIt,db:LIt,renderer:qIt,styles:YIt}}),tRt=t(()=>{function t(){this.yy={}}var e=me(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),r=[1,7],i=[1,13],n=[1,14],a=[1,15],s=[1,19],o=[1,16],l=[1,17],c=[1,18],h=[8,30],u=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],g=[8,15,16,21,28,29,30,31,32,40,44,47],f=[8,15,16,21,27,28,29,30,31,32,40,44,47],m=[1,49],h={trace:me(function(){},"trace"),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:me(function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",a[o-1]),i.setHierarchy(a[o-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",a[o]),"number"==typeof a[o].length?this.$=a[o]:this.$=[a[o]];break;case 13:i.getLogger().debug("Rule: statement #2: ",a[o-1]),this.$=[a[o-1]].concat(a[o]);break;case 14:i.getLogger().debug("Rule: link: ",a[o],t),this.$={edgeTypeStr:a[o],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",a[o-3],a[o-1],a[o]),this.$={edgeTypeStr:a[o],label:a[o-1]};break;case 18:var l=parseInt(a[o]),c=i.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",a[o-2],a[o-1],a[o]," typestr: ",a[o-1].edgeTypeStr),c=i.edgeStrToEdgeData(a[o-1].edgeTypeStr),this.$=[{id:a[o-2].id,label:a[o-2].label,type:a[o-2].type,directions:a[o-2].directions},{id:a[o-2].id+"-"+a[o].id,start:a[o-2].id,end:a[o].id,label:a[o-1].label,type:"edge",directions:a[o].directions,arrowTypeEnd:c,arrowTypeStart:"arrow_open"},{id:a[o].id,label:a[o].label,type:i.typeStr2Type(a[o].typeStr),directions:a[o].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[o-1],a[o]),this.$={id:a[o-1].id,label:a[o-1].label,type:i.typeStr2Type(a[o-1].typeStr),directions:a[o-1].directions,widthInColumns:parseInt(a[o],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",a[o]),this.$={id:a[o].id,label:a[o].label,type:i.typeStr2Type(a[o].typeStr),directions:a[o].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this||"na"),i.getLogger().debug("COLUMNS: ",a[o]),this.$={type:"column-setting",columns:"auto"===a[o]?-1:parseInt(a[o])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",a[o-2],a[o-1]),i.generateId(),this.$={...a[o-2],type:"composite",children:a[o-1]};break;case 28:i.getLogger().debug("Rule: blockStatement : ",a[o-2],a[o-1],a[o]),l=i.generateId(),this.$={id:l,type:"composite",label:"",children:a[o-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",a[o]),this.$={id:a[o]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[o-1],a[o]),this.$={id:a[o-1],label:a[o].label,typeStr:a[o].typeStr,directions:a[o].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",a[o]),this.$=[a[o]];break;case 32:i.getLogger().debug("Rule: dirList: ",a[o-1],a[o]),this.$=[a[o-1]].concat(a[o]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",a[o-2],a[o-1],a[o]),this.$={typeStr:a[o-2]+a[o],label:a[o-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[o-3], Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(k[0]){case 1:i.push(b),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),b=null,x?(b=x,x=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],C.$=a[a.length-E],C._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(_=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return _;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0},"parse")},d={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(g.yytext),s.push(g.yylloc),i.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(i=i.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),i.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},"parse")},d={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(function(t,e){return this.yy=e||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},"setInput"),input:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),i=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:me(function(t){this.unput(this.match.slice(t))},"less"),pastInput:me(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:me(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:me(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+e+"^"},"showPosition"),test_match:me(function(t,e){var r,i;if(this.options.backtrack_lexer&&(i={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)&&(i.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var n in i)this[n]=i[n];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.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:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.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:case 39:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:case 42:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:case 61:case 62:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 77:case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().de Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:me(function(t,e,r,i){switch(r){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.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:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.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:case 39:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:case 42:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:case 61:case 62:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 77:case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().de Line truncated
font-family: ${t.fontFamily}; font-family: ${t.fontFamily};
color: ${t.nodeTextColor||t.textColor}; color: ${t.nodeTextColor||t.textColor};
} }
@@ -2430,14 +2472,14 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
/* For html labels only */ /* For html labels only */
.labelBkg { .labelBkg {
background-color: ${PIt(t.edgeLabelBackground,.5)}; background-color: ${LRt(t.edgeLabelBackground,.5)};
// background-color: // background-color:
} }
.node .cluster { .node .cluster {
// fill: ${PIt(t.mainBkg,.5)}; // fill: ${LRt(t.mainBkg,.5)};
fill: ${PIt(t.clusterBkg,.5)}; fill: ${LRt(t.clusterBkg,.5)};
stroke: ${PIt(t.clusterBorder,.2)}; stroke: ${LRt(t.clusterBorder,.2)};
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; 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; stroke-width: 1px;
} }
@@ -2472,10 +2514,10 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
font-size: 18px; font-size: 18px;
fill: ${t.textColor}; fill: ${t.textColor};
} }
`,"getStyles"),FIt=BIt}),JIt=t(()=>{e(),$It=me((e,t,r,i)=>{t.forEach(t=>{XIt[t](e,r,i)})},"insertMarkers"),zIt=me((t,e,r)=>{R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),UIt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).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")},"composition"),GIt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).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")},"aggregation"),qIt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")},"dependency"),jIt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),YIt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),WIt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),HIt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0" Line truncated `,"getStyles"),IRt=NRt}),YRt=t(()=>{e(),RRt=me((e,t,r,i)=>{t.forEach(t=>{URt[t](e,r,i)})},"insertMarkers"),MRt=me((t,e,r)=>{M.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),DRt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).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")},"composition"),ORt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).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")},"aggregation"),PRt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")},"dependency"),BRt=me((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),FRt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),$Rt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),zRt=me((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0" Line truncated
outsidePoint: ${JSON.stringify(i)} outsidePoint: ${JSON.stringify(i)}
insidePoint : ${JSON.stringify(n)} insidePoint : ${JSON.stringify(n)}
node : x:${t.x} y:${t.y} w:${t.width} h:`+t.height);let a=t.x,e=t.y,r=Math.abs(a-n.x),s=t.width/2,o=n.x<i.x?s-r:s+r,l=t.height/2,c=Math.abs(i.y-n.y),h=Math.abs(i.x-n.x),u;if(Math.abs(e-i.y)*s>Math.abs(a-i.x)*l)return t=n.y<i.y?i.y-l-e:e-l-i.y,o=h*t/c,u={x:n.x<i.x?n.x+o:n.x-h+o,y:n.y<i.y?n.y+c-t:n.y-c+t},0===o&&(u.x=i.x,u.y=i.y),0===h&&(u.x=i.x),0===c&&(u.y=i.y),R.debug(`abc89 topp/bott calc, Q ${c}, q ${t}, R ${h}, r `+o,u),u;{let t=c*(o=n.x<i.x?i.x-s-a:a-s-i.x)/h,e=n.x<i.x?n.x+h-o:n.x-h+o,r=n.y<i.y?n.y+t:n.y-t;return R.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r `+o,{_x:e,_y:r}),0===o&&(e=i.x,r=i.y),0===h&&(e=i.x),0===c&&(r=i.y),{x:e,y:r}}},"intersection"),EMt=me((t,i)=>{R.debug("abc88 cutPathAtIntersect",t,i);let n=[],a=t[0],s=!1;return t.forEach(t=>{if(kMt(i,t)||s)a=t,s||n.push(t);else{let e=TMt(i,a,t),r=!1;n.forEach(t=>{r=r||t.x===e.x&&t.y===e.y}),n.some(t=>t.x===e.x&&t.y===e.y)||n.push(e),s=!0}}),n},"cutPathAtIntersect"),_Mt=me(function(t,e,r,i,n,a,s){let o=r.points,l=(R.debug("abc88 InsertEdge: edge=",r,"e=",e),!1),c=a.node(e.v),h=a.node(e.w),u=(h?.intersect&&c?.intersect&&((o=o.slice(1,r.points.length-1)).unshift(c.intersect(o[0])),o.push(h.intersect(o[o.length-1]))),r.toCluster&&(R.debug("to cluster abc88",i[r.toCluster]),o=EMt(r.points,i[r.toCluster].node),l=!0),r.fromCluster&&(R.debug("from cluster abc88",i[r.fromCluster]),o=EMt(o.reverse(),i[r.fromCluster].node).reverse(),l=!0),o.filter(t=>!Number.isNaN(t.y))),d=u5,{x:p,y:g}=(!r.curve||"graph"!==n&&"flowchart"!==n||(d=r.curve),VR(r)),f=X4().x(p).y(g).curve(d),m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let y=t.append("path").attr("d",f(u)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style),v="";return(D().flowchart.arrowMarkerAbsolute||D().state.arrowMarkerAbsolute)&&(v=(v=(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),dMt(y,r,v,s,n),a={},l&&(a.updatedPath=o),a.originalPath=r.points,a},"insertEdge")}),LMt=t(()=>{CMt=me(t=>{var e,r=new Set;for(e of t)switch(e){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(e)}return r},"expandAndDeduplicateDirections"),SMt=me((t,e,r)=>{var t=CMt(t),i=e.height+2*r.padding,n=i/2,e=e.width+2*n+r.padding,r=r.padding/2;return t.has("right")&&t.has("left")&&t.has("up")&&t.has("down")?[{x:0,y:0},{x:n,y:0},{x:e/2,y:2*r},{x:e-n,y:0},{x:e,y:0},{x:e,y:-i/3},{x:e+2*r,y:-i/2},{x:e,y:-2*i/3},{x:e,y:-i},{x:e-n,y:-i},{x:e/2,y:-i-2*r},{x:n,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*r,y:-i/2},{x:0,y:-i/3}]:t.has("right")&&t.has("left")&&t.has("up")?[{x:n,y:0},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("right")&&t.has("left")&&t.has("down")?[{x:0,y:0},{x:n,y:-i},{x:e-n,y:-i},{x:e,y:0}]:t.has("right")&&t.has("up")&&t.has("down")?[{x:0,y:0},{x:e,y:-n},{x:e,y:n-i},{x:0,y:-i}]:t.has("left")&&t.has("up")&&t.has("down")?[{x:e,y:0},{x:0,y:-n},{x:0,y:n-i},{x:e,y:-i}]:t.has("right")&&t.has("left")?[{x:n,y:0},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("up")&&t.has("down")?[{x:e/2,y:0},{x:0,y:-r},{x:n,y:-r},{x:n,y:r-i},{x:0,y:r-i},{x:e/2,y:-i},{x:e,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r},{x:e,y:-r}]:t.has("right")&&t.has("up")?[{x:0,y:0},{x:e,y:-n},{x:0,y:-i}]:t.has("right")&&t.has("down")?[{x:0,y:0},{x:e,y:0},{x:0,y:-i}]:t.has("left")&&t.has("up")?[{x:e,y:0},{x:0,y:-n},{x:e,y:-i}]:t.has("left")&&t.has("down")?[{x:e,y:0},{x:0,y:0},{x:e,y:-i}]:t.has("right")?[{x:n,y:-r},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:r-i}]:t.has("left")?[{x:n,y:0},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("up")?[{x:n,y:-r},{x:n,y:r-i},{x:0,y:r-i},{x:e/2,y:-i},{x:e,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r}]:t.has("down")?[{x:e/2,y:0},{x:0,y:-r},{x:n,y:-r},{x:n,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r},{x:e,y:-r}]:[{x:0,y:0}]},"getArrowPoints")});function NMt(t,e){return t.intersect(e)}var IMt,MMt=t(()=>{me(NMt,"intersectNode"),IMt=NMt});function RMt(t,e,r,i){var n=t.x,t=t.y,a=n-i.x,s=t-i.y,o=Math.sqrt(e*e*s*s+r*r*a*a),a=Math.abs(e*r*a/o),e=(i.x<n&&(a=-a),Math.abs(e*r*s/o));return{x:n+a,y:t+(e=i.y<t?-e:e)}}var DMt,OMt=t(()=>{me(RMt,"intersectEllipse"),DMt=RMt});function PMt(t,e,r){return DMt(t,e,e,r)}var BMt,FMt=t(()=>{OMt(),me(PMt,"intersectCircle"),BMt=PMt});function $Mt(t,e,r,i){var n,a,s,o,l=e.y-t.y,c=t.x-e.x,h=e.x*t.y-t.x*e.y,u=l*r.x+c*r.y+h,d=l*i.x+c*i.y+h;if(!(0!=u&&0!=d&&0<u*d||(u=(n=i.y-r.y)*t.x+(a=r.x-i.x)*t.y+(s=i.x*r.y-r.x*i.y),d=n*e.x+a*e.y+s,0!=u&&0!==d&&0<u*d)||0==(o=l*a-n*c)))return t=Math.abs(o/2),{x:(r=c*s-a*h)<0?(r-t)/o:(r+t)/o,y:(r=n*h-l*s)<0?(r-t)/o: Line truncated node : x:${t.x} y:${t.y} w:${t.width} h:`+t.height);let a=t.x,e=t.y,r=Math.abs(a-n.x),s=t.width/2,o=n.x<i.x?s-r:s+r,l=t.height/2,c=Math.abs(i.y-n.y),h=Math.abs(i.x-n.x),u;if(Math.abs(e-i.y)*s>Math.abs(a-i.x)*l)return t=n.y<i.y?i.y-l-e:e-l-i.y,o=h*t/c,u={x:n.x<i.x?n.x+o:n.x-h+o,y:n.y<i.y?n.y+c-t:n.y-c+t},0===o&&(u.x=i.x,u.y=i.y),0===h&&(u.x=i.x),0===c&&(u.y=i.y),M.debug(`abc89 topp/bott calc, Q ${c}, q ${t}, R ${h}, r `+o,u),u;{let t=c*(o=n.x<i.x?i.x-s-a:a-s-i.x)/h,e=n.x<i.x?n.x+h-o:n.x-h+o,r=n.y<i.y?n.y+t:n.y-t;return M.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r `+o,{_x:e,_y:r}),0===o&&(e=i.x,r=i.y),0===h&&(e=i.x),0===c&&(r=i.y),{x:e,y:r}}},"intersection"),yMt=me((t,i)=>{M.debug("abc88 cutPathAtIntersect",t,i);let n=[],a=t[0],s=!1;return t.forEach(t=>{if(fMt(i,t)||s)a=t,s||n.push(t);else{let e=mMt(i,a,t),r=!1;n.forEach(t=>{r=r||t.x===e.x&&t.y===e.y}),n.some(t=>t.x===e.x&&t.y===e.y)||n.push(e),s=!0}}),n},"cutPathAtIntersect"),vMt=me(function(t,e,r,i,n,a,s){let o=r.points,l=(M.debug("abc88 InsertEdge: edge=",r,"e=",e),!1),c=a.node(e.v),h=a.node(e.w),u=(h?.intersect&&c?.intersect&&((o=o.slice(1,r.points.length-1)).unshift(c.intersect(o[0])),o.push(h.intersect(o[o.length-1]))),r.toCluster&&(M.debug("to cluster abc88",i[r.toCluster]),o=yMt(r.points,i[r.toCluster].node),l=!0),r.fromCluster&&(M.debug("from cluster abc88",i[r.fromCluster]),o=yMt(o.reverse(),i[r.fromCluster].node).reverse(),l=!0),o.filter(t=>!Number.isNaN(t.y))),d=u5,{x:p,y:g}=(!r.curve||"graph"!==n&&"flowchart"!==n||(d=r.curve),XM(r)),f=X4().x(p).y(g).curve(d),m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let y=t.append("path").attr("d",f(u)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style),v="";return(D().flowchart.arrowMarkerAbsolute||D().state.arrowMarkerAbsolute)&&(v=(v=(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),aMt(y,r,v,s,n),a={},l&&(a.updatedPath=o),a.originalPath=r.points,a},"insertEdge")}),kMt=t(()=>{xMt=me(t=>{var e,r=new Set;for(e of t)switch(e){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(e)}return r},"expandAndDeduplicateDirections"),bMt=me((t,e,r)=>{var t=xMt(t),i=e.height+2*r.padding,n=i/2,e=e.width+2*n+r.padding,r=r.padding/2;return t.has("right")&&t.has("left")&&t.has("up")&&t.has("down")?[{x:0,y:0},{x:n,y:0},{x:e/2,y:2*r},{x:e-n,y:0},{x:e,y:0},{x:e,y:-i/3},{x:e+2*r,y:-i/2},{x:e,y:-2*i/3},{x:e,y:-i},{x:e-n,y:-i},{x:e/2,y:-i-2*r},{x:n,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*r,y:-i/2},{x:0,y:-i/3}]:t.has("right")&&t.has("left")&&t.has("up")?[{x:n,y:0},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("right")&&t.has("left")&&t.has("down")?[{x:0,y:0},{x:n,y:-i},{x:e-n,y:-i},{x:e,y:0}]:t.has("right")&&t.has("up")&&t.has("down")?[{x:0,y:0},{x:e,y:-n},{x:e,y:n-i},{x:0,y:-i}]:t.has("left")&&t.has("up")&&t.has("down")?[{x:e,y:0},{x:0,y:-n},{x:0,y:n-i},{x:e,y:-i}]:t.has("right")&&t.has("left")?[{x:n,y:0},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("up")&&t.has("down")?[{x:e/2,y:0},{x:0,y:-r},{x:n,y:-r},{x:n,y:r-i},{x:0,y:r-i},{x:e/2,y:-i},{x:e,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r},{x:e,y:-r}]:t.has("right")&&t.has("up")?[{x:0,y:0},{x:e,y:-n},{x:0,y:-i}]:t.has("right")&&t.has("down")?[{x:0,y:0},{x:e,y:0},{x:0,y:-i}]:t.has("left")&&t.has("up")?[{x:e,y:0},{x:0,y:-n},{x:e,y:-i}]:t.has("left")&&t.has("down")?[{x:e,y:0},{x:0,y:0},{x:e,y:-i}]:t.has("right")?[{x:n,y:-r},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:0},{x:e,y:-i/2},{x:e-n,y:-i},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:r-i}]:t.has("left")?[{x:n,y:0},{x:n,y:-r},{x:e-n,y:-r},{x:e-n,y:r-i},{x:n,y:r-i},{x:n,y:-i},{x:0,y:-i/2}]:t.has("up")?[{x:n,y:-r},{x:n,y:r-i},{x:0,y:r-i},{x:e/2,y:-i},{x:e,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r}]:t.has("down")?[{x:e/2,y:0},{x:0,y:-r},{x:n,y:-r},{x:n,y:r-i},{x:e-n,y:r-i},{x:e-n,y:-r},{x:e,y:-r}]:[{x:0,y:0}]},"getArrowPoints")});function TMt(t,e){return t.intersect(e)}var EMt,CMt=t(()=>{me(TMt,"intersectNode"),EMt=TMt});function _Mt(t,e,r,i){var n=t.x,t=t.y,a=n-i.x,s=t-i.y,o=Math.sqrt(e*e*s*s+r*r*a*a),a=Math.abs(e*r*a/o),e=(i.x<n&&(a=-a),Math.abs(e*r*s/o));return{x:n+a,y:t+(e=i.y<t?-e:e)}}var SMt,AMt=t(()=>{me(_Mt,"intersectEllipse"),SMt=_Mt});function LMt(t,e,r){return SMt(t,e,e,r)}var NMt,IMt=t(()=>{AMt(),me(LMt,"intersectCircle"),NMt=LMt});function RMt(t,e,r,i){var n,a,s,o,l=e.y-t.y,c=t.x-e.x,h=e.x*t.y-t.x*e.y,u=l*r.x+c*r.y+h,d=l*i.x+c*i.y+h;if(!(0!=u&&0!=d&&0<u*d||(u=(n=i.y-r.y)*t.x+(a=r.x-i.x)*t.y+(s=i.x*r.y-r.x*i.y),d=n*e.x+a*e.y+s,0!=u&&0!==d&&0<u*d)||0==(o=l*a-n*c)))return t=Math.abs(o/2),{x:(r=c*s-a*h)<0?(r-t)/o:(r+t)/o,y:(r=n*h-l*s)<0?(r-t)/o: Line truncated
.edge { .edge {
stroke-width: ${t.archEdgeWidth}; stroke-width: ${t.archEdgeWidth};
stroke: ${t.archEdgeColor}; stroke: ${t.archEdgeColor};
@@ -2506,17 +2548,17 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on l
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
`,"getStyles"),PDt=ODt}),WDt=hOt((r,i)=>{me(function(t,e){"object"==typeof r&&"object"==typeof i?i.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof r?r.layoutBase=e():t.layoutBase=e()},"webpackUniversalModuleDefinition")(r,function(){return r=[function(t,e,r){function i(){}me(i,"LayoutConstants"),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_HALF_SIZE=(i.SIMPLE_NODE_SIZE=40)/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.INITIAL_WORLD_BOUNDARY=(i.WORLD_BOUNDARY=1e6)/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i},function(t,e,r){var i,n=r(2),a=r(8),s=r(9);function o(t,e,r){n.call(this,r),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=r,this.bendpoints=[],this.source=t,this.target=e}for(i in me(o,"LEdge"),o.prototype=Object.create(n.prototype),n)o[i]=n[i];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(t,e){for(var r=this.getOtherEnd(t),i=e.getGraphManager().getRoot();;){if(r.getOwner()==e)return r;if(r.getOwner()==i)break;r=r.getOwner().getParent()}return null},o.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=o},function(t,e,r){function i(t){this.vGraphObject=t}me(i,"LGraphObject"),t.exports=i},function(t,e,r){var i,n=r(2),a=r(10),s=r(13),o=r(0),l=r(16),c=r(5);function h(t,e,r,i){n.call(this,i=null==r&&null==i?e:i),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=i,this.edges=[],this.graphManager=t,this.rect=null!=r&&null!=e?new s(e.x,e.y,r.width,r.height):new s}for(i in me(h,"LNode"),h.prototype=Object.create(n.prototype),n)h[i]=n[i];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(t){this.rect.width=t},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(t){this.rect.height=t},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},h.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},h.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},h.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},h.prototype.getEdgeListToNode=function(e){var r=[],i=this;return i.edges.forEach(function(t){if(t.target==e){if(t.source!=i)throw"Incorrect edge source!";r.push(t)}}),r},h.prototype.getEdgesBetween=function(e){var r=[],i=this;return i.edges.forEach(function(t){if(t.source!=i&&t.target!=i)throw"Incorrect edge source and/or target";t.target!=e&&t.source!=e|| Line truncated `,"getStyles"),LOt=AOt}),$Ot=iPt((r,i)=>{me(function(t,e){"object"==typeof r&&"object"==typeof i?i.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof r?r.layoutBase=e():t.layoutBase=e()},"webpackUniversalModuleDefinition")(r,function(){return r=[function(t,e,r){function i(){}me(i,"LayoutConstants"),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_HALF_SIZE=(i.SIMPLE_NODE_SIZE=40)/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.INITIAL_WORLD_BOUNDARY=(i.WORLD_BOUNDARY=1e6)/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i},function(t,e,r){var i,n=r(2),a=r(8),s=r(9);function o(t,e,r){n.call(this,r),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=r,this.bendpoints=[],this.source=t,this.target=e}for(i in me(o,"LEdge"),o.prototype=Object.create(n.prototype),n)o[i]=n[i];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(t,e){for(var r=this.getOtherEnd(t),i=e.getGraphManager().getRoot();;){if(r.getOwner()==e)return r;if(r.getOwner()==i)break;r=r.getOwner().getParent()}return null},o.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=o},function(t,e,r){function i(t){this.vGraphObject=t}me(i,"LGraphObject"),t.exports=i},function(t,e,r){var i,n=r(2),a=r(10),s=r(13),o=r(0),l=r(16),c=r(5);function h(t,e,r,i){n.call(this,i=null==r&&null==i?e:i),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=i,this.edges=[],this.graphManager=t,this.rect=null!=r&&null!=e?new s(e.x,e.y,r.width,r.height):new s}for(i in me(h,"LNode"),h.prototype=Object.create(n.prototype),n)h[i]=n[i];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(t){this.rect.width=t},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(t){this.rect.height=t},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},h.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},h.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},h.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},h.prototype.getEdgeListToNode=function(e){var r=[],i=this;return i.edges.forEach(function(t){if(t.target==e){if(t.source!=i)throw"Incorrect edge source!";r.push(t)}}),r},h.prototype.getEdgesBetween=function(e){var r=[],i=this;return i.edges.forEach(function(t){if(t.source!=i&&t.target!=i)throw"Incorrect edge source and/or target";t.target!=e&&t.source!=e|| Line truncated
translate(${d}, ${p-t.height/2}) translate(${d}, ${p-t.height/2})
translate(${y*b.width/2}, ${v*b.height/2}) translate(${y*x.width/2}, ${v*x.height/2})
rotate(${-1*y*v*45}, 0, ${t.height/2}) rotate(${-1*y*v*45}, 0, ${t.height/2})
`)))}))},"drawEdges"),zDt=me(async function(l,t){let c=.75*fDt("padding"),h=fDt("fontSize"),u=fDt("iconSize")/2;await Promise.all(t.nodes().map(async i=>{var n=dDt(i);if("group"===n.type){var{h:i,w:a,x1:s,y1:o}=i.boundingBox();l.append("rect").attr("x",s+u).attr("y",o+u).attr("width",a).attr("height",i).attr("class","node-bkg");let t=l.append("g"),e=s,r=o;n.icon&&((i=t.append("g")).html(`<g>${await Bt(n.icon,{height:c,width:c,fallbackPrefix:FDt.prefix})}</g>`),i.attr("transform","translate("+(e+u+1)+", "+(r+u+1)+")"),e+=c,r+=h/2-1-2),n.label&&(s=t.append("g"),await j9(s,n.label,{useHtmlLabels:!1,width:a,classes:"architecture-service-label"},D()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),s.attr("transform","translate("+(e+u+4)+", "+(r+u+2)+")"))}}))},"drawGroups"),UDt=me(async function(t,e,r){for(var i of r){var n=e.append("g"),a=fDt("iconSize"),s=(i.title&&(s=n.append("g"),await j9(s,i.title,{useHtmlLabels:!1,width:1.5*a,classes:"architecture-service-label"},D()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),s.attr("transform","translate("+a/2+", "+a+")")),n.append("g")),{width:o,height:l}=(i.icon?s.html(`<g>${await Bt(i.icon,{height:a,width:a,fallbackPrefix:FDt.prefix})}</g>`):i.iconText?(s.html(`<g>${await Bt("blank",{height:a,width:a,fallbackPrefix:FDt.prefix})}</g>`),o=s.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(i.iconText),l=parseInt(window.getComputedStyle(o.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16,o.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/l)};`)):s.append("path").attr("class","node-bkg").attr("id","node-"+i.id).attr("d",`M0 ${a} v${-a} q0,-5 5,-5 h${a} q5,0 5,5 v${a} H0 Z`),n.attr("class","architecture-service"),n._groups[0][0].getBBox());i.width=o,i.height=l,t.setElementForId(i.id,n)}return 0},"drawServices"),GDt=me(function(n,a,t){t.forEach(t=>{var e=a.append("g"),r=fDt("iconSize"),{width:r,height:i}=(e.append("g").append("rect").attr("id","node-"+t.id).attr("fill-opacity","0").attr("width",r).attr("height",r),e.attr("class","architecture-junction"),e._groups[0][0].getBBox());e.width=r,e.height=i,n.setElementForId(t.id,e)})},"drawJunctions")});function ZDt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:fDt("iconSize"),height:fDt("iconSize")},classes:"node-service"})})}function QDt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:fDt("iconSize"),height:fDt("iconSize")},classes:"node-junction"})})}function JDt(r,t){t.nodes().map(t=>{var e=dDt(t);"group"!==e.type&&(e.x=t.position().x,e.y=t.position().y,r.getElementById(e.id).attr("transform","translate("+(e.x||0)+","+(e.y||0)+")"))})}function tOt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})})}function eOt(t,h){t.forEach(t=>{var{lhsId:e,rhsId:r,lhsInto:i,lhsGroup:n,rhsInto:a,lhsDir:s,rhsDir:o,rhsGroup:l,title:c}=t,t=rDt(t.lhsDir,t.rhsDir)?"segments":"straight";h.add({group:"edges",data:{id:e+"-"+r,label:c,source:e,sourceDir:s,sourceArrow:i,sourceGroup:n,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:o,targetArrow:a,targetGroup:l,targetEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%"},classes:t})})}function rOt(s,t,u){let e=me((t,h)=>Object.entries(t).reduce((r,[i,t])=>{let n=0,a=Object.entries(t);if(1===a.length)r[i]=a[0][1];else for(let e=0;e<a.length-1;e++)for(let t=e+1;t<a.length;t++){var[s,o]=a[e],[l,c]=a[t];u[s]?.[l]===h||"default"===s||"default"===l?(r[i]??=[],r[i]=[...r[i],...o,...c]):(r[i+"-"+n++]=o,r[i+"-"+n++]=c)}return r},{}),"flattenAlignments"),r=t.map(t=>{let n={},a={};return Object.entries(t).forEach(([t,[e,r]])=>{var i=s.getNode(t)?.in??"default";n[r]??={},n[r][i]??=[],n[r][i].push(t),a[e]??={},a[e][i]??=[],a[e][i].push(t)}),{horiz:Object.values(e(n,"horizontal")).filter(t=>1<t.length),vert:Object.values(e(a,"vertical")).filter(t=>1<t.length)}}),[i,n]=r.reduce(([t,e],{horiz:r,vert:i})=>[[...t,...r],[...e,...i]],[[],[]]);return{horizontal:i,vertical:n}}function iOt(t){let l=[],c=me(t=>t[0]+","+t[1],"posToStr"),h=me(t=>t.split(",").map(t=>parseInt(t)),"strToPos");return t.forEach(t=>{let a=Object.fromEntries(Object.entries(t).map(([t,e])=>[c(e),t])),s=[c([0,0])],o={},e={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;0<s.length;){var r=s.shift();if(r){o[r]=1;let n=a[r];if(n){let i=h(r);Object.entries(e).forEach(([t,e])=>{var e=c([i[0]+e[0],i[1]+e[1]]),r=a[e];r&&!o[e]&&(s.push(e),l.push({[XRt[t]]:r,[XRt[QRt(t)]]:n,gap:1.5*fDt("iconSize")}))})}}}}),l}function nOt(n,a,l,c,h,{spatialMaps:u,groupAlignments:d}){return new Promise(e=>{let t=j("body").append("div").attr("id","cy").Line truncated `)))}))},"drawEdges"),MOt=me(async function(l,t){let c=.75*lOt("padding"),h=lOt("fontSize"),u=lOt("iconSize")/2;await Promise.all(t.nodes().map(async i=>{var n=aOt(i);if("group"===n.type){var{h:i,w:a,x1:s,y1:o}=i.boundingBox();l.append("rect").attr("x",s+u).attr("y",o+u).attr("width",a).attr("height",i).attr("class","node-bkg");let t=l.append("g"),e=s,r=o;n.icon&&((i=t.append("g")).html(`<g>${await Bt(n.icon,{height:c,width:c,fallbackPrefix:IOt.prefix})}</g>`),i.attr("transform","translate("+(e+u+1)+", "+(r+u+1)+")"),e+=c,r+=h/2-1-2),n.label&&(s=t.append("g"),await j9(s,n.label,{useHtmlLabels:!1,width:a,classes:"architecture-service-label"},D()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),s.attr("transform","translate("+(e+u+4)+", "+(r+u+2)+")"))}}))},"drawGroups"),DOt=me(async function(t,e,r){for(var i of r){var n=e.append("g"),a=lOt("iconSize"),s=(i.title&&(s=n.append("g"),await j9(s,i.title,{useHtmlLabels:!1,width:1.5*a,classes:"architecture-service-label"},D()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),s.attr("transform","translate("+a/2+", "+a+")")),n.append("g")),{width:o,height:l}=(i.icon?s.html(`<g>${await Bt(i.icon,{height:a,width:a,fallbackPrefix:IOt.prefix})}</g>`):i.iconText?(s.html(`<g>${await Bt("blank",{height:a,width:a,fallbackPrefix:IOt.prefix})}</g>`),o=s.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(i.iconText),l=parseInt(window.getComputedStyle(o.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16,o.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/l)};`)):s.append("path").attr("class","node-bkg").attr("id","node-"+i.id).attr("d",`M0 ${a} v${-a} q0,-5 5,-5 h${a} q5,0 5,5 v${a} H0 Z`),n.attr("class","architecture-service"),n._groups[0][0].getBBox());i.width=o,i.height=l,t.setElementForId(i.id,n)}return 0},"drawServices"),OOt=me(function(n,a,t){t.forEach(t=>{var e=a.append("g"),r=lOt("iconSize"),{width:r,height:i}=(e.append("g").append("rect").attr("id","node-"+t.id).attr("fill-opacity","0").attr("width",r).attr("height",r),e.attr("class","architecture-junction"),e._groups[0][0].getBBox());e.width=r,e.height=i,n.setElementForId(t.id,e)})},"drawJunctions")});function jOt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:lOt("iconSize"),height:lOt("iconSize")},classes:"node-service"})})}function WOt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:lOt("iconSize"),height:lOt("iconSize")},classes:"node-junction"})})}function YOt(r,t){t.nodes().map(t=>{var e=aOt(t);"group"!==e.type&&(e.x=t.position().x,e.y=t.position().y,r.getElementById(e.id).attr("transform","translate("+(e.x||0)+","+(e.y||0)+")"))})}function HOt(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})})}function VOt(t,h){t.forEach(t=>{var{lhsId:e,rhsId:r,lhsInto:i,lhsGroup:n,rhsInto:a,lhsDir:s,rhsDir:o,rhsGroup:l,title:c}=t,t=XDt(t.lhsDir,t.rhsDir)?"segments":"straight";h.add({group:"edges",data:{id:e+"-"+r,label:c,source:e,sourceDir:s,sourceArrow:i,sourceGroup:n,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:o,targetArrow:a,targetGroup:l,targetEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%"},classes:t})})}function XOt(s,t,u){let e=me((t,h)=>Object.entries(t).reduce((r,[i,t])=>{let n=0,a=Object.entries(t);if(1===a.length)r[i]=a[0][1];else for(let e=0;e<a.length-1;e++)for(let t=e+1;t<a.length;t++){var[s,o]=a[e],[l,c]=a[t];u[s]?.[l]===h||"default"===s||"default"===l?(r[i]??=[],r[i]=[...r[i],...o,...c]):(r[i+"-"+n++]=o,r[i+"-"+n++]=c)}return r},{}),"flattenAlignments"),r=t.map(t=>{let n={},a={};return Object.entries(t).forEach(([t,[e,r]])=>{var i=s.getNode(t)?.in??"default";n[r]??={},n[r][i]??=[],n[r][i].push(t),a[e]??={},a[e][i]??=[],a[e][i].push(t)}),{horiz:Object.values(e(n,"horizontal")).filter(t=>1<t.length),vert:Object.values(e(a,"vertical")).filter(t=>1<t.length)}}),[i,n]=r.reduce(([t,e],{horiz:r,vert:i})=>[[...t,...r],[...e,...i]],[[],[]]);return{horizontal:i,vertical:n}}function KOt(t){let l=[],c=me(t=>t[0]+","+t[1],"posToStr"),h=me(t=>t.split(",").map(t=>parseInt(t)),"strToPos");return t.forEach(t=>{let a=Object.fromEntries(Object.entries(t).map(([t,e])=>[c(e),t])),s=[c([0,0])],o={},e={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;0<s.length;){var r=s.shift();if(r){o[r]=1;let n=a[r];if(n){let i=h(r);Object.entries(e).forEach(([t,e])=>{var e=c([i[0]+e[0],i[1]+e[1]]),r=a[e];r&&!o[e]&&(s.push(e),l.push({[UDt[t]]:r,[UDt[WDt(t)]]:n,gap:1.5*lOt("iconSize")}))})}}}}),l}function ZOt(n,a,l,c,h,{spatialMaps:u,groupAlignments:d}){return new Promise(e=>{let t=j("body").append("div").attr("id","cy").Line truncated
`);var i=(e=Oft(e)).append("g");e.attr("viewBox","0 0 2412 512"),Hc(e,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r)},"draw")}),POt={db:{},renderer:t,parser:{parse:me(()=>{},"parse")}},BOt="flowchart-elk",fOt=me((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0),"detector"),t=me(async()=>{var t=(await Promise.resolve().then(()=>(KX(),YX))).diagram;return{id:BOt,diagram:t}},"loader"),FOt={id:BOt,detector:fOt,loader:t},$Ot={id:"timeline",detector:me(t=>/^\s*timeline/.test(t),"detector"),loader:me(async()=>({id:"timeline",diagram:(await Promise.resolve().then(()=>(p3t(),V5t))).diagram}),"loader")},zOt={id:"mindmap",detector:me(t=>/^\s*mindmap/.test(t),"detector"),loader:me(async()=>({id:"mindmap",diagram:(await Promise.resolve().then(()=>(Q9t(),C9t))).diagram}),"loader")},UOt={id:"kanban",detector:me(t=>/^\s*kanban/.test(t),"detector"),loader:me(async()=>({id:"kanban",diagram:(await Promise.resolve().then(()=>(bLt(),iLt))).diagram}),"loader")},GOt={id:"sankey",detector:me(t=>/^\s*sankey-beta/.test(t),"detector"),loader:me(async()=>({id:"sankey",diagram:(await Promise.resolve().then(()=>(ZNt(),MNt))).diagram}),"loader")},qOt={id:"packet",detector:me(t=>/^\s*packet-beta/.test(t),"detector"),loader:me(async()=>({id:"packet",diagram:(await Promise.resolve().then(()=>(sIt(),rIt))).diagram}),"loader")},jOt={id:"block",detector:me(t=>/^\s*block-beta/.test(t),"detector"),loader:me(async()=>({id:"block",diagram:(await Promise.resolve().then(()=>(pDt(),HRt))).diagram}),"loader")},YOt="architecture",fOt=me(t=>/^\s*architecture/.test(t),"detector"),t=me(async()=>{var t=(await Promise.resolve().then(()=>(uOt(),lOt))).diagram;return{id:YOt,diagram:t}},"loader"),WOt={id:YOt,detector:fOt,loader:t},HOt=(Ur(),fu(),!1),VOt=me(()=>{HOt||(HOt=!0,kh("error",POt,t=>"error"===t.toLowerCase().trim()),kh("---",{db:{clear:me(()=>{},"clear")},styles:{},renderer:{draw:me(()=>{},"draw")},parser:{parse:me(()=>{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")},"parse")},init:me(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Zt(dOt,UOt,NOt,AOt,yOt,bOt,xOt,wOt,COt,SOt,FOt,mOt,pOt,zOt,$Ot,vOt,ROt,IOt,DOt,TOt,GOt,qOt,EOt,jOt,WOt))},"addDiagrams"),XOt=(e(),Ur(),fu(),me(async()=>{R.debug("Loading registered diagrams");var t=(await Promise.allSettled(Object.entries(Xt).map(async([t,{detector:e,loader:r}])=>{if(r)try{Th(t)}catch{try{var{diagram:i,id:n}=await r();kh(n,i,e)}catch(e){throw R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete Xt[t],e}}}))).filter(t=>"rejected"===t.status);if(0<t.length){R.error(`Failed to load ${t.length} external diagrams`);for(var e of t)R.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams")),KOt=(e(),Z3(),"comm"),ZOt= Line truncated `);var i=(e=Hft(e)).append("g");e.attr("viewBox","0 0 2412 512"),Hc(e,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r)},"draw")}),LPt={db:{},renderer:t,parser:{parse:me(()=>{},"parse")}},NPt="flowchart-elk",lPt=me((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0),"detector"),t=me(async()=>{var t=(await Promise.resolve().then(()=>(ZX(),YX))).diagram;return{id:NPt,diagram:t}},"loader"),IPt={id:NPt,detector:lPt,loader:t},RPt={id:"timeline",detector:me(t=>/^\s*timeline/.test(t),"detector"),loader:me(async()=>({id:"timeline",diagram:(await Promise.resolve().then(()=>(C3t(),s3t))).diagram}),"loader")},MPt={id:"mindmap",detector:me(t=>/^\s*mindmap/.test(t),"detector"),loader:me(async()=>({id:"mindmap",diagram:(await Promise.resolve().then(()=>(hLt(),F9t))).diagram}),"loader")},DPt={id:"kanban",detector:me(t=>/^\s*kanban/.test(t),"detector"),loader:me(async()=>({id:"kanban",diagram:(await Promise.resolve().then(()=>(ILt(),fLt))).diagram}),"loader")},OPt={id:"sankey",detector:me(t=>/^\s*sankey-beta/.test(t),"detector"),loader:me(async()=>({id:"sankey",diagram:(await Promise.resolve().then(()=>(cIt(),jNt))).diagram}),"loader")},PPt={id:"packet",detector:me(t=>/^\s*packet-beta/.test(t),"detector"),loader:me(async()=>({id:"packet",diagram:(await Promise.resolve().then(()=>(RIt(),gIt))).diagram}),"loader")},BPt={id:"radar",detector:me(t=>/^\s*radar-beta/.test(t),"detector"),loader:me(async()=>({id:"radar",diagram:(await Promise.resolve().then(()=>(JIt(),XIt))).diagram}),"loader")},FPt={id:"block",detector:me(t=>/^\s*block-beta/.test(t),"detector"),loader:me(async()=>({id:"block",diagram:(await Promise.resolve().then(()=>(sOt(),zDt))).diagram}),"loader")},$Pt="architecture",lPt=me(t=>/^\s*architecture/.test(t),"detector"),t=me(async()=>{var t=(await Promise.resolve().then(()=>(nPt(),ePt))).diagram;return{id:$Pt,diagram:t}},"loader"),zPt={id:$Pt,detector:lPt,loader:t},GPt=(Gr(),fu(),!1),UPt=me(()=>{GPt||(GPt=!0,kh("error",LPt,t=>"error"===t.toLowerCase().trim()),kh("---",{db:{clear:me(()=>{},"clear")},styles:{},renderer:{draw:me(()=>{},"draw")},parser:{parse:me(()=>{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")},"parse")},init:me(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Zt(aPt,DPt,TPt,wPt,hPt,dPt,pPt,gPt,xPt,bPt,IPt,cPt,sPt,MPt,RPt,uPt,_Pt,EPt,SPt,mPt,OPt,PPt,yPt,FPt,zPt,BPt))},"addDiagrams"),qPt=(e(),Gr(),fu(),me(async()=>{M.debug("Loading registered diagrams");var t=(await Promise.allSettled(Object.entries(Xt).map(async([t,{detector:e,loader:r}])=>{if(r)try{Th(t)}catch{try{var{diagram:i,id:n}=await r();kh(n,i,e)}catch(e){throw M.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete Xt[t],e}}}))).filter(t=>"rejected"===t.status);if(0<t.length){M.error(`Failed to lLine truncated
`;try{Th(i)}catch{if(!(n=Jt(i)))throw new Vt(`Diagram ${i} not found.`);var{id:n,diagram:a}=await n();kh(n,a)}var{db:n,parser:a,renderer:s,init:o}=Th(i);return a.parser&&(a.parser.yy=n),n.clear?.(),o?.(r),e.title&&n.setDiagramTitle?.(e.title),await a.parse(t),new TBt(i,t,n,a,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},$Pt=(Jc(),[]),zPt=me(()=>{$Pt.forEach(t=>{t()}),$Pt=[]},"attachFunctions"),UPt=(e(),me(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments"));function GPt(t){var e,r,i=t.match(Yt);return i?(r={},(e="object"!=typeof(e=NA(i[1],{schema:LA})??{})||Array.isArray(e)?{}:e).displayMode&&(r.displayMode=e.displayMode.toString()),e.title&&(r.title=e.title.toString()),e.config&&(r.config=e.config),{text:t.slice(i[0].length),metadata:r}):{text:t,metadata:{}}}$r(),IA(),me(GPt,"extractFrontMatter"),KE();var qPt=me(t=>t.replace(/\r\n?/g,` `;try{Th(i)}catch{if(!(n=Jt(i)))throw new Vt(`Diagram ${i} not found.`);var{id:n,diagram:a}=await n();kh(n,a)}var{db:n,parser:a,renderer:s,init:o}=Th(i);return a.parser&&(a.parser.yy=n),n.clear?.(),o?.(r),e.title&&n.setDiagramTitle?.(e.title),await a.parse(t),new yFt(i,t,n,a,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},MBt=(Jc(),[]),DBt=me(()=>{MBt.forEach(t=>{t()}),MBt=[]},"attachFunctions"),OBt=(e(),me(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments"));function PBt(t){var e,r,i=t.match(Wt);return i?(r={},(e="object"!=typeof(e=NA(i[1],{schema:LA})??{})||Array.isArray(e)?{}:e).displayMode&&(r.displayMode=e.displayMode.toString()),e.title&&(r.title=e.title.toString()),e.config&&(r.config=e.config),{text:t.slice(i[0].length),metadata:r}):{text:t,metadata:{}}}$r(),IA(),me(PBt,"extractFrontMatter"),KE();var BBt=me(t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),jPt=me(t=>{var{text:t,metadata:e}=GPt(t),{displayMode:e,title:r,config:i={}}=e;return e&&(i.gantt||(i.gantt={}),i.gantt.displayMode=e),{title:r,config:i,text:t}},"processFrontmatter"),YPt=me(t=>{var e=WE.detectInit(t)??{},r=WE.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):"wrap"===r?.type&&(e.wrap=!0),{text:SE(t),directive:e}},"processDirectives");function WPt(t){var e=qPt(t),e=jPt(e),r=YPt(e.text),i=bE(e.config,r.directive);return{code:t=UPt(r.text),title:e.title,config:i}}function HPt(t){return t=(new TextEncoder).encode(t),t=Array.from(t,t=>String.fromCodePoint(t)).join(""),btoa(t)}me(WPt,"preprocessDiagram"),eh(),Ei(),KE(),me(HPt,"toBase64");var VPt=["foreignobject"],XPt=["dominant-baseline"];function KPt(t){return t=WPt(t),Rr(),Mr(t.config??{}),t}async function ZPt(t,e){VOt();try{var{code:r,config:i}=KPt(t);return{diagramType:(await oBt(r)).type,config:i}}catch(t){if(e?.suppressErrors)return!1;throw t}}me(KPt,"processAndSetConfigs"),me(ZPt,"parse");var QPt=me((t,e,r=[])=>` `).replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),FBt=me(t=>{var{text:t,metadata:e}=PBt(t),{displayMode:e,title:r,config:i={}}=e;return e&&(i.gantt||(i.gantt={}),i.gantt.displayMode=e),{title:r,config:i,text:t}},"processFrontmatter"),$Bt=me(t=>{var e=YE.detectInit(t)??{},r=YE.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):"wrap"===r?.type&&(e.wrap=!0),{text:SE(t),directive:e}},"processDirectives");function zBt(t){var e=BBt(t),e=FBt(e),r=$Bt(e.text),i=xE(e.config,r.directive);return{code:t=OBt(r.text),title:e.title,config:i}}function GBt(t){return t=(new TextEncoder).encode(t),t=Array.from(t,t=>String.fromCodePoint(t)).join(""),btoa(t)}me(zBt,"preprocessDiagram"),eh(),Ei(),KE(),me(GBt,"toBase64");var UBt=["foreignobject"],qBt=["dominant-baseline"];function jBt(t){return t=zBt(t),Mr(),Rr(t.config??{}),t}async function WBt(t,e){UPt();try{var{code:r,config:i}=jBt(t);return{diagramType:(await eFt(r)).type,config:i}}catch(t){if(e?.suppressErrors)return!1;throw t}}me(jBt,"processAndSetConfigs"),me(WBt,"parse");var YBt=me((t,e,r=[])=>`
.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),JPt=me((e,r=new Map)=>{let i="";if(void 0!==e.themeCSS&&(i+=` .${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),HBt=me((e,r=new Map)=>{let i="";if(void 0!==e.themeCSS&&(i+=`
`+e.themeCSS),void 0!==e.fontFamily&&(i+=` `+e.themeCSS),void 0!==e.fontFamily&&(i+=`
:root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(i+=` :root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(i+=`
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),r instanceof Map){let t=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(e=>{nq(e.styles)||t.forEach(t=>{i+=QPt(e.id,t,e.styles)}),nq(e.textStyles)||(i+=QPt(e.id,"tspan",(e?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return i},"createCssStyles"),tBt=me((t,e,r,i)=>(r=JPt(t,r),DPt(LPt(i+`{${Qc(e,r,t.themeVariables)}}`),OPt)),"createUserStyles"),eBt=me((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=VE(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rBt=me((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${HPt(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups"> :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),r instanceof Map){let t=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(e=>{aq(e.styles)||t.forEach(t=>{i+=YBt(e.id,t,e.styles)}),aq(e.textStyles)||(i+=YBt(e.id,"tspan",(e?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return i},"createCssStyles"),VBt=me((t,e,r,i)=>(r=HBt(t,r),ABt(TBt(i+`{${Qc(e,r,t.themeVariables)}}`),LBt)),"createUserStyles"),XBt=me((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=VE(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),KBt=me((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${GBt(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">
The "iframe" tag is not supported by your browser. The "iframe" tag is not supported by your browser.
</iframe>`,"putIntoIFrame"),iBt=me((t,e,r,i,n)=>{var a=t.append("div"),r=(a.attr("id",r),i&&a.attr("style",i),a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg"));return n&&r.attr("xmlns:xlink",n),r.append("g"),t},"appendDivSvgG");function nBt(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}me(nBt,"sandboxedIframe");var aBt=me((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),fOt=me(async function(t,e,r){VOt();var i=KPt(e),n=(e=i.code,Nr());R.debug(n),e.length>(n?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let a="#"+t,s="i"+t,o="#"+s,l="d"+t,c="#"+l,h=me(()=>{var t=j(d?o:c).node();t&&"remove"in t&&t.remove()},"removeTempElements"),u=j("body"),d="sandbox"===n.securityLevel,p="loose"===n.securityLevel,g=n.fontFamily;void 0!==r?(r&&(r.innerHTML=""),d?(y=nBt(j(r),s),(u=j(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=j(r),iBt(u,t,l,"font-family: "+g,"http://www.w3.org/1999/xlink")):(aBt(document,t,l,s),d?(y=nBt(j("body"),s),(u=j(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=j("body"),iBt(u,t,l));let f,m;try{f=await FPt.fromText(e,{title:i.title})}catch(r){if(n.suppressErrorRendering)throw h(),r;f=await FPt.fromText("error"),m=r}var r=u.select(c).node(),y=f.type,r=(i=r.firstChild).firstChild,v=f.renderer.getClasses?.(e,f),v=tBt(n,y,v,a),b=document.createElement("style");b.innerHTML=v,i.insertBefore(b,r);try{await f.renderer.draw(e,t,Ift.version,f)}catch(r){throw n.suppressErrorRendering?h():OOt.draw(e,t,Ift.version),r}lBt(y,u.select(c+" svg"),f.db.getAccTitle?.(),f.db.getAccDescription?.()),u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let x=u.select(c).node().innerHTML;if(R.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),x=eBt(x,d,Rc(n.arrowMarkerAbsolute)),d?(v=u.select(c+" svg").node(),x=rBt(x,v)):p||(x=Mn.sanitize(x,{ADD_TAGS:VPt,ADD_ATTR:XPt,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),zPt(),m)throw m;return h(),{diagramType:y,svg:x,bindFunctions:f.db.bindFunctions}},"render");function sBt(t={}){(t=ie({},t))?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Cr(t),t?.theme&&t.theme in ur?t.themeVariables=ur[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ur.default.getThemeVariables(t.themeVariables)),t="object"==typeof t?_r(t):Ar(),k(t.logLevel),VOt()}me(sBt,"initialize");var oBt=me((t,e={})=>(t=WPt(t).code,FPt.fromText(t,e)),"getDiagramFromText");function lBt(t,e,r,i){PPt(e,t),BPt(e,r,i,e.attr("id"))}me(lBt,"addA11yInfo");var cBt=Object.freeze({render:fOt,parse:ZPt,getDiagramFromText:oBt,initialize:sBt,getConfig:Nr,setConfig:Lr,getSiteConfig:Ar,updateSiteConfig:Sr,reset:me(()=>{Rr()},"reset"),globalReset:me(()=>{Rr(br)},"globalReset"),defaultConfig:br}),hBt=(k(Nr().logLevel),Rr(Nr()),$X(),KE(),me((t,e,r)=>{R.warn(t),vE(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError")),uBt=me(async function(e={querySelector:".mermaid"}){try{await dBt(e)}catch(t){if(vE(t)&&R.error(t.str),wBt.parseError&&wBt.parseError(t),!e.suppressErrors)throw R.error("Use the suppressErrors option to suppress these errors"),t}},"run"),dBt=me(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){var i=cBt.getConfig();R.debug(`${t?"":"No "}Callback function found`);let n;if(r)n=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");n=document.querySelectorAll(e)}R.debug(`Found ${n.length} diagrams`),void 0!==i?.startOnLoad&&(R.debug("Start On Load: "+i?.startOnLoad),cBt.updateSiteConfig({startOnLoad:i?.startOnLoad}));var a,s=new WE.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(a of Array.from(n))if(R.info("Rendering diagram: "+a.id),!a.getAttribute("data-processed")){a.setAttribute("data-processed","true");var l="mermaid-"+s.next(),c=a.innerHTML,h=(c=jt(WE.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>"),WE.detectInit(c));h&&R.debug("Detected early reinit: ",h);try{var{svg:u,bindFunctions:d}=await xBt(l,c,a);a.innerHTML=u,t&&await t(l),d&&d(a)}catch(t){hBt(t,o,wBt.parseError)}}if(0<o.length)throw o[0]},"runThrowsErrors"),pBt=me(function(t){cBt.initialize(t)},"initialize"),t=me(async function(t,e,r){R.warn("mermaid.init is deprecated. Please use run instead."),t&&pBt(t),t={postRenderCallback:r,querySelector:".mermaid"},"string"==typeof e?t.querySelector=e:e&&(e instanceof HTMLElement?t.nodes=[e]:t.nodes=e),await uBt(t)},"init"),fOt=me(async(t,{lazyLoad:e=!0}={})=>{VOt(),Zt(...t),!1===e&&await XOt()},"registerExternalDiagrams"),gBt=me(function(){wBt.startOnLoad&&cBt.getConfig().startOnLoad&&wBt.run().catch(t=>R.error("Mermaid failed Line truncated </iframe>`,"putIntoIFrame"),ZBt=me((t,e,r,i,n)=>{var a=t.append("div"),r=(a.attr("id",r),i&&a.attr("style",i),a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg"));return n&&r.attr("xmlns:xlink",n),r.append("g"),t},"appendDivSvgG");function QBt(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}me(QBt,"sandboxedIframe");var JBt=me((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),lPt=me(async function(t,e,r){UPt();var i=jBt(e),n=(e=i.code,Nr());M.debug(n),e.length>(n?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let a="#"+t,s="i"+t,o="#"+s,l="d"+t,c="#"+l,h=me(()=>{var t=j(d?o:c).node();t&&"remove"in t&&t.remove()},"removeTempElements"),u=j("body"),d="sandbox"===n.securityLevel,p="loose"===n.securityLevel,g=n.fontFamily;void 0!==r?(r&&(r.innerHTML=""),d?(y=QBt(j(r),s),(u=j(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=j(r),ZBt(u,t,l,"font-family: "+g,"http://www.w3.org/1999/xlink")):(JBt(document,t,l,s),d?(y=QBt(j("body"),s),(u=j(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=j("body"),ZBt(u,t,l));let f,m;try{f=await RBt.fromText(e,{title:i.title})}catch(r){if(n.suppressErrorRendering)throw h(),r;f=await RBt.fromText("error"),m=r}var r=u.select(c).node(),y=f.type,r=(i=r.firstChild).firstChild,v=f.renderer.getClasses?.(e,f),v=VBt(n,y,v,a),x=document.createElement("style");x.innerHTML=v,i.insertBefore(x,r);try{await f.renderer.draw(e,t,qft.version,f)}catch(r){throw n.suppressErrorRendering?h():APt.draw(e,t,qft.version),r}rFt(y,u.select(c+" svg"),f.db.getAccTitle?.(),f.db.getAccDescription?.()),u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let b=u.select(c).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),b=XBt(b,d,Mc(n.arrowMarkerAbsolute)),d?(v=u.select(c+" svg").node(),b=KBt(b,v)):p||(b=Rn.sanitize(b,{ADD_TAGS:UBt,ADD_ATTR:qBt,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),DBt(),m)throw m;return h(),{diagramType:y,svg:b,bindFunctions:f.db.bindFunctions}},"render");function tFt(t={}){(t=ie({},t))?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),_r(t),t?.theme&&t.theme in ur?t.themeVariables=ur[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ur.default.getThemeVariables(t.themeVariables)),t="object"==typeof t?Cr(t):Ar(),T(t.logLevel),UPt()}me(tFt,"initialize");var eFt=me((t,e={})=>(t=zBt(t).code,RBt.fromText(t,e)),"getDiagramFromText");function rFt(t,e,r,i){NBt(e,t),IBt(e,r,i,e.attr("id"))}me(rFt,"addA11yInfo");var iFt=Object.freeze({render:lPt,parse:WBt,getDiagramFromText:eFt,initialize:tFt,getConfig:Nr,setConfig:Lr,getSiteConfig:Ar,updateSiteConfig:Sr,reset:me(()=>{Mr()},"reset"),globalReset:me(()=>{Mr(xr)},"globalReset"),defaultConfig:xr}),nFt=(T(Nr().logLevel),Mr(Nr()),zX(),KE(),me((t,e,r)=>{M.warn(t),vE(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError")),aFt=me(async function(e={querySelector:".mermaid"}){try{await sFt(e)}catch(t){if(vE(t)&&M.error(t.str),fFt.parseError&&fFt.parseError(t),!e.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),t}},"run"),sFt=me(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){var i=iFt.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(r)n=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");n=document.querySelectorAll(e)}M.debug(`Found ${n.length} diagrams`),void 0!==i?.startOnLoad&&(M.debug("Start On Load: "+i?.startOnLoad),iFt.updateSiteConfig({startOnLoad:i?.startOnLoad}));var a,s=new YE.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(a of Array.from(n))if(M.info("Rendering diagram: "+a.id),!a.getAttribute("data-processed")){a.setAttribute("data-processed","true");var l="mermaid-"+s.next(),c=a.innerHTML,h=(c=jt(YE.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>"),YE.detectInit(c));h&&M.debug("Detected early reinit: ",h);try{var{svg:u,bindFunctions:d}=await gFt(l,c,a);a.innerHTML=u,t&&await t(l),d&&d(a)}catch(t){nFt(t,o,fFt.parseError)}}if(0<o.length)throw o[0]},"runThrowsErrors"),oFt=me(function(t){iFt.initialize(t)},"initialize"),t=me(async function(t,e,r){M.warn("mermaid.init is deprecated. Please use run instead."),t&&oFt(t),t={postRenderCallback:r,querySelector:".mermaid"},"string"==typeof e?t.querySelector=e:e&&(e instanceof HTMLElement?t.nodes=[e]:t.nodes=e),await aFt(t)},"init"),lPt=me(async(t,{lazyLoad:e=!0}={})=>{UPt(),Zt(...t),!1===e&&await qPt()},"registerExternalDiagrams"),lFt=me(function(){fFt.startOnLoad&&iFt.getConfig().startOnLoad&&fFt.run().catch(t=>M.error("Mermaid failed Line truncated