2026-04-01 22:38:25 +00:00
"use strict" ; var _ _esbuild _esm _mermaid _nm ; ( _ _esbuild _esm _mermaid _nm || = { } ) . mermaid = ( ( ) => { var s8e = Object . create ; var Ax = Object . defineProperty ; var o8e = Object . getOwnPropertyDescriptor ; var l8e = Object . getOwnPropertyNames ; var c8e = Object . getPrototypeOf , u8e = Object . prototype . hasOwnProperty ; var o = ( t , e ) => Ax ( t , "name" , { value : e , configurable : ! 0 } ) ; var P = ( t , e ) => ( ) => ( t && ( e = t ( t = 0 ) ) , e ) ; var ar = ( t , e ) => ( ) => ( e || t ( ( e = { exports : { } } ) . exports , e ) , e . exports ) , ur = ( t , e ) => { for ( var r in e ) Ax ( t , r , { get : e [ r ] , enumerable : ! 0 } ) } , a4 = ( t , e , r , i ) => { if ( e && typeof e == "object" || typeof e == "function" ) for ( let n of l8e ( e ) ) ! u8e . call ( t , n ) && n !== r && Ax ( t , n , { get : ( ) => e [ n ] , enumerable : ! ( i = o8e ( e , n ) ) || i . enumerable } ) ; return t } , Kr = ( t , e , r ) => ( a4 ( t , e , "default" ) , r && a4 ( r , e , "default" ) ) , Wa = ( t , e , r ) => ( r = t != null ? s8e ( c8e ( t ) ) : { } , a4 ( e || ! t || ! t . _ _esModule ? Ax ( r , "default" , { value : t , enumerable : ! 0 } ) : r , t ) ) , s4 = t => a4 ( Ax ( { } , "__esModule" , { value : ! 0 } ) , t ) ; var h8e , Tg , _8 , TY , o4 = P ( ( ) => { "use strict" ; h8e = Object . freeze ( { left : 0 , top : 0 , width : 16 , height : 16 } ) , Tg = Object . freeze ( { rotate : 0 , vFlip : ! 1 , hFlip : ! 1 } ) , _8 = Object . freeze ( { ... h8e , ... Tg } ) , TY = Object . freeze ( { ... _8 , body : "" , hidden : ! 1 } ) } ) ; var f8e , kY , CY = P ( ( ) => { "use strict" ; o4 ( ) ; f8e = Object . freeze ( { width : null , height : null } ) , kY = Object . freeze ( { ... f8e , ... Tg } ) } ) ; var D8 , l4 , wY = P ( ( ) => { "use strict" ; D8 = o ( ( t , e , r , i = "" ) => { let n = t . split ( ":" ) ; if ( t . slice ( 0 , 1 ) === "@" ) { if ( n . length < 2 || n . length > 3 ) return null ; i = n . shift ( ) . slice ( 1 ) } if ( n . length > 3 || ! n . length ) return null ; if ( n . length > 1 ) { let l = n . pop ( ) , u = n . pop ( ) , h = { provider : n . length > 0 ? n [ 0 ] : i , prefix : u , name : l } ; return e && ! l4 ( h ) ? null : h } let a = n [ 0 ] , s = a . split ( "-" ) ; if ( s . length > 1 ) { let l = { provider : i , prefix : s . shift ( ) , name : s . join ( "-" ) } ; return e && ! l4 ( l ) ? null : l } if ( r && i === "" ) { let l = { provider : i , prefix : "" , name : a } ; return e && ! l4 ( l , r ) ? null : l } return null } , "stringToIcon" ) , l4 = o ( ( t , e ) => t ? ! ! ( ( e && t . prefix === "" || t . prefix ) && t . name ) : ! 1 , "validateIconName" ) } ) ; function EY ( t , e ) { let r = { } ; ! t . hFlip != ! e . hFlip && ( r . hFlip = ! 0 ) , ! t . vFlip != ! e . vFlip && ( r . vFlip = ! 0 ) ; let i = ( ( t . rotate || 0 ) + ( e . rotate || 0 ) ) % 4 ; return i && ( r . rotate = i ) , r } var SY = P ( ( ) => { "use strict" ; o ( EY , "mergeIconTransformations" ) } ) ; function L8 ( t , e ) { let r = EY ( t , e ) ; for ( let i in TY ) i in Tg ? i in t && ! ( i in r ) && ( r [ i ] = Tg [ i ] ) : i in e ? r [ i ] = e [ i ] : i in t && ( r [ i ] = t [ i ] ) ; return r } var AY = P ( ( ) => { "use strict" ; o4 ( ) ; SY ( ) ; o ( L8 , "mergeIconData" ) } ) ; function _Y ( t , e ) { let r = t . icons , i = t . aliases || Object . create ( null ) , n = Object . create ( null ) ; function a ( s ) { if ( r [ s ] ) return n [ s ] = [ ] ; if ( ! ( s in n ) ) { n [ s ] = null ; let l = i [ s ] && i [ s ] . parent , u = l && a ( l ) ; u && ( n [ s ] = [ l ] . concat ( u ) ) } return n [ s ] } return o ( a , "resolve" ) , ( e || Object . keys ( r ) . concat ( Object . keys ( i ) ) ) . forEach ( a ) , n } var DY = P ( ( ) => { "use strict" ; o ( _Y , "getIconsTree" ) } ) ; function LY ( t , e , r ) { let i = t . icons , n = t . aliases || Object . create ( null ) , a = { } ; function s ( l ) { a = L8 ( i [ l ] || n [ l ] , a ) } return o ( s , "parse" ) , s ( e ) , r . forEach ( s ) , L8 ( t , a ) } function R8 ( t , e ) { if ( t . icons [ e ] ) return LY ( t , e , [ ] ) ; let r = _Y ( t , [ e ] ) [ e ] ; return r ? LY ( t , e , r ) : null } var RY = P ( ( ) => { "use strict" ; AY ( ) ; DY ( ) ; o ( LY , "internalGetIconData" ) ; o ( R8 , "getIconData" ) } ) ; function N8 ( t , e , r ) { if ( e === 1 ) return t ; if ( r = r || 100 , typeof t == "number" ) return Math . ceil ( t * e * r ) / r ; if ( typeof t != "string" ) return t ; let i = t . split ( d8e ) ; if ( i === null || ! i . length ) return t ; let n = [ ] , a = i . shift ( ) , s = p8e . test ( a ) ; for ( ; ; ) { if ( s ) { let l = parseFloat ( a ) ; isNaN ( l ) ? n . push ( a ) : n . push ( Math . ceil ( l * e * r ) / r ) } else n . push ( a ) ; if ( a = i . shift ( ) , a === void 0 ) return n . join ( "" ) ; s = ! s } } var d8e , p8e , NY = P ( ( ) => { "use strict" ; d8e = /(-?[0-9.]*[0-9]+[0-9.]*)/g , p8e = /^-?[0-9.]*[0-9]+[0-9.]*$/g ; o ( N8 , "calculateSize" ) } ) ; function m8e ( t , e = "defs" ) { let r = "" , i = t . indexOf ( "<" + e ) ; for ( ; i >= 0 ; ) { let n = t . indexOf ( ">" , i ) , a = t . indexOf ( "</" + e ) ; if ( n === - 1 || a === - 1 ) break ; let s = t . indexOf ( ">" , a ) ; if ( s === - 1 ) break ; r += t . slice ( n + 1 , a ) . trim ( ) , t = t . slice ( 0 , i ) . trim ( ) + t . slice ( s + 1 ) } return { defs : r , content : t } } function g8e ( t , e ) { return t ? "<defs>" + t + "</defs>" + e : e } function IY ( t , e , r ) { let i = m8e ( t ) ; return g8e ( i . defs , e + i . content + r ) } var MY = P ( ( ) => { "use strict" ; o ( m8e , "splitSVGDefs" ) ; o ( g8e , "mergeDefsAndContent" ) ; o ( IY , "wrapSVGContent" ) } ) ; function I8 ( t , e ) { let r = { ... _8 , ... t } , i = { ... kY , ... e } , n = { left : r . left , top : r . top , width : r . width , height : r . height } , a = r . body ; [ r , i ] . forEach ( y => { let v = [ ] , x = y . hFlip , b = y . vFlip , T = y . rotate ; x ? b ? T += 2 : ( v . push ( "translate(" + ( n . width + n . left ) . toString ( ) + " " + ( 0 - n . to
` +Ir),be&&b4([A,_,D],sa=>{Ir=Px(Ir,sa," ")}),w&& $ e?w.createHTML(Ir):Ir},e.setConfig=function(){let xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pt(xt),Ne=!0},e.clearConfig=function(){fe=null,Ne=!1},e.isValidAttribute=function(xt,Ie,ft){fe||Pt({});let _t=it(xt),zr=it(Ie);return dr(_t,zr,ft)},e.addHook=function(xt,Ie){typeof Ie=="function"&&Ox(I[xt],Ie)},e.removeHook=function(xt,Ie){if(Ie!==void 0){let ft=W8e(I[xt],Ie);return ft===-1?void 0:U8e(I[xt],ft,1)[0]}return jj(I[xt])},e.removeHooks=function(xt){I[xt]=[]},e.removeAllHooks=function(){I=eX()},e}var tX,Yj,G8e,V8e,q8e,Ns,bl,fD,dD,pD,b4,W8e,jj,Ox,U8e,k4,sD,oD,Px,H8e,Y8e,lc,Rs,Bx,Xj,lD,cD,K8e,uD,Q8e,Kj,Qj,hD,Zj,T4,Z8e,J8e,eDe,tDe,rDe,rX,iDe,nDe,iX,aDe,Jj, $ x,sDe,oDe,eX,Tl,zx=P(()=>{"use strict";({entries:tX,setPrototypeOf:Yj,isFrozen:G8e,getPrototypeOf:V8e,getOwnPropertyDescriptor:q8e}=Object),{freeze:Ns,seal:bl,create:fD}=Object,{apply:dD,construct:pD}=typeof Reflect<"u"&&Reflect;Ns||(Ns=o(function(e){return e},"freeze"));bl||(bl=o(function(e){return e},"seal"));dD||(dD=o(function(e,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return e.apply(r,n)},"apply"));pD||(pD=o(function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new e(...i)},"construct"));b4=Is(Array.prototype.forEach),W8e=Is(Array.prototype.lastIndexOf),jj=Is(Array.prototype.pop),Ox=Is(Array.prototype.push),U8e=Is(Array.prototype.splice),k4=Is(String.prototype.toLowerCase),sD=Is(String.prototype.toString),oD=Is(String.prototype.match),Px=Is(String.prototype.replace),H8e=Is(String.prototype.indexOf),Y8e=Is(String.prototype.trim),lc=Is(Object.prototype.hasOwnProperty),Rs=Is(RegExp.prototype.test),Bx=j8e(TypeError);o(Is,"unapply");o(j8e,"unconstruct");o(Qr,"addToSet");o(X8e,"cleanArray");o(Jc,"clone");o(Fx,"lookupGetter");Xj=Ns(["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","search","section","select","shadow","slot","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"]),lD=Ns(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cD=Ns(["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"]),K8e=Ns(["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"]),uD=Ns(["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","mun
2026-02-13 14:04:06 -07:00
c - 2.7 , 0 , - 7.17 , - 2.7 , - 13.5 , - 8 c - 5.8 , - 5.3 , - 9.5 , - 10 , - 9.5 , - 14
c0 , - 2 , 0.3 , - 3.3 , 1 , - 4 c1 . 3 , - 2.7 , 23.83 , - 20.7 , 67.5 , - 54
c44 . 2 , - 33.3 , 65.8 , - 50.3 , 66.5 , - 51 c1 . 3 , - 1.3 , 3 , - 2 , 5 , - 2 c4 . 7 , 0 , 8.7 , 3.3 , 12 , 10
s173 , 378 , 173 , 378 c0 . 7 , 0 , 35.3 , - 71 , 104 , - 213 c68 . 7 , - 142 , 137.5 , - 285 , 206.5 , - 429
c69 , - 144 , 104.5 , - 217.7 , 106.5 , - 221
l ` +e/2.075+" -"+e+ `
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
H400000v ` +(40+e)+ ` H845 . 2724
s - 225.272 , 467 , - 225.272 , 467 s - 235 , 486 , - 235 , 486 c - 2.7 , 4.7 , - 9 , 7 , - 19 , 7
c - 6 , 0 , - 10 , - 1 , - 12 , - 3 s - 194 , - 422 , - 194 , - 422 s - 65 , 47 , - 65 , 47 z
2026-04-01 22:38:25 +00:00
M ` +(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtMain"),SDe=o(function(e,r){return"M263,"+(601+e+r)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
2026-02-13 14:04:06 -07:00
c34 , 79.3 , 68.167 , 158.7 , 102.5 , 238 c34 . 3 , 79.3 , 51.8 , 119.3 , 52.5 , 120
c340 , - 704.7 , 510.7 , - 1060.3 , 512 , - 1067
l ` +e/2.084+" -"+e+ `
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
H40000v ` +(40+e)+ ` H1012 . 3
s - 271.3 , 567 , - 271.3 , 567 c - 38.7 , 80.7 , - 84 , 175 , - 136 , 283 c - 52 , 108 , - 89.167 , 185.3 , - 111.5 , 232
c - 22.3 , 46.7 , - 33.8 , 70.3 , - 34.5 , 71 c - 4.7 , 4.7 , - 12.3 , 7 , - 23 , 7 s - 12 , - 1 , - 12 , - 1
s - 109 , - 253 , - 109 , - 253 c - 72.7 , - 168 , - 109.3 , - 252 , - 110 , - 252 c - 10.7 , 8 , - 22 , 16.7 , - 34 , 26
c - 22 , 17.3 , - 33.3 , 26 , - 34 , 26 s - 26 , - 26 , - 26 , - 26 s76 , - 59 , 76 , - 59 s76 , - 60 , 76 , - 60 z
2026-04-01 22:38:25 +00:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize1"),ADe=o(function(e,r){return"M983 "+(10+e+r)+ `
2026-02-13 14:04:06 -07:00
l ` +e/3.13+" -"+e+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+e)+ `
H1013 . 1 s - 83.4 , 268 , - 264.1 , 840 c - 180.7 , 572 , - 277 , 876.3 , - 289 , 913 c - 4.7 , 4.7 , - 12.7 , 7 , - 24 , 7
s - 12 , 0 , - 12 , 0 c - 1.3 , - 3.3 , - 3.7 , - 11.7 , - 7 , - 25 c - 35.3 , - 125.3 , - 106.7 , - 373.3 , - 214 , - 744
c - 10 , 12 , - 21 , 25 , - 33 , 39 s - 32 , 39 , - 32 , 39 c - 6 , - 5.3 , - 15 , - 14 , - 27 , - 26 s25 , - 30 , 25 , - 30
c26 . 7 , - 32.7 , 52 , - 63 , 76 , - 91 s52 , - 60 , 52 , - 60 s208 , 722 , 208 , 722
c56 , - 175.3 , 126.3 , - 397.3 , 211 , - 666 c84 . 7 , - 268.7 , 153.8 , - 488.2 , 207.5 , - 658.5
c53 . 7 , - 170.3 , 84.5 , - 266.8 , 92.5 , - 289.5 z
2026-04-01 22:38:25 +00:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize2"),_De=o(function(e,r){return"M424,"+(2398+e+r)+ `
2026-02-13 14:04:06 -07:00
c - 1.3 , - 0.7 , - 38.5 , - 172 , - 111.5 , - 514 c - 73 , - 342 , - 109.8 , - 513.3 , - 110.5 , - 514
c0 , - 2 , - 10.7 , 14.3 , - 32 , 49 c - 4.7 , 7.3 , - 9.8 , 15.7 , - 15.5 , 25 c - 5.7 , 9.3 , - 9.8 , 16 , - 12.5 , 20
s - 5 , 7 , - 5 , 7 c - 4 , - 3.3 , - 8.3 , - 7.7 , - 13 , - 13 s - 13 , - 13 , - 13 , - 13 s76 , - 122 , 76 , - 122 s77 , - 121 , 77 , - 121
s209 , 968 , 209 , 968 c0 , - 2 , 84.7 , - 361.7 , 254 , - 1079 c169 . 3 , - 717.3 , 254.7 , - 1077.7 , 256 , - 1081
l ` +e/4.223+" -"+e+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+e)+ ` H1014 . 6
s - 87.3 , 378.7 , - 272.6 , 1166 c - 185.3 , 787.3 , - 279.3 , 1182.3 , - 282 , 1185
c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+e)+" "+r+ `
2026-04-01 22:38:25 +00:00
h400000v ` +(40+e)+"h-400000z"},"sqrtSize3"),DDe=o(function(e,r){return"M473,"+(2713+e+r)+ `
2026-02-13 14:04:06 -07:00
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +e/5.298+" -"+e+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+e)+ ` H1017 . 7
s - 90.5 , 478 , - 276.2 , 1466 c - 185.7 , 988 , - 279.5 , 1483 , - 281.5 , 1485 c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 c0 , - 1.3 , - 5.3 , - 32 , - 16 , - 92 c - 50.7 , - 293.3 , - 119.7 , - 693.3 , - 207 , - 1200
c0 , - 1.3 , - 5.3 , 8.7 , - 16 , 30 c - 10.7 , 21.3 , - 21.3 , 42.7 , - 32 , 64 s - 16 , 33 , - 16 , 33 s - 26 , - 26 , - 26 , - 26
s76 , - 153 , 76 , - 153 s77 , - 151 , 77 , - 151 c0 . 7 , 0.7 , 35.7 , 202 , 105 , 604 c67 . 3 , 400.7 , 102 , 602.7 , 104 ,
2026-04-01 22:38:25 +00:00
606 zM ` +(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},"sqrtSize4"),LDe=o(function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},"phasePath"),RDe=o(function(e,r,i){var n=i-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+ `
H742v ` +n+ ` l - 4 4 - 4 4 c - . 667.7 - 2 1.5 - 4 2.5 s - 4.167 1.833 - 6.5 2.5 - 5.5 1 - 9.5 1
2026-02-13 14:04:06 -07:00
h - 12 l - 28 - 84 c - 16.667 - 52 - 96.667 - 294.333 - 240 - 727 l - 212 - 643 - 85 170
c - 4 - 3.333 - 8.333 - 7.667 - 13 - 13 l - 13 - 13 l77 - 155 77 - 156 c66 199.333 139 419.667
2026-04-01 22:38:25 +00:00
219 661 l218 661 zM702 ` +r+"H400000v"+(40+e)+"H742z"},"sqrtTall"),NDe=o(function(e,r,i){r=1e3*r;var n="";switch(e){case"sqrtMain":n=EDe(r,Sg);break;case"sqrtSize1":n=SDe(r,Sg);break;case"sqrtSize2":n=ADe(r,Sg);break;case"sqrtSize3":n=_De(r,Sg);break;case"sqrtSize4":n=DDe(r,Sg);break;case"sqrtTall":n=RDe(r,Sg,i)}return n},"sqrtPath"),IDe=o(function(e,r){switch(e){case" \u 239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case" \u 2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case" \u 2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case" \u 239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case" \u 23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case" \u 23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case" \u 23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case" \u 23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case" \u 2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),aX={doubleleftarrow: ` M262 157
2026-02-13 14:04:06 -07:00
l10 - 10 c34 - 36 62.7 - 77 86 - 123 3.3 - 8 5 - 13.3 5 - 16 0 - 5.3 - 6.7 - 8 - 20 - 8 - 7.3
0 - 12.2 . 5 - 14.5 1.5 - 2.3 1 - 4.8 4.5 - 7.5 10.5 - 49.3 97.3 - 121.7 169.3 - 217 216 - 28
14 - 57.3 25 - 88 33 - 6.7 2 - 11 3.8 - 13 5.5 - 2 1.7 - 3 4.2 - 3 7.5 s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13 h6c12 - . 7 18 - 4 18 - 10 0 - 2 - 1.7 - 7 - 5 - 15 - 23.3 - 46 - 52 - 87
- 86 - 123 l - 10 - 10 h399738v - 40 H218c328 0 0 0 0 0 l - 10 - 8 c - 26.7 - 20 - 65.7 - 43 - 117 - 69 2.7
- 2 6 - 3.7 10 - 5 36.7 - 16 72.3 - 37.3 107 - 64 l10 - 8 h399782v - 40 z
m8 0 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,doublerightarrow: ` M399738 392 l
- 10 10 c - 34 36 - 62.7 77 - 86 123 - 3.3 8 - 5 13.3 - 5 16 0 5.3 6.7 8 20 8 7.3 0 12.2 - . 5
14.5 - 1.5 2.3 - 1 4.8 - 4.5 7.5 - 10.5 49.3 - 97.3 121.7 - 169.3 217 - 216 28 - 14 57.3 - 25 88
- 33 6.7 - 2 11 - 3.8 13 - 5.5 2 - 1.7 3 - 4.2 3 - 7.5 s - 1 - 5.8 - 3 - 7.5 c - 2 - 1.7 - 6.3 - 3.5 - 13 - 5.5 - 68
- 17.3 - 128.2 - 47.8 - 180.5 - 91.5 - 52.3 - 43.7 - 93.8 - 96.2 - 124.5 - 157.5 - 9.3 - 8 - 15.3 - 12.3 - 18
- 13 h - 6 c - 12 . 7 - 18 4 - 18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123 l10 10 H0v40h399782
c - 328 0 0 0 0 0 l10 8 c26 . 7 20 65.7 43 117 69 - 2.7 2 - 6 3.7 - 10 5 - 36.7 16 - 72.3 37.3
- 107 64 l - 10 8 H0v40zM0 157 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,leftarrow: ` M400000 241 H110l3 - 3 c68 . 7 - 52.7 113.7 - 120
135 - 202 4 - 14.7 6 - 23 6 - 25 0 - 7.3 - 7 - 11 - 21 - 11 - 8 0 - 13.2 . 8 - 15.5 2.5 - 2.3 1.7 - 4.2 5.8
- 5.5 12.5 - 1.3 4.7 - 2.7 10.3 - 4 17 - 12 48.7 - 34.8 92 - 68.5 130 S65 . 3 228.3 18 247
c - 10 4 - 16 7.7 - 18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85 S196 441.3 208
490 c . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c . 3 1.3 1 3.3 2 6 s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3
1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11 0 - 2 - 2 - 10.3 - 6 - 25 - 20 - 79.3 - 65 - 146.7 - 135 - 202
l - 3 - 3 h399890zM100 241 v40h399900v - 40 z ` ,leftbrace: ` M6 548 l - 6 - 6 v - 35 l6 - 11 c56 - 104 135.3 - 181.3 238 - 232 57.3 - 28.7 117
- 45 179 - 50 h399577v120H403c - 43.3 7 - 81 15 - 113 26 - 100.7 33 - 179.7 91 - 237 174 - 2.7
5 - 6 9 - 10 13 - . 7 1 - 7.3 1 - 20 1 H6z ` ,leftbraceunder: ` M0 6 l6 - 6 h17c12 . 688 0 19.313 . 3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5 . 688
0 2 . 3 4 1 18.688 2.7 76 4.3 172 5 h399450v120H429l - 6 - 1 c - 124.688 - 8 - 235 - 61.7
- 331 - 161 C60 . 687 138.7 32.312 99.3 7 54 L0 41 V6z ` ,leftgroup: ` M400000 80
H435C64 80 168.3 229.4 21 260 c - 5.9 1.2 - 18 0 - 18 0 - 2 0 - 3 - 1 - 3 - 3 v - 38 C76 61 257 0
435 0 h399565z ` ,leftgroupunder: ` M400000 262
H435C64 262 168.3 112.6 21 82 c - 5.9 - 1.2 - 18 0 - 18 0 - 2 0 - 3 1 - 3 3 v38c76 158 257 219
435 219 h399565z ` ,leftharpoon: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3
- 3.3 10.2 - 9.5 20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5
- 18.3 3 - 21 - 1.3 - 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7
- 196 228 - 6.7 4.7 - 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 z ` ,leftharpoonplus: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3 - 3.3 10.2 - 9.5
20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5 - 18.3 3 - 21 - 1.3
- 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7 - 196 228 - 6.7 4.7
- 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 zM0 435 v40h400000v - 40 z
m0 0 v40h400000v - 40 z ` ,leftharpoondown: ` M7 241 c - 4 4 - 6.333 8.667 - 7 14 0 5.333 . 667 9 2 11 s5 . 333
5.333 12 10 c90 . 667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 . 667 5
1 9 1 h5c10 . 667 0 16.667 - 2 18 - 6 2 - 2.667 1 - 9.667 - 3 - 21 - 32 - 87.333 - 82.667 - 157.667
- 152 - 211 l - 3 - 3 h399907v - 40 zM93 281 H400000 v - 40 L7 241 z ` ,leftharpoondownplus: ` M7 435 c - 4 4 - 6.3 8.7 - 7 14 0 5.3 . 7 9 2 11 s5 . 3 5.3 12
10 c90 . 7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 . 7 5 1 9 1 h5c10 . 7 0 16.7
- 2 18 - 6 2 - 2.7 1 - 9.7 - 3 - 21 - 32 - 87.3 - 82.7 - 157.7 - 152 - 211 l - 3 - 3 h399907v - 40 H7zm93 0
v40h399900v - 40 zM0 241 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,lefthook: ` M400000 281 H103s - 33 - 11.2 - 61 - 33.5 S0 197.3 0 164 s14 . 2 - 61.2 42.5
- 83.5 C70 . 8 58.2 104 47 142 47 c16 . 7 0 25 6.7 25 20 0 12 - 8.7 18.7 - 26 20 - 40 3.3
- 68.7 15.7 - 86 37 - 10 12 - 15 25.3 - 15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23 h399859zM103 281 v - 40 h399897v40z ` ,leftlinesegment: ` M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z ` ,leftmapsto: ` M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z ` ,leftToFrom: ` M0 147 h400000v40H0zm0 214 c68 40 115.7 95.7 143 167 h22c15 . 3 0 23
- . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69 - 70 - 101 l - 7 - 8 h399905v - 40 H95l7 - 8
c28 . 7 - 32 52 - 65.7 70 - 101 10.7 - 23.3 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 265.3
68 321 0 361 zm0 - 174 v - 40 h399900v40zm100 154 v40h399900v - 40 z ` ,longequal: ` M0 50 h400000 v40H0z m0 194 h40000v40H0z
M0 50 h400000 v40H0z m0 194 h40000v40H0z ` ,midbrace: ` M200428 334
c - 100.7 - 8.3 - 195.3 - 44 - 280 - 108 - 55.3 - 42 - 101.7 - 93 - 139 - 153 l - 9 - 14 c - 2.7 4 - 5.7 8.7 - 9 14
- 53.3 86.7 - 123.7 153 - 211 199 - 66.7 36 - 137.3 56.3 - 212 62 H0V214h199568c178 . 3 - 11.7
311.7 - 78.3 403 - 201 6 - 8 9.7 - 12 11 - 12 . 7 - . 7 6.7 - 1 18 - 1 s17 . 3.3 18 1 c1 . 3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141 s145 . 3 54.3 229 60 h199572v120z ` ,midbraceunder: ` M199572 214
c100 . 7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153 l9 14 c2 . 7 - 4 5.7 - 8.7 9 - 14
53.3 - 86.7 123.7 - 153 211 - 199 66.7 - 36 137.3 - 56.3 212 - 62 h199568v120H200432c - 178.3
11.7 - 311.7 78.3 - 403 201 - 6 8 - 9.7 12 - 11 12 - . 7.7 - 6.7 1 - 18 1 s - 17.3 - . 3 - 18 - 1 c - 1.3 0
- 5 - 4 - 11 - 12 - 44.7 - 59.3 - 101.3 - 106.3 - 170 - 141 s - 145.3 - 54.3 - 229 - 60 H0V214z ` ,oiintSize1: ` M512 . 6 71.6 c272 . 6 0 320.3 106.8 320.3 178.2 0 70.8 - 47.7 177.6
- 320.3 177.6 S193 . 1 320.6 193.1 249.8 c0 - 71.4 46.9 - 178.2 319.5 - 178.2 z
m368 . 1 178.2 c0 - 86.4 - 60.9 - 215.4 - 368.1 - 215.4 - 306.4 0 - 367.3 129 - 367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1 - 129 368.1 - 214.8 z ` ,oiintSize2: ` M757 . 8 100.1 c384 . 7 0 451.1 137.6 451.1 230 0 91.3 - 66.4 228.8
- 451.1 228.8 - 386.3 0 - 452.7 - 137.5 - 452.7 - 228.8 0 - 92.4 66.4 - 230 452.7 - 230 z
m502 . 4 230 c0 - 111.2 - 82.4 - 277.2 - 502.4 - 277.2 s - 504 166 - 504 277.2
c0 110 84 276 504 276 s502 . 4 - 166 502.4 - 276 z ` ,oiiintSize1: ` M681 . 4 71.6 c408 . 9 0 480.5 106.8 480.5 178.2 0 70.8 - 71.6 177.6
- 480.5 177.6 S202 . 1 320.6 202.1 249.8 c0 - 71.4 70.5 - 178.2 479.3 - 178.2 z
m525 . 8 178.2 c0 - 86.4 - 86.8 - 215.4 - 525.7 - 215.4 - 437.9 0 - 524.7 129 - 524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7 - 129 525.7 - 214.8 z ` ,oiiintSize2: ` M1021 . 2 53 c603 . 6 0 707.8 165.8 707.8 277.2 0 110 - 104.2 275.8
- 707.8 275.8 - 606 0 - 710.2 - 165.8 - 710.2 - 275.8 C311 218.8 415.2 53 1021.2 53 z
m770 . 4 277.1 c0 - 131.2 - 126.4 - 327.6 - 770.5 - 327.6 S248 . 4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4 s770 . 5 - 196.4 770.5 - 326.4 z ` ,rightarrow: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128
- 16.7 32 - 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20
11 8 0 13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7
39 - 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85
- 40.5 - 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm0 0 v40h399900v - 40 z ` ,rightbrace: ` M400000 542 l
- 6 6 h - 17 c - 12.7 0 - 19.3 - . 3 - 20 - 1 - 4 - 4 - 7.3 - 8.3 - 10 - 13 - 35.3 - 51.3 - 80.8 - 93.8 - 136.5 - 127.5
s - 117.2 - 55.8 - 184.5 - 66.5 c - . 7 0 - 2 - . 3 - 4 - 1 - 18.7 - 2.7 - 76 - 4.3 - 172 - 5 H0V214h399571l6 1
c124 . 7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118 l7 13 v35z ` ,rightbraceunder: ` M399994 0 l6 6 v35l - 6 11 c - 56 104 - 135.3 181.3 - 238 232 - 57.3
28.7 - 117 45 - 179 50 H - 300 V214h399897c43 . 3 - 7 81 - 15 113 - 26 100.7 - 33 179.7 - 91 237
- 174 2.7 - 5 6 - 9 10 - 13 . 7 - 1 7.3 - 1 20 - 1 h17z ` ,rightgroup: ` M0 80 h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3 - 1 3 - 3 v - 38 c - 76 - 158 - 257 - 219 - 435 - 219 H0z ` ,rightgroupunder: ` M0 262 h399565c371 0 266.7 - 149.4 414 - 180 5.9 - 1.2 18 0 18
0 2 0 3 1 3 3 v38c - 76 158 - 257 219 - 435 219 H0z ` ,rightharpoon: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3
- 3.7 - 15.3 - 11 - 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2
- 10.7 0 - 16.7 2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5 zm0 0 v40h399900v - 40 z ` ,rightharpoonplus: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3 - 3.7 - 15.3 - 11
- 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2 - 10.7 0 - 16.7
2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5 z
m0 0 v40h399900v - 40 z m100 194 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,rightharpoondown: ` M399747 511 c0 7.3 6.7 11 20 11 8 0 13 - . 8 15 - 2.5 s4 . 7 - 6.8
8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3 8.5 - 5.8 9.5
- 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3 - 64.7 57 - 92 95
- 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 241 v40h399900v - 40 z ` ,rightharpoondownplus: ` M399747 705 c0 7.3 6.7 11 20 11 8 0 13 - . 8
15 - 2.5 s4 . 7 - 6.8 8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3
8.5 - 5.8 9.5 - 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3
- 64.7 57 - 92 95 - 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 435 v40h399900v - 40 z
m0 - 194 v40h400000v - 40 zm0 0 v40h400000v - 40 z ` ,righthook: ` M399859 241 c - 764 0 0 0 0 0 40 - 3.3 68.7 - 15.7 86 - 37 10 - 12 15 - 25.3
15 - 40 0 - 22.7 - 9.8 - 40.7 - 29.5 - 54 - 19.7 - 13.3 - 43.5 - 21 - 71.5 - 23 - 17.3 - 1.3 - 26 - 8 - 26 - 20 0
- 13.3 8.7 - 20 26 - 20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8 s - 14 61.2 - 42 83.5 c - 28 22.3 - 61 33.5 - 99 33.5 L0 241 z M0 281 v - 40 h399859v40z ` ,rightlinesegment: ` M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z
M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z ` ,rightToFrom: ` M400000 167 c - 70.7 - 42 - 118 - 97.7 - 142 - 167 h - 23 c - 15.3 0 - 23 . 3 - 23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101 l7 8 H0v40h399905l - 7 8 c - 28.7 32
- 52 65.7 - 70 101 - 10.7 23.3 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h23c24 - 69.3 71.3 - 125 142
- 167 z M100 147 v40h399900v - 40 zM0 341 v40h399900v - 40 z ` ,twoheadleftarrow: ` M0 167 c68 40
115.7 95.7 143 167 h22c15 . 3 0 23 - . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69
- 70 - 101 l - 7 - 8 h125l9 7 c50 . 7 39.3 85 86 103 140 h46c0 - 4.7 - 6.3 - 18.7 - 19 - 42 - 18 - 35.3
- 40 - 67.3 - 66 - 96 l - 9 - 9 h399716v - 40 H284l9 - 9 c26 - 28.7 48 - 60.7 66 - 96 12.7 - 23.333 19
- 37.333 19 - 42 h - 46 c - 18 54 - 52.3 100.7 - 103 140 l - 9 7 H95l7 - 8 c28 . 7 - 32 52 - 65.7 70 - 101
10.7 - 23.333 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 71.3 68 127 0 167 z ` ,twoheadrightarrow: ` M400000 167
c - 68 - 40 - 115.7 - 95.7 - 143 - 167 h - 22 c - 15.3 0 - 23 . 3 - 23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101 l7 8 h - 125 l - 9 - 7 c - 50.7 - 39.3 - 85 - 86 - 103 - 140 h - 46 c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96 l9 9 H0v40h399716l - 9 9 c - 26 28.7 - 48 60.7 - 66 96 - 12.7 23.333
- 19 37.333 - 19 42 h46c18 - 54 52.3 - 100.7 103 - 140 l9 - 7 h125l - 7 8 c - 28.7 32 - 52 65.7 - 70
101 - 10.7 23.333 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h22c27 . 3 - 71.3 75 - 127 143 - 167 z ` ,tilde1: ` M200 55.538 c - 77 0 - 168 73.953 - 177 73.953 - 3 0 - 7
- 2.175 - 9 - 5.437 L2 97 c - 1 - 2 - 2 - 4 - 2 - 6 0 - 4 2 - 7 5 - 9 l20 - 12 C116 12 171 0 207 0 c86 0
114 68 191 68 78 0 168 - 68 177 - 68 4 0 7 2 9 5 l12 19 c1 2.175 2 4.35 2 6.525 0
4.35 - 2 7.613 - 5 9.788 l - 19 13.05 c - 92 63.077 - 116.937 75.308 - 183 76.128
- 68.267 . 847 - 113 - 73.952 - 191 - 73.952 z ` ,tilde2: ` M344 55.266 c - 142 0 - 300.638 81.316 - 311.5 86.418
- 8.01 3.762 - 22.5 10.91 - 23.5 5.562 L1 120 c - 1 - 2 - 1 - 3 - 1 - 4 0 - 5 3 - 9 8 - 10 l18 . 4 - 9 C160 . 9
31.9 283 0 358 0 c148 0 188 122 331 122 s314 - 97 326 - 97 c4 0 8 2 10 7 l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347 - 3 9.626 - 7 10.696 l - 22.3 12.622 C852 . 6 158.372 751
181.476 676 181.476 c - 149 0 - 189 - 126.21 - 332 - 126.21 z ` ,tilde3: ` M786 59 C457 59 32 175.242 13 175.242 c - 6 0 - 10 - 3.457
- 11 - 10.37 L . 15 138 c - 1 - 7 3 - 12 10 - 13 l19 . 2 - 6.4 C378 . 4 40.7 634.3 0 804.3 0 c337 0
411.8 157 746.8 157 328 0 754 - 112 773 - 112 5 0 10 3 11 9 l1 14.075 c1 8.066 - . 697
16.595 - 6.697 17.492 l - 21.052 7.31 c - 367.9 98.146 - 609.15 122.696 - 778.15 122.696
- 338 0 - 409 - 156.573 - 744 - 156.573 z ` ,tilde4: ` M786 58 C457 58 32 177.487 13 177.487 c - 6 0 - 10 - 3.345
- 11 - 10.035 L . 15 143 c - 1 - 7 3 - 12 10 - 13 l22 - 6.7 C381 . 2 35 637.15 0 807.15 0 c337 0 409
177 744 177 328 0 754 - 127 773 - 127 5 0 10 3 11 9 l1 14.794 c1 7.805 - 3 13.38 - 9
14.495 l - 20.7 5.574 c - 366.85 99.79 - 607.3 139.372 - 776.3 139.372 - 338 0 - 409
- 175.236 - 744 - 175.236 z ` ,vec: ` M377 20 c0 - 5.333 1.833 - 10 5.5 - 14 S391 0 397 0 c4 . 667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6 - 1 10 - 3 12 s - 6.667 5 - 14 9 c - 28.667 14.667 - 53.667 35.667 - 75 63
- 1.333 1.333 - 3.167 3.5 - 5.5 6.5 s - 4 4.833 - 5 5.5 c - 1 . 667 - 2.5 1.333 - 4.5 2 s - 4.333 1
- 7 1 c - 4.667 0 - 9.167 - 1.833 - 13.5 - 5.5 S337 184 337 178 c0 - 12.667 15.667 - 32.333 47 - 59
H213l - 171 - 1 c - 8.667 - 6 - 13 - 12.333 - 13 - 19 0 - 4.667 4.333 - 11.333 13 - 20 h359
c - 16 - 25.333 - 24 - 45 - 24 - 59 z ` ,widehat1: ` M529 0 h5l519 115 c5 1 9 5 9 10 0 1 - 1 2 - 1 3 l - 4 22
c - 1 5 - 5 9 - 11 9 h - 2 L532 67 19 159 h - 2 c - 5 0 - 9 - 4 - 11 - 9 l - 5 - 22 c - 1 - 6 2 - 12 8 - 13 z ` ,widehat2: ` M1181 0 h2l1171 176 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 220 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat3: ` M1181 0 h2l1171 236 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 280 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat4: ` M1181 0 h2l1171 296 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 340 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widecheck1: ` M529 , 159 h5l519 , - 115 c5 , - 1 , 9 , - 5 , 9 , - 10 c0 , - 1 , - 1 , - 2 , - 1 , - 3 l - 4 , - 22 c - 1 ,
- 5 , - 5 , - 9 , - 11 , - 9 h - 2 l - 512 , 92 l - 513 , - 92 h - 2 c - 5 , 0 , - 9 , 4 , - 11 , 9 l - 5 , 22 c - 1 , 6 , 2 , 12 , 8 , 13 z ` ,widecheck2: ` M1181 , 220 h2l1171 , - 176 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 153 l - 1167 , - 153 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck3: ` M1181 , 280 h2l1171 , - 236 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 213 l - 1167 , - 213 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck4: ` M1181 , 340 h2l1171 , - 296 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 273 l - 1167 , - 273 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,baraboveleftarrow: ` M400000 620 h - 399890 l3 - 3 c68 . 7 - 52.7 113.7 - 120 135 - 202
c4 - 14.7 6 - 23 6 - 25 c0 - 7.3 - 7 - 11 - 21 - 11 c - 8 0 - 13.2 0.8 - 15.5 2.5
c - 2.3 1.7 - 4.2 5.8 - 5.5 12.5 c - 1.3 4.7 - 2.7 10.3 - 4 17 c - 12 48.7 - 34.8 92 - 68.5 130
s - 74.2 66.3 - 121.5 85 c - 10 4 - 16 7.7 - 18 11 c0 8.7 6 14.3 18 17 c47 . 3 18.7 87.8 47
121.5 85 s56 . 5 81.3 68.5 130 c0 . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c0 . 3 1.3 1 3.3 2 6
s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3 1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11
c0 - 2 - 2 - 10.3 - 6 - 25 c - 20 - 79.3 - 65 - 146.7 - 135 - 202 l - 3 - 3 h399890z
M100 620 v40h399900v - 40 z M0 241 v40h399900v - 40 zM0 241 v40h399900v - 40 z ` ,rightarrowabovebar: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128 - 16.7 32
- 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20 11 8 0
13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7 39
- 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85 - 40.5
- 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm96 379 h399894v40H0zm0 0 h399904v40H0z ` ,baraboveshortleftharpoon: ` M507 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17
c2 , 0.7 , 5 , 1 , 9 , 1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21
c - 32 , - 87.3 , - 82.7 , - 157.7 , - 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399351 , 0 l0 , - 40
c - 398570 , 0 , - 399437 , 0 , - 399437 , 0 z M593 435 v40 H399500 v - 40 z
M0 281 v - 40 H399908 v40z M0 281 v - 40 H399908 v40z ` ,rightharpoonaboveshortbar: ` M0 , 241 l0 , 40 c399126 , 0 , 399993 , 0 , 399993 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M0 241 v40 H399908 v - 40 z M0 475 v - 40 H399500 v40z M0 475 v - 40 H399500 v40z ` ,shortbaraboveleftharpoon: ` M7 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17 c2 , 0.7 , 5 , 1 , 9 ,
1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21 c - 32 , - 87.3 , - 82.7 , - 157.7 ,
- 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399907 , 0 l0 , - 40 c - 399126 , 0 , - 399993 , 0 , - 399993 , 0 z
M93 435 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z ` ,shortrightharpoonabovebar: ` M53 , 241 l0 , 40 c398570 , 0 , 399437 , 0 , 399437 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
2026-04-01 22:38:25 +00:00
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },MDe=o(function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v1759 h347 v - 84
2026-02-13 14:04:06 -07:00
H403z M403 1759 V0 H319 V1759 v ` +r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+ ` v585 h43z
M367 15 v585 v ` +r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M410 15 H367 v585 v ` +r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +r+" v602 h84z";case"lparen":return ` M863 , 9 c0 , - 2 , - 2 , - 5 , - 6 , - 9 c0 , 0 , - 17 , 0 , - 17 , 0 c - 12.7 , 0 , - 19.3 , 0.3 , - 20 , 1
c - 5.3 , 5.3 , - 10.3 , 11 , - 15 , 17 c - 242.7 , 294.7 , - 395.3 , 682 , - 458 , 1162 c - 21.3 , 163.3 , - 33.3 , 349 ,
- 36 , 557 l0 , ` +(r+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
949.7 , 470 , 1265 c4 . 7 , 6 , 9.7 , 11.7 , 15 , 17 c0 . 7 , 0.7 , 7 , 1 , 19 , 1 c0 , 0 , 18 , 0 , 18 , 0 c4 , - 4 , 6 , - 7 , 6 , - 9
c0 , - 2.7 , - 3.3 , - 8.7 , - 10 , - 18 c - 135.3 , - 192.7 , - 235.5 , - 414.3 , - 300.5 , - 665 c - 65 , - 250.7 , - 102.5 ,
- 544.7 , - 112.5 , - 882 c - 2 , - 104 , - 3 , - 167 , - 3 , - 189
l0 , - ` +(r+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
- 210 , 155.3 , - 396.3 , 270 , - 559 c6 . 7 , - 9.3 , 10 , - 15.3 , 10 , - 18 z ` ;case"rparen":return ` M76 , 0 c - 16.7 , 0 , - 25 , 3 , - 25 , 9 c0 , 2 , 2 , 6.3 , 6 , 13 c21 . 3 , 28.7 , 42.3 , 60.3 ,
63 , 95 c96 . 7 , 156.7 , 172.8 , 332.5 , 228.5 , 527.5 c55 . 7 , 195 , 92.8 , 416.5 , 111.5 , 664.5
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(r+9)+ `
c - 3 , 4 , - 3.3 , 16.7 , - 3.3 , 38 c0 , 162 , - 5.7 , 313.7 , - 17 , 455 c - 18.7 , 248 , - 55.8 , 469.3 , - 111.5 , 664
c - 55.7 , 194.7 , - 131.8 , 370.3 , - 228.5 , 527 c - 20.7 , 34.7 , - 41.7 , 66.3 , - 63 , 95 c - 2 , 3.3 , - 4 , 7 , - 6 , 11
c0 , 7.3 , 5.7 , 11 , 17 , 11 c0 , 0 , 11 , 0 , 11 , 0 c9 . 3 , 0 , 14.3 , - 0.3 , 15 , - 1 c5 . 3 , - 5.3 , 10.3 , - 11 , 15 , - 17
c242 . 7 , - 294.7 , 395.3 , - 681.7 , 458 , - 1161 c21 . 3 , - 164.7 , 33.3 , - 350.7 , 36 , - 558
l0 , - ` +(r+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
2026-04-01 22:38:25 +00:00
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),qp=class{static{o(this,"DocumentFragment")}constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=o(r=>r.toText(),"toText");return this.children.map(e).join("")}},ru={"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,.777
` +E+" children.");for(var I=0;I<E;I++){var A=new iu(T[I]),_=new uc([A],{width:"400em",height:Rt(C),viewBox:"0 0 "+l+" "+k,preserveAspectRatio:L[I]+" slice"}),D=je.makeSvgSpan([S[I]],[_],r);if(E===1)return{span:D,minWidth:w,height:C};D.style.height=Rt(C),x.push(D)}return{span:je.makeSpan(["stretchy"],x,r),minWidth:w,height:C}}}o(i,"buildSvgSpan_");var{span:n,minWidth:a,height:s}=i();return n.height=s,n.style.height=Rt(s),a>0&&(n.style.minWidth=Rt(a)),n},"svgSpan"),gLe=o(function(e,r,i,n,a){var s,l=e.height+e.depth+i+n;if(/fbox|color|angl/.test(r)){if(s=je.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel $ /.test(r)&&h.push(new Xx({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(r)&&h.push(new Xx({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new uc(h,{width:"100%",height:Rt(l)});s=je.makeSvgSpan([],[f],a)}return s.height=l,s.style.height=Rt(l),s},"encloseSpan"),kh={encloseSpan:gLe,mathMLnode:fLe,svgSpan:mLe};o(Gr,"assertNodeType");o(UD,"assertSymbolNodeType");o(U4,"checkSymbolNodeType");HD=o((t,e)=>{var r,i,n;t&&t.type==="supsub"?(i=Gr(t.base,"accent"),r=i.base,t.base=r,n=zDe(ii(t,e)),t.base=i):(i=Gr(t,"accent"),r=i.base);var a=ii(r,e.havingCrampedStyle()),s=i.isShifty&&ui.isCharacterBox(r),l=0;if(s){var u=ui.getBaseElem(r),h=ii(u,e.havingCrampedStyle());l=cX(h).skew}var f=i.label===" \\ c",d=f?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),p;if(i.isStretchy)p=kh.svgSpan(i,e),p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Rt(2*l)+")",marginLeft:Rt(2*l)}:void 0}]},e);else{var m,g;i.label===" \\ vec"?(m=je.staticSvg("vec",e),g=je.svgData.vec[1]):(m=je.makeOrd({mode:i.mode,text:i.label},e,"textord"),m=cX(m),m.italic=0,g=m.width,f&&(d+=m.depth)),p=je.makeSpan(["accent-body"],[m]);var y=i.label===" \\ textcircled";y&&(p.classes.push("accent-full"),d=a.height);var v=l;y||(v-=g/2),p.style.left=Rt(v),i.label===" \\ textcircled"&&(p.style.top=".2em"),p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var x=je.makeSpan(["mord","accent"],[p],e);return n?(n.children[0]=x,n.height=Math.max(x.height,n.height),n.classes[0]="mord",n):x},"htmlBuilder $ a"),JX=o((t,e)=>{var r=t.isStretchy?kh.mathMLnode(t.label):new Ct.MathNode("mo",[wl(t.label,t.mode)]),i=new Ct.MathNode("mover",[ $ i(t.base,e),r]);return i.setAttribute("accent","true"),i},"mathmlBuilder $ 9"),yLe=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(t=>" \\ "+t).join("|"));Bt({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:o((t,e)=>{var r=z4(e[0]),i=!yLe.test(t.funcName),n=!i||t.funcName===" \\ widehat"||t.funcName===" \\ widetilde"||t.funcName===" \\ widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:i,isShifty:n,base:r}},"handler"),htmlBuilder:HD,mathmlBuilder:JX});Bt({type:"accent",names:[" \\ '"," \\ ` "," \ \ ^ "," \ \ ~ "," \ \ = "," \ \ u "," \ \ . ",'\\" ',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:o((t,e)=>{var r=e[0],i=t.parser.mode;return i==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX' s accent "+t.funcName+" works only in text mode "),i=" text "),{type:" accent ",mode:i,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}," handler "),htmlBuilder:HD,mathmlBuilder:JX});Bt({type:" accentUnder ",names:[" \ \ underleftarrow "," \ \ underrightarrow "," \ \ underleftrightarrow "," \ \ undergroup "," \ \ underlinesegment "," \ \ utilde " ] , props : { numArgs : 1 } , handler : o ( ( t , e ) => { var { parser : r , funcName : i } = t , n = e [ 0 ] ; ret
] ` ,WLe=" \\ \\ [a-zA-Z@]+",ULe=" \\ \\ [^ \u D800- \u DFFF]",HLe="("+WLe+")"+SK+"*",YLe= ` \ \ \ \ (
2026-02-13 14:04:06 -07:00
| [ \ r ] +
2026-04-01 22:38:25 +00:00
? ) [ \ r ] * ` ,BD="[ \u 0300- \u 036F]",jLe=new RegExp(BD+"+ $ "),XLe="("+SK+"+)|"+(YLe+"|")+"([!- \\ [ \\ ]- \u 2027 \u 202A- \u D7FF \u F900- \u FFFF]"+(BD+"*")+"|[ \u D800- \u DBFF][ \u DC00- \u DFFF]"+(BD+"*")+"| \\ \\ verb \\ *([^]).*? \\ 4| \\ \\ verb([^*a-zA-Z]).*? \\ 5"+("|"+HLe)+("|"+ULe+")"),G4=class{static{o(this,"Lexer")}constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(XLe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Ho("EOF",new co(this,r,r));var i=this.tokenRegex.exec(e);if(i===null||i.index!==r)throw new wt("Unexpected character: '"+e[r]+"'",new Ho(e[r],new co(this,r,r+1)));var n=i[6]||i[3]||(i[2]?" \\ ":" ");if(this.catcodes[n]===14){var a=e.indexOf( `
` ,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.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=a+1,this.lex()}return new Ho(n,new co(this,r,this.tokenRegex.lastIndex))}},FD=class{static{o(this,"Namespace")}constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new wt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,i){if(i===void 0&&(i=!1),i){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}},KLe=mK;he(" \\ noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});he(" \\ expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});he(" \\ @firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});he(" \\ @secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});he(" \\ @ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});he(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");he(" \\ TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});NX={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};he(" \\ char",function(t){var e=t.popToken(),r,i="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text===" ` ")if(e=t.popToken(),e.text[0]===" \ \ ")i=e.text.charCodeAt(1);else{if(e.text===" EOF ")throw new wt(" \ \ char ` missing argument");i=e.text.charCodeAt(0)}else r=10;if(r){if(i=NX[e.text],i==null||i>=r)throw new wt("Invalid base-"+r+" digit "+e.text);for(var n;(n=NX[t.future().text])!=null&&n<r;)i*=r,i+=n,t.popToken()}return" \\ @char{"+i+"}"});eL=o((t,e,r,i)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new wt(" \\ newcommand's first argument must be a macro name");var a=n[0].text,s=t.isDefined(a);if(s&&!e)throw new wt(" \\ newcommand{"+a+"} attempting to redefine "+(a+"; use \\ renewcommand"));if(!s&&!r)throw new wt(" \\ renewcommand{"+a+"} when command "+a+" does not yet exist; use \\ newcommand");var l=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var u="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)u+=h.text,h=t.expandNextToken();if(!u.match(/^ \s *[0-9]+ \s * $ /))throw new wt("Invalid number of arguments: "+u);l=parseInt(u),n=t.consumeArg().tokens}return s&&i||t.macros.set(a,{tokens:n,numArgs:l}),""},"newcommand");he(" \\ newcommand",t=>eL(t,!1,!0,!1));he(" \\ renewcommand",t=>eL(t,!0,!1,!1));he(" \\ providecommand",t=>eL(t,!0,!0,!0));he(" \\ message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});he(" \\ errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});he(" \\ show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Mf[r],ji.math[r],ji.text[r]),""});he(" \\ bgroup","{");he(" \\ egroup","}");he("~"," \\ nobreakspace");he(" \\ lq"," ` ");he(" \ \ rq "," ' ");he(" \ \ aa "," \ \ r a ");he(" \ \ AA "," \ \ r A ");he(" \ \ textcopyright "," \ \ html @ mathml { \ \ tex
please report what input caused this bug ` );return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:n}}OX.hasOwnProperty(r[0])&&!ji[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=OX[r[0]]+r.slice(1));var a=jLe.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r=" \u 0131":r==="j"&&(r=" \u 0237"));var s;if(ji[this.mode][r]){this.settings.strict&&this.mode==="math"&&RD.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var l=ji[this.mode][r].group,u=co.range(e),h;if(GDe.hasOwnProperty(l)){var f=l;h={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else h={type:l,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(BX(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:co.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d<a[0].length;d++){var p=a[0][d];if(!AD[p])throw new wt("Unknown accent ' "+p+"'",e);var m=AD[p][this.mode]||AD[p].text;if(!m)throw new wt("Accent "+p+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:co.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}};V4.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];rL=o(function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new V4(e,r);delete i.gullet.macros.current[" \\ df@tag"];var n=i.parse();if(delete i.gullet.macros.current[" \\ current@color"],delete i.gullet.macros.current[" \\ color"],i.gullet.macros.get(" \\ df@tag")){if(!r.displayMode)throw new wt(" \\ tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:i.subparse([new Ho(" \\ df@tag")])}]}return n},"parseTree"),iL=o(function(e,r,i){r.textContent="";var n=X4(e,i).toNode();r.appendChild(n)},"render");typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),iL=o(function(){throw new wt("KaTeX doesn't work in quirks mode.")},"render"));LK=o(function(e,r){var i=X4(e,r).toMarkup();return i},"renderToString"),RK=o(function(e,r){var i=new Hx(r);return rL(e,i)},"generateParseTree"),NK=o(function(e,r,i){if(i.throwOnError||!(e instanceof wt))throw e;var n=je.makeSpan(["katex-error"],[new uo(r)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+i.errorColor),n},"renderError"),X4=o(function(e,r){var i=new Hx(r);try{var n=rL(e,i);return cLe(n,e,i)}catch(a){return NK(a,e,i)}},"renderToDomTree"),IK=o(function(e,r){var i=new Hx(r);try{var n=rL(e,i);return uLe(n,e,i)}catch(a){return NK(a,e,i)}},"renderToHTMLTree"),MK="0.16.25",OK={Span:Wp,Anchor:jx,SymbolNode:uo,SvgNode:uc,PathNode:iu,LineNode:Xx},QLe={version:MK,render:iL,renderToString:LK,ParseError:wt,SETTINGS_SCHEMA:Wx,__parse:RK,__renderToDomTree:X4,__renderToHTMLTree:IK,__setFontMetrics:FX,__defineSymbol:q,__defineFunction:Bt,__defineMacro:he,__domTree:OK}});function eRe(){let t="data-temp-href-target";Tl.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Tl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var Hp,ZLe,JLe,zK,FK,Tr,tRe,rRe,iRe,nRe,GK,Yp,aRe,sRe,ou,nL,oRe,lRe, $ K,K4,sn,jp,cRe,Rg,lt,Vr=P(()=>{"use strict";zx();Sr();Hp=/<br \s * \/ ?>/gi,ZLe=o(t=>t?GK(t).replace(/ \\ n/g,"#br#").split("#br#"):[""],"getRows"),JLe=(()=>{let t=!1;return()=>{t||(eRe(),t=!0)}})();o(eRe,"setupDompurifyHooks");zK=o(t=>(JLe(),Tl.sanitiz
[ ] { ` +Math.min.apply(Math,n)+"}","g");i=i.map(function(l){return l.replace(a, `
` )})}i[0]=i[0].replace(/^ \r ? \n /,"");var s=i[0];return e.forEach(function(l,u){var h=s.match(/(?:^| \n )( *) $ /),f=h?h[1]:"",d=l;typeof l=="string"&&l.includes( `
2026-02-13 14:04:06 -07:00
` )&&(d=String(l).split( `
` ).map(function(p,m){return m===0?p:""+f+p}).join( `
2026-04-01 22:38:25 +00:00
` )),s+=d+i[u+1]}),s}var oL=P(()=>{"use strict";o(Z4,"dedent")});var J4,Xp,UK,ew=P(()=>{"use strict";J4=/^-{3} \s *[ \n \r ](.*?)[ \n \r ]-{3} \s *[ \n \r ]+/s,Xp=/%{2}{ \s *(?:( \w +) \s *:|( \w +)) \s *(?:( \w +)|((?:(?!}%{2}).| \r ? \n )*))? \s *(?:}%{2})?/gi,UK=/ \s *%%.* \n /gm});var Ng,lL=P(()=>{"use strict";Ng=class extends Error{static{o(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}});var wh,Ig,Zx,cL,HK,Kp=P(()=>{"use strict";bt();ew();lL();wh={},Ig=o(function(t,e){t=t.replace(J4,"").replace(Xp,"").replace(UK, `
` );for(let[r,{detector:i}]of Object.entries(wh))if(i(t,e))return r;throw new Ng( ` No diagram type detected matching given configuration for text : $ { t } ` )},"detectType"),Zx=o((...t)=>{for(let{id:e,detector:r,loader:i}of t)cL(e,r,i)},"registerLazyLoadedDiagrams"),cL=o((t,e,r)=>{wh[t]&&Q.warn( ` Detector with key $ { t } already exists . Overwriting . ` ),wh[t]={detector:e,loader:r},Q.debug( ` Detector with key $ { t } added$ { r ? " with loader" : "" } ` )},"addDetector"),HK=o(t=>wh[t].loader,"getDiagramLoader")});var Jx,YK,uL=P(()=>{"use strict";Jx=(function(){var t=o(function(Ce,Fe,Ue,qe){for(Ue=Ue||{},qe=Ce.length;qe--;Ue[Ce[qe]]=Fe);return Ue},"o"),e=[1,24],r=[1,25],i=[1,26],n=[1,27],a=[1,28],s=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],T=[1,35],w=[1,36],k=[1,37],C=[1,38],E=[1,39],S=[1,40],L=[1,41],M=[1,42],I=[1,43],A=[1,44],_=[1,45],D=[1,46],N=[1,47],R=[1,48],B=[1,50],O=[1,51], $ =[1,52],z=[1,53],F=[1,54],V=[1,55],H=[1,56],X=[1,57],W=[1,58],Z=[1,59],Y=[1,60],ae=[14,42],J=[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],ee=[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],re=[1,82],te=[1,83],be=[1,84],de=[1,85],Ee=[12,14,42],Ne=[12,14,33,42],we=[12,14,33,42,76,77,79,80],Te=[12,33],De=[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:o(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],[3
` +ye.showPosition()+ `
Expecting ` +Dt.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":kt="Parse error on line "+(ue+1)+": Unexpected "+(ce==ke?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(kt,{text:ye.match,token:this.terminals_[ce]||ce,line:ye.yylineno,loc:Oe,expected:Dt})}if(ut[0]instanceof Array&&ut.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+ce);switch(ut[0]){case 1:qe.push(ce),He.push(ye.yytext),K.push(ye.yylloc),qe.push(ut[1]),ce=null,it?(ce=it,it=null):(G=ye.yyleng,U=ye.yytext,ue=ye.yylineno,Oe=ye.yylloc,se>0&&se--);break;case 2:if(ot=this.productions_[ut[1]][1],St. $ =He[He.length-ot],St._ $ ={first_line:K[K.length-(ot||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(ot||1)].first_column,last_column:K[K.length-1].last_column},We&&(St._ $ .range=[K[K.length-(ot||1)].range[0],K[K.length-1].range[1]]),Pt=this.performAction.apply(St,[U,G,ue,Re.yy,ut[1],He,K].concat(me)),typeof Pt<"u")return Pt;ot&&(qe=qe.slice(0,-1*ot*2),He=He.slice(0,-1*ot),K=K.slice(0,-1*ot)),qe.push(this.productions_[ut[1]][0]),He.push(St. $ ),K.push(St._ $ ),ct=oe[qe[qe.length-2]][qe[qe.length-1]],qe.push(ct);break;case 3:return!0}}return!0},"parse")},pe=(function(){var Ce={EOF:1,parseError:o(function(Ue,qe){if(this.yy.parser)this.yy.parser.parseError(Ue,qe);else throw new Error(Ue)},"parseError"),setInput:o(function(Fe,Ue){return this.yy=Ue||this.yy||{},this._input=Fe,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:o(function(){var Fe=this._input[0];this.yytext+=Fe,this.yyleng++,this.offset++,this.match+=Fe,this.matched+=Fe;var Ue=Fe.match(/(?: \r \n ?| \n ).*/g);return Ue?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Fe},"input"),unput:o(function(Fe){var Ue=Fe.length,qe=Fe.split(/(?: \r \n ?| \n )/g);this._input=Fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ue),this.offset-=Ue;var Me=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),qe.length-1&&(this.yylineno-=qe.length-1);var He=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:qe?(qe.length===Me.length?this.yylloc.first_column:0)+Me[Me.length-qe.length].length-qe[0].length:this.yylloc.first_column-Ue},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-Ue]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(Fe){this.unput(this.match.slice(Fe))},"less"),pastInput:o(function(){var Fe=this.matched.substr(0,this.matched.length-this.match.length);return(Fe.length>20?"...":"")+Fe.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var Fe=this.match;return Fe.length<20&&(Fe+=this._input.substr(0,20-Fe.length)),(Fe.substr(0,20)+(Fe.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var Fe=this.pastInput(),Ue=new Array(Fe.length+1).join("-");return Fe+this.upcomingInput()+ `
` +Ue+"^"},"showPosition"),test_match:o(function(Fe,Ue){var qe,Me,He;if(this.options.backtrack_lexer&&(He={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&&(He.yylloc.range=this.yylloc.range.slice(0))),Me=Fe[0].match(/(?: \r \n ?| \n ).*/g),Me&&(this.yylineno+=Me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Me?Me[Me.length-1].length-Me[Me.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+Fe[0].length},this.yytext+=Fe[0],this.match+=Fe[0],this.matches=Fe,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(Fe[0].length),this.matched+=Fe[0],qe=this.performAction.call(this,this.yy,this,Ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),qe)return qe;if(this._backtrack){for(var K in He)this[K]=He[K];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Fe,Ue,qe,Me;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),K=0;K<He.length;K++)if(qe=this._input.match(this.rules[He[K]]),qe&&(!Ue||qe[0].length>Ue[0].length)){if(Ue=qe,Me=K,this.options.backtrack_lexer){if(Fe=this.test_match(qe,He[K]),Fe!==!1)return Fe;if(this._backtrack){Ue=!1;continue}else return!1}else if(!this.options.flex)break}return Ue?(Fe=this.test_match(Ue,He[Me]),Fe!==!1?Fe:!1):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:o(function(){var Ue=this.next();return Ue||this.lex()},"lex"),begin:o(function(Ue){this.conditionStack.push(Ue)},"begin"),popState:o(function(){var Ue=this.conditionStack.length-1;return Ue>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Ue){return Ue=this.conditionStack.length-1-Math.abs(Ue||0),Ue>=0?this.conditionStack[Ue]:"INITIAL"},"topState"),pushState:o(function(Ue){this.begin(Ue)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(Ue,qe,Me,He){var K=He;switch(Me){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;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;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;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;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";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:t
2026-02-13 14:04:06 -07:00
font - family : $ { r . fontFamily } ;
font - size : $ { r . fontSize } ;
fill : $ { r . textColor }
}
@ keyframes edge - animation - frame {
from {
stroke - dashoffset : 0 ;
}
}
@ keyframes dash {
to {
stroke - dashoffset : 0 ;
}
}
& . edge - animation - slow {
stroke - dasharray : 9 , 5 ! important ;
stroke - dashoffset : 900 ;
animation : dash 50 s linear infinite ;
stroke - linecap : round ;
}
& . edge - animation - fast {
stroke - dasharray : 9 , 5 ! important ;
stroke - dashoffset : 900 ;
animation : dash 20 s linear infinite ;
stroke - linecap : round ;
}
/* Classes common for multiple diagrams */
& . error - icon {
fill : $ { r . errorBkgColor } ;
}
& . error - text {
fill : $ { r . errorTextColor } ;
stroke : $ { r . errorTextColor } ;
}
& . edge - thickness - normal {
2026-04-01 22:38:25 +00:00
stroke - width : $ { r . strokeWidth ? ? 1 } px ;
2026-02-13 14:04:06 -07:00
}
& . edge - thickness - thick {
stroke - width : 3.5 px
}
& . edge - pattern - solid {
stroke - dasharray : 0 ;
}
& . edge - thickness - invisible {
stroke - width : 0 ;
fill : none ;
}
& . edge - pattern - dashed {
stroke - dasharray : 3 ;
}
. edge - pattern - dotted {
stroke - dasharray : 2 ;
}
& . marker {
fill : $ { r . lineColor } ;
stroke : $ { r . lineColor } ;
}
& . marker . cross {
stroke : $ { r . lineColor } ;
}
& svg {
font - family : $ { r . fontFamily } ;
font - size : $ { r . fontSize } ;
}
& p {
margin : 0
}
$ { n }
2026-04-01 22:38:25 +00:00
. node . neo - node {
stroke : $ { r . nodeBorder } ;
}
[ data - look = "neo" ] . node rect , [ data - look = "neo" ] . cluster rect , [ data - look = "neo" ] . node polygon {
stroke : $ { r . useGradient ? "url(" + i + "-gradient)" : r . nodeBorder } ;
filter : $ { r . dropShadow ? r . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ i } -drop-shadow) ` ) : "none" } ;
}
[ data - look = "neo" ] . node path {
stroke : $ { r . useGradient ? "url(" + i + "-gradient)" : r . nodeBorder } ;
stroke - width : $ { r . strokeWidth ? ? 1 } px ;
}
[ data - look = "neo" ] . node . outer - path {
filter : $ { r . dropShadow ? r . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ i } -drop-shadow) ` ) : "none" } ;
}
[ data - look = "neo" ] . node . neo - line path {
stroke : $ { r . nodeBorder } ;
filter : none ;
}
[ data - look = "neo" ] . node circle {
stroke : $ { r . useGradient ? "url(" + i + "-gradient)" : r . nodeBorder } ;
filter : $ { r . dropShadow ? r . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ i } -drop-shadow) ` ) : "none" } ;
}
[ data - look = "neo" ] . node circle . state - start {
fill : # 000000 ;
}
[ data - look = "neo" ] . icon - shape . icon {
fill : $ { r . useGradient ? "url(" + i + "-gradient)" : r . nodeBorder } ;
filter : $ { r . dropShadow ? r . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ i } -drop-shadow) ` ) : "none" } ;
}
[ data - look = "neo" ] . icon - shape . icon - neo path {
stroke : $ { r . useGradient ? "url(" + i + "-gradient)" : r . nodeBorder } ;
filter : $ { r . dropShadow ? r . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ i } -drop-shadow) ` ) : "none" } ;
}
2026-02-13 14:04:06 -07:00
$ { e }
2026-04-01 22:38:25 +00:00
` },"getStyles"),jK=o((t,e)=>{e!==void 0&&(tw[t]=e)},"addStylesForDiagram"),XK=fRe});var e2={};ur(e2,{clear:()=>wr,getAccDescription:()=>Rr,getAccTitle:()=>Dr,getDiagramTitle:()=>Nr,setAccDescription:()=>Lr,setAccTitle:()=>Ar,setDiagramTitle:()=>Mr});var fL,dL,pL,mL,wr,Ar,Dr,Lr,Rr,Mr,Nr,Ki=P(()=>{"use strict";Vr();Sr();fL="",dL="",pL="",mL=o(t=>Tr(t,Lt()),"sanitizeText"),wr=o(()=>{fL="",pL="",dL=""},"clear"),Ar=o(t=>{fL=mL(t).replace(/^ \s +/g,"")},"setAccTitle"),Dr=o(()=>fL,"getAccTitle"),Lr=o(t=>{pL=mL(t).replace(/ \n \s +/g, `
` )},"setAccDescription"),Rr=o(()=>pL,"getAccDescription"),Mr=o(t=>{dL=mL(t)},"setDiagramTitle"),Nr=o(()=>dL,"getDiagramTitle")});var KK,dRe,ge,t2,iw,r2,yL,pRe,rw,Qp,i2,gL,Ut=P(()=>{"use strict";Kp();bt();Sr();Vr();Xi();hL();Ki();KK=Q,dRe=_x,ge=Lt,t2=x4,iw=Nf,r2=o(t=>Tr(t,ge()),"sanitizeText"),yL=El,pRe=o(()=>e2,"getCommonDb"),rw={},Qp=o((t,e,r)=>{rw[t]&&KK.warn( ` Diagram with id $ { t } already registered . Overwriting . ` ),rw[t]=e,r&&cL(t,r),jK(t,e.styles),e.injectUtils?.(KK,dRe,ge,r2,yL,pRe(),()=>{})},"registerDiagram"),i2=o(t=>{if(t in rw)return rw[t];throw new gL(t)},"getDiagram"),gL=class extends Error{static{o(this,"DiagramNotFoundError")}constructor(e){super( ` Diagram $ { e } not found . ` )}}});var fc,Ff,Bs,hc,cu,n2,vL,xL,nw,aw,QK,mRe,gRe,yRe,vRe,xRe,bRe,TRe,kRe,CRe,wRe,ERe,SRe,ARe,_Re,DRe,LRe,RRe,ZK,NRe,IRe,JK,MRe,ORe,PRe,BRe, $ f,FRe, $ Re,zRe,GRe,VRe,a2,bL=P(()=>{"use strict";Ut();Vr();Ki();fc=[],Ff=[""],Bs="global",hc="",cu=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],n2=[],vL="",xL=!1,nw=4,aw=2,mRe=o(function(){return QK},"getC4Type"),gRe=o(function(t){QK=Tr(t,ge())},"setC4Type"),yRe=o(function(t,e,r,i,n,a,s,l,u){if(t==null||e===void 0||e===null||r===void 0||r===null||i===void 0||i===null)return;let h={},f=n2.find(d=>d.from===e&&d.to===r);if(f?h=f:n2.push(h),h.type=t,h.from=e,h.to=r,h.label={text:i},n==null)h.techn={text:""};else if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]={text:p}}else h.techn={text:n};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]={text:p}}else h.descr={text:a};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap= $ f()},"addRel"),vRe=o(function(t,e,r,i,n,a,s){if(e===null||r===null)return;let l={},u=fc.find(h=>h.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,fc.push(l)),r==null?l.label={text:""}:l.label={text:r},i==null)l.descr={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]={text:f}}else l.descr={text:i};if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]=f}else l.sprite=n;if(typeof a=="object"){let[h,f]=Object.entries(a)[0];l[h]=f}else l.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];l[h]=f}else l.link=s;l.typeC4Shape={text:t},l.parentBoundary=Bs,l.wrap= $ f()},"addPersonOrSystem"),xRe=o(function(t,e,r,i,n,a,s,l){if(e===null||r===null)return;let u={},h=fc.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,fc.push(u)),r==null?u.label={text:""}:u.label={text:r},i==null)u.techn={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.techn={text:i};if(n==null)u.descr={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.descr={text:n};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap= $ f(),u.typeC4Shape={text:t},u.parentBoundary=Bs},"addContainer"),bRe=o(function(t,e,r,i,n,a,s,l){if(e===null||r===null)return;let u={},h=fc.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,fc.push(u)),r==null?u.label={text:""}:u.label={text:r},i==null)u.techn={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.techn={text:i};if(n==null)u.descr={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.descr={text:n};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap= $ f(),u.typeC4Shape={text:t},u.parentBoundary=Bs},"addComponent"),TRe=o(function(t,e,r,i,n){if(t===null||e===null)return;let a={},s=cu.find(l=>l.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,cu.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null
` ,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Q.debug( ` Detecting diagram directive$ { e !== null ? " type:" + e : "" } based on the text : $ { t } ` );let i,n=[];for(;(i=Xp.exec(t))!==null;)if(i.index===Xp.lastIndex&&Xp.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){let a=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:a,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(r){return Q.error( ` ERROR : $ { r . message } - Unable to parse directive type : '${e}' based on the text : '${t}' ` ),{type:void 0,args:null}}},"detectDirective"),une=o(function(t){return t.replace(Xp,"")},"removeDirectives"),LFe=o(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");o(yI,"interpolateToCurve");o(RFe,"formatUrl");NFe=o((t,...e)=>{let r=t.split("."),i=r.length-1,n=r[i],a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){Q.error( ` Function name : $ { t } not found in window ` );return}a[n](...e)},"runFunc");o(hne,"distance");o(IFe,"traverseEdge");o(MFe,"calcLabelPosition");sne=o((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),vI=o((t,e)=>{let r,i=e;for(let n of t){if(r){let a=hne(n,r);if(a===0)return r;if(a<i)i-=a;else{let s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:sne((1-s)*r.x+s*n.x,5),y:sne((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),OFe=o((t,e,r)=>{Q.info( ` our points $ { JSON . stringify ( e ) } ` ),e[0]!==r&&(e=e.reverse());let n=vI(e,25),a=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(e[0].x+n.x)/2,l.y=-Math.cos(s)*a+(e[0].y+n.y)/2,l},"calcCardinalityPosition");o(PFe,"calcTerminalLabelPosition");o(xI,"getStylesFromArray");one=0,bI=o(()=>(one++,"id-"+Math.random().toString(36).substr(2,12)+"-"+one),"generateId");o(BFe,"makeRandomHex");TI=o(t=>BFe(t.length),"random"),FFe=o(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"), $ Fe=o(function(t,e){let r=e.text.replace(lt.lineBreakRegex," "),[,i]= $ s(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);let a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),n},"drawSimpleText"),kI=u1((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),lt.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),n=[],a="";return i.forEach((s,l)=>{let u=Ra( ` $ { s } ` ,r),h=Ra(a,r);if(u>e){let{hyphenatedStrings:p,remainingWord:m}=zFe(s,e,"-",r);n.push(a,...p),a=m}else h+u>=e?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=> ` $ { t } $ { e } $ { r . fontSize } $ { r . fontWeight } $ { r . fontFamily } $ { r . joinWith } ` ),zFe=u1((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...t],a=[],s="";return n.forEach((l,u)=>{let h= ` $ { s } $ { l } ` ;if(Ra(h,i)>=e){let d=u+1,p=n.length===d,m= ` $ { h } $ { r } ` ;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",i)=> ` $ { t } $ { e } $ { r } $ { i . fontSize } $ { i . fontWeight } $ { i . fontFamily } ` );o(H3,"calculateTextHeight");o(Ra,"calculateTextWidth");CI=u1((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};let[,a]= $ s(r),s=["sans-serif",i],l=t.split(lt.lineBreakRegex),u=[],h=Ze("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=FFe();v.text=y||gI;let x= $ Fe(f,v).style("font-size",a).style("font-weight",n).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Mat
2026-02-13 14:04:06 -07:00
stroke : $ { t . personBorder } ;
fill : $ { t . personBkg } ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),xne=jFe});var Tne={};ur(Tne,{diagram:()=>XFe});var XFe,kne=P(()=>{"use strict";uL();bL();vne();bne();XFe={parser:YK,db:a2,renderer:AI,styles:xne,init:o(({c4:t,wrap:e})=>{AI.setConf(t),a2.setWrap(e)},"init")}});function $ ne(t){return typeof t>"u"||t===null}function JFe(t){return typeof t=="object"&&t!==null}function e $ e(t){return Array.isArray(t)?t: $ ne(t)?[]:[t]}function t $ e(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;r<i;r+=1)n=a[r],t[n]=e[n];return t}function r $ e(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function i $ e(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}function zne(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 mb(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=zne(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function _I(t,e,r,i,n){var a="",s="",l=Math.floor(n/2)-1;return i-e>l&&(a=" ... ",e=i-l+a.length),r-i>l&&(s=" ...",r=i+l-s.length),{str:a+t.slice(e,r).replace(/ \t /g," \u 2192")+s,pos:i-e+a.length}}function DI(t,e){return ha.repeat(" ",e-t.length)+t}function u $ e(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/ \r ? \n | \r | \0 /g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var l="",u,h,f=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(s-u<0);u++)h=_I(t.buffer,i[s-u],n[s-u],t.position-(i[s]-i[s-u]),d),l=ha.repeat(" ",e.indent)+DI((t.line-u+1).toString(),f)+" | "+h.str+ `
` +l;for(h=_I(t.buffer,i[s],n[s],t.position,d),l+=ha.repeat(" ",e.indent)+DI((t.line+1).toString(),f)+" | "+h.str+ `
` ,l+=ha.repeat("-",e.indent+f+3+h.pos)+ ` ^
` ,u=1;u<=e.linesAfter&&!(s+u>=n.length);u++)h=_I(t.buffer,i[s+u],n[s+u],t.position-(i[s]-i[s+u]),d),l+=ha.repeat(" ",e.indent)+DI((t.line+u+1).toString(),f)+" | "+h.str+ `
` ;return l.replace(/ \n $ /,"")}function p $ e(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function m $ e(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(f $ e.indexOf(r)===-1)throw new xo('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=p $ e(e.styleAliases||null),d $ e.indexOf(this.kind)===-1)throw new xo('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function wne(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}function g $ e(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(o(i,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function RI(t){return this.extend(t)}function k $ e(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function C $ e(){return null}function w $ e(t){return t===null}function S $ e(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function A $ e(t){return t==="true"||t==="True"||t==="TRUE"}function _ $ e(t){return Object.prototype.toString.call(t)==="[object Boolean]"}function L $ e(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function R $ e(t){return 48<=t&&t<=55}function N $ e(t){return 48<=t&&t<=57}function I $ e(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!L $ e(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!R $ e(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!N $ e(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function M $ e(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function O $ e(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ha.isNegativeZero(t)}function F $ e(t){return!(t===null||!B $ e.test(t)||t[t.length-1]==="_")}function $ $ e(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}function G $ e(t,e){var r;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(ha.isNegativeZero(t))return"-0.0";return r=t.toString(10),z $ e.test(r)?r.replace("e",".e"):r}function V $ e(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ha.isNegativeZero(t))}function U $ e(t){return t===null?!1:Vne.exec(t)!==null||qne.exec(t)!==null}function H $ e(t){var e,r,i,n,a,s,l,u=0,h=null,f,d,p;if(e=Vne.exec(t),e===null&&(e=qne.exec(t)),e===null)throw new Error("Date resolve error");
` :t===118?" \v ":t===102?" \f ":t===114?" \r ":t===101?" \x 1B":t===32?" ":t===34?'"':t===47?"/":t===92?" \\ ":t===78?" \x 85":t===95?" \x A0":t===76?" \u 2028":t===80?" \u 2029":""}function kze(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function Xne(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}function Cze(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Wne,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 Zne(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=h $ e(r),new xo(e,r)}function or(t,e){throw Zne(t,e)}function J3(t,e){t.onWarning&&t.onWarning.call(null,Zne(t,e))}function od(t,e,r,i){var n,a,s,l;if(e<r){if(l=t.input.slice(e,r),i)for(n=0,a=l.length;n<a;n+=1)s=l.charCodeAt(n),s===9||32<=s&&s<=1114111||or(t,"expected valid JSON character");else gze.test(l)&&or(t,"the stream contains non-printable characters");t.result+=l}}function Dne(t,e,r,i){var n,a,s,l;for(ha.isObject(r)||or(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,l=n.length;s<l;s+=1)a=n[s],ld.call(e,a)||(Xne(e,a,r[a]),i[a]=!0)}function S1(t,e,r,i,n,a,s,l,u){var h,f;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,f=n.length;h<f;h+=1)Array.isArray(n[h])&&or(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Sne(n[h])==="[object Object]"&&(n[h]="[object Object]");if(typeof n=="object"&&Sne(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(h=0,f=a.length;h<f;h+=1)Dne(t,e,a[h],r);else Dne(t,e,a,r);else!t.json&&!ld.call(r,n)&&ld.call(e,n)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=u||t.position,or(t,"duplicated mapping key")),Xne(e,n,a),delete r[n];return e}function BI(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):or(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Zn(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;S0(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(wu(n))for(BI(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&J3(t,"deficient indentation"),i}function r5(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||bo(r)))}function FI(t,e){e===1?t.result+=" ":e>1&&(t.result+=ha.repeat( `
` ,e-1))}function wze(t,e,r){var i,n,a,s,l,u,h,f,d=t.kind,p=t.result,m;if(m=t.input.charCodeAt(t.position),bo(m)||E1(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(n=t.input.charCodeAt(t.position+1),bo(n)||r&&E1(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,l=!1;m!==0;){if(m===58){if(n=t.input.charCodeAt(t.position+1),bo(n)||r&&E1(n))break}else if(m===35){if(i=t.input.charCodeAt(t.position-1),bo(i))break}else{if(t.position===t.lineStart&&r5(t)||r&&E1(m))break;if(wu(m))if(u=t.line,h=t.lineStart,f=t.lineIndent,Zn(t,!1,-1),t.lineIndent>=e){l=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=u,t.lineStart=h,t.lineIndent=f;break}}l&&(od(t,a,s,!1),FI(t,t.line-u),a=s=t.position,l=!1),S0(m)||(s=t.position+1),m=t.input.charCodeAt(++t.position)}return od(t,a,s,!1),t.result?!0:(t.kind=d,t.result=p,!1)}function Eze(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(od(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else wu(r)?(od(t,i,n,!0),FI(t,Zn(t,!1,e)),i=n=t.position):t.position===t.lineStart&&r5(t)?or(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);or(t,"unexpected end of the stream within a single quoted scalar")}function Sze(t,e){var r,i,n,a,s,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return od(t,r,t.position,!0),t.position++,!0;if(l===92){if(od(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),wu(l))Zn(t,!1,e);else if(l<256&&Kne[l])t.result+=Qne[l],t.position++;else if((s=bze(l))>0){for(n=s,a=0;n>0;n--)l=t.input.charCodeAt(++t.position),(s=xze(l))>=0?a=(a<<4)+s:or(t,"expected hexadecimal character");t.result+=kze(a),t.position++}else or(t,"unknown escape sequence");r=i=t.position}else wu(l)?(od(t,r,i,!0),FI(t,Zn(t,!1,e)),r=i=t.position):t.position===t.lineStart&&r5(t)?or(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}or(t,"unexpected end of the stream within a double quoted scalar")}function Aze(t,e){var r=!0,i,n,a,s=t.tag,l,u=t.anchor,h,f,d,p,m,g=Object.create(null),y,v,x,b;if(b=t.input.charCodeAt(t.position),b===91)f=93,m=!1,l=[];else if(b===123)f=125,m=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),b=t.input.charCodeAt(++t.position);b!==0;){if(Zn(t,!0,e),b=t.input.charCodeAt(t.position),b===f)return t.position++,t.tag=s,t.anchor=u,t.kind=m?"mapping":"sequence",t.result=l,!0;r?b===44&&or(t,"expected the node content, but found ','"):or(t,"missed comma between flow collection entries"),v=y=x=null,d=p=!1,b===63&&(h=t.input.charCodeAt(t.position+1),bo(h)&&(d=p=!0,t.position++,Zn(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,A1(t,e,Q3,!1,!0),v=t.tag,y=t.result,Zn(t,!0,e),b=t.input.charCodeAt(t.position),(p||t.line===i)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Zn(t,!0,e),A1(t,e,Q3,!1,!0),x=t.result),m?S1(t,l,g,v,y,x,i,n,a):d?l.push(S1(t,null,g,v,y,x,i,n,a)):l.push(y),Zn(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}or(t,"unexpected end of the stream within a flow collection")}function _ze(t,e){var r,i,n=LI,a=!1,s=!1,l=e,u=0,h=!1,f,d;if(d=t.input.charCodeAt(t.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)LI===n?n=d===43?Ene:mze:or(t,"repeat of a chomping mode identifier");else if((f=Tze(d))>=0)f===0?or(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?or(t,"repeat of an indentation width identifier"):(l=e+f-1,s=!0);else break;if(S0(d)){do d=t.input.charCodeAt(++t.position);while(S0(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!wu(d)&&d!==0)}for(;d!==0;){for(BI(t),t.lineIndent=0,d=t.input.charCodeAt(
` ,a?1+u:u):n===LI&&a&&(t.result+= `
` );break}for(i?S0(d)?(h=!0,t.result+=ha.repeat( `
` ,a?1+u:u)):h?(h=!1,t.result+=ha.repeat( `
` ,u+1)):u===0?a&&(t.result+=" "):t.result+=ha.repeat( `
` ,u):t.result+=ha.repeat( `
` ,a?1+u:u),a=!0,s=!0,u=0,r=t.position;!wu(d)&&d!==0;)d=t.input.charCodeAt(++t.position);od(t,r,t.position,!1)}return!0}function Lne(t,e){var r,i=t.tag,n=t.anchor,a=[],s,l=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,or(t,"tab characters must not be used in indentation")),!(u!==45||(s=t.input.charCodeAt(t.position+1),!bo(s))));){if(l=!0,t.position++,Zn(t,!0,-1)&&t.lineIndent<=e){a.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,A1(t,e,Hne,!1,!0),a.push(t.result),Zn(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)or(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return l?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=a,!0):!1}function Dze(t,e,r){var i,n,a,s,l,u,h=t.tag,f=t.anchor,d={},p=Object.create(null),m=null,g=null,y=null,v=!1,x=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,or(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,(b===63||b===58)&&bo(i))b===63?(v&&(S1(t,d,p,m,g,null,s,l,u),m=g=y=null),x=!0,v=!0,n=!0):v?(v=!1,n=!0):or(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=i;else{if(s=t.line,l=t.lineStart,u=t.position,!A1(t,r,Une,!1,!0))break;if(t.line===a){for(b=t.input.charCodeAt(t.position);S0(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),bo(b)||or(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(S1(t,d,p,m,g,null,s,l,u),m=g=y=null),x=!0,v=!1,n=!1,m=t.tag,g=t.result;else if(x)or(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=f,!0}else if(x)or(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=f,!0}if((t.line===a||t.lineIndent>e)&&(v&&(s=t.line,l=t.lineStart,u=t.position),A1(t,e,Z3,!0,n)&&(v?g=t.result:y=t.result),v||(S1(t,d,p,m,g,y,s,l,u),m=g=y=null),Zn(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)or(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&S1(t,d,p,m,g,null,s,l,u),x&&(t.tag=h,t.anchor=f,t.kind="mapping",t.result=d),x}function Lze(t){var e,r=!1,i=!1,n,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&or(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(i=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):or(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!bo(s);)s===33&&(i?or(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Yne.test(n)||or(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),vze.test(a)&&or(t,"tag suffix cannot contain flow indicator characters")}a&&!jne.test(a)&&or(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{or(t,"tag name is malformed: "+a)}return r?t.tag=a:ld.call(t.tagMap,n)?t.tag=t.tagMap[n]+a:n==="!"?t.tag="!"+a:n==="!!"?t.tag="tag:yaml.org,2002:"+a:or(t,'undeclared tag handle "'+n+'"'),!0}function Rze(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&or(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!bo(r)&&!E1(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&or(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Nze(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;f
` ),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Cze(t,e),i=t.indexOf(" \0 ");for(i!==-1&&(r.position=i,or(r,"null byte is not allowed in input")),r.input+=" \0 ";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ize(r);return r.documents}function Mze(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=Jne(t,r);if(typeof e!="function")return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}function Oze(t,e){var r=Jne(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new xo("expected a single document in the stream, but found more")}}function rGe(t,e){var r,i,n,a,s,l,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,a=i.length;n<a;n+=1)s=i[n],l=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=t.compiledTypeMap.fallback[s],u&&rae.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[s]=l;return r}function iGe(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new xo("code point within a string may not be greater than 0xFFFFFFFF");return" \\ "+r+ha.repeat("0",i-e.length)+e}function aGe(t){this.schema=t.schema||Wne,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ha.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=rGe(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==='"'?yb:nGe,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Rne(t,e){for(var r=ha.repeat(" ",e),i=0,n=-1,a="",s,l=t.length;i<l;)n=t.indexOf( `
` ,i),n===-1?(s=t.slice(i),i=l):(s=t.slice(i,n+1),i=n+1),s.length&&s!== `
` &&(a+=r),a+=s;return a}function II(t,e){return `
` +ha.repeat(" ",t.indent*e)}function sGe(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function t5(t){return t===zze||t===Fze}function vb(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!== $ I||65536<=t&&t<=1114111}function Nne(t){return vb(t)&&t!== $ I&&t!== $ ze&&t!==gb}function Ine(t,e,r){var i=Nne(t),n=i&&!t5(t);return(r?i:i&&t!==iae&&t!==nae&&t!==aae&&t!==sae&&t!==oae)&&t!==NI&&!(e===e5&&!n)||Nne(e)&&!t5(e)&&t===NI||e===e5&&n}function oGe(t){return vb(t)&&t!== $ I&&!t5(t)&&t!==Yze&&t!==Kze&&t!==e5&&t!==iae&&t!==nae&&t!==aae&&t!==sae&&t!==oae&&t!==NI&&t!==Wze&&t!==Hze&&t!==Gze&&t!==Jze&&t!==jze&&t!==Xze&&t!==Uze&&t!==Vze&&t!==qze&&t!==Qze&&t!==Zze}function lGe(t){return!t5(t)&&t!==e5}function pb(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lae(t){var e=/^ \n * /;return e.test(t)}function cGe(t,e,r,i,n,a,s,l){var u,h=0,f=null,d=!1,p=!1,m=i!==-1,g=-1,y=oGe(pb(t,0))&&lGe(pb(t,t.length-1));if(e||s)for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=pb(t,u),!vb(h))return w1;y=y&&Ine(h,f,l),f=h}else{for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=pb(t,u),h===gb)d=!0,m&&(p=p||u-g-1>i&&t[g+1]!==" ",g=u);else if(!vb(h))return w1;y=y&&Ine(h,f,l),f=h}p=p||m&&u-g-1>i&&t[g+1]!==" "}return!d&&!p?y&&!s&&!n(t)?cae:a===yb?w1:MI:r>9&&lae(t)?w1:s?a===yb?w1:MI:p?hae:uae}function uGe(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===yb?'""':"''";if(!t.noCompatMode&&(eGe.indexOf(e)!==-1||tGe.test(e)))return t.quotingType===yb?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=i||t.flowLevel>-1&&r>=t.flowLevel;function u(h){return sGe(t,h)}switch(o(u,"testAmbiguity"),cGe(e,l,t.indent,s,u,t.quotingType,t.forceQuotes&&!i,n)){case cae:return e;case MI:return"'"+e.replace(/'/g,"''")+"'";case uae:return"|"+Mne(e,t.indent)+One(Rne(e,a));case hae:return">"+Mne(e,t.indent)+One(Rne(hGe(e,s),a));case w1:return'"'+fGe(e)+'"';default:throw new xo("impossible error: invalid scalar style")}})()}function Mne(t,e){var r=lae(t)?String(e):"",i=t[t.length-1]=== `
` ,n=i&&(t[t.length-2]=== `
2026-02-13 14:04:06 -07:00
` ||t=== `
2026-04-01 22:38:25 +00:00
` ),a=n?"+":i?"":"-";return r+a+ `
` }function One(t){return t[t.length-1]=== `
` ?t.slice(0,-1):t}function hGe(t,e){for(var r=/( \n +)([^ \n ]*)/g,i=(function(){var h=t.indexOf( `
` );return h=h!==-1?h:t.length,r.lastIndex=h,Pne(t.slice(0,h),e)})(),n=t[0]=== `
` ||t[0]===" ",a,s;s=r.exec(t);){var l=s[1],u=s[2];a=u[0]===" ",i+=l+(!n&&!a&&u!==""? `
` :"")+Pne(u,e),n=a}return i}function Pne(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,a,s=0,l=0,u="";i=r.exec(t);)l=i.index,l-n>e&&(a=s>n?s:l,u+= `
` +t.slice(n,a),n=a+1),s=l;return u+= `
` ,t.length-n>e&&s>n?u+=t.slice(n,s)+ `
` +t.slice(s+1):u+=t.slice(n),u.slice(1)}function fGe(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=pb(t,n),i=fs[r],!i&&vb(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||iGe(r);return e}function dGe(t,e,r){var i="",n=t.tag,a,s,l;for(a=0,s=r.length;a<s;a+=1)l=r[a],t.replacer&&(l=t.replacer.call(r,String(a),l)),( $ h(t,e,l,!1,!1)||typeof l>"u"&& $ h(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Bne(t,e,r,i){var n="",a=t.tag,s,l,u;for(s=0,l=r.length;s<l;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),( $ h(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&& $ h(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=II(t,e)),t.dump&&gb===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}function pGe(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,l,u,h,f;for(s=0,l=a.length;s<l;s+=1)f="",i!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=a[s],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)), $ h(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "), $ h(t,e,h,!1,!1)&&(f+=t.dump,i+=f));t.tag=n,t.dump="{"+i+"}"}function mGe(t,e,r,i){var n="",a=t.tag,s=Object.keys(r),l,u,h,f,d,p;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new xo("sortKeys must be a boolean or a function");for(l=0,u=s.length;l<u;l+=1)p="",(!i||n!=="")&&(p+=II(t,e)),h=s[l],f=r[h],t.replacer&&(f=t.replacer.call(r,h,f)), $ h(t,e+1,h,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&gb===t.dump.charCodeAt(0)?p+="?":p+="? "),p+=t.dump,d&&(p+=II(t,e)), $ h(t,e+1,f,!0,d)&&(t.dump&&gb===t.dump.charCodeAt(0)?p+=":":p+=": ",p+=t.dump,n+=p));t.tag=a,t.dump=n||"{}"}function Fne(t,e,r){var i,n,a,s,l,u;for(n=r?t.explicitTypes:t.implicitTypes,a=0,s=n.length;a<s;a+=1)if(l=n[a],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof e=="object"&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(r?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(u=t.styleMap[l.tag]||l.defaultStyle,tae.call(l.represent)==="[object Function]")i=l.represent(e,u);else if(rae.call(l.represent,u))i=l.represent[u](e,u);else throw new xo("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}function $ h(t,e,r,i,n,a,s){t.tag=null,t.dump=r,Fne(t,r,!1)||Fne(t,r,!0);var l=tae.call(t.dump),u=i,h;i&&(i=t.flowLevel<0||t.flowLevel>e);var f=l==="[object Object]"||l==="[object Array]",d,p;if(f&&(d=t.duplicates.indexOf(r),p=d!==-1),(t.tag!==null&&t.tag!=="?"||p||t.indent!==2&&e>0)&&(n=!1),p&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(f&&p&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),l==="[object Object]")i&&Object.keys(t.dump).length!==0?(mGe(t,e,t.dump,n),p&&(t.dump="&ref_"+d+t.dump)):(pGe(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?Bne(t,e-1,t.dump,n):Bne(t,e,t.dump,n),p&&(t.dump="&ref_"+d+t.dump)):(dGe(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&uGe(t,t.dump,e,a,u);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new xo("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}function gGe(t,e){var r=[],i=[],n,a;for(OI(t,r,i),n=0,a=i.length;n<a;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(a)}function OI(t,e,r){var i,n,a;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)OI(t[n],e,r);else for(i=Object.keys(t),n=0,a=i.length;n<a;n+=1)OI(t[i[n]],e,r)}function yGe(t,e){e=e||{};var r=new aGe(e);r.noRefs||gGe(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)), $ h(r,0,i,!0,!0)?r.dump+ `
` :""}function zI(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 n $ e,a $ e,s $ e,o $ e,l $ e,c $ e,ha,xo,h $ e,f $ e,d $ e,hs,y $ e,v $ e,x $ e,b $ e,T $ e,E $ e,D $ e,P $ e,B $ e,z $ e,q $ e,Gne,W $ e,Vne,qne,j $ e,K $ e,PI,tze,rze,ize,sze,oze,uze,hze,pze,Wne,ld,Q3,Une,Hne,Z3,LI,mze,Ene,gze,yze,vze,Yne,jne,Kne,Qne,E0,_ne,Pze,Bze,eae,tae,rae, $ I,Fze,gb, $ ze,zze,Gze,Vze,NI,qze,Wze,Uze,Hze,iae,Yze,e5,jze,Xze,Kze,Qze,nae,aae,Zze,sae,Jze,oae,fs,eGe,tGe,nGe,yb,cae,MI,uae,hae,w1,vGe,xGe,cd,ud,eFt,tFt,rFt,iFt,nFt,xb=P(()=>{"use strict";o( $ ne,"isNothing");o(JFe,"isObject");o(e $ e,"toArray");o(t $ e,"extend");o(r $ e,"repeat");o(i $ e,"isNegativeZero");n $ e= $ ne,a $ e=JFe,s $ e=e $ e,o $ e=r $ e,l $ e=i $ e,c $ e=t $ e,ha={isNothing:n $ e,isObject:a $ e,toArray:s $ e,repeat:o $ e,isNegativeZero:l $ e,extend:c $ e};o(zne,"formatError");o(mb,"YAMLException $ 1");mb.prototype=Object.create(Error.prototype);mb.prototype.constructor=mb;mb.prototype.toString=o(function(e){return this.name+": "+zne(this,e)},"toString");xo=mb;o(_I,"getLine");o(DI,"padStart");o(u $ e,"makeSnippet");h $ e=u $ e,f $ e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d $ e=["scalar","sequence","mapping"];o(p $ e,"compileStyleAliases");o(m $ e,"Type $ 1");hs=m $ e;o(wne,"compileList");o(g $ e,"compileMap");o(RI,"Schema $ 1");RI.prototype.extend=o(function(e){var r=[],i=[];if(e instanceof hs)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new xo("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof hs))throw new xo("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new xo("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new xo("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof hs))throw new xo("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(RI.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=wne(n,"implicit"),n.compiledExplicit=wne(n,"explicit"),n.compiledTypeMap=g $ e(n.compiledImplicit,n.compiledExplicit),n},"extend");y $ e=RI,v $ e=new hs("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),x $ e=new hs("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),b $ e=new hs("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),T $ e=new y $ e({explicit:[v $ e,x $ e,b $ e]});o(k $ e,"resolveYamlNull");o(C $ e,"constructYamlNull");o(w $ e,"isNull");E $ e=new hs("tag:yaml.org,2002:null",{kind:"scalar",resolve:k $ e,construct:C $ e,predicate:w $ e,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(S $ e,"resolveYamlBoolean");o(A $ e,"constructYamlBoolean");o(_ $ e,"isBoolean");D $ e=new hs("tag:yaml.org,2002:bool",{kind:"scalar",resolve:S $ e,construct:A $ e,predicate:_ $ e,represent:{lowercase:o(function(t){return t?"true":"false"},"lowercase"),uppercase:o(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(L $ e,"isHexCode");o(R $ e,"isOctCode");o(N $ e,"isDecCode");o(I $ e,"resolveYamlInteger");o(M $ e,"constructYamlInteger");o(O $ e,"isInteger");P $ e=new hs("tag:yaml.org,2002:int",{kind:"scalar",resolve:I $ e,construct:M $ e,predicate:O $ e,represent:{binary:o(function(t){return t>=0?"0b"+t.t
\ r ` ;o(Q $ e,"resolveYamlBinary");o(Z $ e,"constructYamlBinary");o(J $ e,"representYamlBinary");o(eze,"isBinary");tze=new hs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Q $ e,construct:Z $ e,predicate:eze,represent:J $ e}),rze=Object.prototype.hasOwnProperty,ize=Object.prototype.toString;o(nze,"resolveYamlOmap");o(aze,"constructYamlOmap");sze=new hs("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nze,construct:aze}),oze=Object.prototype.toString;o(lze,"resolveYamlPairs");o(cze,"constructYamlPairs");uze=new hs("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lze,construct:cze}),hze=Object.prototype.hasOwnProperty;o(fze,"resolveYamlSet");o(dze,"constructYamlSet");pze=new hs("tag:yaml.org,2002:set",{kind:"mapping",resolve:fze,construct:dze}),Wne=W $ e.extend({implicit:[j $ e,K $ e],explicit:[tze,sze,uze,pze]}),ld=Object.prototype.hasOwnProperty,Q3=1,Une=2,Hne=3,Z3=4,LI=1,mze=2,Ene=3,gze=/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7F- \x 84 \x 86- \x 9F \u FFFE \u FFFF]|[ \u D800- \u DBFF](?![ \u DC00- \u DFFF])|(?:[^ \u D800- \u DBFF]|^)[ \u DC00- \u DFFF]/,yze=/[ \x 85 \u 2028 \u 2029]/,vze=/[, \[ \] \{ \} ]/,Yne=/^(?:!|!!|![a-z \- ]+!) $ /i,jne=/^(?:!|[^, \[ \] \{ \} ])(?:%[0-9a-f]{2}|[0-9a-z \- #; \/ \? :@&= \+ \$ ,_ \. !~ \* ' \( \) \[ \] ])* $ /i;o(Sne,"_class");o(wu,"is_EOL");o(S0,"is_WHITE_SPACE");o(bo,"is_WS_OR_EOL");o(E1,"is_FLOW_INDICATOR");o(xze,"fromHexCode");o(bze,"escapedHexLen");o(Tze,"fromDecimalCode");o(Ane,"simpleEscapeSequence");o(kze,"charFromCodepoint");o(Xne,"setProperty");Kne=new Array(256),Qne=new Array(256);for(E0=0;E0<256;E0++)Kne[E0]=Ane(E0)?1:0,Qne[E0]=Ane(E0);o(Cze,"State $ 1");o(Zne,"generateError");o(or,"throwError");o(J3,"throwWarning");_ne={YAML:o(function(e,r,i){var n,a,s;e.version!==null&&or(e,"duplication of %YAML directive"),i.length!==1&&or(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+) \. ([0-9]+) $ /.exec(i[0]),n===null&&or(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&or(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&J3(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,i){var n,a;i.length!==2&&or(e,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Yne.test(n)||or(e,"ill-formed tag handle (first argument) of the TAG directive"),ld.call(e.tagMap,n)&&or(e,'there is a previously declared suffix for "'+n+'" tag handle'),jne.test(a)||or(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{or(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a},"handleTagDirective")};o(od,"captureSegment");o(Dne,"mergeMappings");o(S1,"storeMappingPair");o(BI,"readLineBreak");o(Zn,"skipSeparationSpace");o(r5,"testDocumentSeparator");o(FI,"writeFoldedLines");o(wze,"readPlainScalar");o(Eze,"readSingleQuotedScalar");o(Sze,"readDoubleQuotedScalar");o(Aze,"readFlowCollection");o(_ze,"readBlockScalar");o(Lne,"readBlockSequence");o(Dze,"readBlockMapping");o(Lze,"readTagProperty");o(Rze,"readAnchorProperty");o(Nze,"readAlias");o(A1,"composeNode");o(Ize,"readDocument");o(Jne,"loadDocuments");o(Mze,"loadAll $ 1");o(Oze,"load $ 1");Pze=Mze,Bze=Oze,eae={loadAll:Pze,load:Bze},tae=Object.prototype.toString,rae=Object.prototype.hasOwnProperty, $ I=65279,Fze=9,gb=10, $ ze=13,zze=32,Gze=33,Vze=34,NI=35,qze=37,Wze=38,Uze=39,Hze=42,iae=44,Yze=45,e5=58,jze=61,Xze=62,Kze=63,Qze=64,nae=91,aae=93,Zze=96,sae=123,Jze=124,oae=125,fs={};fs[0]=" \\ 0";fs[7]=" \\ a";fs[8]=" \\ b";fs[9]=" \\ t";fs[10]=" \\ n";fs[11]=" \\ v";fs[12]=" \\ f";fs[13]=" \\ r";fs[27]=" \\ e";fs[34]=' \\ "';fs[92]=" \\ \\ ";fs[133]=" \\ N";fs[160]=" \\ _";fs[8232]=" \\ L";fs[8233]=" \\ P";eGe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tGe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?: \. [0-9_]*)? $ /;o(rGe,"compileStyleMap");o(iGe,"encodeHex");nGe=1,yb=2;o(aGe,"State");o(Rne,"indentString");o(II,"generateNextLine");o(sGe,"testImplicitResolving");o(t5,"isWhitespace");o(vb,"isPrintable");o(Nne,"isNsCharOrWhitespace");o(Ine,"isPlainSafe");o(oGe,"isPlainSafeFirst");o(lGe,"isPlainSafeLast");o(pb,"codePointAt");o(lae,"needIndentIndicator");cae=1,MI=2,uae=3,hae=4,w1=5;o(cGe,
` ).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[l]=s;return l.length>=n.length?a.slice(n.length):a}).join( `
` )}function bi(t,e){return A0.parse(t,e)}var _0,Cb,Gs,bGe,TGe,kGe,wb,CGe,UI,vae,xae,wGe,HI,EGe,YI,SGe,AGe,l5,jI,_Ge,bae,DGe,XI,fae,LGe,RGe,NGe,IGe,Tae,MGe,c5,KI,kae,OGe,Cae,PGe,BGe,FGe,wae, $ Ge,zGe,Eae,GGe,VGe,qGe,WGe,UGe,HGe,YGe,a5,jGe,Sae,Aae,XGe,QI,KGe,GI,QGe,n5,bb,ZGe,dae,s5,zh,o5,ZI,Gh,kb,tVe,A0,sFt,oFt,lFt,cFt,uFt,hFt,fFt,_ae=P(()=>{"use strict";o(WI,"L");_0=WI();o(yae,"G");Cb={exec:o(()=>null,"exec")};o(Ei,"h");Gs={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+));?/ig , caret : /(^|[^\[])\^/g , percentDecode : /%25/g , findPipe : /\|/g , splitPipe : / \|/ , slashPipe : /\\\|/g , carriageReturn : /\r\n|\r/g , spaceLine : /^ +$/gm , notSpaceStart : /^\S*/ , endingNewline : /\n$/ , listItemRegex : o ( t => new RegExp ( ` ^( {0,3} ${ t } )((?:[ ][^ \\ n]*)?(?: \\ n| $ )) ` ) , "listItemRegex" ) , nextBulletRegex : o ( t => new RegExp ( ` ^ {0, ${ Math . min ( 3 , t - 1 ) } }(?:[*+-]| \\ d{1,9}[.)])((?:[ ][^ \\ n]*)?(?: \\ n| $ )) ` ) , "nextBulletRegex" ) , hrRegex : o ( t => new RegExp ( ` ^ {0, ${ Math . min ( 3 , t - 1 ) } }((?:- *){3,}|(?:_ *){3,}|(?: \\ * *){3,})(?: \\ n+| $ ) ` ) , "hrRegex" ) , fencesBeginRegex : o ( t => new RegExp ( ` ^ {0, ${ Math . min ( 3 , t - 1 ) } }(?: \` \` \` |~~~) ` ) , "fencesBeginRegex" ) , headingBeginRegex : o ( t => new RegExp ( ` ^ {0, ${ Math . min ( 3 , t - 1 ) } }# ` ) , "headingBeginRegex" ) , htmlBeginRegex : o ( t => new RegExp ( ` ^ {0, ${ Math . min ( 3 , t - 1 ) } }<(?:[a-z].*>|!--) ` , "i" ) , "htmlBeginRegex" ) } , bGe = /^(?:[ \t]*(?:\n|$))+/ , TGe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/ , kGe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/ , wb = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/ , CGe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/ , UI = /(?:[*+-]|\d{1,9}[.)])/ , vae = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/ , xae = Ei ( vae ) . replace ( /bull/g , UI ) . 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 ( ) , wGe = Ei ( vae ) . replace ( /bull/g , UI ) . 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 ( ) , HI = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/ , EGe = /^[^\n]+/ , YI = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/ , SGe = Ei ( /^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/ ) . replace ( "label" , YI ) . replace ( "title" , /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/ ) . getRegex ( ) , AGe = Ei ( /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/ ) . replace ( /bull/g , UI ) . getRegex ( ) , l5 = " address | article | aside | base | basefont | blockquote | body | caption |
] ` ).replace("lheading",xae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},NGe=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , IGe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , Tae = /^( {2,}|\\)\n(?!\s*$)/ , MGe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , c5 = /[\p{P}\p{S}]/u , KI = /[\s\p{P}\p{S}]/u , kae = /[^\s\p{P}\p{S}]/u , OGe = Ei ( /^((?![*_])punctSpace)/ , "u" ) . replace ( /punctSpace/g , KI ) . getRegex ( ) , Cae = /(?!~)[\p{P}\p{S}]/u , PGe = /(?!~)[\s\p{P}\p{S}]/u , BGe = /(?:[^\s\p{P}\p{S}]|~)/u , FGe = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g , wae = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/ , $Ge = Ei ( wae , "u" ) . replace ( /punct/g , c5 ) . getRegex ( ) , zGe = Ei ( wae , "u" ) . replace ( /punct/g , Cae ) . getRegex ( ) , Eae = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)" , GGe = Ei ( Eae , "gu" ) . replace ( /notPunctSpace/g , kae ) . replace ( /punctSpace/g , KI ) . replace ( /punct/g , c5 ) . getRegex ( ) , VGe = Ei ( Eae , "gu" ) . replace ( /notPunctSpace/g , BGe ) . replace ( /punctSpace/g , PGe ) . replace ( /punct/g , Cae ) . getRegex ( ) , qGe = Ei ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)" , "gu" ) . replace ( /notPunctSpace/g , kae ) . replace ( /punctSpace/g , KI ) . replace ( /punct/g , c5 ) . getRegex ( ) , WGe = Ei ( /\\(punct)/ , "gu" ) . replace ( /punct/g , c5 ) . getRegex ( ) , UGe = Ei ( /^<(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 ( ) , HGe = Ei ( jI ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , YGe = Ei ( "^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" , HGe ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , a5 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/ , jGe = Ei ( /^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/ ) . replace ( "label" , a5 ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , Sae = Ei ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , a5 ) . replace ( "ref" , YI ) . getRegex ( ) , Aae = Ei ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , YI ) . getRegex ( ) , XGe = Ei ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , Sae ) . replace ( "nolink" , Aae ) . getRegex ( ) , QI = { _backpedal : Cb , anyPunctuation : WGe , autolink : UGe , blockSkip : FGe , br : Tae , code : IGe , del : Cb , emStrongLDelim : $Ge , emStrongRDelimAst : GGe , emStrongRDelimUnd : qGe , escape : NGe , link : jGe , nolink : Aae , punctuation : OGe , reflink : Sae , reflinkSearch : XGe , tag : YGe , text : MGe , url : Cb } , KGe = { ... QI , link : Ei ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , a5 ) . getRegex ( ) , reflink : Ei ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , a5 ) . getRegex ( ) } , GI = { ... QI , emStrongRDelimAst : VGe , emStrongLDelim : zGe , url : Ei ( /^((?: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\S]|[^\\])*?(?:\\[\s\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.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , QGe = { ... GI , br : Ei ( Tae ) . replace ( "{2,}" , "*" ) . getRegex ( ) , text : Ei ( GI . text ) . replace ( "\\b_" , "\\b_| {2,}\\n" ) . replace ( /\{2,\}/g , "*" ) . getRegex ( ) } , n5 = { normal : XI , gfm : LGe , pedantic : RGe } , bb = { normal : QI , gfm : GI , brea
` )}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],i=eVe(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):e[2],text:i}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let i=Tb(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Tb(e[0], `
` )}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=Tb(e[0], `
2026-02-13 14:04:06 -07:00
` ).split( `
2026-04-01 22:38:25 +00:00
` ),i="",n="",a=[];for(;r.length>0;){let s=!1,l=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),s=!0;else if(!s)l.push(r[u]);else break;r=r.slice(u);let h=l.join( `
2026-02-13 14:04:06 -07:00
` ),f=h.replace(this.rules.other.blockquoteSetextReplace, `
2026-04-01 22:38:25 +00:00
$1 ` ).replace(this.rules.other.blockquoteSetextReplace2,"");i=i? ` $ { i }
$ { h } ` :h,n=n? ` $ { n }
2026-02-13 14:04:06 -07:00
$ { f } ` :f;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,a,!0),this.lexer.state.top=d,r.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let m=p,g=m.raw+ `
` +r.join( `
2026-04-01 22:38:25 +00:00
` ),y=this.blockquote(g);a[a.length-1]=y,i=i.substring(0,i.length-m.raw.length)+y.raw,n=n.substring(0,n.length-m.text.length)+y.text;break}else if(p?.type==="list"){let m=p,g=m.raw+ `
2026-02-13 14:04:06 -07:00
` +r.join( `
2026-04-01 22:38:25 +00:00
` ),y=this.list(g);a[a.length-1]=y,i=i.substring(0,i.length-p.raw.length)+y.raw,n=n.substring(0,n.length-m.raw.length)+y.raw,r=g.substring(a.at(-1).raw.length).split( `
` );continue}}return{type:"blockquote",raw:i,tokens:a,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i? ` \ \ d { 1 , 9 } \ \ $ { r . slice ( - 1 ) } ` : ` \ \ $ { r } ` ,this.options.pedantic&&(r=i?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let u=!1,h="",f="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let d=e[2].split( `
2026-02-13 14:04:06 -07:00
` ,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),p=t.split( `
` ,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=e[1].length+1:(g=e[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=d.slice(g),g+=e[1].length),m&&this.rules.other.blankLine.test(p)&&(h+=p+ `
2026-04-01 22:38:25 +00:00
` ,t=t.substring(p.length+1),u=!0),!u){let x=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),T=this.rules.other.fencesBeginRegex(g),w=this.rules.other.headingBeginRegex(g),k=this.rules.other.htmlBeginRegex(g);for(;t;){let C=t.split( `
` ,1)[0],E;if(p=C,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),E=p):E=p.replace(this.rules.other.tabCharGlobal," "),T.test(p)||w.test(p)||k.test(p)||x.test(p)||b.test(p))break;if(E.search(this.rules.other.nonSpaceChar)>=g||!p.trim())f+= `
` +E.slice(g);else{if(m||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||w.test(d)||b.test(d))break;f+= `
` +p}!m&&!p.trim()&&(m=!0),h+=C+ `
` ,t=t.substring(C.length+1),d=E.slice(g)}}n.loose||(s?n.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let y=null,v;this.options.gfm&&(y=this.rules.other.listIsTask.exec(f),y&&(v=y[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:f,tokens:[]}),n.raw+=h}let l=n.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let u=0;u<n.items.length;u++)if(this.lexer.state.top=!1,n.items[u].tokens=this.lexer.blockTokens(n.items[u].text,[]),!n.loose){let h=n.items[u].tokens.filter(d=>d.type==="space"),f=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=f}if(n.loose)for(let u=0;u<n.items.length;u++)n.items[u].loose=!0;return n}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):e[3];return{type:"def",tag:r,raw:e[0],href:i,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=mae(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split( `
` ):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let s of i)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<r.length;s++)a.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:a.align[s]});for(let s of n)a.rows.push(mae(s,a.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[u]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)=== `
` ?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Tb(r.slice(0,-1)," \\ ");if((r.length-a.length)%2===0)return}else{let a=JGe(e[2],"()");if(a===-2)return;if(a>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let i=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),gae(e,{href:i&&i.replace(this.rules.inline.anyPunctuation," $ 1"),title:n&&n.replace(this.rules.inline.anyPunctuation," $ 1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[i.toLowerCase()];if(!n){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return gae(r,n,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,a,s,l=n,u=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+n);(i=h.exec(e))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(s=[...a].length,i[3]||i[4]){l+=s;continue}else if((i[5]||i[6])&&n%3&&!((n+s)%3)){u+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+u);let f=[...i[0]][0].length,d=t.slice(0,n+i.index+f+s);if(Math.min(n,s)%2){let m=d.slice(1,-1);return{type:"em",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,i;return e[2]==="@"?(r=e[1],i="mailto:"+r):(r=e[1],i=r),{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,i;if(e[2]==="@")r=e[0],i="mailto:"+r;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);r=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},zh=class VI{static{o(this,"l")}tokens;options;state;tokenizer;inlineQueue;co
` ),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],i=!1){for(this.options.pedantic&&(e=e.replace(Gs.tabCharGlobal," ").replace(Gs.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(s=>(n=s.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let s=r.at(-1);n.raw.length===1&&s!==void 0?s.raw+= `
` :r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith( `
2026-02-13 14:04:06 -07:00
` )?"": `
2026-04-01 22:38:25 +00:00
` )+n.raw,s.text+= `
` +n.text,this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith( `
2026-02-13 14:04:06 -07:00
` )?"": `
2026-04-01 22:38:25 +00:00
` )+n.raw,s.text+= `
` +n.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}let a=e;if(this.options.extensions?.startBlock){let s=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(h=>{u=h.call({lexer:this},l),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(a=e.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let s=r.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith( `
2026-02-13 14:04:06 -07:00
` )?"": `
2026-04-01 22:38:25 +00:00
` )+n.raw,s.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n),i=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith( `
2026-02-13 14:04:06 -07:00
` )?"": `
2026-04-01 22:38:25 +00:00
` )+n.raw,s.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let i=e,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,s="";for(;e;){a||(s=""),a=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},e,r))?(e=e.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(e,i,s)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),r.push(l);continue}let u=e;if(this.options.extensions?.startInline){let h=1/0,f=e.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(u=e.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),a=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},o5=class{static{o(this,"P")}options;parser;constructor(t){this.options=t||_0}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(Gs.notSpaceStart)?.[0],n=t.replace(Gs.endingNewline,"")+ `
` ;return i?'<pre><code class="language-'+Eu(i)+'">'+(r?n:Eu(n,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(r?n:Eu(n,!0))+ ` < / c o d e > < / p r e >
2026-02-13 14:04:06 -07:00
` }blockquote({tokens:t}){return ` < blockquote >
$ { this . parser . parse ( t ) } < / b l o c k q u o t e >
` }html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return ` < h$ { e } > $ { this . parser . parseInline ( t ) } < / h $ { e } >
` }hr(t){return ` < hr >
2026-04-01 22:38:25 +00:00
` }list(t){let e=t.ordered,r=t.start,i="";for(let s=0;s<t.items.length;s++){let l=t.items[s];i+=this.listitem(l)}let n=e?"ol":"ul",a=e&&r!==1?' start="'+r+'"':"";return"<"+n+a+ ` >
` +i+"</"+n+ ` >
` }listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+Eu(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose), ` < li > $ { e } < / l i >
2026-02-13 14:04:06 -07:00
` }checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return ` < p > $ { this . parser . parseInline ( t ) } < / p >
2026-04-01 22:38:25 +00:00
` }table(t){let e="",r="";for(let n=0;n<t.header.length;n++)r+=this.tablecell(t.header[n]);e+=this.tablerow({text:r});let i="";for(let n=0;n<t.rows.length;n++){let a=t.rows[n];r="";for(let s=0;s<a.length;s++)r+=this.tablecell(a[s]);i+=this.tablerow({text:r})}return i&&(i= ` < tbody > $ { i } < / t b o d y > ` ) , ` < t a b l e >
2026-02-13 14:04:06 -07:00
< thead >
` +e+ ` < / t h e a d >
2026-04-01 22:38:25 +00:00
` +i+ ` < / t a b l e >
2026-02-13 14:04:06 -07:00
` }tablerow({text:t}){return ` < tr >
$ { t } < / t r >
` }tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align? ` < $ { r } align = "${t.align}" > ` : ` < $ { r } > ` )+e+ ` < / $ { r } >
2026-04-01 22:38:25 +00:00
` }strong({tokens:t}){return ` < strong > $ { this . parser . parseInline ( t ) } < / s t r o n g > ` } e m ( { t o k e n s : t } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( t ) } < / e m > ` } c o d e s p a n ( { t e x t : t } ) { r e t u r n ` < c o d e > $ { E u ( t , ! 0 ) } < / c o d e > ` } b r ( t ) { r e t u r n " < b r > " } d e l ( { t o k e n s : t } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( t ) } < / d e l > ` } l i n k ( { h r e f : t , t i t l e : e , t o k e n s : r } ) { l e t i = t h i s . p a r s e r . p a r s e I n l i n e ( r ) , n = p a e ( t ) ; i f ( n = = = n u l l ) r e t u r n i ; t = n ; l e t a = ' < a h r e f = " ' + t + ' " ' ; r e t u r n e & & ( a + = ' t i t l e = " ' + E u ( e ) + ' " ' ) , a + = " > " + i + " < / a > " , a } i m a g e ( { h r e f : t , t i t l e : e , t e x t : r , t o k e n s : i } ) { i & & ( r = t h i s . p a r s e r . p a r s e I n l i n e ( i , t h i s . p a r s e r . t e x t R e n d e r e r ) ) ; l e t n = p a e ( t ) ; i f ( n = = = n u l l ) r e t u r n E u ( r ) ; t = n ; l e t a = ` < i m g s r c = " $ { t } " a l t = " $ { r } " ` ; r e t u r n e & & ( a + = ` t i t l e = " $ { E u ( e ) } " ` ) , a + = " > " , a } t e x t ( t ) { r e t u r n " t o k e n s " i n t & & t . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( t . t o k e n s ) : " e s c a p e d " i n t & & t . e s c a p e d ? t . t e x t : E u ( t . t e x t ) } } , Z I = c l a s s { s t a t i c { o ( t h i s , " $ " ) } s t r o n g ( { t e x t : t } ) { r e t u r n t } e m ( { t e x t : t } ) { r e t u r n t } c o d e s p a n ( { t e x t : t } ) { r e t u r n t } d e l ( { t e x t : t } ) { r e t u r n t } h t m l ( { t e x t : t } ) { r e t u r n t } t e x t ( { t e x t : t } ) { r e t u r n t } l i n k ( { t e x t : t } ) { r e t u r n " " + t } i m a g e ( { t e x t : t } ) { r e t u r n " " + t } b r ( ) { r e t u r n " " } } , G h = c l a s s q I { s t a t i c { o ( t h i s , " l " ) } o p t i o n s ; r e n d e r e r ; t e x t R e n d e r e r ; c o n s t r u c t o r ( e ) { t h i s . o p t i o n s = e | | _ 0 , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w o 5 , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w Z I } s t a t i c p a r s e ( e , r ) { r e t u r n n e w q I ( r ) . p a r s e ( e ) } s t a t i c p a r s e I n l i n e ( e , r ) { r e t u r n n e w q I ( r ) . p a r s e I n l i n e ( e ) } p a r s e ( e , r = ! 0 ) { l e t i = " " ; f o r ( l e t n = 0 ; n < e . l e n g t h ; n + + ) { l e t a = e [ n ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s ? . r e n d e r e r s ? . [ a . t y p e ] ) { l e t l = a , u = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ l . t y p e ] . c a l l ( { p a r s e r : t h i s } , l ) ; i f ( u ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " d e f " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( l . t y p e ) ) { i + = u | | " " ; c o n t i n u e } } l e t s = a ; s w i t c h ( s . t y p e ) { c a s e " s p a c e " : { i + = t h i s . r e n d e r e r . s p a c e ( s ) ; c o n t i n u e } c a s e " h r " : { i + = t h i s . r e n d e r e r . h r ( s ) ; c o n t i n u e } c a s e " h e a d i n g " : { i + = t h i s . r e n d e r e r . h e a d i n g ( s ) ; c o n t i n u e } c a s e " c o d e " : { i + = t h i s . r e n d e r e r . c o d e ( s ) ; c o n t i n u e } c a s e " t a b l e " : { i + = t h i s . r e n d e r e r . t a b l e ( s ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { i + = t h i s . r e n d e r e r . b l o c k q u o t e ( s ) ; c o n t i n u e } c a s e " l i s t " : { i + = t h i s . r e n d e r e r . l i s t ( s ) ; c o n t i n u e } c a s e " h t m l " : { i + = t h i s . r e n d e r e r . h t m l ( s ) ; c o n t i n u e } c a s e " d e f " : { i + = t h i s . r e n d e r e r . d e f ( s ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { i + = t h i s . r e n d e r e r . p a r a g r a p h ( s ) ; c o n t i n u e } c a s e " t e x t " : { l e t l = s , u = t h i s . r e n d e r e r . t e x t ( l ) ; f o r ( ; n + 1 < e . l e n g t h & & e [ n + 1 ] . t y p e = = = " t e x t " ; ) l = e [ + + n ] , u + = `
` +this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):i+=u;continue}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(e,r=this.renderer){let i="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=l||"";continue}}let s=a;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:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},kb=class{static{o(this,"S")}options;block;constructor(t){this.options=t||_0}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?zh.lex:zh.lexInline}provideParser(){return this.block?Gh.parse:Gh.parseInline}},tVe=class{static{o(this,"B")}defaults=WI();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Gh;Renderer=o5;TextRenderer=ZI;Lexer=zh;Tokenizer=s5;Hooks=kb;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":{let n=i;for(let a of n.header)r=r.concat(this.walkTokens(a.tokens,e));for(let a of n.rows)for(let s of a)r=r.concat(this.walkTokens(s.tokens,e));break}case"list":{let n=i;r=r.concat(this.walkTokens(n.items,e));break}default:{let n=i;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(a=>{let s=n[a].flat(1/0);r=r.concat(this.walkTokens(s,e))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...s){let l=n.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),i.extensions=e),r.renderer){let n=this.defaults.renderer||new o5(this.defaults);for(let a in r.renderer){if(!(a in n))throw new Error( ` renderer '${a}' does not exist ` );if(["options","parser"].includes(a))continue;let s=a,l=r.renderer[s],u=n[s];n[s]=(...h)=>{let f=l.apply(n,h);return f===!1&&(f=u.apply(n,h)),f||""}}i.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new s5(this.defaults);for(let a in r.tokenizer){if(!(a in n))throw new Error( ` tokenizer '${a}' does not exist ` );if(["options","rules","lexer"].includes(a))continue;let s=a,l=r.tokenizer[s],u=n[s];n[s]=(...h)=>{let f=l.apply(n,h);return f===!1&&(f=u.apply(n,h)),f}}i.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new kb;for(let a in r.hooks){if(!(a in n))throw new Error( ` hook '${a}' does not exist ` );if(["options","block"].includes(a))continue;let s=a,l=r.hooks[s],u=n[s];kb.pa
Please report this to https : //github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Eu(r.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(r);throw r}}},A0=new tVe;o(bi,"d");bi.options=bi.setOptions=function(t){return A0.setOptions(t),bi.defaults=A0.defaults,yae(bi.defaults),bi};bi.getDefaults=WI;bi.defaults=_0;bi.use=function(...t){return A0.use(...t),bi.defaults=A0.defaults,yae(bi.defaults),bi};bi.walkTokens=function(t,e){return A0.walkTokens(t,e)};bi.parseInline=A0.parseInline;bi.Parser=Gh;bi.parser=Gh.parse;bi.Renderer=o5;bi.TextRenderer=ZI;bi.Lexer=zh;bi.lexer=zh.lex;bi.Tokenizer=s5;bi.Hooks=kb;bi.parse=bi;sFt=bi.options,oFt=bi.setOptions,lFt=bi.use,cFt=bi.walkTokens,uFt=bi.parseInline,hFt=Gh.parse,fFt=zh.lex});function rVe(t,{markdownAutoWrap:e}){let i=t.replace(/<br\/>/g,`
2026-02-13 14:04:06 -07:00
` ).replace(/ \n {2,}/g, `
2026-04-01 22:38:25 +00:00
` );return Z4(i)}function Dae(t){return t.split(/ \\ n| \n |<br \s * \/ ?>/gi).map(e=>e.trim().match(/<[^>]+>|[^ \s <>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}function Lae(t,e={}){let r=rVe(t,e),i=bi.lexer(r),n=[[]],a=0;function s(l,u="normal"){l.type==="text"?l.text.split( `
` ).forEach((f,d)=>{d!==0&&(a++,n.push([])),f.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&n[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&n[a].push({content:l.text,type:"normal"})}return o(s,"processNode"),i.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{s(u)}):l.type==="html"?n[a].push({content:l.text,type:"normal"}):n[a].push({content:l.raw,type:"normal"})}),n}function Rae(t){return t? ` < p > $ { t . replace ( /\\n|\n/g , "<br />" ) } < /p>`:""}function Nae(t,{markdownAutoWrap:e}={}){let r=bi.lexer(t);function i(n){return n.type==="text"?e===!1?n.text.replace(/ \ n * /g,"<br/ > ").replace(/ /g," & nbsp ; "):n.text.replace(/\n */g," < br / > "):n.type===" strong "?`<strong>${n.tokens?.map(i).join(" ")}</strong>`:n.type===" em "?`<em>${n.tokens?.map(i).join(" ")}</em>`:n.type===" paragraph "?`<p>${n.tokens?.map(i).join(" ")}</p>`:n.type===" space "?" ":n.type===" html "?`${n.text}`:n.type===" escape "?n.text:(Q.warn(`Unsupported markdown: ${n.type}`),n.raw)}return o(i," output "),r.map(i).join(" ")}var Iae=P(()=>{" use strict ";_ae();oL();bt();o(rVe," preprocessMarkdown ");o(Dae," nonMarkdownToLines ");o(Lae," markdownToLines ");o(Rae," nonMarkdownToHTML ");o(Nae," markdownToHTML ")});function iVe(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function nVe(t,e){let r=iVe(e.content);return Mae(t,[],r,e.type)}function Mae(t,e,r,i){if(r.length===0)return[{content:e.join(" "),type:i},{content:" ",type:i}];let[n,...a]=r,s=[...e,n];return t([{content:s.join(" "),type:i}])?Mae(t,s,a,i):(e.length===0&&n&&(e.push(n),r.shift()),[{content:e.join(" "),type:i},{content:r.join(" " ) , type : i } ] ) } function Oae ( t , e ) { if ( t . some ( ( { content : r } ) => r . includes ( `
` )))throw new Error("splitLineToFitWidth does not support newlines in the line");return JI(t,e)}function JI(t,e,r=[],i=[]){if(t.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";t[0].content===" "&&(n=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),e(s))return JI(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[l,u]=nVe(e,a);r.push([l]),u.content&&t.unshift(u)}return JI(t,e,r)}var Pae=P(()=>{"use strict";o(iVe,"splitTextToChars");o(nVe,"splitWordToFitWidth");o(Mae,"splitWordToFitWidthRecursion");o(Oae,"splitLineToFitWidth");o(JI,"splitLineToFitWidthRecursion")});function Bae(t,e){e&&t.attr("style",e)}async function aVe(t,e,r,i,n=!1,a=Lt()){let s=t.append("foreignObject");s.attr("width", ` $ { Math . min ( 10 * r , Fae ) } px ` ),s.attr("height", ` $ { Math . min ( 10 * r , Fae ) } px ` );let l=s.append("xhtml:div"),u=sn(e.label)?await Rg(e.label.replace(lt.lineBreakRegex, `
` ),a):Tr(e.label,a),h=e.isNode?"nodeLabel":"edgeLabel",f=l.append("span");f.html(u),Bae(f,e.labelStyle),f.attr("class", ` $ { h } $ { i } ` ),Bae(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),d=l.node().getBoundingClientRect()),s.node()}function eM(t,e,r,i=!1){let n=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}function sVe(t,e,r){let i=t.append("text"),n=eM(i,1,e);tM(n,r);let a=n.node().getComputedTextLength();return i.remove(),a}function zae(t,e,r){let i=t.append("text"),n=eM(i,1,e);tM(n,[{content:r,type:"normal"}]);let a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}function oVe(t,e,r,i=!1,n=!1){let s=e.append("g"),l=s.insert("rect").attr("class","background").attr("style","stroke: none"),u=s.append("text").attr("y","-10.1");n&&u.attr("text-anchor","middle");let h=0;for(let f of r){let d=o(m=>sVe(s,1.1,m)<=t,"checkWidth"),p=d(f)?[f]:Oae(f,d);for(let m of p){let g=eM(u,h,1.1,n);tM(g,m),h++}}if(i){let f=u.node().getBBox(),d=2;return l.attr("x",f.x-d).attr("y",f.y-d).attr("width",f.width+2*d).attr("height",f.height+2*d),s.node()}else return u.node()}function $ ae(t){let e=/&(amp|lt|gt);/g;return t.replace(e,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}function tM(t,e){t.text(""),e.forEach((r,i)=>{let n=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text( $ ae(r.content)):n.text(" "+ $ ae(r.content))})}async function lVe(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([ \w -]+)/g,(n,a,s)=>(r.push((async()=>{let l= ` $ { a } : $ { s } ` ;return await WK(l)?await fo(l,void 0,{class:"label-icon"}): ` < i class = '${Tr(n,e).replace(":"," ")}' > < /i>`})()),n));let i=await Promise.all(r);return t.replace(/ ( fa [ bklrs ] ? ) : fa - ( [ \ w - ] + ) / g , ( ) => i . shift ( ) ? ? "" ) } var Fae , Vi , To = P ( ( ) => { "use strict" ; Pr ( ) ; Vr ( ) ; bt ( ) ; Iae ( ) ; er ( ) ; lu ( ) ; Pae ( ) ; Sr ( ) ; o ( Bae , "applyStyle" ) ; Fae = 16384 ; o ( aVe , "addHtmlSpan" ) ; o ( eM , "createTspan" ) ; o ( sVe , "computeWidthOfText" ) ; o ( zae , "computeDimensionOfText" ) ; o ( oVe , "createFormattedText" ) ; o ( $ae , "decodeHTMLEntities" ) ; o ( tM , "updateTextContentAndStyles" ) ; o ( lVe , "replaceIconSubstring" ) ; Vi = o ( async ( t , e = "" , { style : r = "" , isTitle : i = ! 1 , classes : n = "" , useHtmlLabels : a = ! 0 , markdown : s = ! 0 , isNode : l = ! 0 , width : u = 200 , addSvgBackground : h = ! 1 } = { } , f ) => { if ( Q . debug ( "XYZ createText" , e , r , i , n , a , l , "addSvgBackground: " , h ) , a ) { let d = s ? Nae ( e , f ) : Rae ( e ) , p = await lVe ( zs ( d ) , f ) , m = e . replace ( /\\\\/g , "\\" ) , g = { isNode : l , label : sn ( e ) ? m : p , labelStyle : r . replace ( "fill:" , "color:" ) } ; return await aVe ( t , g , u , n , h , f ) } else { let d = zs ( e . replace ( /<br\s*\/?>/g , "<br/>" ) ) , p = s ? Lae ( d . replace ( "<br>" , "<br/>" ) , f ) : Dae ( d ) , m = oVe ( u , t , p , e ? h : ! 1 , ! l ) ; if ( l ) { /stroke:/ . exec ( r ) && ( r = r . replace ( "stroke:" , "lineColor:" ) ) ; let g = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; Ze ( m ) . attr ( "style" , g ) } else { let g = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /background:/g , "fill:" ) ; Ze ( m ) . select ( "rect" ) . attr ( "style" , g . replace ( /background:/g , "fill:" ) ) ; let y = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; Ze ( m ) . select ( "text" ) . attr ( "style" , y ) } return i ? Ze ( m ) . selectAll ( "tspan.text-outer-tspan" ) . classed ( "title-row" , ! 0 ) : Ze ( m ) . selectAll ( "tspan.text-outer-tspan" ) . classed ( "row" , ! 0 ) , m } } , "createText" ) } ) ; async function u5 ( t , e ) { let r = t . getElementsByTagName ( "img" ) ; if ( ! r || r . length === 0 ) return ; let i = e . replace ( /<img[^>]*>/g , "" ) . trim ( ) === "" ; await Promise . all ( [ ... r ] . map ( n => new Promise ( a => { function s ( ) { if ( n . style . display = "flex" , n . style . flexDirec
M $ { n . x } , $ { n . y } L $ { s . x } , $ { s . y } ` }function bse(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,l=rt.svg(n),u=st(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,a*2,u),f=SVe(a),d=l.path(f,u),p=n.insert(()=>h,":first-child");return p.insert(()=>d),p.attr("class","outer-path"),s&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",i),at(e,p),e.intersect=function(m){return Q.info("crossedCircle intersect",e,{radius:a,point:m}),et.circle(e,a,m)},n}var Tse=P(()=>{"use strict";bt();zt();Ht();Yt();Xt();o(SVe,"createLine");o(bse,"crossedCircle")});function dd(t,e,r,i=100,n=0,a=180){let s=[],l=n*Math.PI/180,f=(a*Math.PI/180-l)/(i-1);for(let d=0;d<i;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.sin(p);s.push({x:-m,y:-g})}return s}async function kse(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await vt(t,e,mt(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=a.width+l,f=a.height+u,d=Math.max(5,f*.1),{cssStyles:p}=e,m=[...dd(h/2,-f/2,d,30,-90,0),{x:-h/2-d,y:d},...dd(h/2+d*2,-d,d,20,-180,-270),...dd(h/2+d*2,d,d,20,-90,-180),{x:-h/2-d,y:-f/2},...dd(h/2,f/2,d,20,0,90)],g=[{x:h/2,y:-f/2-d},{x:-h/2,y:-f/2-d},...dd(h/2,-f/2,d,20,-90,0),{x:-h/2-d,y:-d},...dd(h/2+h*.1,-d,d,20,-180,-270),...dd(h/2+h*.1,d,d,20,-90,-180),{x:-h/2-d,y:f/2},...dd(h/2,f/2,d,20,0,90),{x:-h/2,y:f/2+d},{x:h/2,y:f/2+d}],y=rt.svg(n),v=st(e,{fill:"none"});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let b=rr(m).replace("Z",""),T=y.path(b,v),w=rr(g),k=y.path(w,{...v}),C=n.insert("g",":first-child");return C.insert(()=>k,":first-child").attr("stroke-opacity",0),C.insert(()=>T,":first-child"),C.attr("class","text"),p&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform", ` translate ( $ { d } , 0 ) ` ),s.attr("transform", ` translate ( $ { - h / 2 + d - ( a . x - ( a . left ? ? 0 ) ) } , $ { - f / 2 + ( e . padding ? ? 0 ) / 2 - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),at(e,C),e.intersect=function(E){return et.polygon(e,g,E)},n}var Cse=P(()=>{"use strict";zt();Xt();Ht();Yt();o(dd,"generateCirclePoints");o(kse,"curlyBraceLeft")});function pd(t,e,r,i=100,n=0,a=180){let s=[],l=n*Math.PI/180,f=(a*Math.PI/180-l)/(i-1);for(let d=0;d<i;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.sin(p);s.push({x:m,y:g})}return s}async function wse(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await vt(t,e,mt(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=a.width+(e.look==="neo"?l*2:l),f=a.height+(e.look==="neo"?u*2:u),d=Math.max(5,f*.1),{cssStyles:p}=e,m=[...pd(h/2,-f/2,d,20,-90,0),{x:h/2+d,y:-d},...pd(h/2+d*2,-d,d,20,-180,-270),...pd(h/2+d*2,d,d,20,-90,-180),{x:h/2+d,y:f/2},...pd(h/2,f/2,d,20,0,90)],g=[{x:-h/2,y:-f/2-d},{x:h/2,y:-f/2-d},...pd(h/2,-f/2,d,20,-90,0),{x:h/2+d,y:-d},...pd(h/2+d*2,-d,d,20,-180,-270),...pd(h/2+d*2,d,d,20,-90,-180),{x:h/2+d,y:f/2},...pd(h/2,f/2,d,20,0,90),{x:h/2,y:f/2+d},{x:-h/2,y:f/2+d}],y=rt.svg(n),v=st(e,{fill:"none"});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let b=rr(m).replace("Z",""),T=y.path(b,v),w=rr(g),k=y.path(w,{...v}),C=n.insert("g",":first-child");return C.insert(()=>k,":first-child").attr("stroke-opacity",0),C.insert(()=>T,":first-child"),C.attr("class","text"),p&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform", ` translate ( $ { - d } , 0 ) ` ),s.attr("transform", ` translate ( $ { - h / 2 + ( e . padding ? ? 0 ) / 2 - ( a . x - ( a . left ? ? 0 ) ) } , $ { - f / 2 + ( e . padding ? ? 0 ) / 2 - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),at(e,C),e.intersect=function(E){return et.polygon(e,g,E)},n}var Ese=P(()=>{"use strict";zt();Xt();Ht();Yt();o(pd,"generateCirclePoints");o(wse,"curlyBraceRight")});function ps(t,e,r,i=100,n=0,a=180){let s=[],l=n*Math.PI/180,f=(a*Math.PI/180-l)/(i-1);for(let d=0;d<i;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.s
a$ { n } , $ { a } 0 , 0 , 1 0 , $ { - i }
2026-02-13 14:04:06 -07:00
l$ { r } , 0
2026-04-01 22:38:25 +00:00
a$ { n } , $ { a } 0 , 0 , 1 0 , $ { i }
M$ { r } , $ { - i }
a$ { n } , $ { a } 0 , 0 , 0 0 , $ { i }
l$ { - r } , 0 ` ,"createCylinderPathD"),BVe=o((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"),FVe=o((t,e,r,i,n,a)=>[ ` M$ { t + r / 2 } , $ { - i / 2 } ` , ` a$ { n } , $ { a } 0 , 0 , 0 0 , $ { i } ` ].join(" "),"createInnerCylinderPathD"),sle=5,ole=10;o(lle,"tiltedCylinder")});async function ule(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let n=e.padding??0,a=(e.look==="neo",n),s=e.look==="neo"?n*2:n,{shapeSvg:l,bbox:u}=await vt(t,e,mt(e)),h=(e?.height??u.height)+a,f=(e?.width??u.width)+s,d=[{x:-3*h/6,y:0},{x:f+3*h/6,y:0},{x:f,y:-h},{x:0,y:-h}],p,{cssStyles:m}=e;if(e.look==="handDrawn"){let g=rt.svg(l),y=st(e,{}),v=rr(d),x=g.path(v,y);p=l.insert(()=>x,":first-child").attr("transform", ` translate ( $ { - f / 2 } , $ { h / 2 } ) ` ),m&&p.attr("style",m)}else p=ds(l,f,h,d);return i&&p.attr("style",i),e.width=f,e.height=h,at(e,p),e.intersect=function(g){return et.polygon(e,d,g)},l}var hle=P(()=>{"use strict";zt();Xt();Ht();Yt();Vh();o(ule,"trapezoid")});async function fle(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,l=15,u=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.height<u&&(e.height=u),e.width=(e.width??0)-a*2,e.width<l&&(e.width=l));let{shapeSvg:h,bbox:f}=await vt(t,e,mt(e)),d=(e?.width?e?.width:f.width)+a*2,p=(e?.height?e?.height:f.height)+s*2,{cssStyles:m}=e,g=rt.svg(h),y=st(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-d/2*.8,y:-p/2},{x:d/2*.8,y:-p/2},{x:d/2,y:-p/2*.6},{x:d/2,y:p/2},{x:-d/2,y:p/2},{x:-d/2,y:-p/2*.6}],x=rr(v),b=g.path(x,y),T=h.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),at(e,T),e.intersect=function(w){return et.polygon(e,v,w)},h}var dle=P(()=>{"use strict";zt();Xt();Ht();Yt();o(fle,"trapezoidalPentagon")});async function gle(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?n*2:n;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.width<mle&&(e.width=mle),e.height=e?.height??0,e.height<ple&&(e.height=ple));let{shapeSvg:s,bbox:l,label:u}=await vt(t,e,mt(e)),h=ls(ge().flowchart?.htmlLabels),f=(e?.width?e?.width:l.width)+a,d=e?.height?e?.height:f+l.height,p=d,m=[{x:0,y:0},{x:p,y:0},{x:p/2,y:-d}],{cssStyles:g}=e,y=rt.svg(s),v=st(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=rr(m),b=y.path(x,v),T=s.insert(()=>b,":first-child").attr("transform", ` translate ( $ { - d / 2 } , $ { d / 2 } ) ` ).attr("class","outer-path");return g&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),e.width=f,e.height=d,at(e,T),u.attr("transform", ` translate ( $ { - l . width / 2 - ( l . x - ( l . left ? ? 0 ) ) } , $ { d / 2 - ( l . height + ( e . padding ? ? 0 ) / ( h ? 2 : 1 ) - ( l . y - ( l . top ? ? 0 ) ) ) } ) ` ),e.intersect=function(w){return Q.info("Triangle intersect",e,m,w),et.polygon(e,m,w)},s}var ple,mle,yle=P(()=>{"use strict";bt();zt();Xt();Ht();Yt();zt();Vr();Ut();ple=10,mle=10;o(gle,"triangle")});async function vle(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,l=!0;(e.width||e.height)&&(l=!1,e.width=(e?.width??0)-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10));let{shapeSvg:u,bbox:h,label:f}=await vt(t,e,mt(e)),d=(e?.width?e?.width:h.width)+(a??0)*2,p=(e?.height?e?.height:h.height)+(s??0)*2,m=e.look==="neo"?p/4:p/8,g=p+(l?m:-m),{cssStyles:y}=e,x=14-d,b=x>0?x/2:0,T=rt.svg(u),w=st(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let k=[{x:-d/2-b,y:g/2},...Ml(-d/2-b,g/2,d/2+b,g/2,m,.8),{x:d/2+b,y:-g/2},{x:-d/2-b,y:-g/2}],C=rr(k),E=T.path(C,w),S=u.insert(()=>E,":first-child");return S.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform", ` translate ( 0 , $ { - m / 2 }
M$ { m - On } , $ { g } L$ { m + d } , $ { g }
M$ { m } , $ { g - On } L$ { m } , $ { g + p } ` ;e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let w=v.path(T,x),k=s.insert(()=>w,":first-child");return k.attr("transform", ` translate ( $ { On / 2 } , $ { On / 2 } ) ` ),k.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),u.attr("transform", ` translate ( $ { - ( l . width / 2 ) + On / 2 - ( l . x - ( l . left ? ? 0 ) ) } , $ { - ( l . height / 2 ) + On / 2 - ( l . y - ( l . top ? ? 0 ) ) } ) ` ),at(e,k),e.intersect=function(C){return et.polygon(e,b,C)},s}var On,Cle=P(()=>{"use strict";zt();Ht();Yt();Xt();On=10;o(kle,"windowPane")});async function EM(t,e){let r=e;r.alias&&(e.label=r.alias);let{theme:i,themeVariables:n}=Lt(),{rowEven:a,rowOdd:s,nodeBorder:l,borderColorArray:u}=n;if(e.look==="handDrawn"){let{themeVariables:Z}=Lt(),{background:Y}=Z,ae={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none", ` fill : $ { Y } ` ]};await EM(t,ae)}let h=Lt();e.useHtmlLabels=h.htmlLabels;let f=h.er?.diagramPadding??10,d=h.er?.entityPadding??6,{cssStyles:p}=e,{labelStyles:m,nodeStyles:g}=tt(e);if(r.attributes.length===0&&e.label){let Z={rx:0,ry:0,labelPaddingX:f,labelPaddingY:f*1.5,classes:""};Ra(e.label,h)+Z.labelPaddingX*2<h.er.minEntityWidth&&(e.width=h.er.minEntityWidth);let Y=await qh(t,e,Z);if(i!=null&&wle.has(i)){let ae=r.colorIndex??0;Y.attr("data-color-id", ` color - $ { ae % u . length } ` )}if(!ls(h.htmlLabels)){let ae=Y.select("text"),J=ae.node()?.getBBox();ae.attr("transform", ` translate ( $ { - J . width / 2 } , 0 ) ` )}return Y}h.htmlLabels||(f*=1.25,d*=1.25);let y=mt(e);y||(y="node default");let v=t.insert("g").attr("class",y).attr("id",e.domId||e.id),x=await Lb(v,e.label??"",h,0,0,["name"],m);x.height+=d;let b=0,T=[],w=[],k=0,C=0,E=0,S=0,L=!0,M=!0;for(let Z of r.attributes){let Y=await Lb(v,Z.type,h,0,b,["attribute-type"],m);k=Math.max(k,Y.width+f);let ae=await Lb(v,Z.name,h,0,b,["attribute-name"],m);C=Math.max(C,ae.width+f);let J=await Lb(v,Z.keys.join(),h,0,b,["attribute-keys"],m);E=Math.max(E,J.width+f);let ee=await Lb(v,Z.comment,h,0,b,["attribute-comment"],m);S=Math.max(S,ee.width+f);let re=Math.max(Y.height,ae.height,J.height,ee.height)+d;w.push({yOffset:b,rowHeight:re}),b+=re}let I=4;E<=f&&(L=!1,E=0,I--),S<=f&&(M=!1,S=0,I--);let A=v.node().getBBox();if(x.width+f*2-(k+C+E+S)>0){let Z=x.width+f*2-(k+C+E+S);k+=Z/I,C+=Z/I,E>0&&(E+=Z/I),S>0&&(S+=Z/I)}let _=k+C+E+S,D=rt.svg(v),N=st(e,{});e.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");let R=0;w.length>0&&(R=w.reduce((Z,Y)=>Z+(Y?.rowHeight??0),0));let B=Math.max(A.width+f*2,e?.width||0,_),O=Math.max((R??0)+x.height,e?.height||0), $ =-B/2,z=-O/2;if(v.selectAll("g:not(:first-child)").each((Z,Y,ae)=>{let J=Ze(ae[Y]),ee=J.attr("transform"),re=0,te=0;if(ee){let de=RegExp(/translate \( ([^,]+),([^)]+) \) /).exec(ee);de&&(re=parseFloat(de[1]),te=parseFloat(de[2]),J.attr("class").includes("attribute-name")?re+=k:J.attr("class").includes("attribute-keys")?re+=k+C:J.attr("class").includes("attribute-comment")&&(re+=k+C+E))}J.attr("transform", ` translate ( $ { $ + f / 2 + re } , $ { te + z + x . height + d / 2 } ) ` )}),v.select(".name").attr("transform","translate("+-x.width/2+", "+(z+d/2)+")"),i!=null&&wle.has(i)){let Z=r.colorIndex??0;v.attr("data-color-id", ` color - $ { Z % u . length } ` )}let F=D.rectangle( $ ,z,B,O,N),V=v.insert(()=>F,":first-child").attr("class","outer-path").attr("style",p.join(""));T.push(0);for(let[Z,Y]of w.entries()){let J=(Z+1)%2===0&&Y.yOffset!==0,ee=D.rectangle( $ ,x.height+z+Y?.yOffset,B,Y?.rowHeight,{...N,fill:J?a:s,stroke:l});v.insert(()=>ee,"g.label").attr("style",p.join("")).attr("class", ` row - rect - $ { J ? "even" : "odd" } ` )}let H=1e-4,X=Rb( $ ,x.height+z,B+ $ ,x.height+z,H),W=D.polygon(X.map(Z=>[Z.x,Z.y]),N);if(v.insert(()=>W).attr("class","divider"),X=Rb(k+ $ ,x.height+z,k+ $ ,O+z,H),W=D.polygon(X.map(Z=>[Z.x,Z.y]),N),v.insert(()=>W).attr("class","divider"),L){let Z=k+C+ $ ;X=Rb(Z,x.height+z,Z,O+z,H),W=D.polygon(X.map(Y=>[Y.x,Y.y]),N),v.insert(()=>W).attr("class","divider")}if(M){let Z=k+C+E+ $ ;X=Rb(Z,x.height+z,Z,O+z,H),W=D.polygon(X.map(Y=>[Y.x,Y.y]),N),v.insert(()=>W).attr("class","di
2026-02-13 14:04:06 -07:00
a$ { f } , $ { f } 1 0 , 0 $ { g * . 25 } , $ { - 1 * y * . 1 }
a$ { f } , $ { f } 1 0 , 0 $ { g * . 25 } , 0
a$ { f } , $ { f } 1 0 , 0 $ { g * . 25 } , 0
a$ { f } , $ { f } 1 0 , 0 $ { g * . 25 } , $ { y * . 1 }
a$ { f } , $ { f } 1 0 , 0 $ { g * . 15 } , $ { y * . 33 }
a$ { f * . 8 } , $ { f * . 8 } 1 0 , 0 0 , $ { y * . 34 }
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 15 } , $ { y * . 33 }
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 25 } , $ { y * . 15 }
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 25 } , 0
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 25 } , 0
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 25 } , $ { - 1 * y * . 15 }
a$ { f } , $ { f } 1 0 , 0 $ { - 1 * g * . 1 } , $ { - 1 * y * . 33 }
a$ { f * . 8 } , $ { f * . 8 } 1 0 , 0 0 , $ { - 1 * y * . 34 }
a$ { f } , $ { f } 1 0 , 0 $ { g * . 1 } , $ { - 1 * y * . 33 }
2026-04-01 22:38:25 +00:00
H0 V0 Z ` ;if(e.look==="handDrawn"){let b=rt.svg(n),T=st(e,{}),w=b.path(x,T);v=n.insert(()=>w,":first-child"),v.attr("class","basic label-container").attr("style",xi(d))}else v=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return v.attr("transform", ` translate ( $ { - g / 2 } , $ { - y / 2 } ) ` ),at(e,v),e.calcIntersect=function(b,T){return et.rect(b,T)},e.intersect=function(b){return Q.info("Bang intersect",e,b),et.rect(e,b)},n}var Ole=P(()=>{"use strict";bt();zt();Xt();Ht();Yt();er();o(Mle,"bang")});async function Ple(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:s,label:l}=await vt(t,e,mt(e)),u=a.width+2*s,h=a.height+2*s,f=.15*u,d=.25*u,p=.35*u,m=.2*u,{cssStyles:g}=e,y,v= ` M0 0
2026-02-13 14:04:06 -07:00
a$ { f } , $ { f } 0 0 , 1 $ { u * . 25 } , $ { - 1 * u * . 1 }
a$ { p } , $ { p } 1 0 , 1 $ { u * . 4 } , $ { - 1 * u * . 1 }
a$ { d } , $ { d } 1 0 , 1 $ { u * . 35 } , $ { u * . 2 }
a$ { f } , $ { f } 1 0 , 1 $ { u * . 15 } , $ { h * . 35 }
a$ { m } , $ { m } 1 0 , 1 $ { - 1 * u * . 15 } , $ { h * . 65 }
a$ { d } , $ { f } 1 0 , 1 $ { - 1 * u * . 25 } , $ { u * . 15 }
a$ { p } , $ { p } 1 0 , 1 $ { - 1 * u * . 5 } , 0
a$ { f } , $ { f } 1 0 , 1 $ { - 1 * u * . 25 } , $ { - 1 * u * . 15 }
a$ { f } , $ { f } 1 0 , 1 $ { - 1 * u * . 1 } , $ { - 1 * h * . 35 }
a$ { m } , $ { m } 1 0 , 1 $ { u * . 1 } , $ { - 1 * h * . 65 }
2026-04-01 22:38:25 +00:00
H0 V0 Z ` ;if(e.look==="handDrawn"){let x=rt.svg(n),b=st(e,{}),T=x.path(v,b);y=n.insert(()=>T,":first-child"),y.attr("class","basic label-container").attr("style",xi(g))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",v);return l.attr("transform", ` translate ( $ { - a . width / 2 } , $ { - a . height / 2 } ) ` ),y.attr("transform", ` translate ( $ { - u / 2 } , $ { - h / 2 } ) ` ),at(e,y),e.calcIntersect=function(x,b){return et.rect(x,b)},e.intersect=function(x){return Q.info("Cloud intersect",e,x),et.rect(e,x)},n}var Ble=P(()=>{"use strict";Yt();bt();er();Xt();Ht();zt();o(Ple,"cloud")});async function Fle(t,e){let{labelStyles:r,nodeStyles:i}=tt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:s,label:l}=await vt(t,e,mt(e)),u=a.width+8*s,h=a.height+2*s,f=5,d=e.look==="neo"? `
M$ { - u / 2 } $ { h / 2 - f }
v$ { - h + 2 * f }
q0 , - $ { f } $ { f } , - $ { f }
h$ { u - 2 * f }
q$ { f } , 0 $ { f } , $ { f }
v$ { h - f }
H$ { - u / 2 }
Z
` : `
2026-02-13 14:04:06 -07:00
M$ { - u / 2 } $ { h / 2 - f }
v$ { - h + 2 * f }
q0 , - $ { f } $ { f } , - $ { f }
h$ { u - 2 * f }
q$ { f } , 0 $ { f } , $ { f }
v$ { h - 2 * f }
2026-04-01 22:38:25 +00:00
q0 , $ { f } $ { - f } , $ { f }
h$ { - ( u - 2 * f ) }
q$ { - f } , 0 $ { - f } , $ { - f }
2026-02-13 14:04:06 -07:00
Z
2026-04-01 22:38:25 +00:00
` ;if(!e.domId)throw new Error( ` defaultMindmapNode : node "${e.id}" is missing a domId \u2014 was render . ts domId prefixing skipped ? ` );let p=n.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",d);return n.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),l.attr("transform", ` translate ( $ { - a . width / 2 } , $ { - a . height / 2 } ) ` ),n.append(()=>l.node()),at(e,p),e.calcIntersect=function(m,g){return et.rect(m,g)},e.intersect=function(m){return et.rect(e,m)},n}var $ le=P(()=>{"use strict";Xt();Ht();zt();o(Fle,"defaultMindmapNode")});async function zle(t,e){let r={padding:e.padding??0};return C5(t,e,r)}var Gle=P(()=>{"use strict";CM();o(zle,"mindmapCircle")});function Vle(t){return t in SM}var GVe,VVe,SM,AM=P(()=>{"use strict";fse();mse();yse();xse();CM();Tse();Cse();Ese();Ase();Dse();Ise();Ose();Bse(); $ se();qse();Use();Yse();Xse();Qse();Jse();toe();ioe();aoe();ooe();coe();hoe();doe();moe();yoe();Toe();Coe();Eoe();Aoe();Doe();Roe();Ioe();Ooe();Boe(); $ oe();Goe();qoe();Uoe();Yoe();Xoe();Qoe();Joe();tle();ile();ale();cle();hle();dle();yle();xle();Tle();Cle();Ele();Dle();Rle();Ile();Ole();Ble(); $ le();Gle();GVe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Voe},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Poe},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Woe},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Zoe},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Nse},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:C5},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Mle},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ple},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Loe},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:jse},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:poe},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:foe},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ule},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:loe},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Pse},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:nle},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:gse},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Foe},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point"
2026-02-13 14:04:06 -07:00
` )?m=u+ `
` :m= ` {
` +u+ `
2026-04-01 22:38:25 +00:00
} ` ,h=ud(m,{schema:cd})}let f=this.edges.find(m=>m.id===e);if(f){let m=h;m?.animate!==void 0&&(f.animate=m.animate),m?.animation!==void 0&&(f.animation=m.animation),m?.curve!==void 0&&(f.interpolate=m.curve);return}let d,p=this.vertices.get(e);if(p===void 0&&(r===void 0&&i===void 0&&n!==void 0&&n!==null&&Q.warn( ` Style applied to unknown node "${e}" . This may indicate a typo . The node will be created automatically . ` ),p={id:e,labelType:"text",domId:qVe+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,r!==void 0?(this.config=ge(),d=this.sanitizeText(r.text.trim()),p.labelType=r.type,d.startsWith('"')&&d.endsWith('"')&&(d=d.substring(1,d.length-1)),p.text=d):p.text===void 0&&(p.text=e),i!==void 0&&(p.type=i),n?.forEach(m=>{p.styles.push(m)}),a?.forEach(m=>{p.classes.push(m)}),s!==void 0&&(p.dir=s),p.props===void 0?p.props=l:l!==void 0&&Object.assign(p.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error( ` No such shape : $ { h . shape } . Shape names should be lowercase . ` );if(!Vle(h.shape))throw new Error( ` No such shape : $ { h . shape } . ` );p.type=h?.shape}h?.label&&(p.text=h?.label,p.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(p.icon=h?.icon,!h.label?.trim()&&p.text===e&&(p.text="")),h?.form&&(p.form=h?.form),h?.pos&&(p.pos=h?.pos),h?.img&&(p.img=h?.img,!h.label?.trim()&&p.text===e&&(p.text="")),h?.constraint&&(p.constraint=h.constraint),h.w&&(p.assetWidth=Number(h.w)),h.h&&(p.assetHeight=Number(h.h))}}addSingleLink(e,r,i,n){let l={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Q.info("abc78 Got edge...",l);let u=i.text;if(u!==void 0&&(l.text=this.sanitizeText(u.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(u.type)),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length>10?10:i.length),n&&!this.edges.some(h=>h.id===n))l.id=n,l.isUserDefinedId=!0;else{let h=this.edges.filter(f=>f.start===l.start&&f.end===l.end);h.length===0?l.id=Cu(l.start,l.end,{counter:0,prefix:"L"}):l.id=Cu(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Q.info("Pushing edge..."),this.edges.push(l);else throw new Error( ` Edge limit exceeded . $ { this . edges . length } edges found , but the limit is $ { this . config . maxEdges } .
2026-02-13 14:04:06 -07:00
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 .
2026-04-01 22:38:25 +00:00
You have to call mermaid . initialize . ` )}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,r,i){let n=this.isLinkData(i)?i.id.replace("@",""):void 0;Q.info("addLink",e,r,n);for(let a of e)for(let s of r){let l=a===e[e.length-1],u=s===r[0];l&&u?this.addSingleLink(a,s,i,n):this.addSingleLink(a,s,i,void 0)}}updateLinkInterpolate(e,r){e.forEach(i=>{i==="default"?this.edges.defaultInterpolate=r:this.edges[i].interpolate=r})}updateLink(e,r){e.forEach(i=>{if(typeof i=="number"&&i>=this.edges.length)throw new Error( ` The index $ { i } 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 . ) ` );i==="default"?this.edges.defaultStyle=r:(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some(n=>n?.startsWith("fill"))&&this.edges[i]?.style?.push("fill:none"))})}addClass(e,r){let i=r.join().replace(/ \\ ,/g," \x A7 \x A7 \x A7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(n=>{let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),i?.forEach(s=>{if(/color/.exec(s)){let l=s.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(s)})})}setDirection(e){this.direction=e.trim(),/.*</.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"),this.direction==="TD"&&(this.direction="TB")}setClass(e,r){for(let i of e.split(",")){let n=this.vertices.get(i);n&&n.classes.push(r);let a=this.edges.find(l=>l.id===i);a&&a.classes.push(r);let s=this.subGraphLookup.get(i);s&&s.classes.push(r)}}setTooltip(e,r){if(r!==void 0){r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}}setClickFun(e,r,i){if(ge().securityLevel!=="loose"||r===void 0)return;let n=[];if(typeof i=="string"){n=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]* $ )/);for(let s=0;s<n.length;s++){let l=n[s].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),n[s]=l}}n.length===0&&n.push(e);let a=this.vertices.get(e);a&&(a.haveCallback=!0,this.funs.push(()=>{let s=this.lookUpDomId(e),l=document.querySelector( ` [ id = "${s}" ] ` );l!==null&&l.addEventListener("click",()=>{Kt.runFunc(r,...n)},!1)}))}setLink(e,r,i){e.split(",").forEach(n=>{let a=this.vertices.get(n);a!==void 0&&(a.link=Kt.formatUrl(r,this.config),a.linkTarget=i)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach(n=>{this.setClickFun(n,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(r=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=E3();Ze(e).select("svg").selectAll("g.node").on("mouseover",a=>{let s=Ze(a.currentTarget),l=s.attr("title");if(l===null)return;let u=a.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(Tl.sanitize(l)),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),Ze(a.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=ge(),wr()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i){let n=e.text.trim(),a=i.text;e===i&&/ \s /.exec(i.text)&&(n=void 0);let l=o(p=>{let m={boolean:{},number:{},string:{}},g=[],y;return{nodeList:p.filter(function(x){let b=typeof x;return x.stmt&&x.stmt==="dir"?(y=x.value,!1):x.
2026-02-13 14:04:06 -07:00
outsidePoint : $ { JSON . stringify ( e ) }
insidePoint : $ { JSON . stringify ( r ) }
2026-04-01 22:38:25 +00:00
node : x : $ { t . x } y : $ { t . y } w : $ { t . width } h : $ { t . height } ` );let i=t.x,n=t.y,a=Math.abs(i-r.x),s=t.width/2,l=r.x<e.x?s-a:s+a,u=t.height/2,h=Math.abs(e.y-r.y),f=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*s>Math.abs(i-e.x)*u){let d=r.y<e.y?e.y-u-n:n-u-e.y;l=f*d/h;let p={x:r.x<e.x?r.x+l:r.x-f+l,y:r.y<e.y?r.y+h-d:r.y-h+d};return l===0&&(p.x=e.x,p.y=e.y),f===0&&(p.x=e.x),h===0&&(p.y=e.y),Q.debug( ` abc89 top / bottom calc , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,p),p}else{r.x<e.x?l=e.x-s-i:l=i-s-e.x;let d=h*l/f,p=r.x<e.x?r.x+f-l:r.x-f+l,m=r.y<e.y?r.y+d:r.y-d;return Q.debug( ` sides calc abc89 , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,{_x:p,_y:m}),l===0&&(p=e.x,m=e.y),f===0&&(p=e.x),h===0&&(m=e.y),{x:p,y:m}}},"intersection"),Kle=o((t,e)=>{Q.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(a=>{if(Q.info("abc88 checking point",a,e),!JVe(e,a)&&!n){let s=eqe(e,i,a);Q.debug("abc88 inside",a,i,s),Q.debug("abc88 intersection",s,e);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?Q.warn("abc88 no intersect",s,r):r.push(s),n=!0}else Q.warn("abc88 outside",a,i),i=a,n||r.push(a)}),Q.debug("returning points",r),r},"cutPathAtIntersect");o(tqe,"extractCornerPoints");Qle=o(function(t,e,r){let i=e.x-t.x,n=e.y-t.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:e.x-s*i,y:e.y-s*n}},"findAdjacentPoint"),rqe=o(function(t){let{cornerPointPositions:e}=tqe(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){let n=t[i-1],a=t[i+1],s=t[i],l=Qle(n,s,5),u=Qle(a,s,5),h=u.x-l.x,f=u.y-l.y;r.push(l);let d=Math.sqrt(2)*2,p={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){Q.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));let m=5;s.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else Q.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(p,u)}else r.push(t[i]);return r},"fixCorners"),iqe=o((t,e,r)=>{let i=t-e-r,n=2,a=2,s=n+a,l=Math.floor(i/s),u=Array(l).fill( ` $ { n } $ { a } ` ).join(" ");return ` 0 $ { e } $ { u } $ { r } ` },"generateDashArray"),M5=o(function(t,e,r,i,n,a,s,l=!1){if(!s)throw new Error( ` insertEdge : missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness ` );let{handDrawnSeed:u}=ge(),h=e.points,f=!1,d=n;var p=a;let m=[];for(let B in e.cssCompiledStyles)Eb(B)||m.push(e.cssCompiledStyles[B]);Q.debug("UIO intersect check",e.points,p.x,d.x),p.intersect&&d.intersect&&!l&&(h=h.slice(1,e.points.length-1),h.unshift(d.intersect(h[0])),Q.debug("Last point UIO",e.start,"-->",e.end,h[h.length-1],p,p.intersect(h[h.length-1])),h.push(p.intersect(h[h.length-1])));let g=btoa(JSON.stringify(h));e.toCluster&&(Q.info("to cluster abc88",r.get(e.toCluster)),h=Kle(e.points,r.get(e.toCluster).node),f=!0),e.fromCluster&&(Q.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(h,null,2)),h=Kle(h.reverse(),r.get(e.fromCluster).node).reverse(),f=!0);let y=h.filter(B=>!Number.isNaN(B.y)),v=ZVe(e.curve);v!=="rounded"&&(y=rqe(y));let x=yu;switch(v){case"linear":x=yu;break;case"basis":x=wc;break;case"cardinal":x=U2;break;case"bumpX":x=z2;break;case"bumpY":x=G2;break;case"catmullRom":x=j2;break;case"monotoneX":x=X2;break;case"monotoneY":x=K2;break;case"natural":x=n1;break;case"step":x=a1;break;case"stepAfter":x=Z2;break;case"stepBefore":x=Q2;break;case"rounded":x=yu;break;default:x=wc}let{x:b,y:T}=D5(e),w=Cc().x(b).y(T).curve(x),k;switch(e.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(e.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let C,E=v==="rounded"?nqe(aqe(y,e),5):w(y),S=Array.isArray(e.style)?e.style:[e.style],L=S.find(B=>B?.startsWith("stroke:")),M="";e.animate&&(M="edge-animation-fast"),e.animation&&(M="edge-animation-"+e.animation);let I=!1;if(e.look==="handDrawn"){let B=rt.svg(t);Object.assign([],y);let O=B.path(E,{roughness:.3,seed:u});k+=" transit
L20 , 10
M20 , 10
L0 , 20 ` )},"requirement_arrow"),Sqe=o((t,e,r)=>{let i=Lt(),{themeVariables:n}=i,{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width", ` $ { a } ` ).attr("viewBox","0 0 25 20").append("path").attr("d", ` M0 , 0
2026-02-13 14:04:06 -07:00
L20 , 10
M20 , 10
2026-04-01 22:38:25 +00:00
L0 , 20 ` ).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Aqe=o((t,e,r)=>{let i=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");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),_qe=o((t,e,r)=>{let i=Lt(),{themeVariables:n}=i,{strokeWidth:a}=n,s=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").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width", ` $ { a } ` )},"requirement_contains_neo"),Dqe={extension:oqe,composition:lqe,aggregation:cqe,dependency:uqe,lollipop:hqe,point:fqe,circle:dqe,cross:pqe,barb:mqe,barbNeo:gqe,only_one:yqe,zero_or_one:vqe,one_or_more:xqe,zero_or_more:bqe,only_one_neo:Tqe,zero_or_one_neo:kqe,one_or_more_neo:Cqe,zero_or_more_neo:wqe,requirement_arrow:Eqe,requirement_contains:Aqe,requirement_arrow_neo:Sqe,requirement_contains_neo:_qe},O5=sqe});async function I1(t,e,r){let i,n;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?SM[e.shape]:void 0;if(!a)throw new Error( ` No such shape : $ { e . shape } . Please check your syntax . ` );if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),n=await a(i,e,r)}else n=await a(t,e,r),i=n;return i.attr("data-look",xi(e.look)),e.tooltip&&n.attr("title",e.tooltip),P5.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var P5,ece,tce,Mb,B5=P(()=>{"use strict";bt();AM();er();P5=new Map;o(I1,"insertNode");ece=o((t,e)=>{P5.set(e.id,t)},"setNodeElem"),tce=o(()=>{P5.clear()},"clear"),Mb=o(t=>{let e=P5.get(t.id);Q.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode")});var rce,ice=P(()=>{"use strict";Sr();Vr();bt();A5();RM();NM();B5();zt();er();rce={common:lt,getConfig:Lt,insertCluster:N1,insertEdge:M5,insertEdgeLabel:N5,insertMarkers:O5,insertNode:I1,interpolateToCurve:yI,labelHelper:vt,log:Q,positionEdgeLabel:I5}});function Rqe(t){return typeof t=="symbol"||En(t)&&Xa(t)==Lqe}var Lqe,tl,M0=P(()=>{"use strict";Oh();Dl();Lqe="[object Symbol]";o(Rqe,"isSymbol");tl=Rqe});function Nqe(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}var wo,O0=P(()=>{"use strict";o(Nqe,"arrayMap");wo=Nqe});function sce(t){if(typeof t=="string")return t;if(Gt(t))return wo(t,sce)+"";if(tl(t))return ace?ace.call(t):"";var e=t+"";return e=="0"&&1/t==-Iqe?"-0":e}var Iqe,nce,ace,oce,lce=P(()=>{"use strict";v0();O0();fn();M0();Iqe=1/0,nce=Da?Da.prototype:void 0,ace=nce?nce.toString:void 0;o(sce,"baseToString");oce=sce});function Oqe(t){for(var e=t.length;e--&&Mqe.test(t.charAt(e)););return e}var Mqe,cce,uce=P(()=>{"use strict";Mqe=/ \s /;o(Oqe,"trimmedEndIndex");cce=Oqe});function Bqe(t){return t&&t.slice(0,cce(t)+1).replace(Pqe,"")}var Pqe,hce,fce=P(()=>{"use strict";uce();Pqe=/^ \s +/;o(Bqe,"baseTrim");hce=Bqe});function Vqe(t){if(typeof t=="number")return t;if(tl(t))return dce;if(Gi(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Gi(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=hce(t);var r= $ qe.test(t);return r||zqe.test(t)?Gqe(t.slice(2),r?2:8):Fqe.test(t)?dce:+t}var dce,Fqe, $ qe,zqe,Gqe,pce,mce=P(()=>{"use strict";fce();Zo();M0();dce=NaN,Fqe=/^[-+
2026-02-13 14:04:06 -07:00
Node . id = ` ,y, `
data = ` ,x.height, `
2026-04-01 22:38:25 +00:00
Parent cluster ` ,n.height),e.setNode(n.id,x),e.parent(y)||(Q.trace("Setting parent",y,n.id),e.setParent(y,n.id,x))}if(Q.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),v?.clusterNode){Q.info("Cluster identified XBX",y,v.width,e.node(y));let{ranksep:x,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:x+25,nodesep:b});let T=await Ope(d,v.graph,r,i,e.node(y),a),w=T.elem;at(v,w),v.diff=T.diff||0,Q.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),ece(w,v)}else e.children(y).length>0?(Q.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",e),Q.trace(J1(v.id,e)),Wr.set(v.id,{id:J1(v.id,e),node:v})):(Q.trace("Node - the non recursive path XAX",y,d,e.node(y),s),await I1(d,e.node(y),{config:a,dir:s}))})),await o(async()=>{let y=e.edges().map(async function(v){let x=e.edge(v.v,v.w,v.name);Q.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),Q.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),Q.info("Fix",Wr,"ids:",v.v,v.w,"Translating: ",Wr.get(v.v),Wr.get(v.w)),await N5(f,x)});await Promise.all(y)},"processEdges")(),Q.info("Graph before layout:",JSON.stringify(zl(e))),Q.info("############################################# XXX"),Q.info("### Layout ### XXX"),Q.info("############################################# XXX"),Vb(e),Q.info("Graph after layout:",JSON.stringify(zl(e)));let m=0,{subGraphTitleTotalMargin:g}=Uh(a);return await Promise.all(Ipe(e).map(async function(y){let v=e.node(y);if(Q.info("Position XBX => "+y+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,Q.info("A tainted cluster node XBX1",y,v.id,v.width,v.height,v.x,v.y,e.parent(y)),Wr.get(v.id).node=v,Mb(v);else if(e.children(y).length>0){Q.info("A pure cluster node XBX1",y,v.id,v.x,v.y,v.width,v.height,e.parent(y)),v.height+=g,e.node(v.parentId);let x=v?.padding/2||0,b=v?.labelBBox?.height||0,T=b-x||0;Q.debug("OffsetY",T,"labelHeight",b,"halfPadding",x),await N1(u,v),Wr.get(v.id).node=v}else{let x=e.node(v.parentId);v.y+=g/2,Q.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",x,x?.offsetY,v),Mb(v)}})),e.edges().forEach(function(y){let v=e.edge(y);Q.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(v),v),v.points.forEach(w=>w.y+=g/2);let x=e.node(y.v);var b=e.node(y.w);let T=M5(h,v,Wr,r,x,b,i);I5(v,T)}),e.nodes().forEach(function(y){let v=e.node(y);Q.info(y,v.type,v.diff),v.isGroup&&(m=v.diff)}),Q.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"), $ Ke=o(async(t,e)=>{let r=new Ai({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{}}),i=e.select("g");O5(i,t.markers,t.type,t.diagramId),tce(),Jle(),Hle(),Ape(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),Q.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){let s=a.start,l=s+"---"+s+"---1",u=s+"---"+s+"---2",h=r.node(s);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(a),d=structuredClone(a),p=structuredClone(a);f.label="",f.arrowTypeEnd="none",f.id=s+"-cyclic-special-1",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.id=s+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=s,p.toCluster=s),p.id=s+"-cyclic-special-2",p.arrowTypeStart="none",r.setEdge(s,l,f,s+"-cyclic-special-0"),r.setEdge(l,u,d,s+"-cyclic-special-1"),r.setEdge(u,s,p,s+"-cyc<lic-special-2")}else r.setEdge(a.start,a.end,{...a},a.id)}),Q.warn("Graph at first:",JSON.stringify(zl(r))),Lpe(r),Q.warn("Graph after XAX:",JSON.stringify(zl(r)));le
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var a,s=!0,l=!1;return{s:o(function(){r=r.call(t)},"s"),n:o(function(){var u=r.next();return s=u.done,u},"n"),e:o(function(u){l=!0,a=u},"e"),f:o(function(){try{s||r.return==null||r.return()}finally{if(l)throw a}},"f")}}function fge(t,e,r){return(e=dge(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qKe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WKe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,n,a,s,l=[],u=!0,h=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=a.call(r)).done)&&(l.push(i.value),l.length!==e);u=!0);}catch(f){h=!0,n=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw n}}return l}}function UKe(){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 HKe(){throw new TypeError( ` Invalid attempt to spread non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function ea(t,e){return zKe(t)||WKe(t,e)||UB(t,e)||UKe()}function hS(t){return GKe(t)||qKe(t)||UB(t)||HKe()}function YKe(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function dge(t){var e=YKe(t,"string");return typeof e=="symbol"?e:e+""}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}function UB(t,e){if(t){if(typeof t=="string")return EB(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(r)?EB(t,e):void 0}}function pT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function mT(){if(zpe)return XO;zpe=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return o(t,"isObject"),XO=t,XO}function gQe(){if(Gpe)return KO;Gpe=1;var t=typeof GE=="object"&&GE&&GE.Object===Object&&GE;return KO=t,KO}function SS(){if(Vpe)return QO;Vpe=1;var t=gQe(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return QO=r,QO}function yQe(){if(qpe)return ZO;qpe=1;var t=SS(),e=o(function(){return t.Date.now()},"now");return ZO=e,ZO}function vQe(){if(Wpe)return JO;Wpe=1;var t=/ \s /;function e(r){for(var i=r.length;i--&&t.test(r.charAt(i)););return i}return o(e,"trimmedEndIndex"),JO=e,JO}function xQe(){if(Upe)return eP;Upe=1;var t=vQe(),e=/^ \s +/;function r(i){return i&&i.slice(0,t(i)+1).replace(e,"")}return o(r,"baseTrim"),eP=r,eP}function jB(){if(Hpe)return tP;Hpe=1;var t=SS(),e=t.Symbol;return tP=e,tP}function bQe(){if(Ype)return rP;Ype=1;var t=jB(),e=Object.prototype,r=e.hasOwnProperty,i=e.toString,n=t?t.toStringTag:void 0;function a(s){var l=r.call(s,n),u=s[n];try{s[n]=void 0;var h=!0}catch{}var f=i.call(s);return h&&(l?s[n]=u:delete s[n]),f}return o(a,"getRawTag"),rP=a,rP}function TQe(){if(jpe)return iP;jpe=1;var t=Object.prototype,e=t.toString;function r(i){return e.call(i)}return o(r,"objectToString"),iP=r,iP}function kge(){if(Xpe)return nP;Xpe=1;var t=jB(),e=bQe(),r=TQe(),i="[object Null]",n="[object Undefined]",a=t?t.toStringTag:void 0;function s(l){return l==null?l===void 0?n:i:a&&a in Object(l)?e(l):r(l)}return o(s,"baseGetTag"),nP=s,nP}function kQe(){if(Kpe)return aP;Kpe=1;function t(e){return e!=null&&typeof e=="object"}return o(t,"isObjectLike"),aP=t,aP}function gT(){if(Qpe)return sP;Qpe=1;var t=kge(),e=kQe(),r="[object Symbol]";function i(n){return typeof n=="symbol"||e(n)&&t(n)==r}return o(i,"isSymbol"),sP=i,sP}function CQe(){if(Zpe)return oP;Zpe=1;var t=xQe(),e=mT(),r=gT(),i=NaN,n=/^[-+]0x[0-9a-f]+ $ /i,a=/^0b[01]+ $ /i,s=/^0o[0-7]+ $ /i,l=parseInt;function u(h){if(typeof h=="number")return h;if(r(h))return i;if(e(h)){var f=typeof h.valueOf=="function"?h.valueOf():h;h=e(f)?f+"":f}if(typeof h!="string")return h===0?h:+h;h=t(h);var d=a.test(h);return d||s.test(h)?l(h.slice(2),d?2:8):n.test(h)?i:+h}return o(u,"toNumber"),oP=u,oP}function wQe(){if(Jpe)return lP;Jpe=1;var t=mT(),e=yQe(),r=CQe(),i="Expected a function",n=Math.max,a=Math.min;function s(l,u,h){var f,d,p,m,g,y,v=0,x=!1,b=!1,T=!0;if(typeof l!="function")throw new TypeError(i);u=r(u)||0,t(h)&&(x=!!h.leading,b="maxWait"in h,p=b?n(r(h.maxWait)||0,u):p,T="trailing"in h?!!h.trailing:T);function w(_){var D=f,N=d;return f=d=void 0,v=_,m=l.apply(N,D),m}o(w,"invokeFunc");function k(_){return v=_,g=setTimeout(S,u),x?w(_):m}o(k,"leadingEdge");function C(_){var D=_-y,N=_-v,R=u-D;return b?a(R,p-N):R}o(C,"remainingWait");function E(_){var D=_-y,N=_-v;return y===void 0||D>=u||D<0||b&&N>=p}o(E,"shouldInvoke");function S(){var _=e();if(E(_))return L(_);g=setTimeout(S,C(_))}o(S,"timerExpire
` ),d=t.pstyle("text-max-width").pfValue,p=t.pstyle("text-overflow-wrap").value,m=p==="anywhere",g=[],y=/[ \s \u 200b]+| $ /g,v=0;v<f.length;v++){var x=f[v],b=this.calculateLabelDimensions(t,x),T=b.width;if(m){var w=x.split("").join(h);x=w}if(T>d){var k=x.matchAll(y),C="",E=0,S=Lo(k),L;try{for(S.s();!(L=S.n()).done;){var M=L.value,I=M[0],A=x.substring(E,M.index);E=M.index+I.length;var _=C.length===0?A:C+A+I,D=this.calculateLabelDimensions(t,_),N=D.width;N<=d?C+=A+I:(C&&g.push(C),C=A+I)}}catch(V){S.e(V)}finally{S.f()}C.match(/^[ \s \u 200b]+ $ /)||g.push(C)}else g.push(x)}s("labelWrapCachedLines",g),n=s("labelWrapCachedText",g.join( `
` )),s("labelWrapKey",u)}else if(l==="ellipsis"){var R=t.pstyle("text-max-width").pfValue,B="",O=" \u 2026", $ =!1;if(this.calculateLabelDimensions(t,n).width<R)return n;for(var z=0;z<n.length;z++){var F=this.calculateLabelDimensions(t,B+n[z]+O).width;if(F>R)break;B+=n[z],z===n.length-1&&( $ =!0)}return $ ||(B+=O),B}return n};zu.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};zu.calculateLabelDimensions=function(t,e){var r=this,i=r.cy.window(),n=i.document,a=0,s=t.pstyle("font-style").strValue,l=t.pstyle("font-size").pfValue,u=t.pstyle("font-family").strValue,h=t.pstyle("font-weight").strValue,f=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=n.createElement("canvas"),d=this.labelCalcCanvasContext=f.getContext("2d");var p=f.style;p.position="absolute",p.left="-9999px",p.top="-9999px",p.zIndex="-1",p.visibility="hidden",p.pointerEvents="none"}d.font="".concat(s," ").concat(h," ").concat(l,"px ").concat(u);for(var m=0,g=0,y=e.split( `
` ),v=0;v<y.length;v++){var x=y[v],b=d.measureText(x),T=Math.ceil(b.width),w=l;m=Math.max(T,m),g+=w}return m+=a,g+=a,{width:m,height:g}};zu.calculateLabelAngle=function(t,e){var r=t._private,i=r.rscratch,n=t.isEdge(),a=e?e+"-":"",s=t.pstyle(a+"text-rotation"),l=s.strValue;return l==="none"?0:n&&l==="autorotate"?i.labelAutoAngle:l==="autorotate"?0:s.pfValue};zu.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),i=t._private,n=i.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};I1e={},Yme=28,jme=!1;I1e.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<Yme||t.height()<Yme))return jme||(Di("The ` cutrectangle ` node shape can not be used at small sizes so ` rectangle ` is used instead"),jme=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var i=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(i).name}return r};GS={};GS.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,i=o(function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),l)for(var u=0;u<s.length;u++){var h=s[u],f=h._private,d=f.rstyle;d.clean=!1,d.cleanConnected=!1}},"enqueue");r.binder(t).on("bounds.* dirty.*",o(function(s){var l=s.target;i(l)},"onDirtyBounds")).on("style.* background.*",o(function(s){var l=s.target;i(l,!1)},"onDirtyStyle"));var n=o(function(s){if(s){var l=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var h=e[u],f=h._private.rstyle;h.isNode()&&!f.cleanConnected&&(i(h.connectedEdges()),f.cleanConnected=!0)}if(l)for(var d=0;d<l.length;d++){var p=l[d];p(s,e)}r.recalculateRenderedStyle(e),e=t.collection()}},"updateEleCalcs");r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)};GS.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)};GS.recalculateRenderedStyle=function(t,e){var r=o(function(w){return w._private.rstyle.cleanConnected},"isCleanConnected");if(t.length!==0){var i=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var a=0;a<t.length;a++){var s=t[a],l=s._private,u=l.rstyle;s.isEdge()&&(!r(s.source())||!r(s.target()))&&(u.clean=!1),s.isEdge()&&s.isBundledBezier()&&s.parallelEdges().some(function(T){return!T._private.rstyle.clean&&T.isBundledBezier()})&&(u.clean=!1),!(e&&u.clean||s.removed())&&s.pstyle("display").value!=="none"&&(l.group==="nodes"?n.push(s):i.push(s),u.clean=!0)}for(var h=0;h<n.length;h++){var f=n[h],d=f._private,p=d.rstyle,m=f.position();this.recalculateNodeLabelProjection(f),p.nodeX=m.x,p.nodeY=m.y,p.nodeW=f.pstyle("width").pfValue,p.nodeH=f.pstyle("height").pfValue}this.recalculateEdgeProjections(i);for(var g=0;g<i.length;g++){var y=i[g],v=y._private,x=v.rstyle,b=v.rscratch;x.srcX=b.arrowStartX,x.srcY=b.arrowStartY,x.tgtX=b.arrowEndX,x.tgtY=b.arrowEndY,x.midX=b.midX,x.midY=b.midY,x.labelAngle=b.labelAngle,x.sourceLabelAngle=b.sourceLabelAngle,x.targetLabelAngle=b.targetLabelAngle}}}};VS={};VS.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var i=t[r],n=i._private.rscratch;i.grabbed()&&!i.isParent()?e.push(i):n.inDragLayer?t.drag.push(i):t.nondrag.push(i)}for(var r=0;r<e.length;r++){var i=e[r];t.drag.push(i)}}};VS.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};VS.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(p1e),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};M1e={};[nm,TS,vs,TT,dF,zu,I1e,GS,VS].forEach(function(t){yr(M1e,t)});O1e={};O1e.getCachedImage=function(t,e,r){var i=this,n=i.imageCache=i.imageCache||{},a=n[t];if(a)return a.image.complete||a.image.addEventListener("load",r
2026-02-13 14:04:06 -07:00
float circleSD ( vec2 p , float r ) {
return distance ( vec2 ( 0 ) , p ) - r ; // signed distance
}
2026-04-01 22:38:25 +00:00
` ,Krt= `
2026-02-13 14:04:06 -07:00
float rectangleSD ( vec2 p , vec2 b ) {
vec2 d = abs ( p ) - b ;
return distance ( vec2 ( 0 ) , max ( d , 0.0 ) ) + min ( max ( d . x , d . y ) , 0.0 ) ;
}
2026-04-01 22:38:25 +00:00
` ,Qrt= `
2026-02-13 14:04:06 -07:00
float roundRectangleSD ( vec2 p , vec2 b , vec4 cr ) {
cr . xy = ( p . x > 0.0 ) ? cr . xy : cr . zw ;
cr . x = ( p . y > 0.0 ) ? cr . x : cr . y ;
vec2 q = abs ( p ) - b + cr . x ;
return min ( max ( q . x , q . y ) , 0.0 ) + distance ( vec2 ( 0 ) , max ( q , 0.0 ) ) - cr . x ;
}
2026-04-01 22:38:25 +00:00
` ,Zrt= `
2026-02-13 14:04:06 -07:00
float ellipseSD ( vec2 p , vec2 ab ) {
p = abs ( p ) ; // symmetry
// find root with Newton solver
vec2 q = ab * ( p - ab ) ;
float w = ( q . x < q . y ) ? 1.570796327 : 0.0 ;
for ( int i = 0 ; i < 5 ; i ++ ) {
vec2 cs = vec2 ( cos ( w ) , sin ( w ) ) ;
vec2 u = ab * vec2 ( cs . x , cs . y ) ;
vec2 v = ab * vec2 ( - cs . y , cs . x ) ;
w = w + dot ( p - u , v ) / ( dot ( p - u , u ) + dot ( v , v ) ) ;
}
// compute final point and distance
float d = length ( p - ab * vec2 ( cos ( w ) , sin ( w ) ) ) ;
// return signed distance
return ( dot ( p / ab , p / ab ) > 1.0 ) ? d : - d ;
}
2026-04-01 22:38:25 +00:00
` ,tT={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},CS={IGNORE:1,USE_BB:2},bB=0,oge=1,lge=2,TB=3,sy=4,JE=5,jb=6,Xb=7,Jrt=(function(){function t(e,r,i){ $ d(this,t),this.r=e,this.gl=r,this.maxInstances=i.webglBatchSize,this.atlasSize=i.webglTexSize,this.bgColor=i.bgColor,this.debug=i.webglDebug,this.batchDebugInfo=[],i.enableWrapping=!0,i.createTextureCanvas=Rrt,this.atlasManager=new Yrt(e,i),this.batchManager=new jrt(i),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(tT.SCREEN),this.pickingProgram=this._createShaderProgram(tT.PICKING),this.vao=this._createVAO()}return o(t,"ElementDrawingWebGL"),zd(t,[{key:"addAtlasCollection",value:o(function(r,i){this.atlasManager.addAtlasCollection(r,i)},"addAtlasCollection")},{key:"addTextureAtlasRenderType",value:o(function(r,i){this.atlasManager.addRenderType(r,i)},"addTextureAtlasRenderType")},{key:"addSimpleShapeRenderType",value:o(function(r,i){this.simpleShapeOptions.set(r,i)},"addSimpleShapeRenderType")},{key:"invalidate",value:o(function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.type,a=this.atlasManager;return n?a.invalidate(r,{filterType:o(function(l){return l===n},"filterType"),forceRedraw:!0}):a.invalidate(r)},"invalidate")},{key:"gc",value:o(function(){this.atlasManager.gc()},"gc")},{key:"_createShaderProgram",value:o(function(r){var i=this.gl,n= ` # version 300 es
2026-02-13 14:04:06 -07:00
precision highp float ;
uniform mat3 uPanZoomMatrix ;
uniform int uAtlasSize ;
// instanced
in vec2 aPosition ; // a vertex from the unit square
in mat3 aTransform ; // used to transform verticies, eg into a bounding box
in int aVertType ; // the type of thing we are rendering
// the z-index that is output when using picking mode
in vec4 aIndex ;
// For textures
in int aAtlasId ; // which shader unit/atlas to use
in vec4 aTex ; // x/y/w/h of texture in atlas
// for edges
in vec4 aPointAPointB ;
in vec4 aPointCPointD ;
in vec2 aLineWidth ; // also used for node border width
// simple shapes
in vec4 aCornerRadius ; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]
in vec4 aColor ; // also used for edges
in vec4 aBorderColor ; // aLineWidth is used for border width
// output values passed to the fragment shader
out vec2 vTexCoord ;
out vec4 vColor ;
out vec2 vPosition ;
// flat values are not interpolated
flat out int vAtlasId ;
flat out int vVertType ;
flat out vec2 vTopRight ;
flat out vec2 vBotLeft ;
flat out vec4 vCornerRadius ;
flat out vec4 vBorderColor ;
flat out vec2 vBorderWidth ;
flat out vec4 vIndex ;
void main ( void ) {
int vid = gl _VertexID ;
vec2 position = aPosition ; // TODO make this a vec3, simplifies some code below
2026-04-01 22:38:25 +00:00
if ( aVertType == ` .concat(bB, ` ) {
2026-02-13 14:04:06 -07:00
float texX = aTex . x ; // texture coordinates
float texY = aTex . y ;
float texW = aTex . z ;
float texH = aTex . w ;
if ( vid == 1 || vid == 2 || vid == 4 ) {
texX += texW ;
}
if ( vid == 2 || vid == 4 || vid == 5 ) {
texY += texH ;
}
float d = float ( uAtlasSize ) ;
vTexCoord = vec2 ( texX / d , texY / d ) ; // tex coords must be between 0 and 1
gl _Position = vec4 ( uPanZoomMatrix * aTransform * vec3 ( position , 1.0 ) , 1.0 ) ;
}
2026-04-01 22:38:25 +00:00
else if ( aVertType == ` ).concat(sy," || aVertType == ").concat(Xb, `
|| aVertType == ` ).concat(JE," || aVertType == ").concat(jb, ` ) { // simple shapes
2026-02-13 14:04:06 -07:00
// the bounding box is needed by the fragment shader
vBotLeft = ( aTransform * vec3 ( 0 , 0 , 1 ) ) . xy ; // flat
vTopRight = ( aTransform * vec3 ( 1 , 1 , 1 ) ) . xy ; // flat
vPosition = ( aTransform * vec3 ( position , 1 ) ) . xy ; // will be interpolated
// calculations are done in the fragment shader, just pass these along
vColor = aColor ;
vCornerRadius = aCornerRadius ;
vBorderColor = aBorderColor ;
vBorderWidth = aLineWidth ;
gl _Position = vec4 ( uPanZoomMatrix * aTransform * vec3 ( position , 1.0 ) , 1.0 ) ;
}
2026-04-01 22:38:25 +00:00
else if ( aVertType == ` ).concat(oge, ` ) {
2026-02-13 14:04:06 -07:00
vec2 source = aPointAPointB . xy ;
vec2 target = aPointAPointB . zw ;
// adjust the geometry so that the line is centered on the edge
position . y = position . y - 0.5 ;
// stretch the unit square into a long skinny rectangle
vec2 xBasis = target - source ;
vec2 yBasis = normalize ( vec2 ( - xBasis . y , xBasis . x ) ) ;
vec2 point = source + xBasis * position . x + yBasis * aLineWidth [ 0 ] * position . y ;
gl _Position = vec4 ( uPanZoomMatrix * vec3 ( point , 1.0 ) , 1.0 ) ;
vColor = aColor ;
}
2026-04-01 22:38:25 +00:00
else if ( aVertType == ` ).concat(lge, ` ) {
2026-02-13 14:04:06 -07:00
vec2 pointA = aPointAPointB . xy ;
vec2 pointB = aPointAPointB . zw ;
vec2 pointC = aPointCPointD . xy ;
vec2 pointD = aPointCPointD . zw ;
// adjust the geometry so that the line is centered on the edge
position . y = position . y - 0.5 ;
vec2 p0 , p1 , p2 , pos ;
if ( position . x == 0.0 ) { // The left side of the unit square
p0 = pointA ;
p1 = pointB ;
p2 = pointC ;
pos = position ;
} else { // The right side of the unit square, use same approach but flip the geometry upside down
p0 = pointD ;
p1 = pointC ;
p2 = pointB ;
pos = vec2 ( 0.0 , - position . y ) ;
}
vec2 p01 = p1 - p0 ;
vec2 p12 = p2 - p1 ;
vec2 p21 = p1 - p2 ;
// Find the normal vector.
vec2 tangent = normalize ( normalize ( p12 ) + normalize ( p01 ) ) ;
vec2 normal = vec2 ( - tangent . y , tangent . x ) ;
// Find the vector perpendicular to p0 -> p1.
vec2 p01Norm = normalize ( vec2 ( - p01 . y , p01 . x ) ) ;
// Determine the bend direction.
float sigma = sign ( dot ( p01 + p21 , normal ) ) ;
float width = aLineWidth [ 0 ] ;
if ( sign ( pos . y ) == - sigma ) {
// This is an intersecting vertex. Adjust the position so that there's no overlap.
vec2 point = 0.5 * width * normal * - sigma / dot ( normal , p01Norm ) ;
gl _Position = vec4 ( uPanZoomMatrix * vec3 ( p1 + point , 1.0 ) , 1.0 ) ;
} else {
// This is a non-intersecting vertex. Treat it like a mitre join.
vec2 point = 0.5 * width * normal * sigma * dot ( normal , p01Norm ) ;
gl _Position = vec4 ( uPanZoomMatrix * vec3 ( p1 + point , 1.0 ) , 1.0 ) ;
}
vColor = aColor ;
}
2026-04-01 22:38:25 +00:00
else if ( aVertType == ` ).concat(TB, ` && vid < 3 ) {
2026-02-13 14:04:06 -07:00
// massage the first triangle into an edge arrow
if ( vid == 0 )
position = vec2 ( - 0.15 , - 0.3 ) ;
if ( vid == 1 )
position = vec2 ( 0.0 , 0.0 ) ;
if ( vid == 2 )
position = vec2 ( 0.15 , - 0.3 ) ;
gl _Position = vec4 ( uPanZoomMatrix * aTransform * vec3 ( position , 1.0 ) , 1.0 ) ;
vColor = aColor ;
}
else {
gl _Position = vec4 ( 2.0 , 0.0 , 0.0 , 1.0 ) ; // discard vertex by putting it outside webgl clip space
}
vAtlasId = aAtlasId ;
vVertType = aVertType ;
vIndex = aIndex ;
}
` ),a=this.batchManager.getIndexArray(),s= ` # version 300 es
precision highp float ;
// declare texture unit for each texture atlas in the batch
` .concat(a.map(function(h){return"uniform sampler2D uTexture".concat(h,";")}).join( `
` ), `
uniform vec4 uBGColor ;
uniform float uZoom ;
in vec2 vTexCoord ;
in vec4 vColor ;
in vec2 vPosition ; // model coordinates
flat in int vAtlasId ;
flat in vec4 vIndex ;
flat in int vVertType ;
flat in vec2 vTopRight ;
flat in vec2 vBotLeft ;
flat in vec4 vCornerRadius ;
flat in vec4 vBorderColor ;
flat in vec2 vBorderWidth ;
out vec4 outColor ;
2026-04-01 22:38:25 +00:00
` ).concat(Xrt, `
` ).concat(Krt, `
` ).concat(Qrt, `
` ).concat(Zrt, `
2026-02-13 14:04:06 -07:00
vec4 blend ( vec4 top , vec4 bot ) { // blend colors with premultiplied alpha
return vec4 (
top . rgb + ( bot . rgb * ( 1.0 - top . a ) ) ,
top . a + ( bot . a * ( 1.0 - top . a ) )
) ;
}
vec4 distInterp ( vec4 cA , vec4 cB , float d ) { // interpolate color using Signed Distance
// scale to the zoom level so that borders don't look blurry when zoomed in
// note 1.5 is an aribitrary value chosen because it looks good
return mix ( cA , cB , 1.0 - smoothstep ( 0.0 , 1.5 / uZoom , abs ( d ) ) ) ;
}
void main ( void ) {
2026-04-01 22:38:25 +00:00
if ( vVertType == ` ).concat(bB, ` ) {
2026-02-13 14:04:06 -07:00
// look up the texel from the texture unit
` ).concat(a.map(function(h){return"if(vAtlasId == ".concat(h,") outColor = texture(uTexture").concat(h,", vTexCoord);")}).join( `
else ` ), `
}
2026-04-01 22:38:25 +00:00
else if ( vVertType == ` ).concat(TB, ` ) {
2026-02-13 14:04:06 -07:00
// mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';
outColor = blend ( vColor , uBGColor ) ;
outColor . a = 1.0 ; // make opaque, masks out line under arrow
}
2026-04-01 22:38:25 +00:00
else if ( vVertType == ` ).concat(sy, ` && vBorderWidth == vec2 ( 0.0 ) ) { // simple rectangle with no border
2026-02-13 14:04:06 -07:00
outColor = vColor ; // unit square is already transformed to the rectangle, nothing else needs to be done
}
2026-04-01 22:38:25 +00:00
else if ( vVertType == ` ).concat(sy," || vVertType == ").concat(Xb, `
|| vVertType == ` ).concat(JE," || vVertType == ").concat(jb, ` ) { // use SDF
2026-02-13 14:04:06 -07:00
float outerBorder = vBorderWidth [ 0 ] ;
float innerBorder = vBorderWidth [ 1 ] ;
float borderPadding = outerBorder * 2.0 ;
float w = vTopRight . x - vBotLeft . x - borderPadding ;
float h = vTopRight . y - vBotLeft . y - borderPadding ;
vec2 b = vec2 ( w / 2.0 , h / 2.0 ) ; // half width, half height
vec2 p = vPosition - vec2 ( vTopRight . x - b [ 0 ] - outerBorder , vTopRight . y - b [ 1 ] - outerBorder ) ; // translate to center
float d ; // signed distance
2026-04-01 22:38:25 +00:00
if ( vVertType == ` ).concat(sy, ` ) {
2026-02-13 14:04:06 -07:00
d = rectangleSD ( p , b ) ;
2026-04-01 22:38:25 +00:00
} else if ( vVertType == ` ).concat(Xb, ` && w == h ) {
2026-02-13 14:04:06 -07:00
d = circleSD ( p , b . x ) ; // faster than ellipse
2026-04-01 22:38:25 +00:00
} else if ( vVertType == ` ).concat(Xb, ` ) {
2026-02-13 14:04:06 -07:00
d = ellipseSD ( p , b ) ;
} else {
d = roundRectangleSD ( p , b , vCornerRadius . wzyx ) ;
}
// use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling
// we must smooth colors inwards, because we can't change pixels outside the shape's bounding box
if ( d > 0.0 ) {
if ( d > outerBorder ) {
discard ;
} else {
outColor = distInterp ( vBorderColor , vec4 ( 0 ) , d - outerBorder ) ;
}
} else {
if ( d > innerBorder ) {
vec4 outerColor = outerBorder == 0.0 ? vec4 ( 0 ) : vBorderColor ;
vec4 innerBorderColor = blend ( vBorderColor , vColor ) ;
outColor = distInterp ( innerBorderColor , outerColor , d ) ;
}
else {
vec4 outerColor ;
if ( innerBorder == 0.0 && outerBorder == 0.0 ) {
outerColor = vec4 ( 0 ) ;
} else if ( innerBorder == 0.0 ) {
outerColor = vBorderColor ;
} else {
outerColor = blend ( vBorderColor , vColor ) ;
}
outColor = distInterp ( vColor , outerColor , d - innerBorder ) ;
}
}
}
else {
outColor = vColor ;
}
` ).concat(r.picking? ` if ( outColor . a == 0.0 ) discard ;
else outColor = vIndex ; ` :"", `
}
2026-04-01 22:38:25 +00:00
` ),l=Lrt(i,n,s);l.aPosition=i.getAttribLocation(l,"aPosition"),l.aIndex=i.getAttribLocation(l,"aIndex"),l.aVertType=i.getAttribLocation(l,"aVertType"),l.aTransform=i.getAttribLocation(l,"aTransform"),l.aAtlasId=i.getAttribLocation(l,"aAtlasId"),l.aTex=i.getAttribLocation(l,"aTex"),l.aPointAPointB=i.getAttribLocation(l,"aPointAPointB"),l.aPointCPointD=i.getAttribLocation(l,"aPointCPointD"),l.aLineWidth=i.getAttribLocation(l,"aLineWidth"),l.aColor=i.getAttribLocation(l,"aColor"),l.aCornerRadius=i.getAttribLocation(l,"aCornerRadius"),l.aBorderColor=i.getAttribLocation(l,"aBorderColor"),l.uPanZoomMatrix=i.getUniformLocation(l,"uPanZoomMatrix"),l.uAtlasSize=i.getUniformLocation(l,"uAtlasSize"),l.uBGColor=i.getUniformLocation(l,"uBGColor"),l.uZoom=i.getUniformLocation(l,"uZoom"),l.uTextures=[];for(var u=0;u<this.batchManager.getMaxAtlasesPerBatch();u++)l.uTextures.push(i.getUniformLocation(l,"uTexture".concat(u)));return l},"_createShaderProgram")},{key:"_createVAO",value:o(function(){var r=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=r.length/2;var i=this.maxInstances,n=this.gl,a=this.program,s=n.createVertexArray();return n.bindVertexArray(s), $ rt(n,"vec2",a.aPosition,r),this.transformBuffer=zrt(n,i,a.aTransform),this.indexBuffer=Pu(n,i,"vec4",a.aIndex),this.vertTypeBuffer=Pu(n,i,"int",a.aVertType),this.atlasIdBuffer=Pu(n,i,"int",a.aAtlasId),this.texBuffer=Pu(n,i,"vec4",a.aTex),this.pointAPointBBuffer=Pu(n,i,"vec4",a.aPointAPointB),this.pointCPointDBuffer=Pu(n,i,"vec4",a.aPointCPointD),this.lineWidthBuffer=Pu(n,i,"vec2",a.aLineWidth),this.colorBuffer=Pu(n,i,"vec4",a.aColor),this.cornerRadiusBuffer=Pu(n,i,"vec4",a.aCornerRadius),this.borderColorBuffer=Pu(n,i,"vec4",a.aBorderColor),n.bindVertexArray(null),s},"_createVAO")},{key:"buffers",get:o(function(){var r=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(i){return _d(i,"Buffer")}).map(function(i){return r[i]})),this._buffers},"get")},{key:"startFrame",value:o(function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tT.SCREEN;this.panZoomMatrix=r,this.renderTarget=i,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},"startFrame")},{key:"startBatch",value:o(function(){this.instanceCount=0,this.batchManager.startBatch()},"startBatch")},{key:"endFrame",value:o(function(){this.endBatch()},"endFrame")},{key:"_isVisible",value:o(function(r,i){return r.visible()?i&&i.isVisible?i.isVisible(r):!0:!1},"_isVisible")},{key:"drawTexture",value:o(function(r,i,n){var a=this.atlasManager,s=this.batchManager,l=a.getRenderTypeOpts(n);if(this._isVisible(r,l)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&l.getTexPickingMode){var u=l.getTexPickingMode(r);if(u===CS.IGNORE)return;if(u==CS.USE_BB){this.drawPickingRectangle(r,i,n);return}}var h=a.getAtlasInfo(r,n),f=Lo(h),d;try{for(f.s();!(d=f.n()).done;){var p=d.value,m=p.atlas,g=p.tex1,y=p.tex2;s.canAddToCurrentBatch(m)||this.endBatch();for(var v=s.getAtlasIndexForBatch(m),x=0,b=[[g,!0],[y,!1]];x<b.length;x++){var T=ea(b[x],2),w=T[0],k=T[1];if(w.w!=0){var C=this.instanceCount;this.vertTypeBuffer.getView(C)[0]=bB;var E=this.indexBuffer.getView(C);ay(i,E);var S=this.atlasIdBuffer.getView(C);S[0]=v;var L=this.texBuffer.getView(C);L[0]=w.x,L[1]=w.y,L[2]=w.w,L[3]=w.h;var M=this.transformBuffer.getMatrixView(C);this.setTransformMatrix(r,M,l,p,k),this.instanceCount++,k||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(I){f.e(I)}finally{f.f()}}},"drawTexture")},{key:"setTransformMatrix",value:o(function(r,i,n,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=0;if(n.shapeProps&&n.shapeProps.padding&&(l=r.pstyle(n.shapeProps.padding).pfValue),a){var u=a.bb,h=a.tex1,f=a.tex2,d=h.w/(h.w+f.w);s||(d=1-d);var p=this._getAdjustedBB(u,l,s,d);this._applyTransformMatrix(i,p,n,r)}else{var m=n.getBoundingBox(r),g=this._getAdjustedBB(m,l,!0,1);this._applyTransformMatrix(i,g,n,r)}},"setTransformMatrix")},{key:"_applyTransformMatrix",value:o(function(r,i,n,a){var s,l;age(r);var u=n.getRotation?n.getRotation(a):0;if(u!==0
` +Ca.showPosition()+ `
Expecting ` +n4.join(", ")+", got '"+(this.terminals_[Ls]||Ls)+"'":A8="Parse error on line "+(Rn+1)+": Unexpected "+(Ls==xY?"end of input":"'"+(this.terminals_[Ls]||Ls)+"'"),this.parseError(A8,{text:Ca.match,token:this.terminals_[Ls]||Ls,line:Ca.yylineno,loc:w8,expected:n4})}if(gl[0]instanceof Array&&gl.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fp+", token: "+Ls);switch(gl[0]){case 1:Zt.push(Ls),wi.push(Ca.yytext),xe.push(Ca.yylloc),Zt.push(gl[1]),Ls=null,E8?(Ls=E8,E8=null):(k8=Ca.yyleng,Se=Ca.yytext,Rn=Ca.yylineno,w8=Ca.yylloc,r4>0&&r4--);break;case 2:if(fh=this.productions_[gl[1]][1],bg. $ =wi[wi.length-fh],bg._ $ ={first_line:xe[xe.length-(fh||1)].first_line,last_line:xe[xe.length-1].last_line,first_column:xe[xe.length-(fh||1)].first_column,last_column:xe[xe.length-1].last_column},n8e&&(bg._ $ .range=[xe[xe.length-(fh||1)].range[0],xe[xe.length-1].range[1]]),S8=this.performAction.apply(bg,[Se,k8,Rn,Bp.yy,gl[1],wi,xe].concat(i8e)),typeof S8<"u")return S8;fh&&(Zt=Zt.slice(0,-1*fh*2),wi=wi.slice(0,-1*fh),xe=xe.slice(0,-1*fh)),Zt.push(this.productions_[gl[1]][0]),wi.push(bg. $ ),xe.push(bg._ $ ),bY=Wo[Zt[Zt.length-2]][Zt[Zt.length-1]],Zt.push(bY);break;case 3:return!0}}return!0},"parse")},qa=(function(){var Ft={EOF:1,parseError:o(function(qt,Zt){if(this.yy.parser)this.yy.parser.parseError(qt,Zt);else throw new Error(qt)},"parseError"),setInput:o(function(Et,qt){return this.yy=qt||this.yy||{},this._input=Et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var qt=Et.match(/(?: \r \n ?| \n ).*/g);return qt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},"input"),unput:o(function(Et){var qt=Et.length,Zt=Et.split(/(?: \r \n ?| \n )/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qt),this.offset-=qt;var Tt=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Zt.length-1&&(this.yylineno-=Zt.length-1);var wi=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Zt?(Zt.length===Tt.length?this.yylloc.first_column:0)+Tt[Tt.length-Zt.length].length-Zt[0].length:this.yylloc.first_column-qt},this.options.ranges&&(this.yylloc.range=[wi[0],wi[0]+this.yyleng-qt]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(Et){this.unput(this.match.slice(Et))},"less"),pastInput:o(function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var Et=this.pastInput(),qt=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+ `
` +qt+"^"},"showPosition"),test_match:o(function(Et,qt){var Zt,Tt,wi;if(this.options.backtrack_lexer&&(wi={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&&(wi.yylloc.range=this.yylloc.range.slice(0))),Tt=Et[0].match(/(?: \r \n ?| \n ).*/g),Tt&&(this.yylineno+=Tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Tt?Tt[Tt.length-1].length-Tt[Tt.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Et[0].length),this.matched+=Et[0],Zt=this.performAction.call(this,this.yy,this,qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Zt)return Zt;if(this._backtrack){for(var xe in wi)this[xe]=wi[xe];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,qt,Zt,Tt;this._more||(this.yytext="",this.match="");for(var wi=this._currentRules(),xe=0;xe<wi.length;xe++)if(Zt=this._input.match(this.rules[wi[xe]]),Zt&&(!qt||Zt[0].length>qt[0].length)){if(qt=Zt,Tt=xe,this.options.backtrack_lexer){if(Et=this.test_match(Zt,wi[xe]),Et!==!1)return Et;if(this._backtrack){qt=!1;continue}else return!1}else if(!this.options.flex)break}return qt?(Et=this.test_match(qt,wi[Tt]),Et!==!1?Et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var qt=this.next();return qt||this.lex()},"lex"),begin:o(function(qt){this.conditionStack.push(qt)},"begin"),popState:o(function(){var qt=this.conditionStack.length-1;return qt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(qt){return qt=this.conditionStack.length-1-Math.abs(qt||0),qt>=0?this.conditionStack[qt]:"INITIAL"},"topState"),pushState:o(function(qt){this.begin(qt)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(qt,Zt,Tt,wi){var xe=wi;switch(Tt){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;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"),Zt.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Wo=/ \n \s */g;return Zt.yytext=Zt.yytext.replace(Wo,"<br/>"),40;break;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:return qt.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return qt.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return qt.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;break;case 70:return this.pushState("edgeText"),75;break;case 71:return 119;case 72:return this.popState(),77;break;case 73:return this.pushState("thickEdgeText"),75;break;case 74:return 119;case 75:return this.popState(),77;break;case 76:return this.pushState("dottedEdgeText"),75;break;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;break;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;break;case 82:return this.popState(),55;break;case 83:return this.pushState("text"),54;break;case 84:return this.popState(),57;break;case 85:return this.pushState("text"),56;break;case 86:return 58;case 87:return this.pushState("text"),67;break;case 88:return this.popState(),64;break;case 89:return this.pushState("text"),63;break;case 90:return this.popState(),49;break;case 91:return this.pushState("text"),48;break;case 92:return this.popState(),69;break;case 93:return this.popState(),71;break;case 94:return 117;case 95:return this.push
` );return wF.parse(e)};xye=vye});var qu,wy=P(()=>{"use strict";qu=o(()=> `
2026-02-13 14:04:06 -07:00
/* Font Awesome icon styling - consolidated */
. label - icon {
display : inline - block ;
height : 1 em ;
overflow : visible ;
vertical - align : - 0.125 em ;
}
. node . label - icon path {
fill : currentColor ;
stroke : revert ;
stroke - width : revert ;
}
2026-04-01 22:38:25 +00:00
` ,"getIconStyles")});var Ait,_it,Tye,kye=P(()=>{"use strict";Yn();wy();Ait=o((t,e)=>{let r=zp,i=r(t,"r"),n=r(t,"g"),a=r(t,"b");return Fn(i,n,a,e)},"fade"),_it=o(t=> ` . label {
2026-02-13 14:04:06 -07:00
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. cluster - label text {
fill : $ { t . titleColor } ;
}
. cluster - label span {
color : $ { t . titleColor } ;
}
. cluster - label span p {
background - color : transparent ;
}
. label text , span {
fill : $ { t . nodeTextColor || t . textColor } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth ? ? 1 } px ;
2026-02-13 14:04:06 -07:00
}
. rough - node . label text , . node . label text , . image - shape . label , . icon - shape . label {
text - anchor : middle ;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
. node . katex path {
fill : # 000 ;
stroke : # 000 ;
stroke - width : 1 px ;
}
. rough - node . label , . node . label , . image - shape . label , . icon - shape . label {
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
. root . anchor path {
fill : $ { t . lineColor } ! important ;
stroke - width : 0 ;
stroke : $ { t . lineColor } ;
}
. arrowheadPath {
fill : $ { t . arrowheadColor } ;
}
. edgePath . path {
stroke : $ { t . lineColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth ? ? 2 } px ;
2026-02-13 14:04:06 -07:00
}
. flowchart - link {
stroke : $ { t . lineColor } ;
fill : none ;
}
. edgeLabel {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
}
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
/* For html labels only */
. labelBkg {
2026-04-01 22:38:25 +00:00
background - color : $ { Ait ( t . edgeLabelBackground , . 5 ) } ;
2026-02-13 14:04:06 -07:00
// background-color:
}
. cluster rect {
fill : $ { t . clusterBkg } ;
stroke : $ { t . clusterBorder } ;
stroke - width : 1 px ;
}
. cluster text {
fill : $ { t . titleColor } ;
}
. cluster span {
color : $ { t . titleColor } ;
}
/ * . c l u s t e r d i v {
color : $ { t . titleColor } ;
} * /
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
font - family : $ { t . fontFamily } ;
font - size : 12 px ;
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
. flowchartTitleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . textColor } ;
}
rect . text {
fill : none ;
stroke - width : 0 ;
}
. icon - shape , . image - shape {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
padding : 2 px ;
}
2026-03-11 20:55:37 +00:00
. label rect {
2026-02-13 14:04:06 -07:00
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
2026-04-01 22:38:25 +00:00
$ { qu ( ) }
` ,"getStyles"),Tye=_it});var qS={};ur(qS,{diagram:()=>Dit});var Dit,WS=P(()=>{"use strict";Ut();qle();gye();bye();kye();Dit={parser:xye,get db(){return new S5},renderer:mye,styles:Tye,init:o(t=>{t.flowchart||(t.flowchart={}),t.layout&&t2({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,t2({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}});var EF,Aye,_ye=P(()=>{"use strict";EF=(function(){var t=o(function(Ee,Ne,we,Te){for(we=we||{},Te=Ee.length;Te--;we[Ee[Te]]=Ne);return we},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],n=[1,12],a=[1,13],s=[1,23],l=[1,24],u=[1,25],h=[1,26],f=[1,27],d=[1,19],p=[1,28],m=[1,29],g=[1,20],y=[1,18],v=[1,21],x=[1,22],b=[1,36],T=[1,37],w=[1,38],k=[1,39],C=[1,40],E=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],S=[1,45],L=[1,46],M=[1,55],I=[40,48,50,51,52,70,71],A=[1,66],_=[1,64],D=[1,61],N=[1,65],R=[1,67],B=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],O=[65,66,67,68,69], $ =[1,84],z=[1,83],F=[1,81],V=[1,82],H=[6,10,42,47],X=[6,10,13,41,42,47,48,49],W=[1,92],Z=[1,91],Y=[1,90],ae=[19,58],J=[1,101],ee=[1,100],re=[19,58,60,62],te={trace:o(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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72, $ 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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:o(function(Ne,we,Te,De, $ e,pe,Je){var Ce=pe.length-1;switch( $ e){case 1:break;case 2:this. $ =[];break;case 3:pe[Ce-1].push(pe[Ce]),this. $ =pe[Ce-1];break;case 4:case 5:this. $ =pe[Ce];break;case 6:case 7:this. $ =[];break;case 8:De.addEntity(pe[Ce-4]),De.addEntity(pe[Ce-2]),De.addRelationship(pe[Ce-4],pe[Ce],pe[Ce-2],pe[Ce-3]);break;case 9:De.addEntity(pe[Ce-8]),De.addEntity(pe[Ce-4]),De.addRelationship(pe[Ce-8],pe[Ce],pe[Ce-4],pe[Ce-5]),De.setClass([pe[Ce-8]],pe[Ce-6]),De.setClass([pe[Ce-4]],pe[Ce-2]);break;case 10:De.addEntity(pe[Ce-6]),De.addEntity(pe[Ce-2]),De.addRelationship(p
` +oe.showPosition()+ `
Expecting ` +fe.join(", ")+", got '"+(this.terminals_[me]||me)+"'":ut="Parse error on line "+(Fe+1)+": Unexpected "+(me==He?"end of input":"'"+(this.terminals_[me]||me)+"'"),this.parseError(ut,{text:oe.match,token:this.terminals_[me]||me,line:oe.yylineno,loc:G,expected:fe})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Re+", token: "+me);switch(ve[0]){case 1:Te.push(me), $ e.push(oe.yytext),pe.push(oe.yylloc),Te.push(ve[1]),me=null,ye?(me=ye,ye=null):(Ue=oe.yyleng,Ce=oe.yytext,Fe=oe.yylineno,G=oe.yylloc,qe>0&&qe--);break;case 2:if(ce=this.productions_[ve[1]][1],Be. $ = $ e[ $ e.length-ce],Be._ $ ={first_line:pe[pe.length-(ce||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(ce||1)].first_column,last_column:pe[pe.length-1].last_column},se&&(Be._ $ .range=[pe[pe.length-(ce||1)].range[0],pe[pe.length-1].range[1]]),We=this.performAction.apply(Be,[Ce,Ue,Fe,U.yy,ve[1], $ e,pe].concat(K)),typeof We<"u")return We;ce&&(Te=Te.slice(0,-1*ce*2), $ e= $ e.slice(0,-1*ce),pe=pe.slice(0,-1*ce)),Te.push(this.productions_[ve[1]][0]), $ e.push(Be. $ ),pe.push(Be._ $ ),it=Je[Te[Te.length-2]][Te[Te.length-1]],Te.push(it);break;case 3:return!0}}return!0},"parse")},be=(function(){var Ee={EOF:1,parseError:o(function(we,Te){if(this.yy.parser)this.yy.parser.parseError(we,Te);else throw new Error(we)},"parseError"),setInput:o(function(Ne,we){return this.yy=we||this.yy||{},this._input=Ne,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var Ne=this._input[0];this.yytext+=Ne,this.yyleng++,this.offset++,this.match+=Ne,this.matched+=Ne;var we=Ne.match(/(?: \r \n ?| \n ).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ne},"input"),unput:o(function(Ne){var we=Ne.length,Te=Ne.split(/(?: \r \n ?| \n )/g);this._input=Ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var De=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Te.length-1&&(this.yylineno-=Te.length-1);var $ e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Te?(Te.length===De.length?this.yylloc.first_column:0)+De[De.length-Te.length].length-Te[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[ $ e[0], $ e[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(Ne){this.unput(this.match.slice(Ne))},"less"),pastInput:o(function(){var Ne=this.matched.substr(0,this.matched.length-this.match.length);return(Ne.length>20?"...":"")+Ne.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var Ne=this.match;return Ne.length<20&&(Ne+=this._input.substr(0,20-Ne.length)),(Ne.substr(0,20)+(Ne.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var Ne=this.pastInput(),we=new Array(Ne.length+1).join("-");return Ne+this.upcomingInput()+ `
` +we+"^"},"showPosition"),test_match:o(function(Ne,we){var Te,De, $ e;if(this.options.backtrack_lexer&&( $ e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&( $ e.yylloc.range=this.yylloc.range.slice(0))),De=Ne[0].match(/(?: \r \n ?| \n ).*/g),De&&(this.yylineno+=De.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:De?De[De.length-1].length-De[De.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+Ne[0].length},this.yytext+=Ne[0],this.match+=Ne[0],this.matches=Ne,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ne[0].length),this.matched+=Ne[0],Te=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Te)return Te;if(this._backtrack){for(var pe in $ e)this[pe]= $ e[pe];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ne,we,Te,De;this._more||(this.yytext="",this.match="");for(var $ e=this._currentRules(),pe=0;pe< $ e.length;pe++)if(Te=this._input.match(this.rules[ $ e[pe]]),Te&&(!we||Te[0].length>we[0].length)){if(we=Te,De=pe,this.options.backtrack_lexer){if(Ne=this.test_match(Te, $ e[pe]),Ne!==!1)return Ne;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?(Ne=this.test_match(we, $ e[De]),Ne!==!1?Ne:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var we=this.next();return we||this.lex()},"lex"),begin:o(function(we){this.conditionStack.push(we)},"begin"),popState:o(function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},"topState"),pushState:o(function(we){this.begin(we)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(we,Te,De, $ e){var pe= $ e;switch(De){case 0:return this.begin("acc_title"),24;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),26;break;case 3:return this.popState(),"acc_descr_value";break;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 72;case 16:return 4;case 17:return this.begin("block"),17;break;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;break;case 30:return Te.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;break;case 34:return this.popState(),10;break;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;break;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return Te.yytext[0];case 78: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_ \u 00C0- \u FFFF][A-Za-z0-9 \- \_ \[ \] \( \) \u 00C0- \u FFFF \* ]*))/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,/^(?:[0-9]+ \. [0-9]+)/i,/^(?:1(?= \s +[A-Za-z_"']))/i,/^(?:1(?= \s +[0-9]))/i,/^(?:1(?=(--| \. \. | \. -|- \. )))/i,/^(?:1 \b )/i,/^(?:[0-9]+)/i,/^(?: \| \| )/i,/^(?:o \| )/i,/^(?:o \{ )/i,/^(?: \| \{ )/i,/^(?:u(?=[ \. \- \| ]))/i,/^(?: \. \. )/i,/^(?:--)/i,/^(?:to \b )/i,/^(?:optionally to \b )/i,/^(?: \. -)/i,/^(?:- \. )/i,/^(?:([^ \x 00- \x 7F]| \w |-| \* )+)/i,/^(?:;)/i,/^(?:([^ \x 00- \x 7F]| \w |-| \* | \. )+
[ data - look = "${r}" ] [ data - color - id = "color-${l}" ] . node path {
stroke : $ { n [ l ] } ;
$ { a ? ` fill: ${ i [ l ] } ; ` : "" }
}
[ data - look = "${r}" ] [ data - color - id = "color-${l}" ] . node rect {
stroke : $ { n [ l ] } ;
$ { a ? ` fill: ${ i [ l ] } ; ` : "" }
}
` ;return s},"genColor"),Fit=o(t=>{let{look:e,theme:r,erEdgeLabelBackground:i,strokeWidth:n}=t;return `
$ { Bit ( t ) }
2026-02-13 14:04:06 -07:00
. entityBox {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
}
. relationshipLabelBox {
fill : $ { t . tertiaryColor } ;
opacity : 0.7 ;
background - color : $ { t . tertiaryColor } ;
rect {
opacity : 0.5 ;
}
}
. labelBkg {
2026-04-01 22:38:25 +00:00
background - color : $ { HS . has ( r ) && i ? i : Rye ( t . tertiaryColor , . 5 ) } ;
}
. edgeLabel {
background - color : $ { HS . has ( r ) && i ? i : t . edgeLabelBackground } ;
}
. edgeLabel . label rect {
fill : $ { HS . has ( r ) && i ? i : t . edgeLabelBackground } ;
}
. edgeLabel . label text {
fill : $ { t . textColor } ;
2026-02-13 14:04:06 -07:00
}
. edgeLabel . label {
fill : $ { t . nodeBorder } ;
font - size : 14 px ;
}
. label {
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. edge - pattern - dashed {
stroke - dasharray : 8 , 8 ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon
{
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { e === "neo" ? n : "1px" } ;
2026-02-13 14:04:06 -07:00
}
. relationshipLine {
stroke : $ { t . lineColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { e === "neo" ? n : "1px" } ;
2026-02-13 14:04:06 -07:00
fill : none ;
}
. marker {
fill : none ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ data - look = neo ] . labelBkg {
background - color : $ { Rye ( t . tertiaryColor , . 5 ) } ;
2026-03-11 20:55:37 +00:00
}
2026-04-01 22:38:25 +00:00
` },"getStyles"),Nye=Fit});var Mye={};ur(Mye,{diagram:()=> $ it});var $ it,Oye=P(()=>{"use strict";_ye();Dye();Lye();Iye(); $ it={parser:Aye,get db(){return new US},renderer:SF,styles:Nye}});function _n(t){return typeof t=="object"&&t!==null&&typeof t. $ type=="string"}function ga(t){return typeof t=="object"&&t!==null&&typeof t. $ refText=="string"&&"ref"in t}function nl(t){return typeof t=="object"&&t!==null&&typeof t. $ refText=="string"&&"items"in t}function AF(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function om(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}function Mc(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Hd(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function _T(t){return Mc(t)&&typeof t.fullText=="string"}var sm,Oc=P(()=>{"use strict";o(_n,"isAstNode");o(ga,"isReference");o(nl,"isMultiReference");o(AF,"isAstNodeDescription");o(om,"isLinkingError");sm=class{static{o(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let r=this.types[e.container. $ type];if(!r)throw new Error( ` Type $ { e . container . $type || "undefined" } not found . ` );let i=r.properties[e.property]?.referenceType;if(!i)throw new Error( ` Property $ { e . property || "undefined" } of type $ { e . container . $type } is not a reference . ` );return i}getTypeMetaData(e){let r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return _n(e)&&this.isSubtype(e. $ type,r)}isSubtype(e,r){if(e===r)return!0;let i=this.subtypes[e];i||(i=this.subtypes[e]={});let n=i[r];if(n!==void 0)return n;{let a=this.types[e],s=a?a.superTypes.some(l=>this.isSubtype(l,r)):!1;return i[r]=s,s}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let i=this.getAllTypes(),n=[];for(let a of i)this.isSubtype(a,e)&&n.push(a);return this.allSubtypes[e]=n,n}}};o(Mc,"isCompositeCstNode");o(Hd,"isLeafCstNode");o(_T,"isRootCstNode")});function Wit(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function YS(t){return!!t&&typeof t[Symbol.iterator]=="function"}function jr(...t){if(t.length===1){let e=t[0];if(e instanceof al)return e;if(YS(e))return new al(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new al(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:xs)}return t.length>1?new al(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){let r=t[e.collIndex++];YS(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return xs}):Yd}var al,Yd,xs,Wu,Ey,Ys=P(()=>{"use strict";al=class t{static{o(this,"StreamImpl")}constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:o(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,i=e.next();for(;!i.done;)r++,i=e.next();return r}toArray(){let e=[],r=this.iterator(),i;do i=r.next(),i.value!==void 0&&e.push(i.value);while(!i.done);return e}toSet(){return new Set(this)}toMap(e,r){let i=this.map(n=>[e?e(n):n,r?r(n):n]);return new Map(i)}toString(){return this.join()}concat(e){return new t(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=r.iterator.next(),!i.done)return i;while(!i.done);return xs})}join(e=","){let r=this.iterator(),i="",n,a=!1;do n=r.next(),n.done||(a&&(i+=e),i+=Wit(n.value)),a=!0;while(!n.done);return i}indexOf(e,r=0){let i=this.iterator(),n=0,a=i.next();for(;!a.done;){if(n>=r&&a.value==
` ),br(" \r "),br(" "),br(" \v "),br(" "),br(" \x A0"),br(" \u 1680"),br(" \u 2000"),br(" \u 2001"),br(" \u 2002"),br(" \u 2003"),br(" \u 2004"),br(" \u 2005"),br(" \u 2006"),br(" \u 2007"),br(" \u 2008"),br(" \u 2009"),br(" \u 200A"),br(" \u 2028"),br(" \u 2029"),br(" \u 202F"),br(" \u 205F"),br(" \u 3000"),br(" \u FEFF")]});var gnt,v6,ynt,Cm,Uye=P(()=>{"use strict";t $ ();Wye();gnt=/[0-9a-fA-F]/,v6=/[0-9]/,ynt=/[1-9]/,Cm=class{static{o(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":By(i,"global");break;case"i":By(i,"ignoreCase");break;case"m":By(i,"multiLine");break;case"u":By(i,"unicode");break;case"y":By(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let 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 r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}km(r);let i=this.disjunction();return this.consumeChar(")"),{type:r,value:i,loc:this.loc(e)}}return GT()}quantifier(e=!1){let r,i=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:n,atMost:n};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:n,atMost:a}):r={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;km(r);break}if(!(e===!0&&r===void 0)&&km(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(i),r}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case" \\ ":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),km(e)?(e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):GT()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[br( `
` ),br(" \r "),br(" \u 2028"),br(" \u 2029")]}}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 e,r=!1;switch(this.popChar()){case"d":e=VT;break;case"D":e=VT,r=!0;break;case"s":e=r $ ;break;case"S":e=r $ ,r=!0;break;case"w":e=qT;break;case"W":e=qT,r=!0;break}return km(e)?{type:"Set",value:e,complement:r}:GT()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=br(" \f ");break;case"n":e=br( `
` );break;case"r":e=br(" \r ");break;case"t":e=br(" ");break;case"v":e=br(" \v ");break}return km(e)?{type:"Character",value:e}:GT()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:br(" \0 ")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:br(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case `
` :case" \r ":case" \u 2028":case" \u 2029":case" \\ ":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:br(e)}}}characterClass(){let e=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let i=this.classAtom(),n=i.type==="Character";if(e $ (i)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),s=a.type==="Character";if(e $ (a)){if(a.value<i.value)throw Error("Range out of order in character class");e.push({from:i.value,to:a.value})}else y6(i.value,e),e.push(br("-")),y6(a.value,e)}else y6(i.value,e)}return this.consumeChar("]"),{type:"Set",complement:r,value:e}}classAtom(){switch(this.peekChar()){case"]":case `
` :case" \r ":case" \u 2028":case" \u 2029":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:br(" \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 e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++;break}let r=this.disjunction();this.consumeChar(")");let i={type:"Group",capturing:e,value:r};return e&&(i.idx=this.groupIdx),i}positiveInteger(){let e=this.popChar();if(ynt.test(e)===!1)throw Error("Expecting a positive integer");for(;v6.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(v6.test(e)===!1)throw Error("Expecting an integer");for(;v6.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case `
` :case" \r ":case" \u 2028":case" \u 2029":case"^":case" $ ":case" \\ ":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:br(e)}}}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 v6.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case `
2026-03-01 01:45:57 +00:00
` :case" \r ":case" \u 2028":case" \u 2029":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)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){let e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case" $ ":case" \\ ":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case `
2026-04-01 22:38:25 +00:00
` :case" \r ":case" \u 2028":case" \u 2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let n=0;n<e;n++){let a=this.popChar();if(gnt.test(a)===!1)throw Error("Expecting a HexDecimal digits");r+=a}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' 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(e){return{begin:e,end:this.idx}}}});var ju,Hye=P(()=>{"use strict";ju=class{static{o(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let i=e[r];e.hasOwnProperty(r)&&(i.type!==void 0?this.visit(i):Array.isArray(i)&&i.forEach(n=>{this.visit(n)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}});var WT=P(()=>{"use strict";Uye();Hye()});var x6={};ur(x6,{NEWLINE_REGEXP:()=>n $ ,escapeRegExp:()=>rp,getTerminalParts:()=>vnt,isMultilineComment:()=>a $ ,isWhitespace:()=>UT,partialMatches:()=>s $ ,partialRegExp:()=>Xye,whitespaceCharacters:()=>jye});function vnt(t){try{typeof t!="string"&&(t=t.source),t= ` / $ { t } / ` ;let e=Yye.pattern(t),r=[];for(let i of e.value.value)wm.reset(t),wm.visit(i),r.push({start:wm.startRegexp,end:wm.endRegex});return r}catch{return[]}}function a $ (t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),wm.reset(t),wm.visit(Yye.pattern(t)),wm.multiline}catch{return!1}}function UT(t){let e=typeof t=="string"?new RegExp(t):t;return jye.some(r=>e.test(r))}function rp(t){return t.replace(/[.*+?^ ${ } ()|[ \] \\ ]/g," \\ $ &")}function s $ (t,e){let r=Xye(t),i=e.match(r);return!!i&&i[0].length>0}function Xye(t){typeof t=="string"&&(t=new RegExp(t));let e=t,r=t.source,i=0;function n(){let a="",s;function l(h){a+=r.substr(i,h),i+=h}o(l,"appendRaw");function u(h){a+="(?:"+r.substr(i,h)+"| $ )",i+=h}for(o(u,"appendOptional");i<r.length;)switch(r[i]){case" \\ ":switch(r[i+1]){case"c":u(3);break;case"x":u(4);break;case"u":e.unicode?r[i+2]==="{"?u(r.indexOf("}",i)-i+1):u(6):u(2);break;case"p":case"P":e.unicode?u(r.indexOf("}",i)-i+1):u(2);break;case"k":u(r.indexOf(">",i)-i+1);break;default:u(2);break}break;case"[":s=/ \[ (?: \\ .|.)*? \] /g,s.lastIndex=i,s=s.exec(r)||[],u(s[0].length);break;case"|":case"^":case" $ ":case"*":case"+":case"?":l(1);break;case"{":s=/ \{ \d +,? \d * \} /g,s.lastIndex=i,s=s.exec(r),s?l(s[0].length):u(1);break;case"(":if(r[i+1]==="?")switch(r[i+2]){case":":a+="(?:",i+=3,a+=n()+"| $ )";break;case"=":a+="(?=",i+=3,a+=n()+")";break;case"!":s=i,i+=3,n(),a+=r.substr(s,i-s);break;case"<":switch(r[i+3]){case"=":case"!":s=i,i+=4,n(),a+=r.substr(s,i-s);break;default:l(r.indexOf(">",i)-i+1),a+=n()+"| $ )";break}break}else l(1),a+=n()+"| $ )";break;case")":return++i,a;default:u(1);break}return a}return o(n,"process"),new RegExp(n(),t.flags)}var n $ ,Yye,i $ ,wm,jye,Fy=P(()=>{"use strict";WT();n $
` &&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let i=rp(r);this.endRegexpStack.push(i),this.isStarting&&(this.startRegexp+=i)}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),i=new RegExp(r);this.multiline=!! `
` .match(i)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},wm=new i $ ;o(vnt,"getTerminalParts");o(a $ ,"isMultilineComment");jye= ` \ f
\ r \ v \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF ` .split("");o(UT,"isWhitespace");o(rp,"escapeRegExp");o(s $ ,"partialMatches");o(Xye,"partialRegExp")});var k6={};ur(k6,{findAssignment:()=>m $ ,findNameAssignment:()=>b6,findNodeForKeyword:()=>d $ ,findNodeForProperty:()=>YT,findNodesForKeyword:()=>bnt,findNodesForKeywordInternal:()=>p $ ,findNodesForProperty:()=>h $ ,getActionAtElement:()=>eve,getActionType:()=>rve,getAllReachableRules:()=>HT,getAllRulesUsedForCrossReferences:()=>xnt,getCrossReferenceTerminal:()=>c $ ,getEntryRule:()=>Kye,getExplicitRuleType:()=>T6,getHiddenRules:()=>Qye,getRuleType:()=>g $ ,getRuleTypeName:()=>Ent,getTypeName:()=>ip,isArrayCardinality:()=>knt,isArrayOperator:()=>Cnt,isCommentTerminal:()=>u $ ,isDataType:()=>wnt,isDataTypeRule:()=>jT,isOptionalCardinality:()=>Tnt,terminalRegex:()=> $ y});function Kye(t){return t.rules.find(e=>Ba(e)&&e.entry)}function Qye(t){return t.rules.filter(e=>Xs(e)&&e.hidden)}function HT(t,e){let r=new Set,i=Kye(t);if(!i)return new Set(t.rules);let n=[i].concat(Qye(t));for(let s of n)Zye(s,r,e);let a=new Set;for(let s of t.rules)(r.has(s.name)||Xs(s)&&s.hidden)&&a.add(s);return a}function Zye(t,e,r){e.add(t.name),Pc(t).forEach(i=>{if(Gc(i)||r&&h6(i)){let n=i.rule.ref;n&&!e.has(n.name)&&Zye(n,e,r)}})}function xnt(t){let e=new Set;return Pc(t).forEach(r=>{zc(r)&&(Ba(r.type.ref)&&e.add(r.type.ref), $ T(r.type.ref)&&Ba(r.type.ref. $ container)&&e.add(r.type.ref. $ container))}),e}function c $ (t){if(t.terminal)return t.terminal;if(t.type.ref)return b6(t.type.ref)?.terminal}function u $ (t){return t.hidden&&!UT( $ y(t))}function h $ (t,e){return!t||!e?[]:f $ (t,e,t.astNode,!0)}function YT(t,e,r){if(!t||!e)return;let i=f $ (t,e,t.astNode,!0);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}function f $ (t,e,r,i){if(!i){let n=ef(t.grammarSource, $ c);if(n&&n.feature===e)return[t]}return Mc(t)&&t.astNode===r?t.content.flatMap(n=>f $ (n,e,r,!1)):[]}function bnt(t,e){return t?p $ (t,e,t?.astNode):[]}function d $ (t,e,r){if(!t)return;let i=p $ (t,e,t?.astNode);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}function p $ (t,e,r){if(t.astNode!==r)return[];if(Hl(t.grammarSource)&&t.grammarSource.value===e)return[t];let i=xm(t).iterator(),n,a=[];do if(n=i.next(),!n.done){let s=n.value;s.astNode===r?Hl(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):i.prune()}while(!n.done);return a}function m $ (t){let e=t.astNode;for(;e===t.container?.astNode;){let r=ef(t.grammarSource, $ c);if(r)return r;t=t.container}}function b6(t){let e=t;return $ T(e)&&(af(e. $ container)?e=e. $ container. $ container:nf(e. $ container)?e=e. $ container:Yu(e. $ container)),Jye(t,e,new Map)}function Jye(t,e,r){function i(n,a){let s;return ef(n, $ c)||(s=Jye(a,a,r)),r.set(t,s),s}if(o(i,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(let n of Pc(e)){if( $ c(n)&&n.feature.toLowerCase()==="name")return r.set(t,n),n;if(Gc(n)&&Ba(n.rule.ref))return i(n,n.rule.ref);if(u6(n)&&n.typeRef?.ref)return i(n,n.typeRef.ref)}}function eve(t){let e=t. $ container;if(ep(e)){let r=e.elements,i=r.indexOf(t);for(let n=i-1;n>=0;n--){let a=r[n];if(af(a))return a;{let s=Pc(r[n]).find(af);if(s)return s}}}if(FT(e))return eve(e)}function Tnt(t,e){return t==="?"||t==="*"||ep(e)&&!!e.guardCondition}function knt(t){return t==="*"||t==="+"}function Cnt(t){return t==="+="}function jT(t){return tve(t,new Set)}function tve(t,e){if(e.has(t))return!0;e.add(t);for(let r of Pc(t))if(Gc(r)){if(!r.rule.ref||Ba(r.rule.ref)&&!tve(r.rule.ref,e)||tp(r.rule.ref))return!1}else{if( $ c(r))return!1;if(af(r))return!1}return!!t.definition}function wnt(t){return l $ (t.type,new Set)}function l $ (t,e){if(e.has(t))return!0;if(e.add(t),NF(t))return!1;if(VF(t))return!1;if(YF(t))return t.types.every(r=>l $ (r,e));if(u6(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){let r=t.typeRef.ref;return f6(r)?l $ (r.type,e):!1}else return!1}else return!1}function T6(t){if(!Xs(t)){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.retur
2026-02-13 14:04:06 -07:00
Complement Sets cannot be automatically optimized .
This will disable the lexer ' s first char optimizations .
2026-04-01 22:38:25 +00:00
See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let i="";e&&(i=`
2026-02-13 14:04:06 -07:00
This will disable the lexer ' s first char optimizations .
2026-04-01 22:38:25 +00:00
See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Gy(`${ZT}
2026-02-13 14:04:06 -07:00
Failed parsing : < $ { t . toString ( ) } >
Using the @ chevrotain / regexp - to - ast library
2026-04-01 22:38:25 +00:00
Please open an issue at : https : //github.com/chevrotain/chevrotain/issues`+i)}}return[]}function S$(t,e,r){switch(t.type){case"Disjunction":for(let n=0;n<t.value.length;n++)S$(t.value[n],e,r);break;case"Alternative":let i=t.value;for(let n=0;n<i.length;n++){let a=i[n];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let s=a;switch(s.type){case"Character":D6(s.value,e,r);break;case"Set":if(s.complement===!0)throw Error(dve);Pe(s.value,u=>{if(typeof u=="number")D6(u,e,r);else{let h=u;if(r===!0)for(let f=h.from;f<=h.to;f++)D6(f,e,r);else{for(let f=h.from;f<=h.to&&f<Uy;f++)D6(f,e,r);if(h.to>=Uy){let f=h.from>=Uy?h.from:Uy,d=h.to,p=Xu(f),m=Xu(d);for(let g=p;g<=m;g++)e[g]=g}}}});break;case"Group":S$(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}let l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&A$(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return qr(e)}function D6(t,e,r){let i=Xu(t);e[i]=i,r===!0&&Fnt(t,e)}function Fnt(t,e){let r=String.fromCharCode(t),i=r.toUpperCase();if(i!==r){let n=Xu(i.charCodeAt(0));e[n]=n}else{let n=r.toLowerCase();if(n!==r){let a=Xu(n.charCodeAt(0));e[a]=a}}}function fve(t,e){return qs(t.value,r=>{if(typeof r=="number")return pn(e,r);{let i=r;return qs(e,n=>i.from<=n&&n<=i.to)!==void 0}})}function A$(t){let e=t.quantifier;return e&&e.atLeast===0?!0:t.value?Gt(t.value)?ms(t.value,A$):A$(t.value):!1}function L6(t,e){if(e instanceof RegExp){let r=Wy(e),i=new _$(t);return i.visit(r),i.found}else return qs(e,r=>pn(t,r.charCodeAt(0)))!==void 0}var dve,ZT,_$,mve=P(()=>{"use strict";WT();nr();Vy();_6();D$();dve="Complement Sets are not supported for first char optimization",ZT=`Unable to use "first char" lexer optimizations:
` ;o(pve,"getOptimizedStartCodesIndices");o(S $ ,"firstCharOptimizedIndices");o(D6,"addOptimizedIdxToResult");o(Fnt,"handleIgnoreCase");o(fve,"findCode");o(A $ ,"isWholeOptional");_ $ =class extends ju{static{o(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){pn(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?fve(e,this.targetCharCodes)===void 0&&(this.found=!0):fve(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};o(L6,"canMatchCharCode")});function vve(t,e){e=xd(e,{useSticky:R $ ,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:[" \r ", `
` ],tracer:o((b,T)=>T(),"tracer")});let r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{iat()});let i;r("Reject Lexer.NA",()=>{i=Td(t,b=>b[Am]===yn.NA)});let n=!1,a;r("Transform Patterns",()=>{n=!1,a=ht(i,b=>{let T=b[Am];if(Bl(T)){let w=T.source;return w.length===1&&w!=="^"&&w!==" $ "&&w!=="."&&!T.ignoreCase?w:w.length===2&&w[0]===" \\ "&&!pn(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],w[1])?w[1]:e.useSticky?yve(T):gve(T)}else{if(Qn(T))return n=!0,{exec:T};if(typeof T=="object")return n=!0,T;if(typeof T=="string"){if(T.length===1)return T;{let w=T.replace(/[ \\ ^ $ .*+?()[ \] {}|]/g," \\ $ &"),k=new RegExp(w);return e.useSticky?yve(k):gve(k)}}else throw Error("non exhaustive match")}})});let s,l,u,h,f;r("misc mapping",()=>{s=ht(i,b=>b.tokenTypeIdx),l=ht(i,b=>{let T=b.GROUP;if(T!==yn.SKIPPED){if(Gn(T))return T;if(Br(T))return!1;throw Error("non exhaustive match")}}),u=ht(i,b=>{let T=b.LONGER_ALT;if(T)return Gt(T)?ht(T,k=>SE(i,k)):[SE(i,T)]}),h=ht(i,b=>b.PUSH_MODE),f=ht(i,b=>Vt(b,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let b=Sve(e.lineTerminatorCharacters);d=ht(i,T=>!1),e.positionTracking!=="onlyOffset"&&(d=ht(i,T=>Vt(T,"LINE_BREAKS")?!!T.LINE_BREAKS:Eve(T,b)===!1&&L6(b,T.PATTERN)))});let p,m,g,y;r("Misc Mapping #2",()=>{p=ht(i,Cve),m=ht(a,tat),g=mi(i,(b,T)=>{let w=T.GROUP;return Gn(w)&&w!==yn.SKIPPED&&(b[w]=[]),b},{}),y=ht(a,(b,T)=>({pattern:a[T],longerAlt:u[T],canLineTerminator:d[T],isCustom:p[T],short:m[T],group:l[T],push:h[T],pop:f[T],tokenTypeIdx:s[T],tokenType:i[T]}))});let v=!0,x=[];return e.safeMode||r("First Char Optimization",()=>{x=mi(i,(b,T,w)=>{if(typeof T.PATTERN=="string"){let k=T.PATTERN.charCodeAt(0),C=Xu(k);L $ (b,C,y[w])}else if(Gt(T.START_CHARS_HINT)){let k;Pe(T.START_CHARS_HINT,C=>{let E=typeof C=="string"?C.charCodeAt(0):C,S=Xu(E);k!==S&&(k=S,L $ (b,S,y[w]))})}else if(Bl(T.PATTERN))if(T.PATTERN.unicode)v=!1,e.ensureOptimizations&&Gy( ` $ { ZT } Unable to analyze < $ { T . PATTERN . toString ( ) } > pattern .
2026-02-13 14:04:06 -07:00
The regexp unicode flag is not currently supported by the regexp - to - ast library .
This will disable the lexer ' s first char optimizations .
2026-04-01 22:38:25 +00:00
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let k=pve(T.PATTERN,e.ensureOptimizations);_r(k)&&(v=!1),Pe(k,C=>{L$(b,C,y[w])})}else e.ensureOptimizations&&Gy(`${ZT} TokenType: <${T.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
2026-02-13 14:04:06 -07:00
This will disable the lexer ' s first char optimizations .
2026-04-01 22:38:25 +00:00
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:y,charCodeToPatternIdxToConfig:x,hasCustom:n,canBeOptimized:v}}function xve(t,e){let r=[],i=znt(t);r=r.concat(i.errors);let n=Gnt(i.valid),a=n.valid;return r=r.concat(n.errors),r=r.concat($nt(a)),r=r.concat(Xnt(a)),r=r.concat(Knt(a,e)),r=r.concat(Qnt(a)),r}function $nt(t){let e=[],r=pi(t,i=>Bl(i[Am]));return e=e.concat(qnt(r)),e=e.concat(Hnt(r)),e=e.concat(Ynt(r)),e=e.concat(jnt(r)),e=e.concat(Wnt(r)),e}function znt(t){let e=pi(t,n=>!Vt(n,Am)),r=ht(e,n=>({message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:gn.MISSING_PATTERN,tokenTypes:[n]})),i=bd(t,e);return{errors:r,valid:i}}function Gnt(t){let e=pi(t,n=>{let a=n[Am];return!Bl(a)&&!Qn(a)&&!Vt(a,"exec")&&!Gn(a)}),r=ht(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:gn.INVALID_PATTERN,tokenTypes:[n]})),i=bd(t,e);return{errors:r,valid:i}}function qnt(t){class e extends ju{static{o(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}}let r=pi(t,n=>{let a=n.PATTERN;try{let s=Wy(a),l=new e;return l.visit(s),l.found}catch{return Vnt.test(a.source)}});return ht(r,n=>({message:`Unexpected RegExp Anchor Error:
Token Type : - > ` +n.name+ ` < - static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain . io / docs / guide / resolving _lexer _errors . html # ANCHORS for details . ` ,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[n]}))}function Wnt(t){let e=pi(t,i=>i.PATTERN.test(""));return ht(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:gn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}))}function Hnt(t){class e extends ju{static{o(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}}let r=pi(t,n=>{let a=n.PATTERN;try{let s=Wy(a),l=new e;return l.visit(s),l.found}catch{return Unt.test(a.source)}});return ht(r,n=>({message: ` Unexpected RegExp Anchor Error :
Token Type : - > ` +n.name+ ` < - static 'PATTERN' cannot contain start of input anchor '^'
See https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.SOI_ANCHOR_FOUND,tokenTypes:[n]}))}function Ynt(t){let e=pi(t,i=>{let n=i[Am];return n instanceof RegExp&&(n.multiline||n.global)});return ht(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:gn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}))}function jnt(t){let e=[],r=ht(t,a=>mi(t,(s,l)=>(a.PATTERN.source===l.PATTERN.source&&!pn(e,l)&&l.PATTERN!==yn.NA&&(e.push(l),s.push(l)),s),[]));r=Ru(r);let i=pi(r,a=>a.length>1);return ht(i,a=>{let s=ht(a,u=>u.name);return{message:`The same RegExp pattern ->${Ia(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:gn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}function Xnt(t){let e=pi(t,i=>{if(!Vt(i,"GROUP"))return!1;let n=i.GROUP;return n!==yn.SKIPPED&&n!==yn.NA&&!Gn(n)});return ht(e,i=>({message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:gn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}))}function Knt(t,e){let r=pi(t,n=>n.PUSH_MODE!==void 0&&!pn(e,n.PUSH_MODE));return ht(r,n=>({message:`Token Type: ->${n.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${n.PUSH_MODE}<-which does not exist`,type:gn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[n]}))}function Qnt(t){let e=[],r=mi(t,(i,n,a)=>{let s=n.PATTERN;return s===yn.NA||(Gn(s)?i.push({str:s,idx:a,tokenType:n}):Bl(s)&&Jnt(s)&&i.push({str:s.source,idx:a,tokenType:n})),i},[]);return Pe(t,(i,n)=>{Pe(r,({str:a,idx:s,tokenType:l})=>{if(n<s&&Znt(a,i.PATTERN)){let u=`Token: ->${l.name}<- can never be matched.
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`;e.push({message:u,type:gn.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),e}function Znt(t,e){if(Bl(e)){if(eat(e))return!1;let r=e.exec(t);return r!==null&&r.index===0}else{if(Qn(e))return e(t,0,[],{});if(Vt(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function Jnt(t){return qs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}function eat(t){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(t.source)}function gve(t){let e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function yve(t){let e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}function bve(t,e,r){let i=[];return Vt(t,Hy)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Hy+`> property in its definition
` ,type:gn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Vt(t,R6)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+R6+ ` > property in its definition
` ,type:gn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Vt(t,R6)&&Vt(t,Hy)&&!Vt(t.modes,t.defaultMode)&&i.push({message: ` A MultiMode Lexer cannot be initialized with a $ { Hy } : < $ { t . defaultMode } > which does not exist
` ,type:gn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Vt(t,R6)&&Pe(t.modes,(n,a)=>{Pe(n,(s,l)=>{if(Br(s))i.push({message: ` A Lexer cannot be initialized using an undefined Token Type . Mode : < $ { a } > at index : < $ { l } >
` ,type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Vt(s,"LONGER_ALT")){let u=Gt(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT];Pe(u,h=>{!Br(h)&&!pn(n,h)&&i.push({message: ` A MultiMode Lexer cannot be initialized with a longer _alt < $ { h . name } > on token < $ { s . name } > outside of mode < $ { a } >
` ,type:gn.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),i}function Tve(t,e,r){let i=[],n=!1,a=Ru(di(qr(t.modes))),s=Td(a,u=>u[Am]===yn.NA),l=Sve(r);return e&&Pe(s,u=>{let h=Eve(u,l);if(h!==!1){let d={message:rat(u,h),type:h.issue,tokenType:u};i.push(d)}else Vt(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(n=!0):L6(l,u.PATTERN)&&(n=!0)}),e&&!n&&i.push({message: ` Warning : No LINE _BREAKS Found .
2026-02-13 14:04:06 -07:00
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 .
See https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
2026-04-01 22:38:25 +00:00
for details . ` ,type:gn.NO_LINE_BREAKS_FLAGS}),i}function kve(t){let e={},r=ni(t);return Pe(r,i=>{let n=t[i];if(Gt(n))e[i]=[];else throw Error("non exhaustive match")}),e}function Cve(t){let e=t.PATTERN;if(Bl(e))return!1;if(Qn(e))return!0;if(Vt(e,"exec"))return!0;if(Gn(e))return!1;throw Error("non exhaustive match")}function tat(t){return Gn(t)&&t.length===1?t.charCodeAt(0):!1}function Eve(t,e){if(Vt(t,"LINE_BREAKS"))return!1;if(Bl(t.PATTERN)){try{L6(e,t.PATTERN)}catch(r){return{issue:gn.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(Gn(t.PATTERN))return!1;if(Cve(t))return{issue:gn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function rat(t,e){if(e.issue===gn.IDENTIFY_TERMINATOR)return ` Warning : unable to identify line terminator usage in pattern .
2026-02-13 14:04:06 -07:00
The problem is in the < $ { t . name } > Token Type
Root cause : $ { e . errMsg } .
2026-04-01 22:38:25 +00:00
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===gn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
2026-02-13 14:04:06 -07:00
The problem is in the < $ { t . name } > Token Type
2026-04-01 22:38:25 +00:00
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function Sve(t){return ht(t,r=>Gn(r)?r.charCodeAt(0):r)}function L$(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function Xu(t){return t<Uy?t:N6[t]}function iat(){if(_r(N6)){N6=new Array(65536);for(let t=0;t<65536;t++)N6[t]=t>255?255+~~(t/255):t}}var Am,Hy,R6,R$,Vnt,Unt,wve,Uy,N6,D$=P(()=>{"use strict";WT();JT();nr();Vy();mve();_6();Am="PATTERN",Hy="defaultMode",R6="modes",R$=typeof new RegExp("(?:)").sticky=="boolean";o(vve,"analyzeTokenTypes");o(xve,"validatePatterns");o($nt,"validateRegExpPattern");o(znt,"findMissingPatterns");o(Gnt,"findInvalidPatterns");Vnt=/[^\\][$]/;o(qnt,"findEndOfInputAnchor");o(Wnt,"findEmptyMatchRegExps");Unt=/[^\\[][\^]|^\^/;o(Hnt,"findStartOfInputAnchor");o(Ynt,"findUnsupportedFlags");o(jnt,"findDuplicatePatterns");o(Xnt,"findInvalidGroupType");o(Knt,"findModesThatDoNotExist");o(Qnt,"findUnreachablePatterns");o(Znt,"tryToMatchStrToPattern");o(Jnt,"noMetaChar");o(eat,"usesLookAheadOrBehind");o(gve,"addStartOfInput");o(yve,"addStickyFlag");o(bve,"performRuntimeChecks");o(Tve,"performWarningRuntimeChecks");o(kve,"cloneEmptyGroups");o(Cve,"isCustomPattern");o(tat,"isShortPattern");wve={test:o(function(t){let e=t.length;for(let r=this.lastIndex;r<e;r++){let i=t.charCodeAt(r);if(i===10)return this.lastIndex=r+1,!0;if(i===13)return t.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};o(Eve,"checkLineBreaksIssues");o(rat,"buildLineBreakIssueMessage");o(Sve,"getCharCodes");o(L$,"addToMapOfArrays");Uy=256,N6=[];o(Xu,"charCodeToOptimizedIndex");o(iat,"initCharCodeToOptimizedIndexMap")});function lf(t,e){let r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}function Yy(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}function cf(t){let e=nat(t);aat(e),oat(e),sat(e),Pe(e,r=>{r.isParent=r.categoryMatches.length>0})}function nat(t){let e=Si(t),r=t,i=!0;for(;i;){r=Ru(di(ht(r,a=>a.CATEGORIES)));let n=bd(r,e);e=e.concat(n),_r(n)?i=!1:r=n}return e}function aat(t){Pe(t,e=>{N$(e)||(Dve[Ave]=e,e.tokenTypeIdx=Ave++),_ve(e)&&!Gt(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),_ve(e)||(e.CATEGORIES=[]),lat(e)||(e.categoryMatches=[]),cat(e)||(e.categoryMatchesMap={})})}function sat(t){Pe(t,e=>{e.categoryMatches=[],Pe(e.categoryMatchesMap,(r,i)=>{e.categoryMatches.push(Dve[i].tokenTypeIdx)})})}function oat(t){Pe(t,e=>{Lve([],e)})}function Lve(t,e){Pe(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),Pe(e.CATEGORIES,r=>{let i=t.concat(e);pn(i,r)||Lve(i,r)})}function N$(t){return Vt(t,"tokenTypeIdx")}function _ve(t){return Vt(t,"CATEGORIES")}function lat(t){return Vt(t,"categoryMatches")}function cat(t){return Vt(t,"categoryMatchesMap")}function Rve(t){return Vt(t,"tokenTypeIdx")}var Ave,Dve,_m=P(()=>{"use strict";nr();o(lf,"tokenStructuredMatcher");o(Yy,"tokenStructuredMatcherNoCategories");Ave=1,Dve={};o(cf,"augmentTokenTypes");o(nat,"expandCategories");o(aat,"assignTokenDefaultProps");o(sat,"assignCategoriesTokensProp");o(oat,"assignCategoriesMapProp");o(Lve,"singleAssignCategoriesToksMap");o(N$,"hasShortKeyProperty");o(_ve,"hasCategoriesProperty");o(lat,"hasExtendingTokensTypesProperty");o(cat,"hasExtendingTokensTypesMapProperty");o(Rve,"isTokenType")});var jy,I$=P(()=>{"use strict";jy={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,i,n,a){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}});var gn,ek,yn,JT=P(()=>{"use strict";D$();nr();Vy();_m();I$();_6();(function(t){t[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_WITHOU
` ," \r "],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:jy,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(ek);yn=class{static{o(this,"Lexer")}constructor(e,r=ek){if(this.lexerDefinition=e,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=(n,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log( ` $ { s } -- > < $ { n } > ` );let{time:l,value:u}=KT(a),h=l>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h( ` $ { s } < -- < $ { n } > time : $ { l } ms ` ),this.traceInitIndent--,u}else return a()},typeof r=="boolean")throw Error( ` The second argument to the Lexer constructor is now an ILexerConfig Object .
a boolean 2 nd argument is no longer supported ` );this.config=Za({},ek,r);let i=this.config.traceInitPerf;i===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof i=="number"&&(this.traceInitMaxIdent=i,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===ek.lineTerminatorsPattern)this.config.lineTerminatorsPattern=wve;else if(this.config.lineTerminatorCharacters===ek.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(r.safeMode&&r.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),Gt(e)?n={modes:{defaultMode:Si(e)},defaultMode:Hy}:(a=!1,n=Si(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(bve(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Tve(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Pe(n.modes,(l,u)=>{n.modes[u]=Td(l,h=>Br(h))});let s=ni(n.modes);if(Pe(n.modes,(l,u)=>{this.TRACE_INIT(`Mode: <${u}> processing`,()=>{if(this.modes.push(u),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(xve(l,s))}),_r(this.lexerDefinitionErrors)){cf(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=vve(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[u]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[u]=h.charCodeToPatternIdxToConfig,this.emptyGroups=Za({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[u]=h.canBeOptimized}})}),this.defaultMode=n.defaultMode,!_r(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let u=ht(this.lexerDefinitionErrors,h=>h.message).join(`-----------------------
2026-02-13 14:04:06 -07:00
` );throw new Error( ` Errors detected in definition of Lexer :
2026-04-01 22:38:25 +00:00
` +u)}Pe(this.lexerDefinitionWarning,l=>{XT(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(R $ ?(this.chopInput=La,this.match=this.matchWithTest):(this.updateLastIndex=Sn,this.match=this.matchWithExec),a&&(this.handleModes=Sn),this.trackStartLines===!1&&(this.computeNewColumn=La),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Sn),/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))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error( ` Invalid < positionTracking > config option : "${this.config.positionTracking}" ` );this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=mi(this.canModeBeOptimized,(u,h,f)=>(h===!1&&u.push(f),u),[]);if(r.ensureOptimizations&&!_r(l))throw Error( ` Lexer Modes : < $ { l . join ( ", " ) } > cannot be optimized .
2026-02-13 14:04:06 -07:00
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un - optimized mode .
2026-04-01 22:38:25 +00:00
Or inspect the console log for details on how to resolve these issues . ` )}),this.TRACE_INIT("clearRegExpParserCache",()=>{hve()}),this.TRACE_INIT("toFastProperties",()=>{QT(this)})})}tokenize(e,r=this.defaultMode){if(!_r(this.lexerDefinitionErrors)){let n=ht(this.lexerDefinitionErrors,a=>a.message).join( ` -- -- -- -- -- -- -- -- -- -- -- -
2026-02-13 14:04:06 -07:00
` );throw new Error( ` Unable to Tokenize because Errors detected in definition of Lexer :
2026-04-01 22:38:25 +00:00
` +n)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let i,n,a,s,l,u,h,f,d,p,m,g,y,v,x,b,T=e,w=T.length,k=0,C=0,E=this.hasCustom?0:Math.floor(e.length/10),S=new Array(E),L=[],M=this.trackStartLines?1:void 0,I=this.trackStartLines?1:void 0,A=kve(this.emptyGroups),_=this.trackStartLines,D=this.config.lineTerminatorsPattern,N=0,R=[],B=[],O=[], $ =[];Object.freeze( $ );let z;function F(){return R}o(F,"getPossiblePatternsSlow");function V(Y){let ae=Xu(Y),J=B[ae];return J===void 0? $ :J}o(V,"getPossiblePatternsOptimized");let H=o(Y=>{if(O.length===1&&Y.tokenType.PUSH_MODE===void 0){let ae=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Y);L.push({offset:Y.startOffset,line:Y.startLine,column:Y.startColumn,length:Y.image.length,message:ae})}else{O.pop();let ae=Na(O);R=this.patternIdxToConfig[ae],B=this.charCodeToPatternIdxToConfig[ae],N=R.length;let J=this.canModeBeOptimized[ae]&&this.config.safeMode===!1;B&&J?z=V:z=F}},"pop_mode");function X(Y){O.push(Y),B=this.charCodeToPatternIdxToConfig[Y],R=this.patternIdxToConfig[Y],N=R.length,N=R.length;let ae=this.canModeBeOptimized[Y]&&this.config.safeMode===!1;B&&ae?z=V:z=F}o(X,"push_mode"),X.call(this,r);let W,Z=this.config.recoveryEnabled;for(;k<w;){u=null;let Y=T.charCodeAt(k),ae=z(Y),J=ae.length;for(i=0;i<J;i++){W=ae[i];let ee=W.pattern;h=null;let re=W.short;if(re!==!1?Y===re&&(u=ee):W.isCustom===!0?(b=ee.exec(T,k,S,A),b!==null?(u=b[0],b.payload!==void 0&&(h=b.payload)):u=null):(this.updateLastIndex(ee,k),u=this.match(ee,e,k)),u!==null){if(l=W.longerAlt,l!==void 0){let te=l.length;for(a=0;a<te;a++){let be=R[l[a]],de=be.pattern;if(f=null,be.isCustom===!0?(b=de.exec(T,k,S,A),b!==null?(s=b[0],b.payload!==void 0&&(f=b.payload)):s=null):(this.updateLastIndex(de,k),s=this.match(de,e,k)),s&&s.length>u.length){u=s,h=f,W=be;break}}}break}}if(u!==null){if(d=u.length,p=W.group,p!==void 0&&(m=W.tokenTypeIdx,g=this.createTokenInstance(u,k,m,W.tokenType,M,I,d),this.handlePayload(g,h),p===!1?C=this.addToken(S,C,g):A[p].push(g)),e=this.chopInput(e,d),k=k+d,I=this.computeNewColumn(I,d),_===!0&&W.canLineTerminator===!0){let ee=0,re,te;D.lastIndex=0;do re=D.test(u),re===!0&&(te=D.lastIndex-1,ee++);while(re===!0);ee!==0&&(M=M+ee,I=d-te,this.updateTokenEndLineColumnLocation(g,p,te,ee,M,I,d))}this.handleModes(W,H,X,g)}else{let ee=k,re=M,te=I,be=Z===!1;for(;be===!1&&k<w;)for(e=this.chopInput(e,1),k++,n=0;n<N;n++){let de=R[n],Ee=de.pattern,Ne=de.short;if(Ne!==!1?T.charCodeAt(k)===Ne&&(be=!0):de.isCustom===!0?be=Ee.exec(T,k,S,A)!==null:(this.updateLastIndex(Ee,k),be=Ee.exec(e)!==null),be===!0)break}if(y=k-ee,I=this.computeNewColumn(I,y),x=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(T,ee,y,re,te,Na(O)),L.push({offset:ee,line:re,column:te,length:y,message:x}),Z===!1)break}}return this.hasCustom||(S.length=C),{tokens:S,groups:A,errors:L}}handleModes(e,r,i,n){if(e.pop===!0){let a=e.push;r(n),a!==void 0&&i.call(this,a)}else e.push!==void 0&&i.call(this,e.push)}chopInput(e,r){return e.substring(r)}updateLastIndex(e,r){e.lastIndex=r}updateTokenEndLineColumnLocation(e,r,i,n,a,s,l){let u,h;r!==void 0&&(u=i===l-1,h=u?-1:0,n===1&&u===!0||(e.endLine=a+h,e.endColumn=s-1+-h))}computeNewColumn(e,r){return e+r}createOffsetOnlyToken(e,r,i,n){return{image:e,startOffset:r,tokenTypeIdx:i,tokenType:n}}createStartOnlyToken(e,r,i,n,a,s){return{image:e,startOffset:r,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:n}}createFullToken(e,r,i,n,a,s,l){return{image:e,startOffset:r,endOffset:r+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:n}}addTokenUsingPush(e,r,i){return e.push(i),r}addTokenUsingMemberAccess(e,r,i){return e[r]=i,r++,r}handlePayloadNoCustom(e,r){}handlePayloadWithCustom(e,r){r!==null&&(e.payload=r)}matchWithTest(e,r,i){return e.test(r)===!0?r.substring(i,e.lastIndex):null}matchWithExec(e,r){let i=e.exec(r);return i!==null?i[0]:null}};yn.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";yn.NA=/N
See : https : //github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Vt(t,Nve)&&(r.CATEGORIES=t[Nve]),cf([r]),Vt(t,Ive)&&(r.LABEL=t[Ive]),Vt(t,Mve)&&(r.GROUP=t[Mve]),Vt(t,Pve)&&(r.POP_MODE=t[Pve]),Vt(t,Ove)&&(r.PUSH_MODE=t[Ove]),Vt(t,Bve)&&(r.LONGER_ALT=t[Bve]),Vt(t,Fve)&&(r.LINE_BREAKS=t[Fve]),Vt(t,$ve)&&(r.START_CHARS_HINT=t[$ve]),r}function hf(t,e,r,i,n,a,s,l){return{image:e,startOffset:r,endOffset:i,startLine:n,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function tk(t,e){return lf(t,e)}var uat,Nve,Ive,Mve,Ove,Pve,Bve,Fve,$ve,cl,Dm=P(()=>{"use strict";nr();JT();_m();o(uf,"tokenLabel");o(M$,"hasTokenLabel");uat="parent",Nve="categories",Ive="label",Mve="group",Ove="push_mode",Pve="pop_mode",Bve="longer_alt",Fve="line_breaks",$ve="start_chars_hint";o(np,"createToken");o(hat,"createTokenInternal");cl=np({name:"EOF",pattern:yn.NA});cf([cl]);o(hf,"createTokenInstance");o(tk,"tokenMatcher")});var ff,zve,qc,Xy=P(()=>{"use strict";Dm();nr();Zs();ff={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:i}){return`Expecting ${M$(t)?`--> ${uf(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:i,ruleName:n}){let a="Expecting: ",l=`
but found : '`+Ia(e).image+"' ";if(i)return a+i+l;{let u=mi(t,(p,m)=>p.concat(m),[]),h=ht(u,p=>`[${ht(p,m=>uf(m)).join(" , " ) } ] ` ),d= ` one of these possible Token sequences :
$ { ht ( h , ( p , m ) => ` ${ m + 1 } . ${ p } ` ) . join ( `
` )} ` ; return a + d + l } } , buildEarlyExitMessage ( { expectedIterationPaths : t , actual : e , customUserDescription : r , ruleName : i } ) { let n = "Expecting: " , s = `
but found : '`+Ia(e).image+"' " ; if ( r ) return n + r + s ; { let u = ` expecting at least one iteration which starts with one of these possible Token sequences::
< $ { ht ( t , h => ` [ ${ ht ( h , f => uf ( f ) ) . join ( "," ) } ] ` ) . join ( " ," ) } > ` ;return n+u+s}}};Object.freeze(ff);zve={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+ ` < -
inside top level rule : - > ` +t.name+"<-"}},qc={buildDuplicateFoundError(t,e){function r(f){return f instanceof Xr?f.terminalType.name:f instanceof Li?f.nonTerminalName:""}o(r,"getExtraProductionArgument");let i=t.name,n=Ia(e),a=n.idx,s=Mo(n),l=r(n),u=a>0,h= ` - > $ { s } $ { u ? a : "" } < - $ { l ? ` with argument: -> ${ l } <- ` : "" }
appears more than once ( $ { e . length } times ) in the top level rule : - > $ { i } < - .
2026-02-13 14:04:06 -07:00
For further details see : https : //chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
` ;return h=h.replace(/[ \t ]+/g," "),h=h.replace(/ \s \s +/g, `
` ),h},buildNamespaceConflictError(t){return ` Namespace conflict found in grammar .
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
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
2026-04-01 22:38:25 +00:00
and Non - Terminal names start with a lower case letter . ` },buildAlternationPrefixAmbiguityError(t){let e=ht(t.prefixPath,n=>uf(n)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return ` Ambiguous alternatives : < $ { t . ambiguityIndices . join ( " ," ) } > due to common lookahead prefix
2026-02-13 14:04:06 -07:00
in < OR$ { r } > inside < $ { t . topLevelRule . name } > Rule ,
< $ { e } > may appears as a prefix path in all these alternatives .
See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
2026-04-01 22:38:25 +00:00
For Further details . ` },buildAlternationAmbiguityError(t){let e=ht(t.prefixPath,n=>uf(n)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,i= ` Ambiguous Alternatives Detected : < $ { t . ambiguityIndices . join ( " ," ) } > in < OR$ { r } > inside < $ { t . topLevelRule . name } > Rule ,
2026-02-13 14:04:06 -07:00
< $ { e } > may appears as a prefix path in all these alternatives .
2026-04-01 22:38:25 +00:00
` ;return i=i+ ` See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details . ` ,i},buildEmptyRepetitionError(t){let e=Mo(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx), ` The repetition < $ { e } > within Rule < $ { t . topLevelRule . name } > can never consume any tokens .
2026-02-13 14:04:06 -07:00
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 :
< OR$ { t . alternation . idx } > inside < $ { t . topLevelRule . name } > Rule .
2026-04-01 22:38:25 +00:00
has $ { t . alternation . definition . length + 1 } alternatives . ` },buildLeftRecursionError(t){let e=t.topLevelRule.name,r=ht(t.leftRecursionPath,a=>a.name),i= ` $ { e } -- > $ { r . concat ( [ e ] ) . join ( " --> " ) } ` ;return ` Left Recursion found in grammar .
2026-02-13 14:04:06 -07:00
rule : < $ { e } > can be invoked from itself ( directly or indirectly )
without consuming any Tokens . The grammar path that causes this is :
2026-04-01 22:38:25 +00:00
$ { i }
2026-02-13 14:04:06 -07:00
To fix this refactor your grammar to remove the left recursion .
2026-04-01 22:38:25 +00:00
see : https : //en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof Ks?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function Gve(t,e){let r=new O$(t,e);return r.resolveRefs(),r.errors}var O$,Vve=P(()=>{"use strict";Oo();nr();Zs();o(Gve,"resolveGrammar");O$=class extends Qs{static{o(this,"GastRefResolverVisitor")}constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Pe(qr(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{let i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:ya.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}});function P6(t,e,r=[]){r=Si(r);let i=[],n=0;function a(l){return l.concat(zn(t,n+1))}o(a,"remainingPathWith");function s(l){let u=P6(a(l),e,r);return i.concat(u)}for(o(s,"getAlternativesForProd");r.length<e&&n<t.length;){let l=t[n];if(l instanceof en)return s(l.definition);if(l instanceof Li)return s(l.definition);if(l instanceof Ri)i=s(l.definition);else if(l instanceof tn){let u=l.definition.concat([new ti({definition:l.definition})]);return s(u)}else if(l instanceof rn){let u=[new en({definition:l.definition}),new ti({definition:[new Xr({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Wi){let u=l.definition.concat([new ti({definition:[new Xr({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof ti){let u=l.definition.concat([new ti({definition:l.definition})]);i=s(u)}else{if(l instanceof Ui)return Pe(l.definition,u=>{_r(u.definition)===!1&&(i=s(u.definition))}),i;if(l instanceof Xr)r.push(l.terminalType);else throw Error("non exhaustive match")}n++}return i.push({partialPath:r,suffixDef:zn(t,n)}),i}function B6(t,e,r,i){let n="EXIT_NONE_TERMINAL",a=[n],s="EXIT_ALTERNATIVE",l=!1,u=e.length,h=u-i-1,f=[],d=[];for(d.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!_r(d);){let p=d.pop();if(p===s){l&&Na(d).idx<=h&&d.pop();continue}let m=p.def,g=p.idx,y=p.ruleStack,v=p.occurrenceStack;if(_r(m))continue;let x=m[0];if(x===n){let b={idx:g,def:zn(m),ruleStack:Hh(y),occurrenceStack:Hh(v)};d.push(b)}else if(x instanceof Xr)if(g<u-1){let b=g+1,T=e[b];if(r(T,x.terminalType)){let w={idx:b,def:zn(m),ruleStack:y,occurrenceStack:v};d.push(w)}}else if(g===u-1)f.push({nextTokenType:x.terminalType,nextTokenOccurrence:x.idx,ruleStack:y,occurrenceStack:v}),l=!0;else throw Error("non exhaustive match");else if(x instanceof Li){let b=Si(y);b.push(x.nonTerminalName);let T=Si(v);T.push(x.idx);let w={idx:g,def:x.definition.concat(a,zn(m)),ruleStack:b,occurrenceStack:T};d.push(w)}else if(x instanceof Ri){let b={idx:g,def:zn(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let T={idx:g,def:x.definition.concat(zn(m)),ruleStack:y,occurrenceStack:v};d.push(T)}else if(x instanceof tn){let b=new ti({definition:x.definition,idx:x.idx}),T=x.definition.concat([b],zn(m)),w={idx:g,def:T,ruleStack:y,occurrenceStack:v};d.push(w)}else if(x instanceof rn){let b=new Xr({terminalType:x.separator}),T=new ti({definition:[b].concat(x.definition),idx:x.idx}),w=x.definition.concat([T],zn(m)),k={idx:g,def:w,ruleStack:y,occurrenceStack:v};d.push(k)}else if(x instanceof Wi){let b={idx:g,def:zn(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let T=new Xr({terminalType:x.separator}),w=new ti({definition:[T].concat(x.definition),idx:x.idx}),k=x.definition.concat([w],zn(m)),C={idx:g,def:k,ruleStack:y,occurrenceStack:v};d.push(C)}else if(x instanceof ti){let b={idx:g,def:zn(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let T=new ti({definition:x.definition,idx:x.idx}),w=x.definition.concat([T],zn(m)),k={idx:g,def:w,ruleStack:y,occurrenceStack:v};d.push(k)}else if(x instanceof Ui)for(let b=x.definition.length-1;b>=0;b--){let T=x
2026-02-13 14:04:06 -07:00
$ { a . join ( `
` ).replace(/ \n /g, `
2026-04-01 22:38:25 +00:00
` )} ` ) } } , "validateVisitor" ) } ; return r . prototype = i , r . prototype . constructor = r , r . _RULE _NAMES = e , r } function vxe ( t , e , r ) { let i = o ( function ( ) { } , "derivedConstructor" ) ; Z$ ( i , t + "BaseSemanticsWithDefaults" ) ; let n = Object . create ( r . prototype ) ; return Pe ( e , a => { n [ a ] = wat } ) , i . prototype = n , i . prototype . constructor = i , i } function Eat ( t , e ) { return Sat ( t , e ) } function Sat ( t , e ) { let r = pi ( e , n => Qn ( t [ n ] ) === ! 1 ) , i = ht ( r , n => ( { msg : ` Missing visitor method: < ${ n } > on ${ t . constructor . name } CST Visitor. ` , type : J$ . MISSING _METHOD , methodName : n } ) ) ; return Ru ( i ) } var J$ , xxe = P ( ( ) => { "use strict" ; nr ( ) ; gxe ( ) ; o ( wat , "defaultVisit" ) ; o ( yxe , "createBaseSemanticVisitorConstructor" ) ; o ( vxe , "createBaseVisitorConstructorWithDefaults" ) ; ( function ( t ) { t [ t . REDUNDANT _METHOD = 0 ] = "REDUNDANT_METHOD" , t [ t . MISSING _METHOD = 1 ] = "MISSING_METHOD" } ) ( J$ || ( J$ = { } ) ) ; o ( Eat , "validateVisitor" ) ; o ( Sat , "validateMissingCstMethods" ) } ) ; var K6 , bxe = P ( ( ) => { "use strict" ; mxe ( ) ; nr ( ) ; xxe ( ) ; Oo ( ) ; K6 = class { static { o ( this , "TreeBuilder" ) } initTreeBuilder ( e ) { if ( this . CST _STACK = [ ] , this . outputCst = e . outputCst , this . nodeLocationTracking = Vt ( e , "nodeLocationTracking" ) ? e . nodeLocationTracking : Js . nodeLocationTracking , ! this . outputCst ) this . cstInvocationStateUpdate = Sn , this . cstFinallyStateUpdate = Sn , this . cstPostTerminal = Sn , this . cstPostNonTerminal = Sn , this . cstPostRule = Sn ; else if ( /full/i . test ( this . nodeLocationTracking ) ) this . recoveryEnabled ? ( this . setNodeLocationFromToken = Q$ , this . setNodeLocationFromNode = Q$ , this . cstPostRule = Sn , this . setInitialNodeLocation = this . setInitialNodeLocationFullRecovery ) : ( this . setNodeLocationFromToken = Sn , this . setNodeLocationFromNode = Sn , this . cstPostRule = this . cstPostRuleFull , this . setInitialNodeLocation = this . setInitialNodeLocationFullRegular ) ; else if ( /onlyOffset/i . test ( this . nodeLocationTracking ) ) this . recoveryEnabled ? ( this . setNodeLocationFromToken = K$ , this . setNodeLocationFromNode = K$ , this . cstPostRule = Sn , this . setInitialNodeLocation = this . setInitialNodeLocationOnlyOffsetRecovery ) : ( this . setNodeLocationFromToken = Sn , this . setNodeLocationFromNode = Sn , this . cstPostRule = this . cstPostRuleOnlyOffset , this . setInitialNodeLocation = this . setInitialNodeLocationOnlyOffsetRegular ) ; else if ( /none/i . test ( this . nodeLocationTracking ) ) this . setNodeLocationFromToken = Sn , this . setNodeLocationFromNode = Sn , this . cstPostRule = Sn , this . setInitialNodeLocation = Sn ; else throw Error ( ` Invalid <nodeLocationTracking> config option: " ${ e . nodeLocationTracking } " ` ) } setInitialNodeLocationOnlyOffsetRecovery ( e ) { e . location = { startOffset : NaN , endOffset : NaN } } setInitialNodeLocationOnlyOffsetRegular ( e ) { e . location = { startOffset : this . LA ( 1 ) . startOffset , endOffset : NaN } } setInitialNodeLocationFullRecovery ( e ) { e . location = { startOffset : NaN , startLine : NaN , startColumn : NaN , endOffset : NaN , endLine : NaN , endColumn : NaN } } setInitialNodeLocationFullRegular ( e ) { let r = this . LA ( 1 ) ; e . location = { startOffset : r . startOffset , startLine : r . startLine , startColumn : r . startColumn , endOffset : NaN , endLine : NaN , endColumn : NaN } } cstInvocationStateUpdate ( e ) { let r = { name : e , children : Object . create ( null ) } ; this . setInitialNodeLocation ( r ) , this . CST _STACK . push ( r ) } cstFinallyStateUpdate ( ) { this . CST _STACK . pop ( ) } cstPostRuleFull ( e ) { let r = this . LA ( 0 ) , i = e . location ; i . startOffset <= r . startOffset ? ( i . endOffset = r . endOffset , i . endLine = r . endLine , i . endColumn = r . endColumn ) : ( i . startOffset = NaN , i . startLine = NaN , i . startColumn = NaN ) } cstPostRuleOnlyOffset ( e ) { let r = this . LA ( 0 ) , i = e . location ; i . startOffset <= r . startOffset ? i . endOffset = r . endOffset : i . startOffset = NaN } cstPostTerminal ( e , r ) { let i = this . CST _STACK [ this . CST _STACK . length - 1 ] ; dxe ( i , r , e ) , this . setNodeLocationFromToken ( i . location , r ) } cstPostNonTerminal ( e , r ) { let i = this . CST _STACK [ this . CST _STACK . length - 1 ] ; pxe ( i , r , e ) , this . setNodeLocationFromNode ( i . location , e . location ) } getBaseCstVisitorConstructor ( ) { if ( Br ( this . baseCstVisitorConstructor ) ) { let e = yxe ( this . className , ni ( this . gastProductionsCache ) ) ; return this . baseCstVisitorConstructor = e , e } return this . baseCstVisitorConstructor } getBaseCstVisitorConstructorWithDefaults ( ) { if ( Br ( this . baseCstVisitorWithDefaultsConstructor ) ) { let e = vxe ( this . className , ni ( this . gastProductionsCache ) , this . getBaseCstVisitorConstructor ( ) ) ; return this . baseCstVisitorWithDefaultsConstructor = e , e } return this . baseCstVisitorWithDefaultsConstructor } getL
2026-02-13 14:04:06 -07:00
See : https : //chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
2026-04-01 22:38:25 +00:00
For Further details . ` );if(Gt(e)){if(_r(e))throw Error( ` A Token Vocabulary cannot be empty .
2026-02-13 14:04:06 -07:00
Note that the first argument for the parser constructor
is no longer a Token vector ( since v4 . 0 ) . ` );if(typeof e[0].startOffset=="number")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
2026-04-01 22:38:25 +00:00
For Further details . ` )}if(Gt(e))this.tokensMap=mi(e,(a,s)=>(a[s.name]=s,a),{});else if(Vt(e,"modes")&&ms(di(qr(e.modes)),Rve)){let a=di(qr(e.modes)),s=Z1(a);this.tokensMap=mi(s,(l,u)=>(l[u.name]=u,l),{})}else if(Gi(e))this.tokensMap=Si(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=cl;let i=Vt(e,"modes")?di(qr(e.modes)):qr(e),n=ms(i,a=>_r(a.categoryMatches));this.tokenMatcher=n?Yy:lf,cf(qr(this.tokensMap))}defineRule(e,r,i){if(this.selfAnalysisDone)throw Error( ` Grammar rule < $ { e } > 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=Vt(i,"resyncEnabled")?i.resyncEnabled:iv.resyncEnabled,a=Vt(i,"recoveryValueFunc")?i.recoveryValueFunc:iv.recoveryValueFunc,s=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let l;return this.outputCst===!0?l=o(function(...f){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):l=o(function(...f){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(l,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,i){let n=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(ap(e)){let s=e;if(a){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i(e);else{if(this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(n)return this.moveToTerminatedState(),i(e);throw s}}else throw e}optionInternal(e,r){let i=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(e,r,i)}optionInternalLogic(e,r,i){let n=this.getLaFuncFromCache(i),a;if(typeof e!="function"){a=e.DEF;let s=e.GATE;if(s!==void 0){let l=n;n=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=e;if(n.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){let i=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,r,i)}atLeastOneInternalLogic(e,r,i){let n=this.getLaFuncFromCache(i),a;if(typeof r!="function"){a=r.DEF;let s=r.GATE;if(s!==void 0){let l=n;n=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=r;if(n.call(this)===!0){let s=this.doSingleRepetition(a);for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,vn.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],n,1024,e,O6)}atLeastOneSepFirstInternal(e,r){let i=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,r,i)}atLeastOneSepFirstInternalLogic(e,r,i){let n=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(i).call(this)===!0){n.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,n,ik],l,1536,e,ik)}else throw this.raiseEarlyExitException(e,vn.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let i=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,r,i)}manyInternalLogic(e,r,i){let n=this.getLaFuncFromCache(i),a;if(typeof r!="function"){a=r.DEF;let l=r.GATE;if(l!==void 0){let u=n;n=o(()=>l.call(this)&&u.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],n,768,e,M6,s)}manySepFirstInternal(e,r){let i=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,r,i)}manySepFirstInternalLogic(e,r,i){let n=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(i).call(this)===!0){n.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,n,rk],l,1280,e,rk)}}repetitionSepSecondInternal(e,r,i,n,a){for(;i();)this.CONSUME(r),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,n,a],i,1536,e,a)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal
Idx value must be a none negative value smaller than $ { Axe + 1 } ` );throw e.KNOWN_RECORDER_ERROR=!0,e}}var nA,Sxe,Axe,Dxe,Lxe,_at,rA,Rxe=P(()=>{"use strict";nr();Zs();JT();_m();Dm();Oo();W6();nA={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(nA);Sxe=!0,Axe=Math.pow(2,8)-1,Dxe=np({name:"RECORDING_PHASE_TOKEN",pattern:yn.NA});cf([Dxe]);Lxe=hf(Dxe, ` 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(Lxe);_at={name:`This CSTNode indicates the Parser is in Recording Phase
See : https : //chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},rA=class{static{o(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(i,n){return this.consumeInternalRecord(i,e,n)},this[`SUBRULE${r}`]=function(i,n){return this.subruleInternalRecord(i,e,n)},this[`OPTION${r}`]=function(i){return this.optionInternalRecord(i,e)},this[`OR${r}`]=function(i){return this.orInternalRecord(i,e)},this[`MANY${r}`]=function(i){this.manyInternalRecord(e,i)},this[`MANY_SEP${r}`]=function(i){this.manySepFirstInternalRecord(e,i)},this[`AT_LEAST_ONE${r}`]=function(i){this.atLeastOneInternalRecord(e,i)},this[`AT_LEAST_ONE_SEP${r}`]=function(i){this.atLeastOneSepFirstInternalRecord(e,i)}}this.consume=function(e,r,i){return this.consumeInternalRecord(r,e,i)},this.subrule=function(e,r,i){return this.subruleInternalRecord(r,e,i)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},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",()=>{let e=this;for(let r=0;r<10;r++){let i=r>0?r:"";delete e[`CONSUME${i}`],delete e[`SUBRULE${i}`],delete e[`OPTION${i}`],delete e[`OR${i}`],delete e[`MANY${i}`],delete e[`MANY_SEP${i}`],delete e[`AT_LEAST_ONE${i}`],delete e[`AT_LEAST_ONE_SEP${i}`]}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(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return rv}topLevelRuleRecord(e,r){try{let i=new Ks({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+`
2026-02-13 14:04:06 -07:00
This error was thrown during the "grammar recording phase" For more info see :
2026-04-01 22:38:25 +00:00
https : //chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw i}throw i}}optionInternalRecord(e,r){return fk.call(this,Ri,e,r)}atLeastOneInternalRecord(e,r){fk.call(this,tn,r,e)}atLeastOneSepFirstInternalRecord(e,r){fk.call(this,rn,r,e,Sxe)}manyInternalRecord(e,r){fk.call(this,ti,r,e)}manySepFirstInternalRecord(e,r){fk.call(this,Wi,r,e,Sxe)}orInternalRecord(e,r){return Dat.call(this,e,r)}subruleInternalRecord(e,r,i){if(iA(r),!e||Vt(e,"ruleName")===!1){let l=new Error(`<SUBRULE${_xe(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
inside top level rule : < $ { this . recordingProdStack [ 0 ] . name } > ` );throw l.KNOWN_RECORDER_ERROR=!0,l}let n=Na(this.recordingProdStack),a=e.ruleName,s=new Li({idx:r,nonTerminalName:a,label:i?.LABEL,referencedRule:void 0});return n.definition.push(s),this.outputCst?_at:nA}consumeInternalRecord(e,r,i){if(iA(r),!N $ (e)){let s=new Error( ` < CONSUME$ { _xe ( r ) } > argument is invalid expecting a TokenType reference but got : < $ { JSON . stringify ( e ) } >
inside top level rule : < $ { this . recordingProdStack [ 0 ] . name } > ` );throw s.KNOWN_RECORDER_ERROR=!0,s}let n=Na(this.recordingProdStack),a=new Xr({idx:r,terminalType:e,label:i?.LABEL});return n.definition.push(a),Lxe}};o(fk,"recordProd");o(Dat,"recordOrProd");o(_xe,"getIdxSuffix");o(iA,"assertMethodIdxIsValid")});var aA,Nxe=P(()=>{"use strict";nr();Vy();Oo();aA=class{static{o(this,"PerformanceTracer")}initPerformanceTracer(e){if(Vt(e,"traceInitPerf")){let r=e.traceInitPerf,i=typeof r=="number";this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=Js.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log( ` $ { i } -- > < $ { e } > ` );let{time:n,value:a}=KT(r),s=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s( ` $ { i } < -- < $ { e } > time : $ { n } ms ` ),this.traceInitIndent--,a}else return r()}}});function Ixe(t,e){e.forEach(r=>{let i=r.prototype;Object.getOwnPropertyNames(i).forEach(n=>{if(n==="constructor")return;let a=Object.getOwnPropertyDescriptor(i,n);a&&(a.get||a.set)?Object.defineProperty(t.prototype,n,a):t.prototype[n]=r.prototype[n]})})}var Mxe=P(()=>{"use strict";o(Ixe,"applyMixins")});function sA(t=void 0){return function(){return t}}var rv,Js,iv,ya,dk,pk,Oo=P(()=>{"use strict";nr();Vy();uve();Dm();Xy();sxe();U $ ();fxe();bxe();Txe();kxe();Cxe();wxe();Exe();Rxe();Nxe();Mxe();ok();rv=hf(cl,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(rv);Js=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ff,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),iv=Object.freeze({recoveryValueFunc:o(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(t){t[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"})(ya||(ya={}));o(sA,"EMPTY_ALT");dk=class t{static{o(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** ` performSelfAnalysis ` method has been deprecated. \n Use the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{QT(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Pe(this.definedRulesNames,n=>{let s=this[n].originalGrammarAction,l;this.TRACE_INIT( ` $ { n } Rule ` ,()=>{l=this.topLevelRuleRecord(n,s)}),this.gastProductionsCache[n]=l})}finally{this.disableRecording()}});let i=[];if(this.TRACE_INIT("Grammar Resolving",()=>{i=nxe({rules:qr(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{if(_r(i)&&this.skipValidations===!1){let n=axe({rules:qr(this.gastProductionsCache),tokenTypes:qr(this.tokensMap),errMsgProvider:qc,grammarName:r}),a=Qve({lookaheadStrategy:this.lookaheadStrategy,rules:qr(this.gastProductionsCache),tokenTypes:qr(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(n,a)}}),_r(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let n=cve(qr(this.gastProductionsCache));this.resyncFollows=n}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var n,a;(a=(n=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(n,{rules:qr(this.gastProductionsCac
2026-02-13 14:04:06 -07:00
$ { e . join ( `
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
2026-04-01 22:38:25 +00:00
` )} ` ) } ) } constructor ( e , r ) { this . definitionErrors = [ ] , this . selfAnalysisDone = ! 1 ; let i = this ; if ( i . initErrorHandler ( r ) , i . initLexerAdapter ( ) , i . initLooksAhead ( r ) , i . initRecognizerEngine ( e , r ) , i . initRecoverable ( r ) , i . initTreeBuilder ( r ) , i . initContentAssist ( ) , i . initGastRecorder ( r ) , i . initPerformanceTracer ( r ) , Vt ( r , "ignoredIssues" ) ) throw new Error ( ` The <ignoredIssues> IParserConfig property has been deprecated.
2026-02-13 14:04:06 -07:00
Please use the < IGNORE _AMBIGUITIES > flag on the relevant DSL method instead .
See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
2026-04-01 22:38:25 +00:00
For further details . ` );this.skipValidations=Vt(r,"skipValidations")?r.skipValidations:Js.skipValidations}};dk.DEFER_DEFINITION_ERRORS_HANDLING=!1;Ixe(dk,[V6,H6,K6,Q6,J6,Z6,eA,tA,rA,aA]);pk=class extends dk{static{o(this,"EmbeddedActionsParser")}constructor(e,r=Js){let i=Si(r);i.outputCst=!1,super(e,i)}}});var Oxe=P(()=>{"use strict";Zs()});var Pxe=P(()=>{"use strict"});var Bxe=P(()=>{"use strict";Oxe();Pxe()});var Fxe=P(()=>{"use strict";b $ ()});var sp=P(()=>{"use strict";b $ ();Oo();JT();Dm();Jy();H $ ();Xy();tv();I $ ();Zs();Zs();Bxe();Fxe()});function Rm(t,e,r){return ` $ { t . name } _$ { e } _$ { r } ` }function Vxe(t){let e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};Pat(e,t);let r=t.length;for(let i=0;i<r;i++){let n=t[i],a=Nm(e,n,n);a!==void 0&&Yat(e,n,a)}return e}function Pat(t,e){let r=e.length;for(let i=0;i<r;i++){let n=e[i],a=Fa(t,n,void 0,{type:Rat}),s=Fa(t,n,void 0,{type:sv});a.stop=s,t.ruleToStartState.set(n,a),t.ruleToStopState.set(n,s)}}function qxe(t,e,r){return r instanceof Xr?tz(t,e,r.terminalType,r):r instanceof Li?Hat(t,e,r):r instanceof Ui?Gat(t,e,r):r instanceof Ri?Vat(t,e,r):r instanceof ti?Bat(t,e,r):r instanceof Wi?Fat(t,e,r):r instanceof tn? $ at(t,e,r):r instanceof rn?zat(t,e,r):Nm(t,e,r)}function Bat(t,e,r){let i=Fa(t,e,r,{type:zxe});lp(t,i);let n=ov(t,e,i,r,Nm(t,e,r));return Uxe(t,e,r,n)}function Fat(t,e,r){let i=Fa(t,e,r,{type:zxe});lp(t,i);let n=ov(t,e,i,r,Nm(t,e,r)),a=tz(t,e,r.separator,r);return Uxe(t,e,r,n,a)}function $ at(t,e,r){let i=Fa(t,e,r,{type: $ xe});lp(t,i);let n=ov(t,e,i,r,Nm(t,e,r));return Wxe(t,e,r,n)}function zat(t,e,r){let i=Fa(t,e,r,{type: $ xe});lp(t,i);let n=ov(t,e,i,r,Nm(t,e,r)),a=tz(t,e,r.separator,r);return Wxe(t,e,r,n,a)}function Gat(t,e,r){let i=Fa(t,e,r,{type:op});lp(t,i);let n=ht(r.definition,s=>qxe(t,e,s));return ov(t,e,i,r,...n)}function Vat(t,e,r){let i=Fa(t,e,r,{type:op});lp(t,i);let n=ov(t,e,i,r,Nm(t,e,r));return qat(t,e,r,n)}function Nm(t,e,r){let i=pi(ht(r.definition,n=>qxe(t,e,n)),n=>n!==void 0);return i.length===1?i[0]:i.length===0?void 0:Uat(t,i)}function Wxe(t,e,r,i,n){let a=i.left,s=i.right,l=Fa(t,e,r,{type:Oat});lp(t,l);let u=Fa(t,e,r,{type:Gxe});return a.loopback=l,u.loopback=l,t.decisionMap[Rm(e,n?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,ta(s,l),n===void 0?(ta(l,a),ta(l,u)):(ta(l,u),ta(l,n.left),ta(n.right,a)),{left:a,right:u}}function Uxe(t,e,r,i,n){let a=i.left,s=i.right,l=Fa(t,e,r,{type:Mat});lp(t,l);let u=Fa(t,e,r,{type:Gxe}),h=Fa(t,e,r,{type:Iat});return l.loopback=h,u.loopback=h,ta(l,a),ta(l,u),ta(s,h),n!==void 0?(ta(h,u),ta(h,n.left),ta(n.right,a)):ta(h,l),t.decisionMap[Rm(e,n?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function qat(t,e,r,i){let n=i.left,a=i.right;return ta(n,a),t.decisionMap[Rm(e,"Option",r.idx)]=n,i}function lp(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function ov(t,e,r,i,...n){let a=Fa(t,e,i,{type:Nat,start:r});r.end=a;for(let l of n)l!==void 0?(ta(r,l.left),ta(l.right,a)):ta(r,a);let s={left:r,right:a};return t.decisionMap[Rm(e,Wat(i),i.idx)]=r,s}function Wat(t){if(t instanceof Ui)return"Alternation";if(t instanceof Ri)return"Option";if(t instanceof ti)return"Repetition";if(t instanceof Wi)return"RepetitionWithSeparator";if(t instanceof tn)return"RepetitionMandatory";if(t instanceof rn)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function Uat(t,e){let r=e.length;for(let a=0;a<r-1;a++){let s=e[a],l;s.left.transitions.length===1&&(l=s.left.transitions[0]);let u=l instanceof av,h=l,f=e[a+1].left;s.left.type===op&&s.right.type===op&&l!==void 0&&(u&&h.followState===s.right||l.target===s.right)?(u?h.followState=f:l.target=f,jat(t,s.right)):ta(s.right,f)}let i=e[0],n=e[r-1];return{left:i.left,right:n.right}}function tz(t,e,r,i){let n=Fa(t,e,i,{type:op}),a=Fa(t,e,i,{type:op});return rz(n,new nv(a,r)),{left:n,right:a}}function Hat(t,e,r){let i=r.referencedRule,n=t.ruleToStartState.get(i),a=Fa(t,e,r,{type:op}),s=Fa(t,e,r,{type:op}),l=new av(n,i,s);return rz(a,l),{left:a,
2026-02-13 14:04:06 -07:00
< $ { e } > may appears as a prefix path in all these alternatives .
2026-04-01 22:38:25 +00:00
` ;return i=i+ ` See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details . ` ,i}function tst(t){if(t instanceof Li)return"SUBRULE";if(t instanceof Ri)return"OPTION";if(t instanceof Ui)return"OR";if(t instanceof tn)return"AT_LEAST_ONE";if(t instanceof rn)return"AT_LEAST_ONE_SEP";if(t instanceof Wi)return"MANY_SEP";if(t instanceof ti)return"MANY";if(t instanceof Xr)return"CONSUME";throw Error("non exhaustive match")}function rst(t,e,r){let i=Ja(e.configs.elements,a=>a.state.transitions),n=Xfe(i.filter(a=>a instanceof nv).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:n,tokenPath:t}}function ist(t,e){return t.edges[e.tokenTypeIdx]}function nst(t,e,r){let i=new lv,n=[];for(let s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===sv){n.push(s);continue}let l=s.state.transitions.length;for(let u=0;u<l;u++){let h=s.state.transitions[u],f=ast(h,e);f!==void 0&&i.add({state:f,alt:s.alt,stack:s.stack})}}let a;if(n.length===0&&i.size===1&&(a=i),a===void 0){a=new lv;for(let s of i.elements)lA(s,a)}if(n.length>0&&!cst(a))for(let s of n)a.add(s);return a}function ast(t,e){if(t instanceof nv&&tk(e,t.tokenType))return t.target}function sst(t,e){let r;for(let i of t.elements)if(e.is(i.alt)===!0){if(r===void 0)r=i.alt;else if(r!==i.alt)return}return r}function Qxe(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Kxe(t,e,r,i){return i=Zxe(t,i),e.edges[r.tokenTypeIdx]=i,i}function Zxe(t,e){if(e===yk)return e;let r=e.configs.key,i=t.states[r];return i!==void 0?i:(e.configs.finalize(),t.states[r]=e,e)}function ost(t){let e=new lv,r=t.transitions.length;for(let i=0;i<r;i++){let a={state:t.transitions[i].target,alt:i,stack:[]};lA(a,e)}return e}function lA(t,e){let r=t.state;if(r.type===sv){if(t.stack.length>0){let n=[...t.stack],s={state:n.pop(),alt:t.alt,stack:n};lA(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);let i=r.transitions.length;for(let n=0;n<i;n++){let a=r.transitions[n],s=lst(t,a);s!==void 0&&lA(s,e)}}function lst(t,e){if(e instanceof gk)return{state:e.target,alt:t.alt,stack:t.stack};if(e instanceof av){let r=[...t.stack,e.followState];return{state:e.target,alt:t.alt,stack:r}}}function cst(t){for(let e of t.elements)if(e.state.type===sv)return!0;return!1}function ust(t){for(let e of t.elements)if(e.state.type!==sv)return!1;return!0}function hst(t){if(ust(t))return!0;let e=fst(t.elements);return dst(e)&&!pst(e)}function fst(t){let e=new Map;for(let r of t){let i=iz(r,!1),n=e.get(i);n===void 0&&(n={},e.set(i,n)),n[r.alt]=!0}return e}function dst(t){for(let e of Array.from(t.values()))if(Object.keys(e).length>1)return!0;return!1}function pst(t){for(let e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}var oA,jxe,vk,Jxe=P(()=>{"use strict";sp();Hxe();Yxe();pO();lO();Kfe();X1();Y5();kE();AE();vO();o(Xat,"createDFACache");oA=class{static{o(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let i=0;i<r;i++)e+=this.predicates[i]===!0?"1":"0";return e}},jxe=new oA,vk=class extends df{static{o(this,"LLStarLookaheadStrategy")}constructor(e){var r;super(),this.logging=(r=e?.logging)!==null&&r!==void 0?r:(i=>console.log(i))}initialize(e){this.atn=Vxe(e.rules),this.dfas=Kat(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:i,hasPredicates:n,dynamicTokensEnabled:a}=e,s=this.dfas,l=this.logging,u=Rm(i,"Alternation",r),f=this.atn.decisionMap[u].decision,d=ht( $ 6({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:i}),p=>ht(p,m=>m[0]));if(Xxe(d,!1)&&!a){let p=mi(d,(m,g,y)=>(Pe(g,v=>{v&&(m[v.tokenTypeIdx]=y,Pe(v.categoryMatches,x=>{m[x]=y}))}),m),{});return n?function(m){var g;let y=this.LA(1),v=p[y.tokenTypeIdx];if(m!==void 0&&v!==void 0){let x=(g=m[v])===null||g===void 0?void 0:g.GATE;if(x!==void 0&&x.call(this)===!1)return}return v}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return n?function(p){let m=new oA,g=p===void 0?0:p.length;for(
2026-03-01 01:45:57 +00:00
` , ` \ r
2026-04-01 22:38:25 +00:00
` ," \r "];(function(t){function e(a,s,l,u){return new sG(a,s,l,u)}o(e,"create"),t.create=e;function r(a){let s=a;return!!(Xe.defined(s)&&Xe.string(s.uri)&&(Xe.undefined(s.languageId)||Xe.string(s.languageId))&&Xe.uinteger(s.lineCount)&&Xe.func(s.getText)&&Xe.func(s.positionAt)&&Xe.func(s.offsetAt))}o(r,"is"),t.is=r;function i(a,s){let l=a.getText(),u=n(s,(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),h=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],p=a.offsetAt(d.range.start),m=a.offsetAt(d.range.end);if(m<=h)l=l.substring(0,p)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");h=p}return l}o(i,"applyEdits"),t.applyEdits=i;function n(a,s){if(a.length<=1)return a;let l=a.length/2|0,u=a.slice(0,l),h=a.slice(l);n(u,s),n(h,s);let f=0,d=0,p=0;for(;f<u.length&&d<h.length;)s(u[f],h[d])<=0?a[p++]=u[f++]:a[p++]=h[d++];for(;f<u.length;)a[p++]=u[f++];for(;d<h.length;)a[p++]=h[d++];return a}o(n,"mergeSort")})(aG||(aG={}));sG=class{static{o(this,"FullTextDocument")}constructor(e,r,i,n){this._uri=e,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(r,i)}return this._content}update(e,r){this._content=e.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(e.push(n),i=!1);let a=r.charAt(n);i=a===" \r "||a=== `
` ,a===" \r "&&n+1<r.length&&r.charAt(n+1)=== `
` &&n++}i&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return oi.create(0,e);for(;i<n;){let s=Math.floor((i+n)/2);r[s]>e?n=s:i=s+1}let a=i-1;return oi.create(a,e-r[a])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let i=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)}get lineCount(){return this.getLineOffsets().length}};(function(t){let e=Object.prototype.toString;function r(m){return typeof m<"u"}o(r,"defined"),t.defined=r;function i(m){return typeof m>"u"}o(i,"undefined"),t.undefined=i;function n(m){return m===!0||m===!1}o(n,"boolean"),t.boolean=n;function a(m){return e.call(m)==="[object String]"}o(a,"string"),t.string=a;function s(m){return e.call(m)==="[object Number]"}o(s,"number"),t.number=s;function l(m,g,y){return e.call(m)==="[object Number]"&&g<=m&&m<=y}o(l,"numberRange"),t.numberRange=l;function u(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}o(u,"integer"),t.integer=u;function h(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}o(h,"uinteger"),t.uinteger=h;function f(m){return e.call(m)==="[object Function]"}o(f,"func"),t.func=f;function d(m){return m!==null&&typeof m=="object"}o(d,"objectLiteral"),t.objectLiteral=d;function p(m,g){return Array.isArray(m)&&m.every(g)}o(p,"typedArray"),t.typedArray=p})(Xe||(Xe={}))});var Sk,Ak,Om,Pm,oG,mv,vA=P(()=>{"use strict";pv();Bc();Sk=class{static{o(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new mv(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new Pm;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){let i=new Om(e.startOffset,e.image.length,Py(e),e.tokenType,!r);return i.grammarSource=r,i.root=this.rootNode,this.current.content.push(i),i}removeNode(e){let r=e.container;if(r){let i=r.content.indexOf(e);i>=0&&r.content.splice(i,1)}}addHiddenNodes(e){let r=[];for(let a of e){let s=new Om(a.startOffset,a.image.length,Py(a),a.tokenType,!0);s.root=this.rootNode,r.push(s)}let i=this.current,n=!1;if(i.content.length>0){i.content.push(...r);return}for(;i.container;){let a=i.container.content.indexOf(i);if(a>0){i.container.content.splice(a,0,...r),n=!0;break}i=i.container}n||this.rootNode.content.unshift(...r)}construct(e){let r=this.current;typeof e. $ type=="string"&&!e. $ infix&&(this.current.astNode=e),e. $ cstNode=r;let i=this.nodeStack.pop();i?.content.length===0&&this.removeNode(i)}},Ak=class{static{o(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){let e=typeof this._astNode?. $ type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},Om=class extends Ak{static{o(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(e,r,i,n,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=n,this._length=r,this._range=i}},Pm=class extends Ak{static{o(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new oG(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(e&&r){if(this._rangeCache===void 0){let{range:i}=e,{range:n}=r;this._rangeCache={start:i.start,end:n.end.line<i.start.line?i.start:n.end}}return this._rangeCache}else return{start:oi.create(0,0),end:oi.create(0,0)}}get first
` ;case"r":return" \r ";case"t":return" ";case"v":return" \v ";case"0":return" \0 ";default:return h}}o(r,"convertEscapeCharacter");function i(h){return h.charAt(0)==="^"?h.substring(1):h}o(i,"convertID"),t.convertID=i;function n(h){return parseInt(h)}o(n,"convertInt"),t.convertInt=n;function a(h){return BigInt(h)}o(a,"convertBigint"),t.convertBigint=a;function s(h){return new Date(h)}o(s,"convertDate"),t.convertDate=s;function l(h){return Number(h)}o(l,"convertNumber"),t.convertNumber=l;function u(h){return h.toLowerCase()==="true"}o(u,"convertBoolean"),t.convertBoolean=u})(Zu||(Zu={}))});var cp=ar(xG=>{"use strict";Object.defineProperty(xG,"__esModule",{value:!0});var yG;function vG(){if(yG===void 0)throw new Error("No runtime abstraction layer installed");return yG}o(vG,"RAL");(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");yG=r}o(e,"install"),t.install=e})(vG||(vG={}));xG.default=vG});var yv=ar(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.stringArray=ks.array=ks.func=ks.error=ks.number=ks.string=ks.boolean=void 0;function Ast(t){return t===!0||t===!1}o(Ast,"boolean");ks.boolean=Ast;function s2e(t){return typeof t=="string"||t instanceof String}o(s2e,"string");ks.string=s2e;function _st(t){return typeof t=="number"||t instanceof Number}o(_st,"number");ks.number=_st;function Dst(t){return t instanceof Error}o(Dst,"error");ks.error=Dst;function Lst(t){return typeof t=="function"}o(Lst,"func");ks.func=Lst;function o2e(t){return Array.isArray(t)}o(o2e,"array");ks.array=o2e;function Rst(t){return o2e(t)&&t.every(e=>s2e(e))}o(Rst,"stringArray");ks.stringArray=Rst});var $ m=ar(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});vv.Emitter=vv.Event=void 0;var Nst=cp(),l2e;(function(t){let e={dispose(){}};t.None=function(){return e}})(l2e||(vv.Event=l2e={}));var bG=class{static{o(this,"CallbackList")}add(e,r=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(i)&&i.push({dispose:o(()=>this.remove(e,r),"dispose")})}remove(e,r=null){if(!this._callbacks)return;let i=!1;for(let n=0,a=this._callbacks.length;n<a;n++)if(this._callbacks[n]===e)if(this._contexts[n]===r){this._callbacks.splice(n,1),this._contexts.splice(n,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let r=[],i=this._callbacks.slice(0),n=this._contexts.slice(0);for(let a=0,s=i.length;a<s;a++)try{r.push(i[a].apply(n[a],e))}catch(l){(0,Nst.default)().console.error(l)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},EA=class t{static{o(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(e,r,i)=>{this._callbacks||(this._callbacks=new bG),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let n={dispose:o(()=>{this._callbacks&&(this._callbacks.remove(e,r),n.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(i)&&i.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};vv.Emitter=EA;EA._noop=function(){}});var Ik=ar(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.CancellationTokenSource=xv.CancellationToken=void 0;var Ist=cp(),Mst=yv(),TG= $ m(),SA;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:TG.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:TG.Event.None});function e(r){let i=r;return i&&(i===t.None||i===t.Cancelled||Mst.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}o(e,"is"),t.is=e})(SA||(xv.CancellationToken=SA={}));var Ost=Object.freeze
$ { JSON . stringify ( Object . fromEntries ( i ) ) } ` ));return}let a=parseInt(n);if(isNaN(a)){this.fireError(new Error( ` Content - Length value must be a number . Got $ { n } ` ));return}this.nextMessageLength=a}let r=this.buffer.tryReadBody(this.nextMessageLength);if(r===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(r):r,n=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(n)}).catch(i=>{this.fireError(i)})}}catch(r){this.fireError(r)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,xV.default)().timer.setTimeout((e,r)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:r}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};fp.ReadableStreamMessageReader=TV});var N2e=ar(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.WriteableStreamMessageWriter=dp.AbstractMessageWriter=dp.MessageWriter=void 0;var _2e=cp(),Zk=yv(),Gst=yV(),D2e= $ m(),Vst="Content-Length: ",L2e= ` \ r
` ,R2e;(function(t){function e(r){let i=r;return i&&Zk.func(i.dispose)&&Zk.func(i.onClose)&&Zk.func(i.onError)&&Zk.func(i.write)}o(e,"is"),t.is=e})(R2e||(dp.MessageWriter=R2e={}));var VA=class{static{o(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new D2e.Emitter,this.closeEmitter=new D2e.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,r,i){this.errorEmitter.fire([this.asError(e),r,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error( ` Writer received error . Reason : $ { Zk . string ( e . message ) ? e . message : "unknown" } ` )}};dp.AbstractMessageWriter=VA;var kV;(function(t){function e(r){return r===void 0||typeof r=="string"?{charset:r??"utf-8",contentTypeEncoder:(0,_2e.default)().applicationJson.encoder}:{charset:r.charset??"utf-8",contentEncoder:r.contentEncoder,contentTypeEncoder:r.contentTypeEncoder??(0,_2e.default)().applicationJson.encoder}}o(e,"fromOptions"),t.fromOptions=e})(kV||(kV={}));var CV=class extends VA{static{o(this,"WriteableStreamMessageWriter")}constructor(e,r){super(),this.writable=e,this.options=kV.fromOptions(r),this.errorCount=0,this.writeSemaphore=new Gst.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let n=[];return n.push(Vst,i.byteLength.toString(),L2e),n.push(L2e),this.doWrite(e,n,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,r,i){try{return await this.writable.write(r.join(""),"ascii"),this.writable.write(i)}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){this.writable.end()}};dp.WriteableStreamMessageWriter=CV});var I2e=ar(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});qA.AbstractMessageBuffer=void 0;var qst=13,Wst=10,Ust= ` \ r
` ,wV=class{static{o(this,"AbstractMessageBuffer")}constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let r=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(r),this._totalLength+=r.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let r=0,i=0,n=0,a=0;e:for(;i<this._chunks.length;){let h=this._chunks[i];for(n=0;n<h.length;){switch(h[n]){case qst:switch(r){case 0:r=1;break;case 2:r=3;break;default:r=0}break;case Wst:switch(r){case 1:r=2;break;case 3:r=4,n++;break e;default:r=0}break;default:r=0}n++}a+=h.byteLength,i++}if(r!==4)return;let s=this._read(a+n),l=new Map,u=this.toString(s,"ascii").split(Ust);if(u.length<2)return l;for(let h=0;h<u.length-2;h++){let f=u[h],d=f.indexOf(":");if(d===-1)throw new Error( ` Message header must separate key and value using ':'
$ { f } ` );let p=f.substr(0,d),m=f.substr(d+1).trim();l.set(e?p.toLowerCase():p,m)}return l}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let a=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(a)}if(this._chunks[0].byteLength>e){let a=this._chunks[0],s=this.asNative(a,e);return this._chunks[0]=a.slice(e),this._totalLength-=e,s}let r=this.allocNative(e),i=0,n=0;for(;e>0;){let a=this._chunks[n];if(a.byteLength>e){let s=a.slice(0,e);r.set(s,i),i+=e,this._chunks[n]=a.slice(e),this._totalLength-=e,e-=e}else r.set(a,i),i+=a.byteLength,this._chunks.shift(),this._totalLength-=a.byteLength,e-=a.byteLength}return r}};qA.AbstractMessageBuffer=wV});var F2e=ar(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.createMessageConnection=Fr.ConnectionOptions=Fr.MessageStrategy=Fr.CancellationStrategy=Fr.CancellationSenderStrategy=Fr.CancellationReceiverStrategy=Fr.RequestCancellationReceiverStrategy=Fr.IdCancellationReceiverStrategy=Fr.ConnectionStrategy=Fr.ConnectionError=Fr.ConnectionErrors=Fr.LogTraceNotification=Fr.SetTraceNotification=Fr.TraceFormat=Fr.TraceValues=Fr.Trace=Fr.NullLogger=Fr.ProgressType=Fr.ProgressToken=void 0;var M2e=cp(),Ln=yv(),kr=cV(),O2e=hV(),Jk= $ m(),EV=Ik(),rC;(function(t){t.type=new kr.NotificationType(" $ /cancelRequest")})(rC||(rC={}));var SV;(function(t){function e(r){return typeof r=="string"||typeof r=="number"}o(e,"is"),t.is=e})(SV||(Fr.ProgressToken=SV={}));var eC;(function(t){t.type=new kr.NotificationType(" $ /progress")})(eC||(eC={}));var AV=class{static{o(this,"ProgressType")}constructor(){}};Fr.ProgressType=AV;var _V;(function(t){function e(r){return Ln.func(r)}o(e,"is"),t.is=e})(_V||(_V={}));Fr.NullLogger=Object.freeze({error:o(()=>{},"error"),warn:o(()=>{},"warn"),info:o(()=>{},"info"),log:o(()=>{},"log")});var Ti;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})(Ti||(Fr.Trace=Ti={}));var P2e;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(P2e||(Fr.TraceValues=P2e={}));(function(t){function e(i){if(!Ln.string(i))return t.Off;switch(i=i.toLowerCase(),i){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}o(e,"fromString"),t.fromString=e;function r(i){switch(i){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}o(r,"toString"),t.toString=r})(Ti||(Fr.Trace=Ti={}));var ul;(function(t){t.Text="text",t.JSON="json"})(ul||(Fr.TraceFormat=ul={}));(function(t){function e(r){return Ln.string(r)?(r=r.toLowerCase(),r==="json"?t.JSON:t.Text):t.Text}o(e,"fromString"),t.fromString=e})(ul||(Fr.TraceFormat=ul={}));var DV;(function(t){t.type=new kr.NotificationType(" $ /setTrace")})(DV||(Fr.SetTraceNotification=DV={}));var WA;(function(t){t.type=new kr.NotificationType(" $ /logTrace")})(WA||(Fr.LogTraceNotification=WA={}));var tC;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(tC||(Fr.ConnectionErrors=tC={}));var Dv=class t extends Error{static{o(this,"ConnectionError")}constructor(e,r){super(r),this.code=e,Object.setPrototypeOf(this,t.prototype)}};Fr.ConnectionError=Dv;var LV;(function(t){function e(r){let i=r;return i&&Ln.func(i.cancelUndispatched)}o(e,"is"),t.is=e})(LV||(Fr.ConnectionStrategy=LV={}));var UA;(function(t){function e(r){let i=r;return i&&(i.kind===void 0||i.kind==="id")&&Ln.func(i.createCancellationTokenSource)&&(i.dispose===void 0||Ln.func(i.dispose))}o(e,"is"),t.is=e})(UA||(Fr.IdCancellationReceiverStrategy=UA={}));var RV;(function(t){function e(r){let i=r;return i&&i.kind==="request"&&Ln.func(i.createCancellationTokenSource)&&(i.dispose===void 0||Ln.func(i.dispose))}o(e,"is"),t.is=e})(RV||(Fr.RequestCancellationReceiverStr
$ { JSON . stringify ( K . error , void 0 , 4 ) } ` ):n.error("Received response message without id. No further error information provided.");else{let oe=K.id,U=v.get(oe);if(Te(K,U),U!==void 0){v.delete(oe);try{if(K.error){let ue=K.error;U.reject(new kr.ResponseError(ue.code,ue.message,ue.data))}else if(K.result!==void 0)U.resolve(K.result);else throw new Error("Should never happen.")}catch(ue){ue.message?n.error( ` Response handler '${U.method}' failed with message : $ { ue . message } ` ):n.error( ` Response handler '${U.method}' failed unexpectedly . ` )}}}}o(J,"handleResponse");function ee(K){if(z())return;let oe,U;if(K.method===rC.type.method){let ue=K.params.id;x.delete(ue),we(K);return}else{let ue=p.get(K.method);ue&&(U=ue.handler,oe=ue.type)}if(U||d)try{if(we(K),U)if(K.params===void 0)oe!==void 0&&oe.numberOfParams!==0&&oe.parameterStructures!==kr.ParameterStructures.byName&&n.error( ` Notification $ { K . method } defines $ { oe . numberOfParams } params but received none . ` ),U();else if(Array.isArray(K.params)){let ue=K.params;K.method===eC.type.method&&ue.length===2&&SV.is(ue[0])?U({token:ue[0],value:ue[1]}):(oe!==void 0&&(oe.parameterStructures===kr.ParameterStructures.byName&&n.error( ` Notification $ { K . method } defines parameters by name but received parameters by position ` ),oe.numberOfParams!==K.params.length&&n.error( ` Notification $ { K . method } defines $ { oe . numberOfParams } params but received $ { ue . length } arguments ` )),U(...ue))}else oe!==void 0&&oe.parameterStructures===kr.ParameterStructures.byPosition&&n.error( ` Notification $ { K . method } defines parameters by position but received parameters by name ` ),U(K.params);else d&&d(K.method,K.params)}catch(ue){ue.message?n.error( ` Notification handler '${K.method}' failed with message : $ { ue . message } ` ):n.error( ` Notification handler '${K.method}' failed unexpectedly . ` )}else L.fire(K)}o(ee,"handleNotification");function re(K){if(!K){n.error("Received empty message.");return}n.error( ` Received message which is neither a response nor a notification message :
$ { JSON . stringify ( K , null , 4 ) } ` );let oe=K;if(Ln.string(oe.id)||Ln.number(oe.id)){let U=oe.id,ue=v.get(U);ue&&ue.reject(new Error("The received response has neither a result nor an error property."))}}o(re,"handleInvalidMessage");function te(K){if(K!=null)switch(T){case Ti.Verbose:return JSON.stringify(K,null,4);case Ti.Compact:return JSON.stringify(K);default:return}}o(te,"stringifyTrace");function be(K){if(!(T===Ti.Off||!k))if(w===ul.Text){let oe;(T===Ti.Verbose||T===Ti.Compact)&&K.params&&(oe= ` Params : $ { te ( K . params ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` ),k.log( ` Sending request '${K.method} - (${K.id})' . ` ,oe)}else De("send-request",K)}o(be,"traceSendingRequest");function de(K){if(!(T===Ti.Off||!k))if(w===ul.Text){let oe;(T===Ti.Verbose||T===Ti.Compact)&&(K.params?oe= ` Params : $ { te ( K . params ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :oe= ` No parameters provided .
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` ),k.log( ` Sending notification '${K.method}' . ` ,oe)}else De("send-notification",K)}o(de,"traceSendingNotification");function Ee(K,oe,U){if(!(T===Ti.Off||!k))if(w===ul.Text){let ue;(T===Ti.Verbose||T===Ti.Compact)&&(K.error&&K.error.data?ue= ` Error data : $ { te ( K . error . data ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :K.result?ue= ` Result : $ { te ( K . result ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :K.error===void 0&&(ue= ` No result returned .
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` )),k.log( ` Sending response '${oe} - (${K.id})' . Processing request took $ { Date . now ( ) - U } ms ` ,ue)}else De("send-response",K)}o(Ee,"traceSendingResponse");function Ne(K){if(!(T===Ti.Off||!k))if(w===ul.Text){let oe;(T===Ti.Verbose||T===Ti.Compact)&&K.params&&(oe= ` Params : $ { te ( K . params ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` ),k.log( ` Received request '${K.method} - (${K.id})' . ` ,oe)}else De("receive-request",K)}o(Ne,"traceReceivedRequest");function we(K){if(!(T===Ti.Off||!k||K.method===WA.type.method))if(w===ul.Text){let oe;(T===Ti.Verbose||T===Ti.Compact)&&(K.params?oe= ` Params : $ { te ( K . params ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :oe= ` No parameters provided .
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` ),k.log( ` Received notification '${K.method}' . ` ,oe)}else De("receive-notification",K)}o(we,"traceReceivedNotification");function Te(K,oe){if(!(T===Ti.Off||!k))if(w===ul.Text){let U;if((T===Ti.Verbose||T===Ti.Compact)&&(K.error&&K.error.data?U= ` Error data : $ { te ( K . error . data ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :K.result?U= ` Result : $ { te ( K . result ) }
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` :K.error===void 0&&(U= ` No result returned .
2026-03-01 01:45:57 +00:00
2026-04-01 22:38:25 +00:00
` )),oe){let ue=K.error? ` Request failed : $ { K . error . message } ( $ { K . error . code } ) . ` :"";k.log( ` Received response '${oe.method} - (${K.id})' in $ { Date . now ( ) - oe . timerStart } ms . $ { ue } ` ,U)}else k.log( ` Received response $ { K . id } without active response promise . ` ,U)}else De("receive-response",K)}o(Te,"traceReceivedResponse");function De(K,oe){if(!k||T===Ti.Off)return;let U={isLSPMessage:!0,type:K,message:oe,timestamp:Date.now()};k.log(U)}o(De,"logLSPMessage");function $ e(){if( $ ())throw new Dv(tC.Closed,"Connection is closed.");if(z())throw new Dv(tC.Disposed,"Connection is disposed.")}o( $ e,"throwIfClosedOrDisposed");function pe(){if(O())throw new Dv(tC.AlreadyListening,"Connection is already listening")}o(pe,"throwIfListening");function Je(){if(!O())throw new Error("Call listen() first.")}o(Je,"throwIfNotListening");function Ce(K){return K===void 0?null:K}o(Ce,"undefinedToNull");function Fe(K){if(K!==null)return K}o(Fe,"nullToUndefined");function Ue(K){return K!=null&&!Array.isArray(K)&&typeof K=="object"}o(Ue,"isNamedParam");function qe(K,oe){switch(K){case kr.ParameterStructures.auto:return Ue(oe)?Fe(oe):[Ce(oe)];case kr.ParameterStructures.byName:if(!Ue(oe))throw new Error("Received parameters by name but param is not an object literal.");return Fe(oe);case kr.ParameterStructures.byPosition:return[Ce(oe)];default:throw new Error( ` Unknown parameter structure $ { K . toString ( ) } ` )}}o(qe,"computeSingleParam");function Me(K,oe){let U,ue=K.numberOfParams;switch(ue){case 0:U=void 0;break;case 1:U=qe(K.parameterStructures,oe[0]);break;default:U=[];for(let G=0;G<oe.length&&G<ue;G++)U.push(Ce(oe[G]));if(oe.length<ue)for(let G=oe.length;G<ue;G++)U.push(null);break}return U}o(Me,"computeMessageParams");let He={sendNotification:o((K,...oe)=>{ $ e();let U,ue;if(Ln.string(K)){U=K;let se=oe[0],le=0,ke=kr.ParameterStructures.auto;kr.ParameterStructures.is(se)&&(le=1,ke=se);let me=oe.length,ye=me-le;switch(ye){case 0:ue=void 0;break;case 1:ue=qe(ke,oe[le]);break;default:if(ke===kr.ParameterStructures.byName)throw new Error( ` Received $ { ye } parameters for 'by Name' notification parameter structure . ` );ue=oe.slice(le,me).map(Re=>Ce(Re));break}}else{let se=oe;U=K.method,ue=Me(K,se)}let G={jsonrpc:u,method:U,params:ue};return de(G),e.write(G).catch(se=>{throw n.error("Sending notification failed."),se})},"sendNotification"),onNotification:o((K,oe)=>{ $ e();let U;return Ln.func(K)?d=K:oe&&(Ln.string(K)?(U=K,p.set(K,{type:void 0,handler:oe})):(U=K.method,p.set(K.method,{type:K,handler:oe}))),{dispose:o(()=>{U!==void 0?p.delete(U):d=void 0},"dispose")}},"onNotification"),onProgress:o((K,oe,U)=>{if(m.has(oe))throw new Error( ` Progress handler for token $ { oe } already registered ` );return m.set(oe,U),{dispose:o(()=>{m.delete(oe)},"dispose")}},"onProgress"),sendProgress:o((K,oe,U)=>He.sendNotification(eC.type,{token:oe,value:U}),"sendProgress"),onUnhandledProgress:M.event,sendRequest:o((K,...oe)=>{ $ e(),Je();let U,ue,G;if(Ln.string(K)){U=K;let me=oe[0],ye=oe[oe.length-1],Re=0,ve=kr.ParameterStructures.auto;kr.ParameterStructures.is(me)&&(Re=1,ve=me);let Oe=oe.length;EV.CancellationToken.is(ye)&&(Oe=Oe-1,G=ye);let We=Oe-Re;switch(We){case 0:ue=void 0;break;case 1:ue=qe(ve,oe[Re]);break;default:if(ve===kr.ParameterStructures.byName)throw new Error( ` Received $ { We } parameters for 'by Name' request parameter structure . ` );ue=oe.slice(Re,Oe).map(Be=>Ce(Be));break}}else{let me=oe;U=K.method,ue=Me(K,me);let ye=K.numberOfParams;G=EV.CancellationToken.is(me[ye])?me[ye]:void 0}let se=a++,le;G&&(le=G.onCancellationRequested(()=>{let me=A.sender.sendCancellation(He,se);return me===void 0?(n.log( ` Received no promise from cancellation strategy when cancelling id $ { se } ` ),Promise.resolve()):me.catch(()=>{n.log( ` Sending cancellation messages for id $ { se } failed ` )})}));let ke={jsonrpc:u,id:se,method:U,params:ue};return be(ke),typeof A.sender.enableCancellation=="function"&&A.sender.enableCancellation(ke),new Promise(async(me,ye)=>{let Re=o(We=>{me(We),A.sender.cleanup(se),le?.dispose()},"resolveWithCleanup"),ve=o(We=>{ye(We),A.sender.cleanup(se),le?.dispose()},"rejectWithCleanup"),Oe={metho
2026-02-13 14:04:06 -07:00
` )? `
` : `
2026-04-01 22:38:25 +00:00
` }var Wke,wot,Aot,_ot,v7,uC,hC,x7,mq=P(()=>{"use strict";pv();Fy();Wc();o(fq,"parseJSDoc");o(dq,"isJSDoc");o(Hke,"getLines");Wke=/ \s *(@([ \p {L}][ \p {L} \p {N}]*)?)/uy,wot=/ \{ (@[ \p {L}][ \p {L} \p {N}]*)( \s *)([^ \r \n }]+)? \} /gu;o(Eot,"tokenize");o(Sot,"buildInlineTokens");Aot=/ \S /,_ot=/ \s * $ /;o(hq,"skipWhitespace");o(Dot,"lastCharacter");o(Lot,"parseJSDocComment");o(Rot,"parseJSDocElement");o(Not,"appendEmptyLine");o(Yke,"parseJSDocText");o(Iot,"parseJSDocInline");o(jke,"parseJSDocTag");o(Xke,"parseJSDocLine");o(pq,"normalizeOptions");o(uq,"normalizeOption");v7=class{static{o(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let i=r.toString();e+=Uke(e)+i}return e.trim()}toMarkdown(e){let r="";for(let i of this.elements)if(r.length===0)r=i.toMarkdown(e);else{let n=i.toMarkdown(e);r+=Uke(r)+n}return r.trim()}},uC=class{static{o(this,"JSDocTagImpl")}constructor(e,r,i,n){this.name=e,this.content=r,this.inline=i,this.range=n}toString(){let e= ` @ $ { this . name } ` ,r=this.content.toString();return this.content.inlines.length===1?e= ` $ { e } $ { r } ` :this.content.inlines.length>1&&(e= ` $ { e }
$ { r } ` ),this.inline? ` { $ { e } } ` :e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let a=Mot(this.name,r,e??{});if(typeof a=="string")return a}let i="";e?.tag==="italic"||e?.tag===void 0?i="*":e?.tag==="bold"?i="**":e?.tag==="bold-italic"&&(i="***");let n= ` $ { i } @ $ { this . name } $ { i } ` ;return this.content.inlines.length===1?n= ` $ { n } \u2014 $ { r } ` :this.content.inlines.length>1&&(n= ` $ { n }
$ { r } ` ),this.inline? ` { $ { n } } ` :n}};o(Mot,"renderInlineTag");o(Oot,"renderLinkDefault");hC=class{static{o(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;r<this.inlines.length;r++){let i=this.inlines[r],n=this.inlines[r+1];e+=i.toString(),n&&n.range.start.line>i.range.start.line&&(e+= `
` )}return e}toMarkdown(e){let r="";for(let i=0;i<this.inlines.length;i++){let n=this.inlines[i],a=this.inlines[i+1];r+=n.toMarkdown(e),a&&a.range.start.line>n.range.start.line&&(r+= `
` )}return r}},x7=class{static{o(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};o(Uke,"fillNewlines")});var fC,gq=P(()=>{"use strict";Ts();mq();fC=class{static{o(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&dq(r))return fq(r).toMarkdown({renderLink:o((n,a)=>this.documentationLinkRenderer(e,n,a),"renderLink"),renderTag:o(n=>this.documentationTagRenderer(e,n),"renderTag")})}documentationLinkRenderer(e,r,i){let n=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(n&&n.nameSegment){let a=n.nameSegment.range.start.line+1,s=n.nameSegment.range.start.character+1,l=n.documentUri.with({fragment: ` L$ { a } , $ { s } ` });return ` [ $ { i } ] ( $ { l . toString ( ) } ) ` }else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){let n=bs(e).localSymbols;if(!n)return;let a=e;do{let l=n.getStream(a).find(u=>u.name===r);if(l)return l;a=a. $ container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(n=>n.name===r)}}});var dC,yq=P(()=>{"use strict";IA();Bc();dC=class{static{o(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return IG(e)?e. $ comment:ZF(e. $ cstNode,this.grammarConfig().multilineCommentRules)?.text}}});var pC,vq,xq,bq=P(()=>{"use strict";Xl();BA();pC=class{static{o(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},vq=class{static{o(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){let r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){let i=await this.acquireParserWorker(r),n=new eo,a,s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(i)},this.terminationDelay)});return i.parse(e).then(l=>{let u=this.hydrator.hydrate(l);n.resolve(u)}).catch(l=>{n.reject(l)}).finally(()=>{s.dispose(),clearTimeout(a)}),n.promise}terminateWorker(e){e.terminate();let r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(let i of this.workerPool)if(i.ready)return i.lock(),i;let r=new eo;return e.onCancellationRequested(()=>{let i=this.queue.indexOf(r);i>=0&&this.queue.splice(i,1),r.reject(jl)}),this.queue.push(r),r.promise}},xq=class{static{o(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,i,n){this.onReadyEmitter=new xn.Emitter,this.deferred=new eo,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,r(a=>{let s=a;this.deferred.resolve(s),this.unlock()}),i(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(jl),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new eo,this.sendMessage(e),this.deferred.promise}}});var mC,Tq=P(()=>{"use strict";Yl();Xl();mC=class{static{o(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new $ r.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let r=DA();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,i= $ r.CancellationToken.None){let n=new eo,a={action:r,deferred:n,cancellationToken:i};return e.push(a),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.re
` .includes(e[r-1])}matchWhitespace(e,r,i,n){this.whitespaceRegExp.lastIndex=r;let a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,r,i,n){let a=this.getLineNumber(r,n);return hf(e,i,n,n+i.length,a,a,1,i.length)}getLineNumber(e,r){return e.substring(0,r).split(/ \r \n | \r | \n /).length}indentMatcher(e,r,i,n){if(!this.isStartOfLine(e,r))return null;let{currIndentLevel:a,prevIndentLevel:s,match:l}=this.matchWhitespace(e,r,i,n);return a<=s?null:(this.indentationStack.push(a),l)}dedentMatcher(e,r,i,n){if(!this.isStartOfLine(e,r))return null;let{currIndentLevel:a,prevIndentLevel:s,match:l}=this.matchWhitespace(e,r,i,n);if(a>=s)return null;let u=this.indentationStack.lastIndexOf(a);if(u===-1)return this.diagnostics.push({severity:"error",message: ` Invalid dedent level $ { a } at offset : $ { r } . Current indentation stack : $ { this . indentationStack } ` ,offset:r,length:l?.[0]?.length??0,line:this.getLineNumber(e,r),column:1}),null;let h=this.indentationStack.length-u-1,f=e.substring(0,r).match(/[ \r \n ]+ $ /)?.[0].length??1;for(let d=0;d<h;d++){let p=this.createIndentationTokenInstance(this.dedentTokenType,e,"",r-(f-1));i.push(p),this.indentationStack.pop()}return null}buildTerminalToken(e){let r=super.buildTerminalToken(e),{indentTokenName:i,dedentTokenName:n,whitespaceTokenName:a}=this.options;return r.name===i?this.indentTokenType:r.name===n?this.dedentTokenType:r.name===a?np({name:a,pattern:this.whitespaceRegExp,group:yn.SKIPPED}):r}flushRemainingDedents(e){let r=[];for(;this.indentationStack.length>1;)r.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],r}},Aq=class extends Ym{static{o(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof b7)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=m7){let i=super.tokenize(e),n=i.report;r?.mode==="full"&&i.tokens.push(...n.remainingDedents),n.remainingDedents=[];let{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,l=a.tokenTypeIdx,u=s.tokenTypeIdx,h=[],f=i.tokens.length-1;for(let d=0;d<f;d++){let p=i.tokens[d],m=i.tokens[d+1];if(p.tokenTypeIdx===l&&m.tokenTypeIdx===u){d++;continue}h.push(p)}return f>=0&&h.push(i.tokens[f]),i.tokens=h,i}}});var sCe=P(()=>{"use strict"});var oCe=P(()=>{"use strict";bq();dG();vA();aCe();mG();Rk();y7();CA();sCe();wA();gG()});var lCe=P(()=>{"use strict";SG();AG();_G();RG();DG();NG()});var cCe=P(()=>{"use strict";kq();IA()});var T7,Un,_q=P(()=>{"use strict";T7=class{static{o(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},Un={fileSystemProvider:o(()=>new T7,"fileSystemProvider")}});function Fot(){let t=ki(Wn(Un),Bot),e=ki(qn({shared:t}),Pot);return t.ServiceRegistry.register(e),e}function Jl(t){let e=Fot(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,va.parse( ` memory : / $ { r . n a m e ? ? " g r a m m a r " } . l a n g i u m ` ) ) , r } v a r P o t , B o t , u C e = P ( ( ) = > { " u s e s t r i c t " ; C q ( ) ; E q ( ) ; o l ( ) ; _ q ( ) ; W c ( ) ; P o t = { G r a m m a r : o ( ( ) = > { } , " G r a m m a r " ) , L a n g u a g e M e t a D a t a : o ( ( ) = > ( { c a s e I n s e n s i t i v e : ! 1 , f i l e E x t e n s i o n s : [ " . l a n g i u m " ] , l a n g u a g e I d : " l a n g i u m " } ) , " L a n g u a g e M e t a D a t a " ) } , B o t = { A s t R e f l e c t i o n : o ( ( ) = > n e w O y , " A s t R e f l e c t i o n " ) } ; o ( F o t , " c r e a t e M i n i m a l G r a m m a r S e r v i c e s " ) ; o ( J l , " l o a d G r a m m a r F r o m J s o n " ) } ) ; v a r l i = { } ; u r ( l i , { A s t U t i l s : ( ) = > X S , B i M a p : ( ) = > G m , C a n c e l l a t i o n : ( ) = > $ r , C o n t e x t C a c h e : ( ) = > V m , C s t U t i l s : ( ) = > m 6 , D O N E _ R E S U L T : ( ) = > x s , D e f e r r e d : ( ) = > e o , D i s p o s a b l e : ( ) = > x p , D i s p o s a b l e C a c h e : ( ) = > E v , D o c u m e n t C a c
` )}}},yf=class extends tc{static{o(this,"CommonValueConverter")}static{dt(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},Va=class extends mf{static{o(this,"AbstractMermaidTokenBuilder")}static{dt(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){let i=super.buildKeywordTokens(t,e,r);return i.forEach(n=>{this.keywords.has(n.name)&&n.PATTERN!==void 0&&(n.PATTERN=new RegExp(n.PATTERN.toString()+"(?:(?=%%)|(?! \\ S))"))}),i}},llt=class extends Va{static{o(this,"CommonTokenBuilder")}static{dt(this,"CommonTokenBuilder")}}});function zCe(t){let e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){let i={Treemap:e.checkSingleRoot.bind(e)};r.register(i,e)}}function O7(t=Un){let e=ki(Wn(t),xa),r=ki(qn({shared:e}),tW,M7);return e.ServiceRegistry.register(r),zCe(r),{shared:e,Treemap:r}}var clt,ult,hlt,flt,M7,nW=P(()=>{"use strict";ia();to();clt=class extends Va{static{o(this,"TreemapTokenBuilder")}static{dt(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},ult=/classDef \s +([A-Z_a-z] \w +)(?: \s +([^ \n \r ;]*))?;?/,hlt=class extends tc{static{o(this,"TreemapValueConverter")}static{dt(this,"TreemapValueConverter")}runCustomConverter(t,e,r){if(t.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(t.name==="SEPARATOR")return e.substring(1,e.length-1);if(t.name==="STRING2")return e.substring(1,e.length-1);if(t.name==="INDENTATION")return e.length;if(t.name==="ClassDef"){if(typeof e!="string")return e;let i=ult.exec(e);if(i)return{ $ type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}};o(zCe,"registerValidationChecks");dt(zCe,"registerValidationChecks");flt=class{static{o(this,"TreemapValidator")}static{dt(this,"TreemapValidator")}checkSingleRoot(t,e){let r;for(let i of t.TreemapRows)i.item&&(r===void 0&&i.indent===void 0?r=0:i.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):r!==void 0&&r>=parseInt(i.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},M7={parser:{TokenBuilder:dt(()=>new clt,"TokenBuilder"),ValueConverter:dt(()=>new hlt,"ValueConverter")},validation:{TreemapValidator:dt(()=>new flt,"TreemapValidator")}};o(O7,"createTreemapServices");dt(O7,"createTreemapServices")});function B7(t=Un){let e=ki(Wn(t),xa),r=ki(qn({shared:e}),iW,P7);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}var dlt,P7,aW=P(()=>{"use strict";ia();to();dlt=class extends tc{static{o(this,"WardleyValueConverter")}static{dt(this,"WardleyValueConverter")}runCustomConverter(t,e,r){switch(t.name.toUpperCase()){case"LINK_LABEL":return e.substring(1).trim();default:return}}},P7={parser:{ValueConverter:dt(()=>new dlt,"ValueConverter")}};o(B7,"createWardleyServices");dt(B7,"createWardleyServices")});function $ 7(t=Un){let e=ki(Wn(t),xa),r=ki(qn({shared:e}),Kq,F7);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}var plt,F7,sW=P(()=>{"use strict";ia();to();plt=class extends Va{static{o(this,"GitGraphTokenBuilder")}static{dt(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},F7={parser:{TokenBuilder:dt(()=>new plt,"TokenBuilder"),ValueConverter:dt(()=>new yf,"ValueConverter")}};o( $ 7,"createGitGraphServices");dt( $ 7,"createGitGraphServices")});function G7(t=Un){let e=ki(Wn(t),xa),r=ki(qn({shared:e}),Qq,z7);return e.ServiceRegistry.register(r),{shared:e,Info:r}}var mlt,z7,oW=P(()=>{"use strict";ia();to();mlt=class extends Va{static{o(this,"InfoTokenBuilder")}static{dt(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},z7={parser:{TokenBuilder:dt(()=>new mlt,"TokenBuilder"),ValueConverter:dt(()=>new yf,"ValueConverter")}};o(G7,"createInfoServices");dt(G7,"createInfoServices")});function q7(t=Un){let e=ki(Wn(t),xa),r=ki(qn({shared:e}),Zq,V7);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}var glt,V7,lW=P(()=>{"use strict";ia();to();glt=class extends Va{static{o(this,"PacketTokenBuilder")}static{dt(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},V7={parser:{TokenBuilder:dt(()=>new glt,"To
` ),r=t.parserErrors.map(i=>{let n=i.token.startLine!==void 0&&!isNaN(i.token.startLine)?i.token.startLine:"?",a=i.token.startColumn!==void 0&&!isNaN(i.token.startColumn)?i.token.startColumn:"?";return ` Parse error on line $ { n } , column $ { a } : $ { i . message } ` }).join( `
` );super( ` Parsing failed : $ { e } $ { r } ` ),this.result=t}static{dt(this,"MermaidParseError")}}});function Ss(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var vf=P(()=>{"use strict";o(Ss,"populateCommonDb")});var Ci,Z7=P(()=>{"use strict";Ci={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var Cp,J7=P(()=>{"use strict";Cp=class{constructor(e){this.init=e;this.records=this.init()}static{o(this,"ImperativeState")}reset(){this.records=this.init()}}});function dW(){return TI({length:7})}function Alt(t,e){let r=Object.create(null);return t.reduce((i,n)=>{let a=e(n);return r[a]||(r[a]=!0,i.push(n)),i},[])}function a4e(t,e,r){let i=t.indexOf(e);i===-1?t.push(r):t.splice(i,1,r)}function o4e(t){let e=t.reduce((n,a)=>n.seq>a.seq?n:a,t[0]),r="";t.forEach(function(n){n===e?r+=" *":r+=" |"});let i=[r,e.id,e.seq];for(let n in Ot.records.branches)Ot.records.branches.get(n)===e.id&&i.push(n);if(Q.debug(i.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let n=Ot.records.commits.get(e.parents[0]);a4e(t,e,n),e.parents[1]&&t.push(Ot.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let n=Ot.records.commits.get(e.parents[0]);a4e(t,e,n)}}t=Alt(t,n=>n.id),o4e(t)}var Slt,ig,Ot,_lt,Dlt,Llt,Rlt,Nlt,Ilt,Mlt,s4e,Olt,Plt,Blt,Flt, $ lt,l4e,zlt,Glt,Vlt,e_,pW=P(()=>{"use strict";bt();er();Sr();Vr();Ki();Z7();J7();wa();Slt=fr.gitGraph,ig=o(()=>fi({...Slt,...Lt().gitGraph}),"getConfig"),Ot=new Cp(()=>{let t=ig(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});o(dW,"getID");o(Alt,"uniqBy");_lt=o(function(t){Ot.records.direction=t},"setDirection"),Dlt=o(function(t){Q.debug("options str",t),t=t?.trim(),t=t||"{}";try{Ot.records.options=JSON.parse(t)}catch(e){Q.error("error while parsing gitGraph options",e.message)}},"setOptions"),Llt=o(function(){return Ot.records.options},"getOptions"),Rlt=o(function(t){let e=t.msg,r=t.id,i=t.type,n=t.tags;Q.info("commit",e,r,i,n),Q.debug("Entering commit:",e,r,i,n);let a=ig();r=lt.sanitizeText(r,a),e=lt.sanitizeText(e,a),n=n?.map(l=>lt.sanitizeText(l,a));let s={id:r||Ot.records.seq+"-"+dW(),message:e,seq:Ot.records.seq++,type:i??Ci.NORMAL,tags:n??[],parents:Ot.records.head==null?[]:[Ot.records.head.id],branch:Ot.records.currBranch};Ot.records.head=s,Q.info("main branch",a.mainBranchName),Ot.records.commits.has(s.id)&&Q.warn( ` Commit ID $ { s . id } already exists ` ),Ot.records.commits.set(s.id,s),Ot.records.branches.set(Ot.records.currBranch,s.id),Q.debug("in pushCommit "+s.id)},"commit"),Nlt=o(function(t){let e=t.name,r=t.order;if(e=lt.sanitizeText(e,ig()),Ot.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}" ) ` );Ot.records.branches.set(e,Ot.records.head!=null?Ot.records.head.id:null),Ot.records.branchConfig.set(e,{name:e,order:r}),s4e(e),Q.debug("in createBranch")},"branch"),Ilt=o(t=>{let e=t.branch,r=t.id,i=t.type,n=t.tags,a=ig();e=lt.sanitizeText(e,a),r&&(r=lt.sanitizeText(r,a));let s=Ot.records.branches.get(Ot.records.currBranch),l=Ot.records.branches.get(e),u=s?Ot.records.commits.get(s):void 0,h=l?Ot.records.commits.get(l):void 0;if(u&&h&&u.branch===e)throw new Error( ` Cannot merge branch '${e}' into itself . ` );if(Ot.records.currBranch===e){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error( ` Incorrect usage of "merge" . Current branch ( $ { Ot . records . currBranch } ) has no commits ` );throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:["commit"]},p}if(!Ot.records.branches.has(e)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:[ ` branch $ { e } ` ]},p}if(h===void 0||!h){let p=n
$ { i - a / 2 - oh / 2 } , $ { m + xf }
$ { i - a / 2 - oh / 2 } , $ { m - xf }
$ { r . posWithOffset - a / 2 - oh } , $ { m - p - xf }
$ { r . posWithOffset + a / 2 + oh } , $ { m - p - xf }
$ { r . posWithOffset + a / 2 + oh } , $ { m + p + xf }
$ { r . posWithOffset - a / 2 - oh } , $ { m + p + xf } ` ),h.attr("cy",m).attr("cx",i-a/2+oh/2).attr("r",1.5).attr("class","tag-hole"),Zr==="TB"||Zr==="BT"){let g=i+d;f.attr("class","tag-label-bkg").attr("points", `
2026-02-13 14:04:06 -07:00
$ { r . x } , $ { g + 2 }
$ { r . x } , $ { g - 2 }
2026-04-01 22:38:25 +00:00
$ { r . x + wp } , $ { g - p - 2 }
$ { r . x + wp + a + 4 } , $ { g - p - 2 }
$ { r . x + wp + a + 4 } , $ { g + p + 2 }
$ { r . x + wp } , $ { g + p + 2 } ` ).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),h.attr("cx",r.x+oh/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+i+")")}}}},"drawCommitTags"),oct=o(t=>{switch(t.customType??t.type){case Ci.NORMAL:return"commit-normal";case Ci.REVERSE:return"commit-reverse";case Ci.HIGHLIGHT:return"commit-highlight";case Ci.MERGE:return"commit-merge";case Ci.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),lct=o((t,e,r,i)=>{let n={x:0,y:0};if(t.parents.length>0){let a=d4e(t.parents);if(a){let s=i.get(a)??n;return e==="TB"?s.y+Ep:e==="BT"?(i.get(t.id)??n).y-Ep:s.x+Ep}}else return e==="TB"?t_:e==="BT"?(i.get(t.id)??n).y-Ep:0;return 0},"calculatePosition"),cct=o((t,e,r)=>{let i=Zr==="BT"&&r?e:e+wp,n=zo.get(t.branch)?.pos,a=Zr==="TB"||Zr==="BT"?zo.get(t.branch)?.pos:i;if(a===void 0||n===void 0)throw new Error( ` Position were undefined for commit $ { t . id } ` );let s=i_.has(ge().theme??""),l=Zr==="TB"||Zr==="BT"?i:n+(s?mW/2+1:-2);return{x:a,y:l,posWithOffset:i}},"getCommitPosition"),h4e=o((t,e,r,i)=>{let n=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels"),s=Zr==="TB"||Zr==="BT"?t_:0,l=[...e.keys()],u=i.parallelCommits??!1,h=o((d,p)=>{let m=e.get(d)?.seq,g=e.get(p)?.seq;return m!==void 0&&g!==void 0?m-g:0},"sortKeys"),f=l.sort(h);Zr==="BT"&&(u&&Jlt(f,e,s),f=f.reverse()),f.forEach(d=>{let p=e.get(d);if(!p)throw new Error( ` Commit not found for key $ { d } ` );u&&(s=lct(p,Zr,s,Go));let m=cct(p,s,u);if(r){let g=oct(p),y=p.customType??p.type,v=zo.get(p.branch)?.index??0;nct(n,p,m,g,v,y),act(a,p,m,s,i),sct(a,p,m,s)}Zr==="TB"||Zr==="BT"?Go.set(p.id,{x:m.x,y:m.posWithOffset}):Go.set(p.id,{x:m.posWithOffset,y:m.y}),s=Zr==="BT"&&u?s+Ep:s+Ep+wp,s>bf&&(bf=s)})},"drawCommits"),uct=o((t,e,r,i,n)=>{let s=(Zr==="TB"||Zr==="BT"?r.x<i.x:r.y<i.y)?e.branch:t.branch,l=o(h=>h.branch===s,"isOnBranchToGetCurve"),u=o(h=>h.seq>t.seq&&h.seq<e.seq,"isBetweenCommits");return[...n.values()].some(h=>u(h)&&l(h))},"shouldRerouteArrow"),EC=o((t,e,r=0)=>{let i=t+Math.abs(t-e)/2;if(r>5)return i;if(r_.every(s=>Math.abs(s-i)>=10))return r_.push(i),i;let a=Math.abs(t-e);return EC(t,e-a/5,r+1)},"findLane"),hct=o((t,e,r,i)=>{let{theme:n}=ge(),a=gW.has(n??""),s=Go.get(e.id),l=Go.get(r.id);if(s===void 0||l===void 0)throw new Error( ` Commit positions not found for commits $ { e . id } and $ { r . id } ` );let u=uct(e,r,s,l,i),h="",f="",d=0,p=0,m=zo.get(r.branch)?.index;r.type===Ci.MERGE&&e.id!==r.parents[0]&&(m=zo.get(e.branch)?.index);let g;if(u){h="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",d=10,p=10;let y=s.y<l.y?EC(s.y,l.y):EC(l.y,s.y),v=s.x<l.x?EC(s.x,l.x):EC(l.x,s.x);Zr==="TB"?s.x<l.x?g= ` M $ { s . x } $ { s . y } L $ { v - d } $ { s . y } $ { f } $ { v } $ { s . y + p } L $ { v } $ { l . y - d } $ { h } $ { v + p } $ { l . y } L $ { l . x } $ { l . y } ` :(m=zo.get(e.branch)?.index,g= ` M $ { s . x } $ { s . y } L $ { v + d } $ { s . y } $ { h } $ { v } $ { s . y + p } L $ { v } $ { l . y - d } $ { f } $ { v - p } $ { l . y } L $ { l . x } $ { l . y } ` ):Zr==="BT"?s.x<l.x?g= ` M $ { s . x } $ { s . y } L $ { v - d } $ { s . y } $ { h } $ { v } $ { s . y - p } L $ { v } $ { l . y + d } $ { f } $ { v + p } $ { l . y } L $ { l . x } $ { l . y } ` :(m=zo.get(e.branch)?.index,g= ` M $ { s . x } $ { s . y } L $ { v + d } $ { s . y } $ { f } $ { v } $ { s . y - p } L $ { v } $ { l . y + d } $ { h } $ { v - p } $ { l . y } L $ { l . x } $ { l . y } ` ):s.y<l.y?g= ` M $ { s . x } $ { s . y } L $ { s . x } $ { y - d } $ { h } $ { s . x + p } $ { y } L $ { l . x - d } $ { y } $ { f } $ { l . x } $ { y + p } L $ { l . x } $ { l . y } ` :(m=zo.get(e.branch)?.index,g= ` M $ { s . x } $ { s . y } L $ { s . x } $ { y + d } $ { f } $ { s . x + p } $ { y } L $ { l . x - d } $ { y } $ { h } $ { l . x } $ { y - p } L $ { l . x } $ { l . y } ` )}else h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",d=20,p=20,Zr==="TB"?(s.x<l.x&&(r.type===Ci.MERGE&&e.id!==r.parents[0]?g= ` M $ { s . x } $ { s . y } L $ { s . x } $ { l . y - d } $ { h } $ { s . x + p } $ { l . y } L $ { l . x } $ { l . y } ` :g= ` M $ { s . x } $ { s . y } L $ { l . x - d } $ { s . y } $ { f } $ { l . x } $ { s . y + p } L $ { l . x } $ { l . y } ` ),s.x>l.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",d=20,p=20,r.type===Ci.MERGE&&e.id!==r.parents[0]?g= ` M $ { s . x } $ { s . y } L $ { s . x } $ { l . y - d } $ { f } $ { s . x - p } $ { l . y } L $ { l . x } $ { l . y } ` :g= ` M $ { s . x } $ { s . y } L $ { l . x + d } $ { s . y } $ { h } $ { l . x } $ { s . y + p } L $ { l . x } $ { l . y } ` ),s.x===l.x&&(g= ` M $ { s . x } $ { s . y }
` ,"id:",e,r);let n=i.db;if(!n.getConfig){Q.error("getConfig method is not available on db");return}let a=n.getConfig(),s=a.rotateCommitLabel??!1;wC=n.getCommits();let l=n.getBranchesAsObjArray();Zr=n.getDirection();let u=Ze( ` [ id = "${e}" ] ` ),{look:h,theme:f,themeVariables:d}=ge(),{useGradient:p,gradientStart:m,gradientStop:g,filterColor:y}=d;if(p){let x=u.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");x.append("stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),x.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}h==="neo"&&i_.has(f??"")&&u.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",y);let v=0;l.forEach((x,b)=>{let T=f4e(x.name),w=u.append("g"),k=w.insert("g").attr("class","branchLabel"),C=k.insert("g").attr("class","label branch-label");C.node()?.appendChild(T);let E=T.getBBox();v=pct(x.name,v,b,E,s),C.remove(),k.remove(),w.remove()}),h4e(u,wC,!1,a),a.showBranches&&dct(u,l,a,e),fct(u,wC),h4e(u,wC,!0,a),Kt.insertTitle(u,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),yL(void 0,u,a.diagramPadding,a.useMaxWidth)},"draw"),p4e={draw:mct}});var g4e,y4e,gct,yct,vct,xct,bct,Tct,kct,Cct,v4e,x4e=P(()=>{"use strict";Sr();g4e=8,y4e=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),gct=new Set(["redux-color","redux-dark-color"]),yct=new Set(["neo","neo-dark"]),vct=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xct=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),bct=o(t=>{let{svgId:e}=t,r="";if(t.useGradient&&e)for(let i=0;i<t.THEME_COLOR_LIMIT;i++)r+= `
. label$ { i } { fill : $ { t . mainBkg } ; stroke : url ( $ { e } - gradient ) ; stroke - width : $ { t . strokeWidth } ; }
` ;return r},"genGitGraphGradient"),Tct=o(t=>{let e=Lt(),{theme:r,themeVariables:i}=e,{borderColorArray:n}=i,a=y4e.has(r);if(yct.has(r)){let s="";for(let l=0;l<t.THEME_COLOR_LIMIT;l++)if(l===0)s+= `
. branch - label$ { l } { fill : $ { t . nodeBorder } ; }
. commit$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - highlight$ { l } { stroke : $ { t . nodeBorder } ; fill : $ { t . nodeBorder } ; }
. arrow$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - bullets { fill : $ { t . nodeBorder } ; }
. commit - cherry - pick$ { l } { stroke : $ { t . nodeBorder } ; }
$ { bct ( t ) } ` ;else{let u=l%g4e;s+= `
. branch - label$ { l } { fill : $ { t [ "gitBranchLabel" + u ] } ; }
. commit$ { l } { stroke : $ { t [ "git" + u ] } ; fill : $ { t [ "git" + u ] } ; }
. commit - highlight$ { l } { stroke : $ { t [ "gitInv" + u ] } ; fill : $ { t [ "gitInv" + u ] } ; }
. arrow$ { l } { stroke : $ { t [ "git" + u ] } ; }
` }return s}else if(gct.has(r)){let s="";for(let l=0;l<t.THEME_COLOR_LIMIT;l++)if(l===0)s+= `
. branch - label$ { l } { fill : $ { t . nodeBorder } ; $ { a ? ` font-weight: ${ t . noteFontWeight } ` : "" } }
. commit$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - highlight$ { l } { stroke : $ { t . nodeBorder } ; fill : $ { t . mainBkg } ; }
. label$ { l } { fill : $ { t . mainBkg } ; stroke : $ { t . nodeBorder } ; stroke - width : $ { t . strokeWidth } ; $ { a ? ` font-weight: ${ t . noteFontWeight } ` : "" } }
. arrow$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - bullets { fill : $ { t . nodeBorder } ; }
` ;else{let u=l%n.length;s+= `
. branch - label$ { l } { fill : $ { t . nodeBorder } ; $ { a ? ` font-weight: ${ t . noteFontWeight } ` : "" } }
. commit$ { l } { stroke : $ { n [ u ] } ; fill : $ { n [ u ] } ; }
. commit - highlight$ { l } { stroke : $ { n [ u ] } ; fill : $ { n [ u ] } ; }
. label$ { l } { fill : $ { vct . has ( r ) ? t . mainBkg : n [ u ] } ; stroke : $ { n [ u ] } ; stroke - width : $ { t . strokeWidth } ; }
. arrow$ { l } { stroke : $ { n [ u ] } ; }
` }return s}else{let s="";for(let l=0;l<t.THEME_COLOR_LIMIT;l++)s+= `
. branch - label$ { l } { fill : $ { t . nodeBorder } ; $ { a ? ` font-weight: ${ t . noteFontWeight } ` : "" } }
. commit$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - highlight$ { l } { stroke : $ { t . nodeBorder } ; fill : $ { t . nodeBorder } ; }
. label$ { l } { fill : $ { t . mainBkg } ; stroke : $ { t . nodeBorder } ; stroke - width : $ { t . strokeWidth } ; $ { a ? ` font-weight: ${ t . noteFontWeight } ` : "" } }
. arrow$ { l } { stroke : $ { t . nodeBorder } ; }
. commit - bullets { fill : $ { t . nodeBorder } ; }
. commit - cherry - pick$ { l } { stroke : $ { t . nodeBorder } ; }
` ;return s}},"genColor"),kct=o(t=> ` $ { Array . from ( { length : t . THEME _COLOR _LIMIT } , ( e , r ) => r ) . map ( e => { let r = e % g4e ; return `
. branch - label$ { e } { fill : $ { t [ "gitBranchLabel" + r ] } ; }
. commit$ { e } { stroke : $ { t [ "git" + r ] } ; fill : $ { t [ "git" + r ] } ; }
. commit - highlight$ { e } { stroke : $ { t [ "gitInv" + r ] } ; fill : $ { t [ "gitInv" + r ] } ; }
. label$ { e } { fill : $ { t [ "git" + r ] } ; }
. arrow$ { e } { stroke : $ { t [ "git" + r ] } ; }
` }).join( `
` )} ` , "normalTheme" ) , Cct = o ( t => { let e = Lt ( ) , { theme : r } = e , i = xct . has ( r ) ; return `
2026-02-13 14:04:06 -07:00
. commit - id ,
. commit - msg ,
. branch - label {
fill : lightgrey ;
color : lightgrey ;
font - family : 'trebuchet ms' , verdana , arial , sans - serif ;
font - family : var ( -- mermaid - font - family ) ;
}
2026-04-01 22:38:25 +00:00
$ { i ? Tct ( t ) : kct ( t ) }
2026-02-13 14:04:06 -07:00
. branch {
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth } ;
stroke : $ { t . commitLineColor ? ? t . lineColor } ;
stroke - dasharray : $ { i ? "4 2" : "2" } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. commit - label { font - size : $ { t . commitLabelFontSize } ; fill : $ { i ? t . nodeBorder : t . commitLabelColor } ; $ { i ? ` font-weight: ${ t . noteFontWeight } ; ` : "" } }
. commit - label - bkg { font - size : $ { t . commitLabelFontSize } ; fill : $ { i ? "transparent" : t . commitLabelBackground } ; opacity : $ { i ? "" : . 5 } ; }
2026-02-13 14:04:06 -07:00
. tag - label { font - size : $ { t . tagLabelFontSize } ; fill : $ { t . tagLabelColor } ; }
2026-04-01 22:38:25 +00:00
. tag - label - bkg { fill : $ { i ? t . mainBkg : t . tagLabelBackground } ; stroke : $ { i ? t . nodeBorder : t . tagLabelBorder } ; $ { i ? ` filter: ${ t . dropShadow } ` : "" } }
2026-02-13 14:04:06 -07:00
. tag - hole { fill : $ { t . textColor } ; }
. commit - merge {
2026-04-01 22:38:25 +00:00
stroke : $ { i ? t . mainBkg : t . primaryColor } ;
fill : $ { i ? t . mainBkg : t . primaryColor } ;
2026-02-13 14:04:06 -07:00
}
. commit - reverse {
2026-04-01 22:38:25 +00:00
stroke : $ { i ? t . mainBkg : t . primaryColor } ;
fill : $ { i ? t . mainBkg : t . primaryColor } ;
stroke - width : $ { i ? t . strokeWidth : 3 } ;
2026-02-13 14:04:06 -07:00
}
. commit - highlight - outer {
}
. commit - highlight - inner {
2026-04-01 22:38:25 +00:00
stroke : $ { i ? t . mainBkg : t . primaryColor } ;
fill : $ { i ? t . mainBkg : t . primaryColor } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. arrow {
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
stroke - width : $ { y4e . has ( r ) ? t . strokeWidth : 8 } ;
stroke - linecap : round ;
fill : none
}
2026-02-13 14:04:06 -07:00
. gitTitleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . textColor } ;
}
2026-04-01 22:38:25 +00:00
` },"getStyles"),v4e=Cct});var b4e={};ur(b4e,{diagram:()=>wct});var wct,T4e=P(()=>{"use strict";u4e();pW();m4e();x4e();wct={parser:c4e,db:e_,renderer:p4e,styles:v4e}});var yW,w4e,E4e=P(()=>{"use strict";yW=(function(){var t=o(function(_,D,N,R){for(N=N||{},R=_.length;R--;N[_[R]]=D);return N},"o"),e=[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],r=[1,26],i=[1,27],n=[1,28],a=[1,29],s=[1,30],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,9],p=[1,10],m=[1,11],g=[1,12],y=[1,13],v=[1,14],x=[1,15],b=[1,16],T=[1,19],w=[1,20],k=[1,21],C=[1,22],E=[1,23],S=[1,25],L=[1,35],M={trace:o(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:o(function(D,N,R,B,O, $ ,z){var F= $ .length-1;switch(O){case 1:return $ [F-1];case 2:this. $ =[];break;case 3: $ [F-1].push( $ [F]),this. $ = $ [F-1];break;case 4:case 5:this. $ = $ [F];break;case 6:case 7:this. $ =[];break;case 8:B.setWeekday("monday");break;case 9:B.setWeekday("tuesday");break;case 10:B.setWeekday("wednesday");break;case 11:B.setWeekday("thursday");break;case 12:B.setWeekday("friday");break;case 13:B.setWeekday("saturday");break;case 14:B.setWeekday("sunday");break;case 15:B.setWeekend("friday");break;case 16:B.setWeekend("saturday");break;case 17:B.setDateFormat( $ [F].substr(11)),this. $ = $ [F].substr(11);break;case 18:B.enableInclusiveEndDates(),this. $ = $ [F].substr(18);break;case 19:B.TopAxis(),this. $ = $ [F].substr(8);break;case 20:B.setAxisFormat( $ [F].substr(11)),this. $ = $ [F].substr(11);break;case 21:B.setTickInterval( $ [F].substr(13)),this. $ = $ [F].substr(13);break;case 22:B.setExcludes( $ [F].substr(9)),this. $ = $ [F].substr(9);break;case 23:B.setIncludes( $ [F].substr(9)),this. $ = $ [F].substr(9);break;case 24:B.setTodayMarker( $ [F].substr(12)),this. $ = $ [F].substr(12);break;case 27:B.setDiagramTitle( $ [F].substr(6)),this. $ = $ [F].substr(6);break;case 28:this. $ = $ [F].trim(),B.setAccTitle(this. $ );break;case 29:case 30:this. $ = $ [F].trim(),B.setAccDescription(this. $ );break;case 31:B.addSection( $ [F].substr(8)),this. $ = $ [F].substr(8);break;case 33:B.addTask( $ [F-1], $ [F]),this. $ ="task";break;case 34:this. $ = $ [F-1],B.setClickEvent( $ [F-1], $ [F],null);break;case 35:this. $ = $ [F-2],B.setClickEvent( $ [F-2], $ [F-1], $ [F]);break;case 36:this. $ = $ [F-2],B.setClickEvent( $ [F-2], $ [F-1],null),B.setLink( $ [F-2], $ [F]);break;case 37:this. $ = $ [F-3],B.setClickEvent( $ [F-3], $ [F-2], $ [F-1]),B.setLink( $ [F-3], $ [F]);break;case 38:this. $ = $ [F-2],B.setClickEvent( $ [F-2], $ [F],null),B.setLink( $ [F-2], $ [F-1]);break;case 39:this. $ = $ [F-3],B.setClickEvent( $ [F-3], $ [F-1], $ [F]),B.setLink( $ [F-3], $ [F-2]);break;case 40:this. $ = $ [F-1],B.setLink( $ [F-1
` +ae.showPosition()+ `
Expecting ` +Ue.join(", ")+", got '"+(this.terminals_[Ee]||Ee)+"'":qe="Parse error on line "+(V+1)+": Unexpected "+(Ee==Z?"end of input":"'"+(this.terminals_[Ee]||Ee)+"'"),this.parseError(qe,{text:ae.match,token:this.terminals_[Ee]||Ee,line:ae.yylineno,loc:re,expected:Ue})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+we+", token: "+Ee);switch(Te[0]){case 1:R.push(Ee),O.push(ae.yytext), $ .push(ae.yylloc),R.push(Te[1]),Ee=null,Ne?(Ee=Ne,Ne=null):(H=ae.yyleng,F=ae.yytext,V=ae.yylineno,re=ae.yylloc,X>0&&X--);break;case 2:if(Ce=this.productions_[Te[1]][1],pe. $ =O[O.length-Ce],pe._ $ ={first_line: $ [ $ .length-(Ce||1)].first_line,last_line: $ [ $ .length-1].last_line,first_column: $ [ $ .length-(Ce||1)].first_column,last_column: $ [ $ .length-1].last_column},te&&(pe._ $ .range=[ $ [ $ .length-(Ce||1)].range[0], $ [ $ .length-1].range[1]]), $ e=this.performAction.apply(pe,[F,H,V,J.yy,Te[1],O, $ ].concat(Y)),typeof $ e<"u")return $ e;Ce&&(R=R.slice(0,-1*Ce*2),O=O.slice(0,-1*Ce), $ = $ .slice(0,-1*Ce)),R.push(this.productions_[Te[1]][0]),O.push(pe. $ ), $ .push(pe._ $ ),Fe=z[R[R.length-2]][R[R.length-1]],R.push(Fe);break;case 3:return!0}}return!0},"parse")},I=(function(){var _={EOF:1,parseError:o(function(N,R){if(this.yy.parser)this.yy.parser.parseError(N,R);else throw new Error(N)},"parseError"),setInput:o(function(D,N){return this.yy=N||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var N=D.match(/(?: \r \n ?| \n ).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),D},"input"),unput:o(function(D){var N=D.length,R=D.split(/(?: \r \n ?| \n )/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var B=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var O=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===B.length?this.yylloc.first_column:0)+B[B.length-R.length].length-R[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[O[0],O[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(D){this.unput(this.match.slice(D))},"less"),pastInput:o(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var D=this.pastInput(),N=new Array(D.length+1).join("-");return D+this.upcomingInput()+ `
` +N+"^"},"showPosition"),test_match:o(function(D,N){var R,B,O;if(this.options.backtrack_lexer&&(O={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&&(O.yylloc.range=this.yylloc.range.slice(0))),B=D[0].match(/(?: \r \n ?| \n ).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],R=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var $ in O)this[ $ ]=O[ $ ];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,N,R,B;this._more||(this.yytext="",this.match="");for(var O=this._currentRules(), $ =0; $ <O.length; $ ++)if(R=this._input.match(this.rules[O[ $ ]]),R&&(!N||R[0].length>N[0].length)){if(N=R,B= $ ,this.options.backtrack_lexer){if(D=this.test_match(R,O[ $ ]),D!==!1)return D;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(D=this.test_match(N,O[B]),D!==!1?D:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var N=this.next();return N||this.lex()},"lex"),begin:o(function(N){this.conditionStack.push(N)},"begin"),popState:o(function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},"topState"),pushState:o(function(N){this.begin(N)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(N,R,B,O){var $ =O;switch(B){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 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}}};return _})();M.lexer=I;function A(){this.yy={}}return o(A,"Parser"),A.prototype=M,M.Parser=A,new A})();yW.parser=yW;w4e=yW});var S4e=ar((vW,xW)=>{"use strict";(function(t,e){typeof vW=="object"&&typeof xW<"u"?xW.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof global
2026-02-13 14:04:06 -07:00
. mermaid - main - font {
font - family : $ { t . fontFamily } ;
}
. exclude - range {
fill : $ { t . excludeBkgColor } ;
}
. section {
stroke : none ;
opacity : 0.2 ;
}
. section0 {
fill : $ { t . sectionBkgColor } ;
}
. section2 {
fill : $ { t . sectionBkgColor2 } ;
}
. section1 ,
. section3 {
fill : $ { t . altSectionBkgColor } ;
opacity : 0.2 ;
}
. sectionTitle0 {
fill : $ { t . titleColor } ;
}
. sectionTitle1 {
fill : $ { t . titleColor } ;
}
. sectionTitle2 {
fill : $ { t . titleColor } ;
}
. sectionTitle3 {
fill : $ { t . titleColor } ;
}
. sectionTitle {
text - anchor : start ;
font - family : $ { t . fontFamily } ;
}
/* Grid and axis */
. grid . tick {
stroke : $ { t . gridColor } ;
opacity : 0.8 ;
shape - rendering : crispEdges ;
}
. grid . tick text {
font - family : $ { t . fontFamily } ;
fill : $ { t . textColor } ;
}
. grid path {
stroke - width : 0 ;
}
/* Today line */
. today {
fill : none ;
stroke : $ { t . todayLineColor } ;
stroke - width : 2 px ;
}
/* Task styling */
/* Default task */
. task {
stroke - width : 2 ;
}
. taskText {
text - anchor : middle ;
font - family : $ { t . fontFamily } ;
}
. taskTextOutsideRight {
fill : $ { t . taskTextDarkColor } ;
text - anchor : start ;
font - family : $ { t . fontFamily } ;
}
. taskTextOutsideLeft {
fill : $ { t . taskTextDarkColor } ;
text - anchor : end ;
}
/* Special case clickable */
. task . clickable {
cursor : pointer ;
}
. taskText . clickable {
cursor : pointer ;
fill : $ { t . taskTextClickableColor } ! important ;
font - weight : bold ;
}
. taskTextOutsideLeft . clickable {
cursor : pointer ;
fill : $ { t . taskTextClickableColor } ! important ;
font - weight : bold ;
}
. taskTextOutsideRight . clickable {
cursor : pointer ;
fill : $ { t . taskTextClickableColor } ! important ;
font - weight : bold ;
}
/* Specific task settings for the sections*/
. taskText0 ,
. taskText1 ,
. taskText2 ,
. taskText3 {
fill : $ { t . taskTextColor } ;
}
. task0 ,
. task1 ,
. task2 ,
. task3 {
fill : $ { t . taskBkgColor } ;
stroke : $ { t . taskBorderColor } ;
}
. taskTextOutside0 ,
. taskTextOutside2
{
fill : $ { t . taskTextOutsideColor } ;
}
. taskTextOutside1 ,
. taskTextOutside3 {
fill : $ { t . taskTextOutsideColor } ;
}
/* Active task */
. active0 ,
. active1 ,
. active2 ,
. active3 {
fill : $ { t . activeTaskBkgColor } ;
stroke : $ { t . activeTaskBorderColor } ;
}
. activeText0 ,
. activeText1 ,
. activeText2 ,
. activeText3 {
fill : $ { t . taskTextDarkColor } ! important ;
}
/* Completed task */
. done0 ,
. done1 ,
. done2 ,
. done3 {
stroke : $ { t . doneTaskBorderColor } ;
fill : $ { t . doneTaskBkgColor } ;
stroke - width : 2 ;
}
. doneText0 ,
. doneText1 ,
. doneText2 ,
. doneText3 {
fill : $ { t . taskTextDarkColor } ! important ;
}
2026-03-11 20:55:37 +00:00
/ * D o n e t a s k t e x t d i s p l a y e d o u t s i d e t h e b a r s i t s a g a i n s t t h e d i a g r a m b a c k g r o u n d ,
not against the done - task bar , so it must use the outside / contrast color . * /
. doneText0 . taskTextOutsideLeft ,
. doneText0 . taskTextOutsideRight ,
. doneText1 . taskTextOutsideLeft ,
. doneText1 . taskTextOutsideRight ,
. doneText2 . taskTextOutsideLeft ,
. doneText2 . taskTextOutsideRight ,
. doneText3 . taskTextOutsideLeft ,
. doneText3 . taskTextOutsideRight {
fill : $ { t . taskTextOutsideColor } ! important ;
}
2026-02-13 14:04:06 -07:00
/* Tasks on the critical line */
. crit0 ,
. crit1 ,
. crit2 ,
. crit3 {
stroke : $ { t . critBorderColor } ;
fill : $ { t . critBkgColor } ;
stroke - width : 2 ;
}
. activeCrit0 ,
. activeCrit1 ,
. activeCrit2 ,
. activeCrit3 {
stroke : $ { t . critBorderColor } ;
fill : $ { t . activeTaskBkgColor } ;
stroke - width : 2 ;
}
. doneCrit0 ,
. doneCrit1 ,
. doneCrit2 ,
. doneCrit3 {
stroke : $ { t . critBorderColor } ;
fill : $ { t . doneTaskBkgColor } ;
stroke - width : 2 ;
cursor : pointer ;
shape - rendering : crispEdges ;
}
. milestone {
transform : rotate ( 45 deg ) scale ( 0.8 , 0.8 ) ;
}
. milestoneText {
font - style : italic ;
}
. doneCritText0 ,
. doneCritText1 ,
. doneCritText2 ,
. doneCritText3 {
fill : $ { t . taskTextDarkColor } ! important ;
}
2026-03-11 20:55:37 +00:00
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
. doneCritText0 . taskTextOutsideLeft ,
. doneCritText0 . taskTextOutsideRight ,
. doneCritText1 . taskTextOutsideLeft ,
. doneCritText1 . taskTextOutsideRight ,
. doneCritText2 . taskTextOutsideLeft ,
. doneCritText2 . taskTextOutsideRight ,
. doneCritText3 . taskTextOutsideLeft ,
. doneCritText3 . taskTextOutsideRight {
fill : $ { t . taskTextOutsideColor } ! important ;
}
2026-02-13 14:04:06 -07:00
. vert {
stroke : $ { t . vertLineColor } ;
}
. vertText {
font - size : 15 px ;
text - anchor : middle ;
fill : $ { t . vertLineColor } ! important ;
}
. activeCritText0 ,
. activeCritText1 ,
. activeCritText2 ,
. activeCritText3 {
fill : $ { t . taskTextDarkColor } ! important ;
}
. titleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . titleColor || t . textColor } ;
font - family : $ { t . fontFamily } ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),Q4e=dut});var J4e={};ur(J4e,{diagram:()=>put});var put,ewe=P(()=>{"use strict";E4e();U4e();K4e();Z4e();put={parser:w4e,db:q4e,renderer:X4e,styles:Q4e}});var iwe,nwe=P(()=>{"use strict";sh();bt();iwe={parse:o(async t=>{let e=await ba("info",t);Q.debug(e)},"parse")}});var vut,xut,awe,swe=P(()=>{"use strict";vut={version:"11.14.0"},xut=o(()=>vut.version,"getVersion"),awe={getVersion:xut}});var Fi,ro=P(()=>{"use strict";Pr();Ut();Fi=o(t=>{let{securityLevel:e}=ge(),r=Ze("body");if(e==="sandbox"){let a=Ze( ` # i$ { t } ` ).node()?.contentDocument??document;r=Ze(a.body)}return r.select( ` # $ { t } ` )},"selectSvgElement")});var but,owe,lwe=P(()=>{"use strict";bt();ro();Xi();but=o((t,e,r)=>{Q.debug( ` rendering info diagram
` +t);let i=Fi(e);Hr(i,100,400,!0),i.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"),owe={draw:but}});var cwe={};ur(cwe,{diagram:()=>Tut});var Tut,uwe=P(()=>{"use strict";nwe();swe();lwe();Tut={parser:iwe,db:awe,renderer:owe}});var dwe, $ W,l_,zW,wut,Eut,Sut,Aut,_ut,Dut,Lut,c_,GW=P(()=>{"use strict";bt();Ki();wa();dwe=fr.pie, $ W={sections:new Map,showData:!1,config:dwe},l_= $ W.sections,zW= $ W.showData,wut=structuredClone(dwe),Eut=o(()=>structuredClone(wut),"getConfig"),Sut=o(()=>{l_=new Map,zW= $ W.showData,wr()},"clear"),Aut=o(({label:t,value:e})=>{if(e<0)throw new Error( ` "${t}" has invalid value : $ { e } . Negative values are not allowed in pie charts . All slice values must be >= 0. ` );l_.has(t)||(l_.set(t,e),Q.debug( ` added new section : $ { t } , with value : $ { e } ` ))},"addSection"),_ut=o(()=>l_,"getSections"),Dut=o(t=>{zW=t},"setShowData"),Lut=o(()=>zW,"getShowData"),c_={getConfig:Eut,clear:Sut,setDiagramTitle:Mr,getDiagramTitle:Nr,setAccTitle:Ar,getAccTitle:Dr,setAccDescription:Lr,getAccDescription:Rr,addSection:Aut,getSections:_ut,setShowData:Dut,getShowData:Lut}});var Rut,pwe,mwe=P(()=>{"use strict";sh();bt();vf();GW();Rut=o((t,e)=>{Ss(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),pwe={parse:o(async t=>{let e=await ba("pie",t);Q.debug(e),Rut(e,c_)},"parse")}});var Nut,gwe,ywe=P(()=>{"use strict";Nut=o(t=> `
2026-02-13 14:04:06 -07:00
. pieCircle {
stroke : $ { t . pieStrokeColor } ;
stroke - width : $ { t . pieStrokeWidth } ;
opacity : $ { t . pieOpacity } ;
}
. pieOuterCircle {
stroke : $ { t . pieOuterStrokeColor } ;
stroke - width : $ { t . pieOuterStrokeWidth } ;
fill : none ;
}
. pieTitleText {
text - anchor : middle ;
font - size : $ { t . pieTitleTextSize } ;
fill : $ { t . pieTitleTextColor } ;
font - family : $ { t . fontFamily } ;
}
. slice {
font - family : $ { t . fontFamily } ;
fill : $ { t . pieSectionTextColor } ;
font - size : $ { t . pieSectionTextSize } ;
// fill: white;
}
. legend text {
fill : $ { t . pieLegendTextColor } ;
font - family : $ { t . fontFamily } ;
font - size : $ { t . pieLegendTextSize } ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),gwe=Nut});var Iut,Mut,vwe,xwe=P(()=>{"use strict";Pr();Ut();bt();ro();Xi();er();Iut=o(t=>{let e=[...t.values()].reduce((n,a)=>n+a,0),r=[...t.entries()].map(([n,a])=>({label:n,value:a})).filter(n=>n.value/e*100>=1);return u3().value(n=>n.value).sort(null)(r)},"createPieArcs"),Mut=o((t,e,r,i)=>{Q.debug( ` rendering pie chart
` +t);let n=i.db,a=ge(),s=fi(n.getConfig(),a.pie),l=40,u=18,h=4,f=450,d=f,p=Fi(e),m=p.append("g");m.attr("transform","translate("+d/2+","+f/2+")");let{themeVariables:g}=a,[y]= $ s(g.pieOuterStrokeWidth);y??=2;let v=s.textPosition,x=Math.min(d,f)/2-l,b=kc().innerRadius(0).outerRadius(x),T=kc().innerRadius(x*v).outerRadius(x*v);m.append("circle").attr("cx",0).attr("cy",0).attr("r",x+y/2).attr("class","pieOuterCircle");let w=n.getSections(),k=Iut(w),C=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],E=0;w.forEach(F=>{E+=F});let S=k.filter(F=>(F.data.value/E*100).toFixed(0)!=="0"),L=jo(C).domain([...w.keys()]);m.selectAll("mySlices").data(S).enter().append("path").attr("d",b).attr("fill",F=>L(F.data.label)).attr("class","pieCircle"),m.selectAll("mySlices").data(S).enter().append("text").text(F=>(F.data.value/E*100).toFixed(0)+"%").attr("transform",F=>"translate("+T.centroid(F)+")").style("text-anchor","middle").attr("class","slice");let M=m.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText"),I=[...w.entries()].map(([F,V])=>({label:F,value:V})),A=m.selectAll(".legend").data(I).enter().append("g").attr("class","legend").attr("transform",(F,V)=>{let H=u+h,X=H*I.length/2,W=12*u,Z=V*H-X;return"translate("+W+","+Z+")"});A.append("rect").attr("width",u).attr("height",u).style("fill",F=>L(F.label)).style("stroke",F=>L(F.label)),A.append("text").attr("x",u+h).attr("y",u-h).text(F=>n.getShowData()? ` $ { F . label } [ $ { F . value } ] ` :F.label);let _=Math.max(...A.selectAll("text").nodes().map(F=>F?.getBoundingClientRect().width??0)),D=d+l+u+h+_,N=M.node()?.getBoundingClientRect().width??0,R=d/2-N/2,B=d/2+N/2,O=Math.min(0,R),z=Math.max(D,B)-O;p.attr("viewBox", ` $ { O } 0 $ { z } $ { f } ` ),Hr(p,f,z,s.useMaxWidth)},"draw"),vwe={draw:Mut}});var bwe={};ur(bwe,{diagram:()=>Out});var Out,Twe=P(()=>{"use strict";mwe();GW();ywe();xwe();Out={parser:pwe,db:c_,renderer:vwe,styles:gwe}});var VW,Cwe,wwe=P(()=>{"use strict";VW=(function(){var t=o(function(ue,G,se,le){for(se=se||{},le=ue.length;le--;se[ue[le]]=G);return se},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[1,7],s=[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],l=[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],u=[55,56,57],h=[2,36],f=[1,37],d=[1,36],p=[1,38],m=[1,35],g=[1,43],y=[1,41],v=[1,14],x=[1,23],b=[1,18],T=[1,19],w=[1,20],k=[1,21],C=[1,22],E=[1,24],S=[1,25],L=[1,26],M=[1,27],I=[1,28],A=[1,29],_=[1,32],D=[1,33],N=[1,34],R=[1,39],B=[1,40],O=[1,42], $ =[1,44],z=[1,62],F=[1,61],V=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],H=[1,65],X=[1,66],W=[1,67],Z=[1,68],Y=[1,69],ae=[1,70],J=[1,71],ee=[1,72],re=[1,73],te=[1,74],be=[1,75],de=[1,76],Ee=[4,5,6,7,8,9,10,11,12,13,14,15,18],Ne=[1,90],we=[1,91],Te=[1,92],De=[1,99], $ e=[1,93],pe=[1,96],Je=[1,94],Ce=[1,95],Fe=[1,97],Ue=[1,98],qe=[1,102],Me=[10,55,56,57],He=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],K={trace:o(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",3
` +fe.showPosition()+ `
Expecting ` +pr.join(", ")+", got '"+(this.terminals_[ct]||ct)+"'":Ii="Parse error on line "+(Oe+1)+": Unexpected "+(ct==ce?"end of input":"'"+(this.terminals_[ct]||ct)+"'"),this.parseError(Ii,{text:fe.match,token:this.terminals_[ct]||ct,line:fe.yylineno,loc:Pt,expected:pr})}if(yt[0]instanceof Array&&yt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+ct);switch(yt[0]){case 1:le.push(ct),me.push(fe.yytext),ye.push(fe.yylloc),le.push(yt[1]),ct=null,Dt?(ct=Dt,Dt=null):(We=fe.yyleng,ve=fe.yytext,Oe=fe.yylineno,Pt=fe.yylloc,Be>0&&Be--);break;case 2:if(dr=this.productions_[yt[1]][1],Qt. $ =me[me.length-dr],Qt._ $ ={first_line:ye[ye.length-(dr||1)].first_line,last_line:ye[ye.length-1].last_line,first_column:ye[ye.length-(dr||1)].first_column,last_column:ye[ye.length-1].last_column},St&&(Qt._ $ .range=[ye[ye.length-(dr||1)].range[0],ye[ye.length-1].range[1]]),hr=this.performAction.apply(Qt,[ve,We,Oe,ut.yy,yt[1],me,ye].concat(it)),typeof hr<"u")return hr;dr&&(le=le.slice(0,-1*dr*2),me=me.slice(0,-1*dr),ye=ye.slice(0,-1*dr)),le.push(this.productions_[yt[1]][0]),me.push(Qt. $ ),ye.push(Qt._ $ ),ir=Re[le[le.length-2]][le[le.length-1]],le.push(ir);break;case 3:return!0}}return!0},"parse")},oe=(function(){var ue={EOF:1,parseError:o(function(se,le){if(this.yy.parser)this.yy.parser.parseError(se,le);else throw new Error(se)},"parseError"),setInput:o(function(G,se){return this.yy=se||this.yy||{},this._input=G,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var G=this._input[0];this.yytext+=G,this.yyleng++,this.offset++,this.match+=G,this.matched+=G;var se=G.match(/(?: \r \n ?| \n ).*/g);return se?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),G},"input"),unput:o(function(G){var se=G.length,le=G.split(/(?: \r \n ?| \n )/g);this._input=G+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var ke=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),le.length-1&&(this.yylineno-=le.length-1);var me=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:le?(le.length===ke.length?this.yylloc.first_column:0)+ke[ke.length-le.length].length-le[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[me[0],me[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(G){this.unput(this.match.slice(G))},"less"),pastInput:o(function(){var G=this.matched.substr(0,this.matched.length-this.match.length);return(G.length>20?"...":"")+G.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var G=this.match;return G.length<20&&(G+=this._input.substr(0,20-G.length)),(G.substr(0,20)+(G.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var G=this.pastInput(),se=new Array(G.length+1).join("-");return G+this.upcomingInput()+ `
` +se+"^"},"showPosition"),test_match:o(function(G,se){var le,ke,me;if(this.options.backtrack_lexer&&(me={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&&(me.yylloc.range=this.yylloc.range.slice(0))),ke=G[0].match(/(?: \r \n ?| \n ).*/g),ke&&(this.yylineno+=ke.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ke?ke[ke.length-1].length-ke[ke.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+G[0].length},this.yytext+=G[0],this.match+=G[0],this.matches=G,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(G[0].length),this.matched+=G[0],le=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),le)return le;if(this._backtrack){for(var ye in me)this[ye]=me[ye];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var G,se,le,ke;this._more||(this.yytext="",this.match="");for(var me=this._currentRules(),ye=0;ye<me.length;ye++)if(le=this._input.match(this.rules[me[ye]]),le&&(!se||le[0].length>se[0].length)){if(se=le,ke=ye,this.options.backtrack_lexer){if(G=this.test_match(le,me[ye]),G!==!1)return G;if(this._backtrack){se=!1;continue}else return!1}else if(!this.options.flex)break}return se?(G=this.test_match(se,me[ke]),G!==!1?G:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var se=this.next();return se||this.lex()},"lex"),begin:o(function(se){this.conditionStack.push(se)},"begin"),popState:o(function(){var se=this.conditionStack.length-1;return se>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(se){return se=this.conditionStack.length-1-Math.abs(se||0),se>=0?this.conditionStack[se]:"INITIAL"},"topState"),pushState:o(function(se){this.begin(se)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(se,le,ke,me){var ye=me;switch(ke){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;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;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;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 } } } ; return ue } ) ( ) ; K . lexer = oe ; function U ( ) { this . yy = { } } return o ( U , "Parser" ) , U . prototype = K , K . Parser = U , new U } ) ( ) ; VW . parser = VW ; Cwe = VW } ) ; var io , u _ , Ewe = P ( ( ) => { "use strict" ; Pr ( ) ; wa ( ) ; bt ( ) ; wg ( ) ; io = Zc ( ) , u _ = class { constructor ( ) { this . classes = new Map ; this . config = this . getDefaultConfig ( ) , this . themeConfig = this . getDefaultThemeConfig ( ) , this . data = this . getDefaultData
` +t);let u=l.securityLevel,h;u==="sandbox"&&(h=Ze("#i"+e));let d=(u==="sandbox"?Ze(h.nodes()[0].contentDocument.body):Ze("body")).select( ` [ id = "${e}" ] ` ),p=d.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;Hr(d,g,m,l.quadrantChart?.useMaxWidth??!0),d.attr("viewBox","0 0 "+m+" "+g),i.db.setHeight(g),i.db.setWidth(m);let y=i.db.getQuadrantData(),v=p.append("g").attr("class","quadrants"),x=p.append("g").attr("class","border"),b=p.append("g").attr("class","data-points"),T=p.append("g").attr("class","labels"),w=p.append("g").attr("class","title");y.title&&w.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",n(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",s(y.title)).text(y.title.text),y.borderLines&&x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",S=>S.x1).attr("y1",S=>S.y1).attr("x2",S=>S.x2).attr("y2",S=>S.y2).style("stroke",S=>S.strokeFill).style("stroke-width",S=>S.strokeWidth);let k=v.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");k.append("rect").attr("x",S=>S.x).attr("y",S=>S.y).attr("width",S=>S.width).attr("height",S=>S.height).attr("fill",S=>S.fill),k.append("text").attr("x",0).attr("y",0).attr("fill",S=>S.text.fill).attr("font-size",S=>S.text.fontSize).attr("dominant-baseline",S=>n(S.text.horizontalPos)).attr("text-anchor",S=>a(S.text.verticalPos)).attr("transform",S=>s(S.text)).text(S=>S.text.text),T.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(S=>S.text).attr("fill",S=>S.fill).attr("font-size",S=>S.fontSize).attr("dominant-baseline",S=>n(S.horizontalPos)).attr("text-anchor",S=>a(S.verticalPos)).attr("transform",S=>s(S));let E=b.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");E.append("circle").attr("cx",S=>S.x).attr("cy",S=>S.y).attr("r",S=>S.radius).attr("fill",S=>S.fill).attr("stroke",S=>S.strokeColor).attr("stroke-width",S=>S.strokeWidth),E.append("text").attr("x",0).attr("y",0).text(S=>S.text.text).attr("fill",S=>S.text.fill).attr("font-size",S=>S.text.fontSize).attr("dominant-baseline",S=>n(S.text.horizontalPos)).attr("text-anchor",S=>a(S.text.verticalPos)).attr("transform",S=>s(S.text))},"draw"),Rwe={draw:Jut}});var Iwe={};ur(Iwe,{diagram:()=>eht});var eht,Mwe=P(()=>{"use strict";wwe();Lwe();Nwe();eht={parser:Cwe,db:Dwe,renderer:Rwe,styles:o(()=>"","styles")}});var UW,Bwe,Fwe=P(()=>{"use strict";UW=(function(){var t=o(function(N,R,B,O){for(B=B||{},O=N.length;O--;B[N[O]]=R);return B},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],n=[1,5],a=[1,6],s=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],f=[1,28],d=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],v=[1,34],x=[1,35],b=[1,36],T=[1,37],w=[1,43],k=[1,42],C=[1,47],E=[1,50],S=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],M=[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],I=[1,64],A={trace:o(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"
` +ee.showPosition()+ `
Expecting ` +Me.join(", ")+", got '"+(this.terminals_[we]||we)+"'":He="Parse error on line "+(X+1)+": Unexpected "+(we==ae?"end of input":"'"+(this.terminals_[we]||we)+"'"),this.parseError(He,{text:ee.match,token:this.terminals_[we]||we,line:ee.yylineno,loc:be,expected:Me})}if( $ e[0]instanceof Array&& $ e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+De+", token: "+we);switch( $ e[0]){case 1:O.push(we),z.push(ee.yytext),F.push(ee.yylloc),O.push( $ e[1]),we=null,Te?(we=Te,Te=null):(W=ee.yyleng,H=ee.yytext,X=ee.yylineno,be=ee.yylloc,Z>0&&Z--);break;case 2:if(Ue=this.productions_[ $ e[1]][1],Ce. $ =z[z.length-Ue],Ce._ $ ={first_line:F[F.length-(Ue||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Ue||1)].first_column,last_column:F[F.length-1].last_column},de&&(Ce._ $ .range=[F[F.length-(Ue||1)].range[0],F[F.length-1].range[1]]),Je=this.performAction.apply(Ce,[H,W,X,re.yy, $ e[1],z,F].concat(J)),typeof Je<"u")return Je;Ue&&(O=O.slice(0,-1*Ue*2),z=z.slice(0,-1*Ue),F=F.slice(0,-1*Ue)),O.push(this.productions_[ $ e[1]][0]),z.push(Ce. $ ),F.push(Ce._ $ ),qe=V[O[O.length-2]][O[O.length-1]],O.push(qe);break;case 3:return!0}}return!0},"parse")},_=(function(){var N={EOF:1,parseError:o(function(B,O){if(this.yy.parser)this.yy.parser.parseError(B,O);else throw new Error(B)},"parseError"),setInput:o(function(R,B){return this.yy=B||this.yy||{},this._input=R,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var R=this._input[0];this.yytext+=R,this.yyleng++,this.offset++,this.match+=R,this.matched+=R;var B=R.match(/(?: \r \n ?| \n ).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),R},"input"),unput:o(function(R){var B=R.length,O=R.split(/(?: \r \n ?| \n )/g);this._input=R+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var $ =this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length=== $ .length?this.yylloc.first_column:0)+ $ [ $ .length-O.length].length-O[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(R){this.unput(this.match.slice(R))},"less"),pastInput:o(function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var R=this.pastInput(),B=new Array(R.length+1).join("-");return R+this.upcomingInput()+ `
` +B+"^"},"showPosition"),test_match:o(function(R,B){var O, $ ,z;if(this.options.backtrack_lexer&&(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(z.yylloc.range=this.yylloc.range.slice(0))), $ =R[0].match(/(?: \r \n ?| \n ).*/g), $ &&(this.yylineno+= $ .length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column: $ ? $ [ $ .length-1].length- $ [ $ .length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+R[0].length},this.yytext+=R[0],this.match+=R[0],this.matches=R,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(R[0].length),this.matched+=R[0],O=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var F in z)this[F]=z[F];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,B,O, $ ;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),F=0;F<z.length;F++)if(O=this._input.match(this.rules[z[F]]),O&&(!B||O[0].length>B[0].length)){if(B=O, $ =F,this.options.backtrack_lexer){if(R=this.test_match(O,z[F]),R!==!1)return R;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(R=this.test_match(B,z[ $ ]),R!==!1?R:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var B=this.next();return B||this.lex()},"lex"),begin:o(function(B){this.conditionStack.push(B)},"begin"),popState:o(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:o(function(B){this.begin(B)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(B,O, $ ,z){var F=z;switch( $ ){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;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 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 31;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 27;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46: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,/^(?:xychart \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 , 18 , 21 , 22 , 24 , 25 , 26 , 27 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 ] , inclusive : ! 0 } , data : { rules : [ 0 , 1 , 3 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 18 , 21 , 22 , 23 , 26 , 27 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 ] , inclusive : ! 0 } , axis _band _data : { rules : [ 0 , 1 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 18 , 21 , 22 , 25 , 26 , 27 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 ] , inclusive : ! 0 } , axis _data : { rules : [ 0 , 1 , 2 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 24 , 26 , 27 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 ] , 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 : [ 28 , 29 ] , inclusive : ! 1 } , INITIAL : { rules : [ 0 , 1 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 18 , 21 , 22 , 26 , 27 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 ] , inclusive : ! 0 } } } ; return N } ) ( ) ; A . l
` +t);let d=Fi(e),p=d.append("g").attr("class","main"),m=p.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");Hr(d,s.height,s.width,!0),d.attr("viewBox", ` 0 0 $ { s . width } $ { s . height } ` ),m.attr("fill",a.backgroundColor),n.setTmpSVGG(d.append("g").attr("class","mermaid-tmp-group"));let g=n.getDrawableElem(),y={};function v(T){let w=p,k="";for(let[C]of T.entries()){let E=p;C>0&&y[k]&&(E=y[k]),k+=T[C],w=y[k],w||(w=y[k]=E.append("g").attr("class",T[C]))}return w}o(v,"getGroup");for(let T of g){if(T.data.length===0)continue;let w=v(T.groupTexts);switch(T.type){case"rect":if(w.selectAll("rect").data(T.data).enter().append("rect").attr("x",k=>k.x).attr("y",k=>k.y).attr("width",k=>k.width).attr("height",k=>k.height).attr("fill",k=>k.fill).attr("stroke",k=>k.strokeFill).attr("stroke-width",k=>k.strokeWidth),s.showDataLabel){let k=s.showDataLabelOutsideBar;if(s.chartOrientation==="horizontal"){let L=function(_,D){let{data:N,label:R}=_;return D*R.length*.7<=N.width-10};var x=L;o(L,"fitsHorizontally");let C=.7,E=10,S=T.data.map((_,D)=>({data:_,label:l[D].toString()})).filter(_=>_.data.width>0&&_.data.height>0),M=S.map(_=>{let{data:D}=_,N=D.height*.7;for(;!L(_,N)&&N>0;)N-=1;return N}),I=Math.floor(Math.min(...M)),A=o(_=>k?_.data.x+_.data.width+10:_.data.x+_.data.width-10,"determineLabelXPosition");w.selectAll("text").data(S).enter().append("text").attr("x",A).attr("y",_=>_.data.y+_.data.height/2).attr("text-anchor",k?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size", ` $ { I } px ` ).text(_=>_.label)}else{let S=function(A,_,D){let{data:N,label:R}=A,O=_*R.length*.7, $ =N.x+N.width/2,z= $ -O/2,F= $ +O/2,V=z>=N.x&&F<=N.x+N.width,H=N.y+D+_<=N.y+N.height;return V&&H};var b=S;o(S,"fitsInBar");let C=10,E=T.data.map((A,_)=>({data:A,label:l[_].toString()})).filter(A=>A.data.width>0&&A.data.height>0),L=E.map(A=>{let{data:_,label:D}=A,N=_.width/(D.length*.7);for(;!S(A,N,10)&&N>0;)N-=1;return N}),M=Math.floor(Math.min(...L)),I=o(A=>k?A.data.y-10:A.data.y+10,"determineLabelYPosition");w.selectAll("text").data(E).enter().append("text").attr("x",A=>A.data.x+A.data.width/2).attr("y",I).attr("text-anchor","middle").attr("dominant-baseline",k?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size", ` $ { M } px ` ).text(A=>A.label)}}break;case"text":w.selectAll("text").data(T.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",k=>k.fill).attr("font-size",k=>k.fontSize).attr("dominant-baseline",k=>u(k.verticalPos)).attr("text-anchor",k=>h(k.horizontalPos)).attr("transform",k=>f(k)).text(k=>k.text);break;case"path":w.selectAll("path").data(T.data).enter().append("path").attr("d",k=>k.path).attr("fill",k=>k.fill?k.fill:"none").attr("stroke",k=>k.strokeFill).attr("stroke-width",k=>k.strokeWidth);break}}},"draw"),a3e={draw:vht}});var o3e={};ur(o3e,{diagram:()=>xht});var xht,l3e=P(()=>{"use strict";Fwe();n3e();s3e();xht={parser:Bwe,db:i3e,renderer:a3e}});var tU,h3e,f3e=P(()=>{"use strict";tU=(function(){var t=o(function(K,oe,U,ue){for(U=U||{},ue=K.length;ue--;U[K[ue]]=oe);return U},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],l=[2,7],u=[1,26],h=[1,27],f=[1,28],d=[1,29],p=[1,33],m=[1,34],g=[1,35],y=[1,36],v=[1,37],x=[1,38],b=[1,24],T=[1,31],w=[1,32],k=[1,30],C=[1,39],E=[1,40],S=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],L=[1,61],M=[89,90],I=[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],A=[27,29],_=[1,70],D=[1,71],N=[1,72],R=[1,73],B=[1,74],O=[1,75], $ =[1,76],z=[1,83],F=[1,80],V=[1,84],H=[1,85],X=[1,86],W=[1,87],Z=[1,88],Y=[1,89],ae=[1,90],J=[1,91],ee=[1,92],re=[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],te=[63,64],be=[1,101],de=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Ee=[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],Ne=[1,110],we=[1,106],Te=[1,107],De=[1,108], $ e=[1,109],pe=[1,111],Je=[1,116],Ce=[1,117],Fe=[1,114
` +Qe.showPosition()+ `
Expecting ` +Er.join(", ")+", got '"+(this.terminals_[St]||St)+"'":dr="Parse error on line "+(ye+1)+": Unexpected "+(St==We?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(dr,{text:Qe.match,token:this.terminals_[St]||St,line:Qe.yylineno,loc:fe,expected:Er})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ot+", token: "+St);switch(ct[0]){case 1:ue.push(St),se.push(Qe.yytext),le.push(Qe.yylloc),ue.push(ct[1]),St=null,It?(St=It,It=null):(Re=Qe.yyleng,me=Qe.yytext,ye=Qe.yylineno,fe=Qe.yylloc,ve>0&&ve--);break;case 2:if(hr=this.productions_[ct[1]][1],yt. $ =se[se.length-hr],yt._ $ ={first_line:le[le.length-(hr||1)].first_line,last_line:le[le.length-1].last_line,first_column:le[le.length-(hr||1)].first_column,last_column:le[le.length-1].last_column},ut&&(yt._ $ .range=[le[le.length-(hr||1)].range[0],le[le.length-1].range[1]]),kt=this.performAction.apply(yt,[me,Re,ye,ce.yy,ct[1],se,le].concat(Be)),typeof kt<"u")return kt;hr&&(ue=ue.slice(0,-1*hr*2),se=se.slice(0,-1*hr),le=le.slice(0,-1*hr)),ue.push(this.productions_[ct[1]][0]),se.push(yt. $ ),le.push(yt._ $ ),Qt=ke[ue[ue.length-2]][ue[ue.length-1]],ue.push(Qt);break;case 3:return!0}}return!0},"parse")},Me=(function(){var K={EOF:1,parseError:o(function(U,ue){if(this.yy.parser)this.yy.parser.parseError(U,ue);else throw new Error(U)},"parseError"),setInput:o(function(oe,U){return this.yy=U||this.yy||{},this._input=oe,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:o(function(){var oe=this._input[0];this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe;var U=oe.match(/(?: \r \n ?| \n ).*/g);return U?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),oe},"input"),unput:o(function(oe){var U=oe.length,ue=oe.split(/(?: \r \n ?| \n )/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-U),this.offset-=U;var G=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ue.length-1&&(this.yylineno-=ue.length-1);var se=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:ue?(ue.length===G.length?this.yylloc.first_column:0)+G[G.length-ue.length].length-ue[0].length:this.yylloc.first_column-U},this.options.ranges&&(this.yylloc.range=[se[0],se[0]+this.yyleng-U]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(oe){this.unput(this.match.slice(oe))},"less"),pastInput:o(function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var oe=this.match;return oe.length<20&&(oe+=this._input.substr(0,20-oe.length)),(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var oe=this.pastInput(),U=new Array(oe.length+1).join("-");return oe+this.upcomingInput()+ `
` +U+"^"},"showPosition"),test_match:o(function(oe,U){var ue,G,se;if(this.options.backtrack_lexer&&(se={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&&(se.yylloc.range=this.yylloc.range.slice(0))),G=oe[0].match(/(?: \r \n ?| \n ).*/g),G&&(this.yylineno+=G.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:G?G[G.length-1].length-G[G.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,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(oe[0].length),this.matched+=oe[0],ue=this.performAction.call(this,this.yy,this,U,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ue)return ue;if(this._backtrack){for(var le in se)this[le]=se[le];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var oe,U,ue,G;this._more||(this.yytext="",this.match="");for(var se=this._currentRules(),le=0;le<se.length;le++)if(ue=this._input.match(this.rules[se[le]]),ue&&(!U||ue[0].length>U[0].length)){if(U=ue,G=le,this.options.backtrack_lexer){if(oe=this.test_match(ue,se[le]),oe!==!1)return oe;if(this._backtrack){U=!1;continue}else return!1}else if(!this.options.flex)break}return U?(oe=this.test_match(U,se[G]),oe!==!1?oe:!1):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:o(function(){var U=this.next();return U||this.lex()},"lex"),begin:o(function(U){this.conditionStack.push(U)},"begin"),popState:o(function(){var U=this.conditionStack.length-1;return U>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(U){return U=this.conditionStack.length-1-Math.abs(U||0),U>=0?this.conditionStack[U]:"INITIAL"},"topState"),pushState:o(function(U){this.begin(U)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(U,ue,G,se){var le=se;switch(G){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;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:break;case 14:break;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;break;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;break;case 60:return this.begin("style"),74;break;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 ue.yytext=ue.yytext.trim(),89;break;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}
[ data - look = "${i}" ] [ data - color - id = "color-${l}" ] . node path {
stroke : $ { a [ l ] } ;
fill : $ { n ? . length ? n [ l ] : "" } ;
}
2026-02-13 14:04:06 -07:00
2026-04-01 22:38:25 +00:00
[ data - look = "${i}" ] [ data - color - id = "color-${l}" ] . node rect {
stroke : $ { a [ l ] } ;
fill : $ { n ? . length ? n [ l ] : "" } ;
}
` ;return s},"genColor"),wht=o(t=>{let e=Lt(),{look:r,themeVariables:i}=e,{requirementEdgeLabelBackground:n}=i;return `
$ { Cht ( t ) }
2026-02-13 14:04:06 -07:00
marker {
fill : $ { t . relationColor } ;
stroke : $ { t . relationColor } ;
}
marker . cross {
stroke : $ { t . lineColor } ;
}
svg {
font - family : $ { t . fontFamily } ;
font - size : $ { t . fontSize } ;
}
. reqBox {
fill : $ { t . requirementBackground } ;
fill - opacity : 1.0 ;
stroke : $ { t . requirementBorderColor } ;
stroke - width : $ { t . requirementBorderSize } ;
}
. reqTitle , . reqLabel {
fill : $ { t . requirementTextColor } ;
}
. reqLabelBox {
fill : $ { t . relationLabelBackground } ;
fill - opacity : 1.0 ;
}
. req - title - line {
stroke : $ { t . requirementBorderColor } ;
stroke - width : $ { t . requirementBorderSize } ;
}
. relationshipLine {
stroke : $ { t . relationColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { r === "neo" ? t . strokeWidth : "1px" } ;
2026-02-13 14:04:06 -07:00
}
. relationshipLabel {
fill : $ { t . relationLabelColor } ;
}
2026-04-01 22:38:25 +00:00
. edgeLabel {
2026-03-11 20:55:37 +00:00
background - color : $ { t . edgeLabelBackground } ;
}
. edgeLabel . label rect {
fill : $ { t . edgeLabelBackground } ;
}
. edgeLabel . label text {
fill : $ { t . relationLabelColor } ;
}
2026-02-13 14:04:06 -07:00
. divider {
stroke : $ { t . nodeBorder } ;
stroke - width : 1 ;
}
. label {
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. label text , span {
fill : $ { t . nodeTextColor || t . textColor } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. labelBkg {
2026-04-01 22:38:25 +00:00
background - color : $ { n ? ? t . edgeLabelBackground } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
` },"getStyles"),p3e=wht});var rU={};ur(rU,{draw:()=>Eht});var Eht,g3e=P(()=>{"use strict";Ut();bt();I0();Wd();Ud();er();Eht=o(async function(t,e,r,i){Q.info("REF0:"),Q.info("Drawing requirement diagram (unified)",e);let{securityLevel:n,state:a,layout:s,look:l}=ge(),u=i.db.getData(),h=Ol(e,n);u.type=i.type,u.layoutAlgorithm=Vu(s),u.nodeSpacing=a?.nodeSpacing??50,u.rankSpacing=a?.rankSpacing??50,u.markers=l==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],u.diagramId=e,await Ul(u,h);let f=8;Kt.insertTitle(h,"requirementDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),Ro(h,f,"requirementDiagram",a?.useMaxWidth??!0)},"draw")});var y3e={};ur(y3e,{diagram:()=>Sht});var Sht,v3e=P(()=>{"use strict";f3e();d3e();m3e();g3e();Sht={parser:h3e,get db(){return new b_},renderer:rU,styles:p3e}});var iU,T3e,k3e=P(()=>{"use strict";iU=(function(){var t=o(function(Re,ve,Oe,We){for(Oe=Oe||{},We=Re.length;We--;Oe[Re[We]]=ve);return Oe},"o"),e=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],s=[1,11],l=[1,12],u=[1,14],h=[1,15],f=[1,17],d=[1,18],p=[1,19],m=[1,25],g=[1,26],y=[1,27],v=[1,28],x=[1,29],b=[1,30],T=[1,31],w=[1,32],k=[1,33],C=[1,34],E=[1,35],S=[1,36],L=[1,37],M=[1,38],I=[1,39],A=[1,40],_=[1,42],D=[1,43],N=[1,44],R=[1,45],B=[1,46],O=[1,47], $ =[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],z=[1,74],F=[1,80],V=[1,81],H=[1,82],X=[1,83],W=[1,84],Z=[1,85],Y=[1,86],ae=[1,87],J=[1,88],ee=[1,89],re=[1,90],te=[1,91],be=[1,92],de=[1,93],Ee=[1,94],Ne=[1,95],we=[1,96],Te=[1,97],De=[1,98], $ e=[1,99],pe=[1,100],Je=[1,101],Ce=[1,102],Fe=[1,103],Ue=[1,104],qe=[1,105],Me=[2,78],He=[4,5,17,51,53,54],K=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],U=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],G=[5,52],se=[70,71,72,73],le=[1,151],ke={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104, $ accept:0, $ end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",3
` +ct.showPosition()+ `
Expecting ` +ri.join(", ")+", got '"+(this.terminals_[Er]||Er)+"'":ci="Parse error on line "+(ut+1)+": Unexpected "+(Er==It?"end of input":"'"+(this.terminals_[Er]||Er)+"'"),this.parseError(ci,{text:ct.match,token:this.terminals_[Er]||Er,line:ct.yylineno,loc:yt,expected:ri})}if(pr[0]instanceof Array&&pr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ir+", token: "+Er);switch(pr[0]){case 1:We.push(Er),Qe.push(ct.yytext),ce.push(ct.yylloc),We.push(pr[1]),Er=null,dr?(Er=dr,dr=null):(Nt=ct.yyleng,fe=ct.yytext,ut=ct.yylineno,yt=ct.yylloc,Pt>0&&Pt--);break;case 2:if(_t=this.productions_[pr[1]][1],Ie. $ =Qe[Qe.length-_t],Ie._ $ ={first_line:ce[ce.length-(_t||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(_t||1)].first_column,last_column:ce[ce.length-1].last_column},jt&&(Ie._ $ .range=[ce[ce.length-(_t||1)].range[0],ce[ce.length-1].range[1]]),xt=this.performAction.apply(Ie,[fe,Nt,ut,Dt.yy,pr[1],Qe,ce].concat(ot)),typeof xt<"u")return xt;_t&&(We=We.slice(0,-1*_t*2),Qe=Qe.slice(0,-1*_t),ce=ce.slice(0,-1*_t)),We.push(this.productions_[pr[1]][0]),Qe.push(Ie. $ ),ce.push(Ie._ $ ),zr=it[We[We.length-2]][We[We.length-1]],We.push(zr);break;case 3:return!0}}return!0},"parse")},me=(function(){var Re={EOF:1,parseError:o(function(Oe,We){if(this.yy.parser)this.yy.parser.parseError(Oe,We);else throw new Error(Oe)},"parseError"),setInput:o(function(ve,Oe){return this.yy=Oe||this.yy||{},this._input=ve,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:o(function(){var ve=this._input[0];this.yytext+=ve,this.yyleng++,this.offset++,this.match+=ve,this.matched+=ve;var Oe=ve.match(/(?: \r \n ?| \n ).*/g);return Oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ve},"input"),unput:o(function(ve){var Oe=ve.length,We=ve.split(/(?: \r \n ?| \n )/g);this._input=ve+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Oe),this.offset-=Oe;var Be=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),We.length-1&&(this.yylineno-=We.length-1);var Qe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:We?(We.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-We.length].length-We[0].length:this.yylloc.first_column-Oe},this.options.ranges&&(this.yylloc.range=[Qe[0],Qe[0]+this.yyleng-Oe]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(ve){this.unput(this.match.slice(ve))},"less"),pastInput:o(function(){var ve=this.matched.substr(0,this.matched.length-this.match.length);return(ve.length>20?"...":"")+ve.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var ve=this.match;return ve.length<20&&(ve+=this._input.substr(0,20-ve.length)),(ve.substr(0,20)+(ve.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var ve=this.pastInput(),Oe=new Array(ve.length+1).join("-");return ve+this.upcomingInput()+ `
` +Oe+"^"},"showPosition"),test_match:o(function(ve,Oe){var We,Be,Qe;if(this.options.backtrack_lexer&&(Qe={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&&(Qe.yylloc.range=this.yylloc.range.slice(0))),Be=ve[0].match(/(?: \r \n ?| \n ).*/g),Be&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+ve[0].length},this.yytext+=ve[0],this.match+=ve[0],this.matches=ve,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(ve[0].length),this.matched+=ve[0],We=this.performAction.call(this,this.yy,this,Oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),We)return We;if(this._backtrack){for(var ce in Qe)this[ce]=Qe[ce];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ve,Oe,We,Be;this._more||(this.yytext="",this.match="");for(var Qe=this._currentRules(),ce=0;ce<Qe.length;ce++)if(We=this._input.match(this.rules[Qe[ce]]),We&&(!Oe||We[0].length>Oe[0].length)){if(Oe=We,Be=ce,this.options.backtrack_lexer){if(ve=this.test_match(We,Qe[ce]),ve!==!1)return ve;if(this._backtrack){Oe=!1;continue}else return!1}else if(!this.options.flex)break}return Oe?(ve=this.test_match(Oe,Qe[Be]),ve!==!1?ve:!1):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:o(function(){var Oe=this.next();return Oe||this.lex()},"lex"),begin:o(function(Oe){this.conditionStack.push(Oe)},"begin"),popState:o(function(){var Oe=this.conditionStack.length-1;return Oe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Oe){return Oe=this.conditionStack.length-1-Math.abs(Oe||0),Oe>=0?this.conditionStack[Oe]:"INITIAL"},"topState"),pushState:o(function(Oe){this.begin(Oe)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Oe,We,Be,Qe){var ce=Qe;switch(Be){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return We.yytext=We.yytext.trim(),73;break;case 12:return We.yytext=We.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return We.yytext=We.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return We.yytext=We.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return We.yytext=We.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:((?! \n ) \s )+)/i,/^(?:#[^ \n ]*)/i,/^(?:%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[0-9]+(?=[ \n ]+))/i,/^(?:@ \{ )/i,/^(?:[^ \} ]+)/i,/^(?: \} (?= \s +as \s ))/i,/^(?: \} )/i,/^(?:[^ \< -> \- >: \n ,;@ \s ]+(?=@ \{ ))/i,/^(?:[^<>: \n ,;@ \s ]+(?= \s +as \s ))/i,/^(?:[^<>: \n ,;@]+(?= \s *[ \n ;#]| $ ))/i,/^(?:[^<>: \n ,;@]*<[^ \n ]*)/i,/^(?:[^ \n ]+)/i,/^(?:box \b )/i,/^(?:participant \b )/i,/^(?:actor \b )/i,/^(?:create \b )/i,/^(
2026-02-13 14:04:06 -07:00
` )?h=a+ `
` :h= ` {
` +a+ `
2026-04-01 22:38:25 +00:00
} ` ,l=ud(h,{schema:cd})}n=l?.type??n,l?.alias&&(!i||i.text===r)&&(i={text:l.alias,wrap:i?.wrap,type:n});let u=this.state.records.actors.get(e);if(u){if(this.state.records.currentBox&&u.box&&this.state.records.currentBox!==u.box)throw new Error( ` A same participant should only be defined in one Box : $ { u . name } can 't be in ' $ { u . box . name } ' and in ' $ { this . state . records . currentBox . name } ' at the same time.`);if(s=u.box?u.box:this.state.records.currentBox,u.box=s,u&&r===u.name&&i==null)return}if(i?.text==null&&(i={text:r,type:n}),(n==null||i.text==null)&&(i={text:r,type:n}),this.state.records.actors.set(e,{box:s,name:r,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),this.state.records.prevActor){let h=this.state.records.actors.get(this.state.records.prevActor);h&&(h.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let r,i=0;if(!e)return 0;for(r=0;r<this.state.records.messages.length;r++)this.state.records.messages[r].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[r].from===e&&i++,this.state.records.messages[r].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[r].from===e&&i--;return i}addMessage(e,r,i,n){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:i.text,wrap:i.wrap??this.autoWrap(),answer:n})}addSignal(e,r,i,n,a=!1,s){if(n===this.LINETYPE.ACTIVE_END&&this.activationCount(e??"")<1){let u=new Error("Trying to inactivate an inactive participant ("+e+")");throw u.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["' ACTIVE _PARTICIPANT ' "]},u}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:i?.text??" ",wrap:i?.wrap??this.autoWrap(),type:n,activate:a,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/," ")).trim(),wrap:r}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:ge().sequence?.wrap??!1}clear(){this.state.reset(),wr()}parseMessage(e){let r=e.trim(),{wrap:i,cleanedText:n}=this.extractWrap(r),a={text:n,wrap:i};return Q.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),i=r?.[1]?r[1].trim():" transparent ",n=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports(" color ",i)||(i=" transparent ",n=e.trim());else{let l=new Option().style;l.color=i,l.color!==i&&(i=" transparent ",n=e.trim())}let{wrap:a,cleanedText:s}=this.extractWrap(n);return{text:s?Tr(s,ge()):void 0,color:i,wrap:a}}addNote(e,r,i){let n={actor:e,placement:r,message:i.text,wrap:i.wrap??this.autoWrap()},a=[].concat(e,e);this.state.records.notes.push(n),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a[0],to:a[1],message:i.text,wrap:i.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){let i=this.getActor(e);try{let n=Tr(r.text,ge());n=n.replace(/=/g," = "),n=n.replace(/&/g," & " ) ; let a = JSON . parse (
2026-02-13 14:04:06 -07:00
stroke : $ { t . actorBorder } ;
fill : $ { t . actorBkg } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth ? ? 1 } ;
}
rect . actor . outer - path [ data - look = "neo" ] {
filter : $ { e } ;
}
rect . note [ data - look = "neo" ] {
stroke : $ { t . noteBorderColor } ;
fill : $ { t . noteBkgColor } ;
filter : $ { e } ;
2026-02-13 14:04:06 -07:00
}
text . actor > tspan {
fill : $ { t . actorTextColor } ;
stroke : none ;
}
. actor - line {
stroke : $ { t . actorLineColor } ;
}
2026-04-01 22:38:25 +00:00
2026-02-13 14:04:06 -07:00
. innerArc {
stroke - width : 1.5 ;
stroke - dasharray : none ;
}
. messageLine0 {
stroke - width : 1.5 ;
stroke - dasharray : none ;
stroke : $ { t . signalColor } ;
}
. messageLine1 {
stroke - width : 1.5 ;
stroke - dasharray : 2 , 2 ;
stroke : $ { t . signalColor } ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-arrowhead" ] path {
2026-02-13 14:04:06 -07:00
fill : $ { t . signalColor } ;
stroke : $ { t . signalColor } ;
}
. sequenceNumber {
fill : $ { t . sequenceNumberColor } ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-sequencenumber" ] {
2026-02-13 14:04:06 -07:00
fill : $ { t . signalColor } ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-crosshead" ] path {
2026-02-13 14:04:06 -07:00
fill : $ { t . signalColor } ;
stroke : $ { t . signalColor } ;
}
. messageText {
fill : $ { t . signalTextColor } ;
stroke : none ;
}
. labelBox {
stroke : $ { t . labelBoxBorderColor } ;
fill : $ { t . labelBoxBkgColor } ;
2026-04-01 22:38:25 +00:00
filter : $ { r === "neo" ? e : "none" } ;
2026-02-13 14:04:06 -07:00
}
. labelText , . labelText > tspan {
fill : $ { t . labelTextColor } ;
stroke : none ;
}
. loopText , . loopText > tspan {
fill : $ { t . loopTextColor } ;
stroke : none ;
}
. loopLine {
stroke - width : 2 px ;
stroke - dasharray : 2 , 2 ;
stroke : $ { t . labelBoxBorderColor } ;
fill : $ { t . labelBoxBorderColor } ;
}
. note {
//stroke: #decc93;
stroke : $ { t . noteBorderColor } ;
fill : $ { t . noteBkgColor } ;
}
. noteText , . noteText > tspan {
fill : $ { t . noteTextColor } ;
stroke : none ;
2026-04-01 22:38:25 +00:00
$ { t . noteFontWeight ? ` font-weight: ${ t . noteFontWeight } ; ` : "" }
2026-02-13 14:04:06 -07:00
}
. activation0 {
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
}
. activation1 {
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
}
. activation2 {
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
}
. actorPopupMenu {
position : absolute ;
}
. actorPopupMenuPanel {
position : absolute ;
fill : $ { t . actorBkg } ;
box - shadow : 0 px 8 px 16 px 0 px rgba ( 0 , 0 , 0 , 0.2 ) ;
filter : drop - shadow ( 3 px 5 px 2 px rgb ( 0 0 0 / 0.4 ) ) ;
}
. actor - man circle , line {
fill : $ { t . actorBkg } ;
stroke - width : 2 px ;
}
2026-04-01 22:38:25 +00:00
g rect . rect {
filter : $ { e } ;
stroke : $ { t . nodeBorder } ;
}
` },"getStyles"),C3e=Iht});var aU,Sp,Ap,_p,k_,lg,Cf,IC,Mht,C_,MC,cg,E3e,ei,sU,Oht,Pht,Bht,Fht, $ ht,zht,Ght,Vht,qht,Wht,Uht,Hht,Yht,S3e,jht,Xht,Kht,Qht,Zht,Jht,eft,tft,A3e,rft,wf,ift,nft,aft,sft,oft,Hi,_3e=P(()=>{"use strict";aU=Wa(s1(),1);Sr();er();Vr();y0();Sp=36,Ap="actor-top",_p="actor-bottom",k_="actor-box",lg="actor-man",Cf=new Set(["redux-color","redux-dark-color"]),IC=o(function(t,e){let r=g0(t,e);return Lt().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),Mht=o(function(t,e,r,i,n){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};let a=e.links,s=e.actorCnt,l=e.rectData;var u="none";n&&(u="block !important");let h=t.append("g");h.attr("id","actor"+s+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",u);var f="";l.class!==void 0&&(f=" "+l.class);let d=l.width>r?l.width:r,p=h.append("rect");if(p.attr("class","actorPopupMenuPanel"+f),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",d),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),a!=null){var m=20;for(let v in a){var g=h.append("a"),y=(0,aU.sanitizeUrl)(a[v]);g.attr("xlink:href",y),g.attr("target","_blank"),ift(i)(v,g,l.x+10,l.height+m,d,20,{class:"actor"},i),m+=30}}return p.attr("height",m),{height:l.height+m,width:d}},"drawPopup"),C_=o(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),MC=o(async function(t,e,r=null){let i=t.append("foreignObject"),n=await Rg(e.text,Lt()),s=i.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(n).node().getBoundingClientRect();if(i.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){let l=t.node().firstChild;l.setAttribute("height",s.height+2*e.textMargin);let u=l.getBBox();i.attr("x",Math.round(u.x+u.width/2-s.width/2)).attr("y",Math.round(u.y+u.height/2-s.height/2))}else if(r){let{startx:l,stopx:u,starty:h}=r;if(l>u){let f=l;l=u,u=f}i.attr("x",Math.round(l+Math.abs(l-u)/2-s.width/2)),e.class==="loopText"?i.attr("y",Math.round(h)):i.attr("y",Math.round(h-s.height))}return[i]},"drawKatex"),cg=o(function(t,e){let r=0,i=0,n=e.text.split(lt.lineBreakRegex),[a,s]= $ s(e.fontSize),l=[],u=0,h=o(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":h=o(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":h=o(()=>Math.round(e.y+(r+i+e.textMargin)/2),"yfunc");break;case"bottom":case"end":h=o(()=>Math.round(e.y+(r+i+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)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":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[f,d]of n.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(u=f*a);let p=t.append("text");p.attr("x",e.x),p.attr("y",h()),e.anchor!==void 0&&p.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&p.style("font-family",e.fontFamily),s!==void 0&&p.style("font-size",s),e.fontWeight!==void 0&&p.style("font-weight",e.fontWeight),e.fill!==void 0&&p.attr("fill",e.fill),e.class!==void 0&&p.attr("class",e.class),e.dy!==void 0?p.attr("dy",e.dy):u!==0&&p.attr("dy",u);let m=d||gI;if(e.tspan){let g=p.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(m)}else p.text(m);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(i+=(p._groups||p)[0][0].getBBox().height,r=i),l.push(p)}return l},"drawText"),E3e=o(function(t,e){function r(n,a,s,l,u){return n+","+a+" "+(n+
a $ { b } , $ { x } 0 0 0 0 , $ { y . height }
h $ { y . width - 2 * b }
a $ { b } , $ { x } 0 0 0 0 , - $ { y . height }
2026-02-13 14:04:06 -07:00
Z
2026-04-01 22:38:25 +00:00
` ;T.append("path").attr("d",k),w.append("path").attr("d", ` M $ { y . x } , $ { y . y + x }
a $ { b } , $ { x } 0 0 0 0 , $ { y . height } ` ),T.attr("transform", ` translate ( $ { b } , $ { - ( y . height / 2 ) } ) ` ),w.attr("transform", ` translate ( $ { y . width - b } , $ { - y . height / 2 } ) ` ),e.rectData=y,u==="neo"&&T.attr("filter","url(#drop-shadow)");let C=n.get(e.name)??0;if(Cf.has(h)&&(T.style("stroke",p[C%p.length]),T.style("fill",d[C%p.length]),w.style("stroke",p[C%p.length]),w.style("fill",d[C%p.length])),e.properties?.icon){let L=e.properties.icon.trim(),M=y.x+y.width-20,I=y.y+10;L.charAt(0)==="@"?w3(g,M,I,L.substr(1)):C3(g,M,I,L)}wf(r,sn(e.description))(e.description,g,y.x,y.y,y.width,y.height,{class: ` actor $ { k _ } ` },r);let E=e.height,S=T.select("path:last-child");if(S.node()){let L=S.node().getBBox();e.height=L.height,E=L.height}return i||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),E},"drawActorTypeQueue"),Fht=o(function(t,e,r,i,n,a){let s=i?e.stopy:e.starty,l=e.x+e.width/2,u=s+75,{look:h,theme:f,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:m,actorBorder:g,actorBkg:y}=d,v=t.append("g").lower();i||(ei++,v.append("line").attr("id","actor"+ei).attr("x1",l).attr("y1",u).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ei);let x=t.append("g"),b=lg;i?b+= ` $ { _p } ` :b+= ` $ { Ap } ` ,x.attr("class",b),x.attr("name",e.name);let T=ja();T.x=e.x,T.y=s,T.fill="#eaeaea",T.width=e.width,T.height=e.height,T.class="actor";let w=e.x+e.width/2,k=s+32,C=22;x.append("defs").append("marker").attr("id",n+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),x.append("circle").attr("cx",w).attr("cy",k).attr("r",C).attr("filter", ` $ { h === "neo" ? "url(#drop-shadow)" : "" } ` ),x.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform", ` translate ( $ { w } , $ { k - C } ) ` );let E=a.get(e.name)??0;Cf.has(f)?(x.style("stroke",m[E%m.length]),x.style("fill",p[E%m.length])):(x.style("stroke",g),x.style("fill",y));let S=x.node().getBBox();return e.height=S.height+2*(r?.sequence?.labelBoxHeight??0),wf(r,sn(e.description))(e.description,x,T.x,T.y+C+(i?5:12),T.width,T.height,{class: ` actor $ { lg } ` },r),i||(x.attr("data-et","participant"),x.attr("data-type","control"),x.attr("data-id",e.name)),e.height},"drawActorTypeControl"), $ ht=o(function(t,e,r,i,n){let a=i?e.stopy:e.starty,s=e.x+e.width/2,l=a+75,{look:u,theme:h,themeVariables:f}=r,{bkgColorArray:d,borderColorArray:p}=f,m=t.append("g").lower(),g=t.append("g"),y="actor";i?y+= ` $ { _p } ` :y+= ` $ { Ap } ` ,g.attr("class",y),g.attr("name",e.name);let v=ja();v.x=e.x,v.y=a,v.fill="#eaeaea",v.width=e.width,v.height=e.height,v.class="actor";let x=e.x+e.width/2,b=a+(i?10:25),T=22;g.append("circle").attr("cx",x).attr("cy",b).attr("r",T).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",x-T).attr("x2",x+T).attr("y1",b+T).attr("y2",b+T).attr("stroke-width",2),u==="neo"&&g.attr("filter","url(#drop-shadow)");let w=n.get(e.name)??0;Cf.has(h)&&(g.style("stroke",p[w%p.length]),g.style("fill",d[w%p.length]));let k=g.node().getBBox();return e.height=k.height+(r?.sequence?.labelBoxHeight??0),i||(ei++,m.append("line").attr("id","actor"+ei).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ei),wf(r,sn(e.description))(e.description,g,v.x,v.y+(i?15:30),v.width,v.height,{class: ` actor $ { lg } ` },r),i?g.attr("transform", ` translate ( 0 , $ { T } ) ` ):(g.attr("transform", ` translate ( 0 , $ { T / 2 - 5 } ) ` ),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),zht=o(function(t,e,r,i,n){let a=i?e.stopy:e.starty,s=e.x+e.width/2,l=a+e.height+2*r.boxTextMargin,{theme:u,themeVariables:h,look:f}=r,{bkgColorArray:d,borderColorArray:p,actorBorder:m}=h,g=t.append("g").lower(),y=g;i||(ei++,Ob
M $ { v . x } , $ { v . y + k }
a $ { w } , $ { k } 0 0 0 $ { b } , 0
a $ { w } , $ { k } 0 0 0 - $ { b } , 0
l 0 , $ { T - 2 * k }
a $ { w } , $ { k } 0 0 0 $ { b } , 0
l 0 , - $ { T - 2 * k }
` ;C.append("path").attr("d",E),f==="neo"&&C.attr("filter","url(#drop-shadow)");let S=n.get(e.name)??0;Cf.has(u)?(C.style("stroke",p[S%p.length]),C.style("fill",d[S%p.length])):C.style("stroke",m),C.attr("transform", ` translate ( $ { b } , $ { k } ) ` ),e.rectData=v,wf(r,sn(e.description))(e.description,y,v.x,v.y+35,v.width,v.height,{class: ` actor $ { k _ } ` },r);let L=C.select("path:last-child");if(L.node()){let M=L.node().getBBox();e.height=M.height+(r.sequence.labelBoxHeight??0)}return i||(y.attr("data-et","participant"),y.attr("data-type","database"),y.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),Ght=o(function(t,e,r,i,n){let a=i?e.stopy:e.starty,s=e.x+e.width/2,l=a+80,u=22,h=t.append("g").lower(),{look:f,theme:d,themeVariables:p}=r,{bkgColorArray:m,borderColorArray:g,actorBorder:y}=p;i||(ei++,h.append("line").attr("id","actor"+ei).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ei);let v=t.append("g"),x=lg;i?x+= ` $ { _p } ` :x+= ` $ { Ap } ` ,v.attr("class",x),v.attr("name",e.name);let b=ja();b.x=e.x,b.y=a,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",v.append("line").attr("id","actor-man-torso"+ei).attr("x1",e.x+e.width/2-u*2.5).attr("y1",a+12).attr("x2",e.x+e.width/2-15).attr("y2",a+12),v.append("line").attr("id","actor-man-arms"+ei).attr("x1",e.x+e.width/2-u*2.5).attr("y1",a+2).attr("x2",e.x+e.width/2-u*2.5).attr("y2",a+22),v.append("circle").attr("cx",e.x+e.width/2).attr("cy",a+12).attr("r",u),f==="neo"&&v.attr("filter","url(#drop-shadow)");let T=n.get(e.name)??0;Cf.has(d)?(v.style("stroke",g[T%g.length]),v.style("fill",m[T%g.length])):v.style("stroke",y);let w=v.node().getBBox();return e.height=w.height+(r.sequence.labelBoxHeight??0),wf(r,sn(e.description))(e.description,v,b.x,b.y+15,b.width,b.height,{class: ` actor $ { lg } ` },r),v.attr("transform", ` translate ( 0 , $ { u / 2 + 10 } ) ` ),i||(v.attr("data-et","participant"),v.attr("data-type","boundary"),v.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),Vht=o(function(t,e,r,i,n){let a=i?e.stopy:e.starty,s=e.x+e.width/2,l=a+80,{look:u,theme:h,themeVariables:f}=r,{bkgColorArray:d,borderColorArray:p,actorBorder:m}=f,g=t.append("g").lower();i||(ei++,g.append("line").attr("id","actor"+ei).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ei);let y=t.append("g"),v=lg;i?v+= ` $ { _p } ` :v+= ` $ { Ap } ` ,y.attr("class",v),y.attr("name",e.name),i||y.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let x=u==="neo"?.5:1,b=u==="neo"?a+(1-x)*30:a;y.append("line").attr("id","actor-man-torso"+ei).attr("x1",s).attr("y1",b+25*x).attr("x2",s).attr("y2",b+45*x),y.append("line").attr("id","actor-man-arms"+ei).attr("x1",s-Sp/2*x).attr("y1",b+33*x).attr("x2",s+Sp/2*x).attr("y2",b+33*x),y.append("line").attr("x1",s-Sp/2*x).attr("y1",b+60*x).attr("x2",s).attr("y2",b+45*x),y.append("line").attr("x1",s).attr("y1",b+45*x).attr("x2",s+(Sp/2-2)*x).attr("y2",b+60*x);let T=y.append("circle");T.attr("cx",e.x+e.width/2),T.attr("cy",b+10*x),T.attr("r",15*x),T.attr("width",e.width*x),T.attr("height",e.height*x);let w=y.node().getBBox();e.height=w.height;let k=ja();k.x=e.x,k.y=b,k.fill="#eaeaea",k.width=e.width,k.height=e.height/x,k.class="actor",k.rx=3,k.ry=3;let C=n.get(e.name)??0;return Cf.has(h)?(y.style("stroke",p[C%p.length]),y.style("fill",d[C%p.length])):y.style("stroke",m),wf(r,sn(e.description))(e.description,y,k.x,b+35*x-(u==="neo"?10:0),k.width,k.height,{class: ` actor $ { lg } ` },r),e.height},"drawActorTypeActor"),qht=o(async function(t,e,r,i,n,a,s){let l=s??new Map([...a.db.getActors().values()].map((u,h)=>[u.name,h]));switch(e.type){case"actor":return await Vht(t,e,r,i,l);case"participant":return await Oht(t,e,r,i,l);case"boundary":return await Ght(t,e,r,i,l);case"control":return await Fht(t,e,r,i,n,l);case"entity":return await $ ht(t,e,r,i,
` +ve.showPosition()+ `
Expecting ` +yt.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":jt="Parse error on line "+(se+1)+": Unexpected "+(fe==ye?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(jt,{text:ve.match,token:this.terminals_[fe]||fe,line:ve.yylineno,loc:Be,expected:yt})}if(Pt[0]instanceof Array&&Pt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Nt+", token: "+fe);switch(Pt[0]){case 1:He.push(fe),oe.push(ve.yytext),U.push(ve.yylloc),He.push(Pt[1]),fe=null,ut?(fe=ut,ut=null):(le=ve.yyleng,G=ve.yytext,se=ve.yylineno,Be=ve.yylloc,ke>0&&ke--);break;case 2:if(Dt=this.productions_[Pt[1]][1],ot. $ =oe[oe.length-Dt],ot._ $ ={first_line:U[U.length-(Dt||1)].first_line,last_line:U[U.length-1].last_line,first_column:U[U.length-(Dt||1)].first_column,last_column:U[U.length-1].last_column},Qe&&(ot._ $ .range=[U[U.length-(Dt||1)].range[0],U[U.length-1].range[1]]),It=this.performAction.apply(ot,[G,le,se,Oe.yy,Pt[1],oe,U].concat(Re)),typeof It<"u")return It;Dt&&(He=He.slice(0,-1*Dt*2),oe=oe.slice(0,-1*Dt),U=U.slice(0,-1*Dt)),He.push(this.productions_[Pt[1]][0]),oe.push(ot. $ ),U.push(ot._ $ ),kt=ue[He[He.length-2]][He[He.length-1]],He.push(kt);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var Ue={EOF:1,parseError:o(function(Me,He){if(this.yy.parser)this.yy.parser.parseError(Me,He);else throw new Error(Me)},"parseError"),setInput:o(function(qe,Me){return this.yy=Me||this.yy||{},this._input=qe,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:o(function(){var qe=this._input[0];this.yytext+=qe,this.yyleng++,this.offset++,this.match+=qe,this.matched+=qe;var Me=qe.match(/(?: \r \n ?| \n ).*/g);return Me?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),qe},"input"),unput:o(function(qe){var Me=qe.length,He=qe.split(/(?: \r \n ?| \n )/g);this._input=qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Me),this.offset-=Me;var K=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),He.length-1&&(this.yylineno-=He.length-1);var oe=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:He?(He.length===K.length?this.yylloc.first_column:0)+K[K.length-He.length].length-He[0].length:this.yylloc.first_column-Me},this.options.ranges&&(this.yylloc.range=[oe[0],oe[0]+this.yyleng-Me]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(qe){this.unput(this.match.slice(qe))},"less"),pastInput:o(function(){var qe=this.matched.substr(0,this.matched.length-this.match.length);return(qe.length>20?"...":"")+qe.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var qe=this.match;return qe.length<20&&(qe+=this._input.substr(0,20-qe.length)),(qe.substr(0,20)+(qe.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var qe=this.pastInput(),Me=new Array(qe.length+1).join("-");return qe+this.upcomingInput()+ `
` +Me+"^"},"showPosition"),test_match:o(function(qe,Me){var He,K,oe;if(this.options.backtrack_lexer&&(oe={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&&(oe.yylloc.range=this.yylloc.range.slice(0))),K=qe[0].match(/(?: \r \n ?| \n ).*/g),K&&(this.yylineno+=K.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:K?K[K.length-1].length-K[K.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+qe[0].length},this.yytext+=qe[0],this.match+=qe[0],this.matches=qe,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(qe[0].length),this.matched+=qe[0],He=this.performAction.call(this,this.yy,this,Me,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),He)return He;if(this._backtrack){for(var U in oe)this[U]=oe[U];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var qe,Me,He,K;this._more||(this.yytext="",this.match="");for(var oe=this._currentRules(),U=0;U<oe.length;U++)if(He=this._input.match(this.rules[oe[U]]),He&&(!Me||He[0].length>Me[0].length)){if(Me=He,K=U,this.options.backtrack_lexer){if(qe=this.test_match(He,oe[U]),qe!==!1)return qe;if(this._backtrack){Me=!1;continue}else return!1}else if(!this.options.flex)break}return Me?(qe=this.test_match(Me,oe[K]),qe!==!1?qe:!1):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:o(function(){var Me=this.next();return Me||this.lex()},"lex"),begin:o(function(Me){this.conditionStack.push(Me)},"begin"),popState:o(function(){var Me=this.conditionStack.length-1;return Me>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Me){return Me=this.conditionStack.length-1-Math.abs(Me||0),Me>=0?this.conditionStack[Me]:"INITIAL"},"topState"),pushState:o(function(Me){this.begin(Me)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(Me,He,K,oe){var U=oe;switch(K){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:return this.popState(),41;break;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),48;break;case 39:return this.popState(),8;break;case 40:break;case 41:return this.popState(),this.popState(),41;break;case 42:return this.begin("class-body"),39;break;case 43:return this.popState(),41;break;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 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 46;case 56:return 47;case 57:return 81;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:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 50;case 96:return 50;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 )+)/,/
2026-02-13 14:04:06 -07:00
fill : $ { t . nodeBorder || t . classText } ;
stroke : none ;
font - family : $ { t . fontFamily } ;
font - size : 10 px ;
. title {
font - weight : bolder ;
}
}
2026-03-11 20:55:37 +00:00
. cluster - label text {
fill : $ { t . titleColor } ;
}
. cluster - label span {
color : $ { t . titleColor } ;
}
. cluster - label span p {
background - color : transparent ;
}
. cluster rect {
fill : $ { t . clusterBkg } ;
stroke : $ { t . clusterBorder } ;
stroke - width : 1 px ;
}
. cluster text {
fill : $ { t . titleColor } ;
}
. cluster span {
color : $ { t . titleColor } ;
}
2026-02-13 14:04:06 -07:00
. nodeLabel , . edgeLabel {
color : $ { t . classText } ;
}
2026-04-01 22:38:25 +00:00
. noteLabel . nodeLabel , . noteLabel . edgeLabel {
color : $ { t . noteTextColor } ;
}
2026-02-13 14:04:06 -07:00
. edgeLabel . label rect {
fill : $ { t . mainBkg } ;
}
. label text {
fill : $ { t . classText } ;
}
. labelBkg {
background : $ { t . mainBkg } ;
}
. edgeLabel . label span {
background : $ { t . mainBkg } ;
}
. classTitle {
font - weight : bolder ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth } ;
2026-02-13 14:04:06 -07:00
}
. divider {
stroke : $ { t . nodeBorder } ;
stroke - width : 1 ;
}
g . clickable {
cursor : pointer ;
}
g . classGroup rect {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
}
g . classGroup line {
stroke : $ { t . nodeBorder } ;
stroke - width : 1 ;
}
. classLabel . box {
stroke : none ;
stroke - width : 0 ;
fill : $ { t . mainBkg } ;
opacity : 0.5 ;
}
. classLabel . label {
fill : $ { t . nodeBorder } ;
font - size : 10 px ;
}
. relation {
stroke : $ { t . lineColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth } ;
2026-02-13 14:04:06 -07:00
fill : none ;
}
. dashed - line {
stroke - dasharray : 3 ;
}
. dotted - line {
stroke - dasharray : 1 2 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-compositionStart" ] , . composition {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-compositionEnd" ] , . composition {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-dependencyStart" ] , . dependency {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-dependencyEnd" ] , . dependency {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-extensionStart" ] , . extension {
2026-02-13 14:04:06 -07:00
fill : transparent ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-extensionEnd" ] , . extension {
2026-02-13 14:04:06 -07:00
fill : transparent ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-aggregationStart" ] , . aggregation {
2026-02-13 14:04:06 -07:00
fill : transparent ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-aggregationEnd" ] , . aggregation {
2026-02-13 14:04:06 -07:00
fill : transparent ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-lollipopStart" ] , . lollipop {
2026-02-13 14:04:06 -07:00
fill : $ { t . mainBkg } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
2026-04-01 22:38:25 +00:00
[ id$ = "-lollipopEnd" ] , . lollipop {
2026-02-13 14:04:06 -07:00
fill : $ { t . mainBkg } ! important ;
stroke : $ { t . lineColor } ! important ;
stroke - width : 1 ;
}
. edgeTerminals {
font - size : 11 px ;
line - height : initial ;
}
. classTitleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . textColor } ;
}
2026-04-01 22:38:25 +00:00
. edgeLabel [ data - look = "neo" ] {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
}
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
$ { qu ( ) }
` ,"getStyles"),A_=_ft});var Dft,Lft,Rft,__,pU=P(()=>{"use strict";Ut();bt();I0();Wd();Ud();er();Dft=o((t,e="TB")=>{if(!t.doc)return e;let r=e;for(let i of t.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),Lft=o(function(t,e){return e.db.getClasses()},"getClasses"),Rft=o(async function(t,e,r,i){Q.info("REF0:"),Q.info("Drawing class diagram (v3)",e);let{securityLevel:n,state:a,layout:s}=ge();i.db.setDiagramId(e);let l=i.db.getData(),u=Ol(e,n);l.type=i.type,l.layoutAlgorithm=Vu(s),l.nodeSpacing=a?.nodeSpacing||50,l.rankSpacing=a?.rankSpacing||50,l.markers=["aggregation","extension","composition","dependency","lollipop"],l.diagramId=e,await Ul(l,u);let h=8;Kt.insertTitle(u,"classDiagramTitleText",a?.titleTopMargin??25,i.db.getDiagramTitle()),Ro(u,h,"classDiagram",a?.useMaxWidth??!0)},"draw"),__={getClasses:Lft,draw:Rft,getDir:Dft}});var q3e={};ur(q3e,{diagram:()=>Nft});var Nft,W3e=P(()=>{"use strict";hU();fU();dU();pU();Nft={parser:E_,get db(){return new tx},renderer:__,styles:A_,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}});var Y3e={};ur(Y3e,{diagram:()=>Pft});var Pft,j3e=P(()=>{"use strict";hU();fU();dU();pU();Pft={parser:E_,get db(){return new tx},renderer:__,styles:A_,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}});var mU,D_,gU=P(()=>{"use strict";mU=(function(){var t=o(function( $ ,z,F,V){for(F=F||{},V= $ .length;V--;F[ $ [V]]=z);return F},"o"),e=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],s=[1,11],l=[1,16],u=[1,17],h=[1,18],f=[1,19],d=[1,33],p=[1,20],m=[1,21],g=[1,22],y=[1,23],v=[1,24],x=[1,26],b=[1,27],T=[1,28],w=[1,29],k=[1,30],C=[1,31],E=[1,32],S=[1,35],L=[1,36],M=[1,37],I=[1,38],A=[1,34],_=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],D=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],N=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],R={trace:o(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,"-->":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,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60, $ accept:0, $ end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"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],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:o(function(z,F,V,H,X,W,Z){var Y=W.length-1;switch(X){case 3:return H.setRootDoc(W[Y]),W[Y];break;case 4:this. $ =[];break;case 5:W[Y]!="nl"&&(W[Y-1].push(W[Y]),this. $ =W[Y-1]);break;case 6:case 7:this. $ =W[Y];break;case 8:this. $ ="nl";break;case 12:this. $ =W[Y];break;cas
2026-03-11 20:55:37 +00:00
` +de.showPosition()+ `
2026-04-01 22:38:25 +00:00
Expecting ` +U.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":ue="Parse error on line "+(ae+1)+": Unexpected "+(pe==te?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(ue,{text:de.match,token:this.terminals_[pe]||pe,line:de.yylineno,loc:we,expected:U})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+pe);switch(Fe[0]){case 1:V.push(pe),X.push(de.yytext),W.push(de.yylloc),V.push(Fe[1]),pe=null,Je?(pe=Je,Je=null):(J=de.yyleng,Y=de.yytext,ae=de.yylineno,we=de.yylloc,ee>0&&ee--);break;case 2:if(K=this.productions_[Fe[1]][1],Me. $ =X[X.length-K],Me._ $ ={first_line:W[W.length-(K||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(K||1)].first_column,last_column:W[W.length-1].last_column},Te&&(Me._ $ .range=[W[W.length-(K||1)].range[0],W[W.length-1].range[1]]),qe=this.performAction.apply(Me,[Y,J,ae,Ee.yy,Fe[1],X,W].concat(be)),typeof qe<"u")return qe;K&&(V=V.slice(0,-1*K*2),X=X.slice(0,-1*K),W=W.slice(0,-1*K)),V.push(this.productions_[Fe[1]][0]),X.push(Me. $ ),W.push(Me._ $ ),oe=Z[V[V.length-2]][V[V.length-1]],V.push(oe);break;case 3:return!0}}return!0},"parse")},B=(function(){var $ ={EOF:1,parseError:o(function(F,V){if(this.yy.parser)this.yy.parser.parseError(F,V);else throw new Error(F)},"parseError"),setInput:o(function(z,F){return this.yy=F||this.yy||{},this._input=z,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var z=this._input[0];this.yytext+=z,this.yyleng++,this.offset++,this.match+=z,this.matched+=z;var F=z.match(/(?: \r \n ?| \n ).*/g);return F?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),z},"input"),unput:o(function(z){var F=z.length,V=z.split(/(?: \r \n ?| \n )/g);this._input=z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var H=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),V.length-1&&(this.yylineno-=V.length-1);var X=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:V?(V.length===H.length?this.yylloc.first_column:0)+H[H.length-V.length].length-V[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(z){this.unput(this.match.slice(z))},"less"),pastInput:o(function(){var z=this.matched.substr(0,this.matched.length-this.match.length);return(z.length>20?"...":"")+z.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var z=this.match;return z.length<20&&(z+=this._input.substr(0,20-z.length)),(z.substr(0,20)+(z.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var z=this.pastInput(),F=new Array(z.length+1).join("-");return z+this.upcomingInput()+ `
` +F+"^"},"showPosition"),test_match:o(function(z,F){var V,H,X;if(this.options.backtrack_lexer&&(X={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(X.yylloc.range=this.yylloc.range.slice(0))),H=z[0].match(/(?: \r \n ?| \n ).*/g),H&&(this.yylineno+=H.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+z[0].length},this.yytext+=z[0],this.match+=z[0],this.matches=z,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(z[0].length),this.matched+=z[0],V=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),V)return V;if(this._backtrack){for(var W in X)this[W]=X[W];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var z,F,V,H;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),W=0;W<X.length;W++)if(V=this._input.match(this.rules[X[W]]),V&&(!F||V[0].length>F[0].length)){if(F=V,H=W,this.options.backtrack_lexer){if(z=this.test_match(V,X[W]),z!==!1)return z;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(z=this.test_match(F,X[H]),z!==!1?z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var F=this.next();return F||this.lex()},"lex"),begin:o(function(F){this.conditionStack.push(F)},"begin"),popState:o(function(){var F=this.conditionStack.length-1;return F>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(F){return F=this.conditionStack.length-1-Math.abs(F||0),F>=0?this.conditionStack[F]:"INITIAL"},"topState"),pushState:o(function(F){this.begin(F)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(F,V,H,X){var W=X;switch(H){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;break;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;break;case 19:return this.popState(),"acc_title_value";break;case 20:return this.begin("acc_descr"),35;break;case 21:return this.popState(),"acc_descr_value";break;case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;break;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 27:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 28:return this.popState(),43;break;case 29:return this.pushState("CLASS"),48;break;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 31:return this.popState(),50;break;case 32:return this.pushState("STYLE"),45;break;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 34:return this.popState(),47;break;case 35:return this.pushState("SCALE"),17;break;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),25;break;case 40:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),26;break;case 41:return this.popState(),V.yytext=V.yytext.slice(0,-10).trim(),27;break;case 42:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),25;break;case 43:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),26;break;case 44:return this.popState(),V.yytext=V.yytext.slice(0,-10).trim(),27;break;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";break;case 51:return this.popState(),"ID";break;case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;break;case 57:break;case 58:return this.popState(),21;break;case 59:break;case 60:return this.begin("NOTE"),29;break;case 61:return this.popState(),this.pushState("NOTE_ID"),59;break;case 62:return this.popState(),this.pushState("NOTE_ID"),60;break;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";break;case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 69:return this.popState(),V.yytext=V.yytext.substr(2).trim(),31;break;case 70:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),31;break;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return V.yytext=V.yytext.trim(),14;break;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click \b )/i,/^(?:href \b )/i,/^(?:"[^"]*")/i,/^(
defs [ id$ = "-barbEnd" ] {
2026-02-13 14:04:06 -07:00
fill : $ { t . transitionColor } ;
stroke : $ { t . transitionColor } ;
}
g . stateGroup text {
fill : $ { t . nodeBorder } ;
stroke : none ;
font - size : 10 px ;
}
g . stateGroup text {
fill : $ { t . textColor } ;
stroke : none ;
font - size : 10 px ;
}
g . stateGroup . state - title {
font - weight : bolder ;
fill : $ { t . stateLabelColor } ;
}
g . stateGroup rect {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
}
g . stateGroup line {
stroke : $ { t . lineColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } ;
2026-02-13 14:04:06 -07:00
}
. transition {
stroke : $ { t . transitionColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } ;
2026-02-13 14:04:06 -07:00
fill : none ;
}
. stateGroup . composit {
fill : $ { t . background } ;
border - bottom : 1 px
}
. stateGroup . alt - composit {
fill : # e0e0e0 ;
border - bottom : 1 px
}
. state - note {
stroke : $ { t . noteBorderColor } ;
fill : $ { t . noteBkgColor } ;
text {
fill : $ { t . noteTextColor } ;
stroke : none ;
font - size : 10 px ;
}
}
. stateLabel . box {
stroke : none ;
stroke - width : 0 ;
fill : $ { t . mainBkg } ;
opacity : 0.5 ;
}
. edgeLabel . label rect {
fill : $ { t . labelBackgroundColor } ;
opacity : 0.5 ;
}
. edgeLabel {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
}
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
. edgeLabel . label text {
fill : $ { t . transitionLabelColor || t . tertiaryTextColor } ;
}
. label div . edgeLabel {
color : $ { t . transitionLabelColor || t . tertiaryTextColor } ;
}
. stateLabel text {
fill : $ { t . stateLabelColor } ;
font - size : 10 px ;
font - weight : bold ;
}
. node circle . state - start {
fill : $ { t . specialStateColor } ;
stroke : $ { t . specialStateColor } ;
}
. node . fork - join {
fill : $ { t . specialStateColor } ;
stroke : $ { t . specialStateColor } ;
}
. node circle . state - end {
fill : $ { t . innerEndBackground } ;
stroke : $ { t . background } ;
stroke - width : 1.5
}
. end - state - inner {
fill : $ { t . compositeBackground || t . background } ;
// stroke: ${t.background};
stroke - width : 1.5
}
. node rect {
fill : $ { t . stateBkg || t . mainBkg } ;
stroke : $ { t . stateBorder || t . nodeBorder } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } px ;
2026-02-13 14:04:06 -07:00
}
. node polygon {
fill : $ { t . mainBkg } ;
stroke : $ { t . stateBorder || t . nodeBorder } ; ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } px ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
[ id$ = "-barbEnd" ] {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ;
}
. statediagram - cluster rect {
fill : $ { t . compositeTitleBackground } ;
stroke : $ { t . stateBorder || t . nodeBorder } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } px ;
2026-02-13 14:04:06 -07:00
}
. cluster - label , . nodeLabel {
color : $ { t . stateLabelColor } ;
// line-height: 1;
}
. statediagram - cluster rect . outer {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - state . divider {
stroke : $ { t . stateBorder || t . nodeBorder } ;
}
. statediagram - state . title - state {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - cluster . statediagram - cluster . inner {
fill : $ { t . compositeBackground || t . background } ;
}
. statediagram - cluster . statediagram - cluster - alt . inner {
fill : $ { t . altBackground ? t . altBackground : "#efefef" } ;
}
. statediagram - cluster . inner {
rx : 0 ;
ry : 0 ;
}
. statediagram - state rect . basic {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - state rect . divider {
stroke - dasharray : 10 , 10 ;
fill : $ { t . altBackground ? t . altBackground : "#efefef" } ;
}
. note - edge {
stroke - dasharray : 5 ;
}
. statediagram - note rect {
fill : $ { t . noteBkgColor } ;
stroke : $ { t . noteBorderColor } ;
stroke - width : 1 px ;
rx : 0 ;
ry : 0 ;
}
. statediagram - note rect {
fill : $ { t . noteBkgColor } ;
stroke : $ { t . noteBorderColor } ;
stroke - width : 1 px ;
rx : 0 ;
ry : 0 ;
}
. statediagram - note text {
fill : $ { t . noteTextColor } ;
}
. statediagram - note . nodeLabel {
color : $ { t . noteTextColor } ;
}
. statediagram . edgeLabel {
color : red ; // ${t.noteTextColor};
}
2026-04-01 22:38:25 +00:00
[ id$ = "-dependencyStart" ] , [ id$ = "-dependencyEnd" ] {
2026-02-13 14:04:06 -07:00
fill : $ { t . lineColor } ;
stroke : $ { t . lineColor } ;
2026-04-01 22:38:25 +00:00
stroke - width : $ { t . strokeWidth || 1 } ;
2026-02-13 14:04:06 -07:00
}
. statediagramTitleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . textColor } ;
}
2026-04-01 22:38:25 +00:00
[ data - look = "neo" ] . statediagram - cluster rect {
fill : $ { t . mainBkg } ;
stroke : $ { t . useGradient ? "url(" + t . svgId + "-gradient)" : t . stateBorder || t . nodeBorder } ;
stroke - width : $ { t . strokeWidth ? ? 1 } ;
}
[ data - look = "neo" ] . statediagram - cluster rect . outer {
rx : $ { t . radius } px ;
ry : $ { t . radius } px ;
filter : $ { t . dropShadow ? t . dropShadow . replace ( "url(#drop-shadow)" , ` url( ${ t . svgId } -drop-shadow) ` ) : "none" }
}
` ,"getStyles"), $ _=Qft});var Zft,Jft,edt,tdt,b5e,rdt,idt,ndt,adt,NU,x5e,T5e,k5e=P(()=>{"use strict";Pr();F_();er();Vr();Ut();bt();Zft=o(t=>t.append("circle").attr("class","start-state").attr("r",ge().state.sizeUnit).attr("cx",ge().state.padding+ge().state.sizeUnit).attr("cy",ge().state.padding+ge().state.sizeUnit),"drawStartState"),Jft=o(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",ge().state.textHeight).attr("class","divider").attr("x2",ge().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),edt=o((t,e)=>{let r=t.append("text").attr("x",2*ge().state.padding).attr("y",ge().state.textHeight+2*ge().state.padding).attr("font-size",ge().state.fontSize).attr("class","state-title").text(e.id),i=r.node().getBBox();return t.insert("rect",":first-child").attr("x",ge().state.padding).attr("y",ge().state.padding).attr("width",i.width+2*ge().state.padding).attr("height",i.height+2*ge().state.padding).attr("rx",ge().state.radius),r},"drawSimpleState"),tdt=o((t,e)=>{let r=o(function(p,m,g){let y=p.append("tspan").attr("x",2*ge().state.padding).text(m);g||y.attr("dy",ge().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*ge().state.padding).attr("y",ge().state.textHeight+1.3*ge().state.padding).attr("font-size",ge().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=n.height,s=t.append("text").attr("x",ge().state.padding).attr("y",a+ge().state.padding*.4+ge().state.dividerMargin+ge().state.textHeight).attr("class","state-description"),l=!0,u=!0;e.descriptions.forEach(function(p){l||(r(s,p,u),u=!1),l=!1});let h=t.append("line").attr("x1",ge().state.padding).attr("y1",ge().state.padding+a+ge().state.dividerMargin/2).attr("y2",ge().state.padding+a+ge().state.dividerMargin/2).attr("class","descr-divider"),f=s.node().getBBox(),d=Math.max(f.width,n.width);return h.attr("x2",d+3*ge().state.padding),t.insert("rect",":first-child").attr("x",ge().state.padding).attr("y",ge().state.padding).attr("width",d+2*ge().state.padding).attr("height",f.height+a+2*ge().state.padding).attr("rx",ge().state.radius),t},"drawDescrState"),b5e=o((t,e,r)=>{let i=ge().state.padding,n=2*ge().state.padding,a=t.node().getBBox(),s=a.width,l=a.x,u=t.append("text").attr("x",0).attr("y",ge().state.titleShift).attr("font-size",ge().state.fontSize).attr("class","state-title").text(e.id),f=u.node().getBBox().width+n,d=Math.max(f,s);d===s&&(d=d+n);let p,m=t.node().getBBox();e.doc,p=l-i,f>s&&(p=(s-d)/2+i),Math.abs(l-m.x)<i&&f>s&&(p=l-(f-s)/2);let g=1-ge().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",m.height+ge().state.textHeight+ge().state.titleShift+1).attr("rx","0"),u.attr("x",p+i),f<=s&&u.attr("x",l+(d-n)/2-f/2+i),t.insert("rect",":first-child").attr("x",p).attr("y",ge().state.titleShift-ge().state.textHeight-ge().state.padding).attr("width",d).attr("height",ge().state.textHeight*3).attr("rx",ge().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",ge().state.titleShift-ge().state.textHeight-ge().state.padding).attr("width",d).attr("height",m.height+3+2*ge().state.textHeight).attr("rx",ge().state.radius),t},"addTitleAndBox"),rdt=o(t=>(t.append("circle").attr("class","end-state-outer").attr("r",ge().state.sizeUnit+ge().state.miniPadding).attr("cx",ge().state.padding+ge().state.sizeUnit+ge().state.miniPadding).attr("cy",ge().state.padding+ge().state.sizeUnit+ge().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",ge().state.sizeUnit).attr("cx",ge().state.padding+ge().state.sizeUnit+2).attr("cy",ge().state.padding+ge().state.sizeUnit+2)),"drawEndState"),idt=o((t,e)=>{let r=ge().state.forkWidth,i=ge().state.forkHeight;if(e.parentId){let n=r;r=i,i=n}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",ge().state.padding).attr("y",ge().state.padding)},"drawForkJoinState"),ndt=o((t,e,r,i)=>{let n=0,a=i.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.
` +M.showPosition()+ `
Expecting ` +Y.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ae="Parse error on line "+(w+1)+": Unexpected "+(B==S?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ae,{text:M.match,token:this.terminals_[B]||B,line:M.yylineno,loc:_,expected:Y})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ $ +", token: "+B);switch(z[0]){case 1:g.push(B),v.push(M.yytext),x.push(M.yylloc),g.push(z[1]),B=null,O?(B=O,O=null):(k=M.yyleng,T=M.yytext,w=M.yylineno,_=M.yylloc,C>0&&C--);break;case 2:if(W=this.productions_[z[1]][1],H. $ =v[v.length-W],H._ $ ={first_line:x[x.length-(W||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(W||1)].first_column,last_column:x[x.length-1].last_column},D&&(H._ $ .range=[x[x.length-(W||1)].range[0],x[x.length-1].range[1]]),V=this.performAction.apply(H,[T,k,w,I.yy,z[1],v,x].concat(L)),typeof V<"u")return V;W&&(g=g.slice(0,-1*W*2),v=v.slice(0,-1*W),x=x.slice(0,-1*W)),g.push(this.productions_[z[1]][0]),v.push(H. $ ),x.push(H._ $ ),Z=b[g[g.length-2]][g[g.length-1]],g.push(Z);break;case 3:return!0}}return!0},"parse")},h=(function(){var d={EOF:1,parseError:o(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw new Error(m)},"parseError"),setInput:o(function(p,m){return this.yy=m||this.yy||{},this._input=p,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:o(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?: \r \n ?| \n ).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:o(function(p){var m=p.length,g=p.split(/(?: \r \n ?| \n )/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var y=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
2026-02-13 14:04:06 -07:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(p){this.unput(this.match.slice(p))},"less"),pastInput:o(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+ `
` +m+"^"},"showPosition"),test_match:o(function(p,m){var g,y,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),y=p[0].match(/(?: \r \n ?| \n ).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,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(p[0].length),this.matched+=p[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var x in v)this[x]=v[x];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,g,y;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),x=0;x<v.length;x++)if(g=this._input.match(this.rules[v[x]]),g&&(!m||g[0].length>m[0].length)){if(m=g,y=x,this.options.backtrack_lexer){if(p=this.test_match(g,v[x]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[y]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
2026-04-01 22:38:25 +00:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var m=this.next();return m||this.lex()},"lex"),begin:o(function(m){this.conditionStack.push(m)},"begin"),popState:o(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:o(function(m){this.begin(m)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(m,g,y,v){var x=v;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;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}}};return d})();u.lexer=h;function f(){this.yy={}}return o(f,"Parser"),f.prototype=u,u.Parser=f,new f})();MU.parser=MU;M5e=MU});var nx,OU,BC,FC,vdt,xdt,bdt,Tdt,kdt,Cdt,wdt,P5e,Edt,PU,B5e=P(()=>{"use strict";Ut();Ki();nx="",OU=[],BC=[],FC=[],vdt=o(function(){OU.length=0,BC.length=0,nx="",FC.length=0,wr()},"clear"),xdt=o(function(t){nx=t,OU.push(t)},"addSection"),bdt=o(function(){return OU},"getSections"),Tdt=o(function(){let t=P5e(),e=100,r=0;for(;!t&&r<e;)t=P5e(),r++;return BC.push(...FC),BC},"getTasks"),kdt=o(function(){let t=[];return BC.forEach(r=>{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),Cdt=o(function(t,e){let r=e.substr(1).split(":"),i=0,n=[];r.length===1?(i=Number(r[0]),n=[]):(i=Number(r[0]),n=r[1].split(","));let a=n.map(l=>l.trim()),s={section:nx,type:nx,people:a,task:t,score:i};FC.push(s)},"addTask"),wdt=o(function(t){let e={section:nx,type:nx,description:t,task:t,classes:[]};BC.push(e)},"addTaskOrg"),P5e=o(function(){let t=o(function(r){return FC[r].processed},"compileTask"),e=!0;for(let[r,i]of FC.entries())t(r),e=e&&i.processed;return e},"compileTasks"),Edt=o(function(){return kdt()},"getActors"),PU={getConfig:o(()=>ge().journey,"getConfig"),clear:vdt,setDiagramTitle:Mr,getDiagramTitle:Nr,setAccTitle:Ar,getAccTitle:Dr,setAccDescription:Lr,getAccDescription:Rr,addSection:xdt,getSections:bdt,getTasks:Tdt,addTask:Cdt,addTaskOrg:wdt,getActors:Edt}});var Sdt,F5e, $ 5e=P(()=>{"use strict";wy();Sdt=o(t=> ` . label {
2026-02-13 14:04:06 -07:00
font - family : $ { t . fontFamily } ;
color : $ { t . textColor } ;
}
. mouth {
stroke : # 666 ;
}
line {
stroke : $ { t . textColor }
}
. legend {
fill : $ { t . textColor } ;
font - family : $ { t . fontFamily } ;
}
. label text {
fill : # 333 ;
}
. label {
color : $ { t . textColor }
}
. face {
$ { t . faceColor ? ` fill: ${ t . faceColor } ` : "fill: #FFF8DC" } ;
stroke : # 999 ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
stroke - width : 1 px ;
}
. node . label {
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
. arrowheadPath {
fill : $ { t . arrowheadColor } ;
}
. edgePath . path {
stroke : $ { t . lineColor } ;
stroke - width : 1.5 px ;
}
. flowchart - link {
stroke : $ { t . lineColor } ;
fill : none ;
}
. edgeLabel {
background - color : $ { t . edgeLabelBackground } ;
rect {
opacity : 0.5 ;
}
text - align : center ;
}
. cluster rect {
}
. cluster text {
fill : $ { t . titleColor } ;
}
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
font - family : $ { t . fontFamily } ;
font - size : 12 px ;
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
. task - type - 0 , . section - type - 0 {
$ { t . fillType0 ? ` fill: ${ t . fillType0 } ` : "" } ;
}
. task - type - 1 , . section - type - 1 {
$ { t . fillType0 ? ` fill: ${ t . fillType1 } ` : "" } ;
}
. task - type - 2 , . section - type - 2 {
$ { t . fillType0 ? ` fill: ${ t . fillType2 } ` : "" } ;
}
. task - type - 3 , . section - type - 3 {
$ { t . fillType0 ? ` fill: ${ t . fillType3 } ` : "" } ;
}
. task - type - 4 , . section - type - 4 {
$ { t . fillType0 ? ` fill: ${ t . fillType4 } ` : "" } ;
}
. task - type - 5 , . section - type - 5 {
$ { t . fillType0 ? ` fill: ${ t . fillType5 } ` : "" } ;
}
. task - type - 6 , . section - type - 6 {
$ { t . fillType0 ? ` fill: ${ t . fillType6 } ` : "" } ;
}
. task - type - 7 , . section - type - 7 {
$ { t . fillType0 ? ` fill: ${ t . fillType7 } ` : "" } ;
}
. actor - 0 {
$ { t . actor0 ? ` fill: ${ t . actor0 } ` : "" } ;
}
. actor - 1 {
$ { t . actor1 ? ` fill: ${ t . actor1 } ` : "" } ;
}
. actor - 2 {
$ { t . actor2 ? ` fill: ${ t . actor2 } ` : "" } ;
}
. actor - 3 {
$ { t . actor3 ? ` fill: ${ t . actor3 } ` : "" } ;
}
. actor - 4 {
$ { t . actor4 ? ` fill: ${ t . actor4 } ` : "" } ;
}
. actor - 5 {
$ { t . actor5 ? ` fill: ${ t . actor5 } ` : "" } ;
}
2026-04-01 22:38:25 +00:00
$ { qu ( ) }
` ,"getStyles"),F5e=Sdt});var FU,Adt,z5e,G5e,_dt,Ddt,BU,Ldt,Rdt,V5e,Ndt,ax,q5e=P(()=>{"use strict";Pr();y0();FU=o(function(t,e){return g0(t,e)},"drawRect"),Adt=o(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=kc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}o(a,"smile");function s(u){let h=kc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),e.score>3?a(n):e.score<3?s(n):l(n),i},"drawFace"),z5e=o(function(t,e){let r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),G5e=o(function(t,e){return ure(t,e)},"drawText"),_dt=o(function(t,e){function r(n,a,s,l,u){return n+","+a+" "+(n+s)+","+a+" "+(n+s)+","+(a+l-u)+" "+(n+s-u*1.2)+","+(a+l)+" "+n+","+(a+l)}o(r,"genPoints");let 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,G5e(t,e)},"drawLabel"),Ddt=o(function(t,e,r){let i=t.append("g"),n=ja();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),n.height=r.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,FU(i,n),V5e(r)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),BU=-1,Ldt=o(function(t,e,r,i){let n=e.x+r.width/2,a=t.append("g");BU++,a.append("line").attr("id",i+"-task"+BU).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Adt(a,{cx:n,cy:300+(5-e.score)*30,score:e.score});let l=ja();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=r.width,l.height=r.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,FU(a,l);let u=e.x+14;e.people.forEach(h=>{let f=e.actors[h].color,d={cx:u,cy:e.y,r:7,fill:f,stroke:"#000",title:h,pos:e.actors[h].position};z5e(a,d),u+=10}),V5e(r)(e.task,a,l.x,l.y,l.width,l.height,{class:"task"},r,e.colour)},"drawTask"),Rdt=o(function(t,e){k3(t,e)},"drawBackgroundRect"),V5e=(function(){function t(n,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(n);i(p,f)}o(t,"byText");function e(n,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=n.split(/<br \s * \/ ?>/gi);for(let v=0;v<y.length;v++){let x=v*m-m*(y.length-1)/2,b=a.append("text").attr("x",s+u/2).attr("y",l).attr("fill",p).style("text-anchor","middle").style("font-size",m).style("font-family",g);b.append("tspan").attr("x",s+u/2).attr("dy",x).text(y[v]),b.attr("y",l+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(b,f)}}o(e,"byTspan");function r(n,a,s,l,u,h,f,d){let p=a.append("switch"),g=p.append("foreignObject").attr("x",s).attr("y",l).attr("width",u).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","center").st
` +I.showPosition()+ `
Expecting ` +ae.join(", ")+", got '"+(this.terminals_[O]||O)+"'":J="Parse error on line "+(k+1)+": Unexpected "+(O==L?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(J,{text:I.match,token:this.terminals_[O]||O,line:I.yylineno,loc:D,expected:ae})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+O);switch(F[0]){case 1:y.push(O),x.push(I.yytext),b.push(I.yylloc),y.push(F[1]),O=null, $ ?(O= $ , $ =null):(C=I.yyleng,w=I.yytext,k=I.yylineno,D=I.yylloc,E>0&&E--);break;case 2:if(Z=this.productions_[F[1]][1],X. $ =x[x.length-Z],X._ $ ={first_line:b[b.length-(Z||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Z||1)].first_column,last_column:b[b.length-1].last_column},N&&(X._ $ .range=[b[b.length-(Z||1)].range[0],b[b.length-1].range[1]]),H=this.performAction.apply(X,[w,C,k,A.yy,F[1],x,b].concat(M)),typeof H<"u")return H;Z&&(y=y.slice(0,-1*Z*2),x=x.slice(0,-1*Z),b=b.slice(0,-1*Z)),y.push(this.productions_[F[1]][0]),x.push(X. $ ),b.push(X._ $ ),Y=T[y[y.length-2]][y[y.length-1]],y.push(Y);break;case 3:return!0}}return!0},"parse")},f=(function(){var p={EOF:1,parseError:o(function(g,y){if(this.yy.parser)this.yy.parser.parseError(g,y);else throw new Error(g)},"parseError"),setInput:o(function(m,g){return this.yy=g||this.yy||{},this._input=m,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:o(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var g=m.match(/(?: \r \n ?| \n ).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:o(function(m){var g=m.length,y=m.split(/(?: \r \n ?| \n )/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var v=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===v.length?this.yylloc.first_column:0)+v[v.length-y.length].length-y[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
2026-02-13 14:04:06 -07:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(m){this.unput(this.match.slice(m))},"less"),pastInput:o(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var m=this.pastInput(),g=new Array(m.length+1).join("-");return m+this.upcomingInput()+ `
` +g+"^"},"showPosition"),test_match:o(function(m,g){var y,v,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),v=m[0].match(/(?: \r \n ?| \n ).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var b in x)this[b]=x[b];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,g,y,v;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),b=0;b<x.length;b++)if(y=this._input.match(this.rules[x[b]]),y&&(!g||y[0].length>g[0].length)){if(g=y,v=b,this.options.backtrack_lexer){if(m=this.test_match(y,x[b]),m!==!1)return m;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(m=this.test_match(g,x[v]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
2026-04-01 22:38:25 +00:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var g=this.next();return g||this.lex()},"lex"),begin:o(function(g){this.conditionStack.push(g)},"begin"),popState:o(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:o(function(g){this.begin(g)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(g,y,v,x){var b=x;switch(v){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:#[^ \n ]*)/i,/^(?:timeline[ \t ]+LR \b )/i,/^(?:timeline[ \t ]+TD \b )/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 ]|:(?! \s ))+)/i,/^(?:[^#: \n ]+)/i,/^(?: $ )/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return p})();h.lexer=f;function d(){this.yy={}}return o(d,"Parser"),d.prototype=h,h.Parser=d,new d})();VU.parser=VU;eEe=VU});var UU={};ur(UU,{addEvent:()=>fEe,addSection:()=>lEe,addTask:()=>hEe,addTaskOrg:()=>dEe,clear:()=>aEe,default:()=>Hdt,getCommonDb:()=>nEe,getDirection:()=>oEe,getSections:()=>cEe,getTasks:()=>uEe,setDirection:()=>sEe});var sx,iEe,qU,WU,G_,ox,nEe,aEe,sEe,oEe,lEe,cEe,uEe,hEe,fEe,dEe,rEe,Hdt,pEe=P(()=>{"use strict";Ki();sx="",iEe=0,qU="LR",WU=[],G_=[],ox=[],nEe=o(()=>e2,"getCommonDb"),aEe=o(function(){WU.length=0,G_.length=0,sx="",ox.length=0,qU="LR",wr()},"clear"),sEe=o(function(t){qU=t},"setDirection"),oEe=o(function(){return qU},"getDirection"),lEe=o(function(t){sx=t,WU.push(t)},"addSection"),cEe=o(function(){return WU},"getSections"),uEe=o(function(){let t=rEe(),e=100,r=0;for(;!t&&r<e;)t=rEe(),r++;return G_.push(...ox),G_},"getTasks"),hEe=o(function(t,e,r){let i={id:iEe++,section:sx,type:sx,task:t,score:e||0,events:r?[r]:[]};ox.push(i)},"addTask"),fEe=o(function(t){ox.find(r=>r.id===iEe-1).events.push(t)},"addEvent"),dEe=o(function(t){let e={section:sx,type:sx,description:t,task:t,classes:[]};G_.push(e)},"addTaskOrg"),rEe=o(function(){let t=o(function(r){return ox[r].processed},"compileTask"),e=!0;for(let[r,i]of ox.entries())t(r),e=e&&i.processed;return e},"compileTasks"),Hdt={clear:aEe,getCommonDb:nEe,getDirection:oEe,setDirection:sEe,addSection:lEe,getSections:cEe,getTasks:uEe,addTask:hEe,addTaskOrg:dEe,addEvent:fEe}});function vEe(t,e){t.each(function(){var r=Ze(this),i=r.text().split(/( \s +|<br>)/).reverse(),n,a=[],s=1.1,l=r.attr("y"),u=parseFloat(r.attr("dy")),h=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",u+"em");for(let f=0;f<i.length;f++)n=i[i.length-1-f],a.push(n),h.text(a.join(" ").trim()),(h.node().getComputedTextLength()>e||n==="<br>")&&(a.pop(),h.text(a.join(" ").trim()),n==="<br>"?a=[""]:a=[n],h=r.append("tspan").attr("x",0).attr("y",l).attr("dy",s+"em").text(n))})}var mEe,V_,Ydt,jdt,gEe,Xdt,Kdt,HU,
. section - $ { l - 1 } rect ,
. section - $ { l - 1 } path ,
. section - $ { l - 1 } circle {
fill : $ { r && i ? t . mainBkg : h } ;
stroke : $ { f } ;
stroke - width : $ { t . strokeWidth } ;
filter : $ { a } ;
}
. section - $ { l - 1 } text {
fill : $ { t . nodeBorder } ;
font - weight : $ { t . fontWeight }
}
. node - icon - $ { l - 1 } {
font - size : 40 px ;
color : $ { t [ "cScaleLabel" + l ] } ;
}
. section - edge - $ { l - 1 } {
stroke : $ { t [ "cScale" + l ] } ;
}
. edge - depth - $ { l - 1 } {
stroke - width : $ { u } ;
}
. section - $ { l - 1 } line {
stroke : $ { t [ "cScaleInv" + l ] } ;
stroke - width : 3 ;
}
. lineWrapper line {
stroke : $ { t . nodeBorder } ;
stroke - width : $ { t . strokeWidth }
}
. disabled ,
. disabled circle ,
. disabled text {
fill : $ { t . tertiaryColor ? ? "lightgray" } ;
}
. disabled text {
fill : $ { t . clusterBorder ? ? "#efefef" } ;
}
` }return s},"genReduxSections"),fpt=o(t=>{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],yi(t["lineColor"+r])?t["lineColor"+r]=Ke(t["lineColor"+r],20):t["lineColor"+r]=Ye(t["lineColor"+r],20);for(let r=0;r<t.THEME_COLOR_LIMIT;r++){let i=""+(17-3*r);e+= `
2026-02-13 14:04:06 -07:00
. section - $ { r - 1 } rect , . section - $ { r - 1 } path , . section - $ { r - 1 } circle , . section - $ { r - 1 } path {
fill : $ { t [ "cScale" + r ] } ;
}
. section - $ { r - 1 } text {
fill : $ { t [ "cScaleLabel" + r ] } ;
}
. node - icon - $ { r - 1 } {
font - size : 40 px ;
color : $ { t [ "cScaleLabel" + r ] } ;
}
. section - edge - $ { r - 1 } {
stroke : $ { t [ "cScale" + r ] } ;
}
. edge - depth - $ { r - 1 } {
2026-04-01 22:38:25 +00:00
stroke - width : $ { i } ;
2026-02-13 14:04:06 -07:00
}
. section - $ { r - 1 } line {
stroke : $ { t [ "cScaleInv" + r ] } ;
stroke - width : 3 ;
}
. lineWrapper line {
stroke : $ { t [ "cScaleLabel" + r ] } ;
}
. disabled , . disabled circle , . disabled text {
2026-04-01 22:38:25 +00:00
fill : $ { t . tertiaryColor ? ? "lightgray" } ;
2026-02-13 14:04:06 -07:00
}
. disabled text {
2026-04-01 22:38:25 +00:00
fill : $ { t . clusterBorder ? ? "#efefef" } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
` }return e},"genSections"),dpt=o(t=>{let{theme:e}=Lt(),r=e?.includes("redux"),i=e==="neutral",n=t.svgId?.replace(/^#/,"")??"",a="";if(t.useGradient&&n&&t.THEME_COLOR_LIMIT&&!i)for(let s=0;s<t.THEME_COLOR_LIMIT;s++)a+= `
. section - $ { s - 1 } [ data - look = "neo" ] rect ,
. section - $ { s - 1 } [ data - look = "neo" ] path ,
. section - $ { s - 1 } [ data - look = "neo" ] circle {
fill : $ { t . mainBkg } ;
stroke : url ( # $ { n } - gradient ) ;
stroke - width : 2 ;
}
. section - $ { s - 1 } [ data - look = "neo" ] line {
stroke : url ( # $ { n } - gradient ) ;
stroke - width : 2 ;
} ` ;return `
2026-02-13 14:04:06 -07:00
. edge {
stroke - width : 3 ;
}
2026-04-01 22:38:25 +00:00
$ { r ? hpt ( t ) : fpt ( t ) }
$ { a }
2026-02-13 14:04:06 -07:00
. section - root rect , . section - root path , . section - root circle {
fill : $ { t . git0 } ;
}
. section - root text {
fill : $ { t . gitBranchLabel0 } ;
}
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
}
. edge {
fill : none ;
}
. eventWrapper {
filter : brightness ( 120 % ) ;
}
2026-04-01 22:38:25 +00:00
` },"getStyles"),LEe=dpt});var NEe={};ur(NEe,{diagram:()=>mpt});var ppt,mpt,IEe=P(()=>{"use strict";tEe();pEe();TEe();DEe();REe();ppt={setConf:o(()=>{},"setConf"),draw:o((t,e,r,i)=>(i?.db?.getDirection?.()??"LR")==="TD"?_Ee.draw(t,e,r,i):bEe.draw(t,e,r,i),"draw")},mpt={db:UU,renderer:ppt,parser:eEe,styles:LEe}});var KU,PEe,BEe=P(()=>{"use strict";KU=(function(){var t=o(function(w,k,C,E){for(C=C||{},E=w.length;E--;C[w[E]]=k);return C},"o"),e=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],g=[1,33],y=[1,34],v=[1,6,7,11,13,15,16,19,22],x={trace:o(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:o(function(k,C,E,S,L,M,I){var A=M.length-1;switch(L){case 6:case 7:return S;case 8:S.getLogger().trace("Stop NL ");break;case 9:S.getLogger().trace("Stop EOF ");break;case 11:S.getLogger().trace("Stop NL2 ");break;case 12:S.getLogger().trace("Stop EOF2 ");break;case 15:S.getLogger().info("Node: ",M[A].id),S.addNode(M[A-1].length,M[A].id,M[A].descr,M[A].type);break;case 16:S.getLogger().trace("Icon: ",M[A]),S.decorateNode({icon:M[A]});break;case 17:case 21:S.decorateNode({class:M[A]});break;case 18:S.getLogger().trace("SPACELIST");break;case 19:S.getLogger().trace("Node: ",M[A].id),S.addNode(0,M[A].id,M[A].descr,M[A].type);break;case 20:S.decorateNode({icon:M[A]});break;case 25:S.getLogger().trace("node found ..",M[A-2]),this. $ ={id:M[A-1],descr:M[A-1],type:S.getType(M[A-2],M[A])};break;case 26:this. $ ={id:M[A],descr:M[A],type:S.nodeType.DEFAULT};break;case 27:S.getLogger().trace("node found ..",M[A-3]),this. $ ={id:M[A-3],descr:M[A-1],type:S.getType(M[A-2],M[A])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:s,22:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:s,22:l},{6:r,9:22,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:s,22:l},{6:h,7:f,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:f,10:32,11:d},{1:[2,7],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:s,22:l},t(m,[2,14],{7:g,11:y}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:g,11:y}),t(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(k,C){if(C.recoverable)this.trace(k);else{var E=new Error(k);throw E.hash=C,E}},"parseError"),parse:o(function(k){var C=this,E=[0],S=[],L=[null],M=[],I=this.table,A="",_=0,D=0,N=0,R=2,B=1,O=M.slice.call(arguments,1), $ =Object.create(this.lexer),z={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(z.yy[F]=this.yy[F]); $ .setInput(k,z.yy),z.yy.lexer= $ ,z.yy.parser=this,typeof $ .yylloc>"u"&&( $ .yylloc={});var V= $ .yylloc;M.push(V);var H= $ .options&& $ .options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(Te){E.length=E.length-2*Te,L.length=L.length-Te,M.length=M.length-Te}o(X,"popStack");function W(){var Te;return Te=S.pop()|| $ .lex()||B,typeof Te!="number"&&(Te instanceof Array&&(S=Te,Te=S.pop()),Te=C.symbols_[Te]||Te),Te}o(W,"lex");for(var Z,Y,ae,J,ee,re,te={},be,de,Ee,Ne;;){if(ae=E[E.length-1],this.defaultActions[ae]?J=this.defaultActions[ae]:((Z
` + $ .showPosition()+ `
Expecting ` +Ne.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":we="Parse error on line "+(_+1)+": Unexpected "+(Z==B?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(we,{text: $ .match,token:this.terminals_[Z]||Z,line: $ .yylineno,loc:V,expected:Ne})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+Z);switch(J[0]){case 1:E.push(Z),L.push( $ .yytext),M.push( $ .yylloc),E.push(J[1]),Z=null,Y?(Z=Y,Y=null):(D= $ .yyleng,A= $ .yytext,_= $ .yylineno,V= $ .yylloc,N>0&&N--);break;case 2:if(de=this.productions_[J[1]][1],te. $ =L[L.length-de],te._ $ ={first_line:M[M.length-(de||1)].first_line,last_line:M[M.length-1].last_line,first_column:M[M.length-(de||1)].first_column,last_column:M[M.length-1].last_column},H&&(te._ $ .range=[M[M.length-(de||1)].range[0],M[M.length-1].range[1]]),re=this.performAction.apply(te,[A,D,_,z.yy,J[1],L,M].concat(O)),typeof re<"u")return re;de&&(E=E.slice(0,-1*de*2),L=L.slice(0,-1*de),M=M.slice(0,-1*de)),E.push(this.productions_[J[1]][0]),L.push(te. $ ),M.push(te._ $ ),Ee=I[E[E.length-2]][E[E.length-1]],E.push(Ee);break;case 3:return!0}}return!0},"parse")},b=(function(){var w={EOF:1,parseError:o(function(C,E){if(this.yy.parser)this.yy.parser.parseError(C,E);else throw new Error(C)},"parseError"),setInput:o(function(k,C){return this.yy=C||this.yy||{},this._input=k,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:o(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var C=k.match(/(?: \r \n ?| \n ).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},"input"),unput:o(function(k){var C=k.length,E=k.split(/(?: \r \n ?| \n )/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var S=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var L=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:E?(E.length===S.length?this.yylloc.first_column:0)+S[S.length-E.length].length-E[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(k){this.unput(this.match.slice(k))},"less"),pastInput:o(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var k=this.pastInput(),C=new Array(k.length+1).join("-");return k+this.upcomingInput()+ `
` +C+"^"},"showPosition"),test_match:o(function(k,C){var E,S,L;if(this.options.backtrack_lexer&&(L={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&&(L.yylloc.range=this.yylloc.range.slice(0))),S=k[0].match(/(?: \r \n ?| \n ).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,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(k[0].length),this.matched+=k[0],E=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var M in L)this[M]=L[M];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var k,C,E,S;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),M=0;M<L.length;M++)if(E=this._input.match(this.rules[L[M]]),E&&(!C||E[0].length>C[0].length)){if(C=E,S=M,this.options.backtrack_lexer){if(k=this.test_match(E,L[M]),k!==!1)return k;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(k=this.test_match(C,L[S]),k!==!1?k:!1):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:o(function(){var C=this.next();return C||this.lex()},"lex"),begin:o(function(C){this.conditionStack.push(C)},"begin"),popState:o(function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:o(function(C){this.begin(C)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(C,E,S,L){var M=L;switch(S){case 0:return C.getLogger().trace("Found comment",E.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:C.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return C.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:C.getLogger().trace("end icon"),this.popState();break;case 10:return C.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return C.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return C.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return C.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;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:C.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return C.getLogger().trace("description:",E.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),C.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),C.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),C.getLogger().trace("node end ...",E.yytext),"NODE_DEND";break;case 30:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),C.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),C.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return C.getLogger().trace("Long description:",E.yytext),20;break;case 36:return C.getLogger().trace("Long description:",E.yytext),20;break}},"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 } } } ; return w } ) ( ) ; x . lexer = b ; function T ( ) { this . yy = { } } return o ( T , "Parser" ) , T . prototype = x , x . Parser = T , new T } ) ( ) ; KU . parser = KU ; PEe = KU } ) ; function FEe ( t , e = 0 ) { return ( os [ t [ e + 0 ] ] + os [ t [ e + 1 ] ] + os [ t [ e + 2 ] ] + os [ t [ e + 3 ] ] + "-" + os [ t [ e + 4 ] ] + os [ t [ e + 5 ] ] + "-" + os [ t [ e + 6 ] ] + os [ t [ e + 7 ] ] + "-" + os [ t [ e + 8 ] ] + os [ t [ e + 9 ] ] + "-" + os [ t [ e + 10 ] ] + os [ t [ e + 11 ] ] + os [ t [ e + 12 ] ] + os [ t [ e + 13 ] ] + os [ t [ e + 1
` +t);let n=i.db,a=n.getData(),s=Ol(e,a.config.securityLevel);if(a.type=i.type,a.layoutAlgorithm=Vu(a.config.layout,{fallback:"cose-bilkent"}),a.diagramId=e,!n.getMindmap())return;a.nodes.forEach(p=>{p.shape==="rounded"?(p.radius=15,p.taper=15,p.stroke="none",p.width=0,p.padding=15):p.shape==="circle"?p.padding=10:p.shape==="rect"?(p.width=0,p.padding=10):p.shape==="hexagon"&&(p.width=0,p.height=0)}),await Ul(a,s);let{themeVariables:u}=Lt(),{useGradient:h,gradientStart:f,gradientStop:d}=u;if(h&&f&&d){let p=s.attr("id"),m=s.append("defs").append("linearGradient").attr("id", ` $ { p } - gradient ` ).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");m.append("stop").attr("offset","0%").attr("stop-color",f).attr("stop-opacity",1),m.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}Ro(s,a.config.mindmap?.padding??fr.mindmap.padding,"mindmapDiagram",a.config.mindmap?.useMaxWidth??fr.mindmap.useMaxWidth)},"draw"),YEe={draw:kpt}});var Cpt,wpt,Ept,XEe,KEe=P(()=>{"use strict";Yn();Cpt=o(t=>{let{theme:e,look:r}=t,i="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],yi(t["lineColor"+n])?t["lineColor"+n]=Ke(t["lineColor"+n],20):t["lineColor"+n]=Ye(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let a=""+(r==="neo"?Math.max(10-(n-1)*2,2):17-3*n);i+= `
. section - $ { n - 1 } rect , . section - $ { n - 1 } path , . section - $ { n - 1 } circle , . section - $ { n - 1 } polygon , . section - $ { n - 1 } path {
fill : $ { t [ "cScale" + n ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - $ { n - 1 } text {
fill : $ { t [ "cScaleLabel" + n ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - $ { n - 1 } span {
color : $ { t [ "cScaleLabel" + n ] } ;
}
. node - icon - $ { n - 1 } {
2026-02-13 14:04:06 -07:00
font - size : 40 px ;
2026-04-01 22:38:25 +00:00
color : $ { t [ "cScaleLabel" + n ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - edge - $ { n - 1 } {
stroke : $ { t [ "cScale" + n ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. edge - depth - $ { n - 1 } {
stroke - width : $ { a } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - $ { n - 1 } line {
stroke : $ { t [ "cScaleInv" + n ] } ;
2026-02-13 14:04:06 -07:00
stroke - width : 3 ;
}
. disabled , . disabled circle , . disabled text {
fill : lightgray ;
}
. disabled text {
fill : # efefef ;
}
2026-04-01 22:38:25 +00:00
[ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } rect , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } path , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } circle , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } polygon {
fill : $ { e === "redux" || e === "redux-dark" || e === "neutral" ? t . mainBkg : t [ "cScale" + n ] } ;
stroke : $ { e === "redux" || e === "redux-dark" ? t . nodeBorder : t [ "cScale" + n ] } ;
stroke - width : $ { t . strokeWidth ? ? 2 } px ;
}
[ data - look = "neo" ] . section - edge - $ { n - 1 } {
stroke : $ { e ? . includes ( "redux" ) || e === "neo-dark" ? t . nodeBorder : t [ "cScale" + n ] } ;
}
[ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } text {
fill : $ { e === "redux" || e === "redux-dark" ? t . nodeBorder : t [ "cScaleLabel" + ( e === "neutral" ? 1 : n ) ] } ;
}
` }return i},"genSections"),wpt=o((t,e,r)=>{let i="";for(let n=0;n<t;n++)i+= `
[ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } rect , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } path , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } circle , [ data - look = "neo" ] . mindmap - node . section - $ { n - 1 } polygon {
stroke : url ( $ { e } - gradient ) ;
fill : $ { r } ;
}
. section - $ { n - 1 } line {
stroke - width : 0 ;
} ` ;return i},"genGradient"),Ept=o(t=>{let{theme:e}=t,r=t.svgId,i=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)", ` url ( $ { r } - drop - shadow ) ` ):"none";return `
2026-02-13 14:04:06 -07:00
. edge {
stroke - width : 3 ;
}
2026-04-01 22:38:25 +00:00
$ { Cpt ( t ) }
2026-02-13 14:04:06 -07:00
. section - root rect , . section - root path , . section - root circle , . section - root polygon {
fill : $ { t . git0 } ;
}
. section - root text {
fill : $ { t . gitBranchLabel0 } ;
}
. section - root span {
2026-04-01 22:38:25 +00:00
color : $ { e ? . includes ( "redux" ) ? t . nodeBorder : t . gitBranchLabel0 } ;
2026-02-13 14:04:06 -07:00
}
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
}
. edge {
fill : none ;
}
. mindmap - node - label {
dy : 1 em ;
alignment - baseline : middle ;
text - anchor : middle ;
dominant - baseline : middle ;
text - align : center ;
}
2026-04-01 22:38:25 +00:00
[ data - look = "neo" ] . mindmap - node {
filter : $ { i } ;
}
[ data - look = "neo" ] . mindmap - node . section - root rect , [ data - look = "neo" ] . mindmap - node . section - root path , [ data - look = "neo" ] . mindmap - node . section - root circle , [ data - look = "neo" ] . mindmap - node . section - root polygon {
fill : $ { e ? . includes ( "redux" ) ? t . mainBkg : t . git0 } ;
}
[ data - look = "neo" ] . mindmap - node . section - root . text - inner - tspan {
fill : $ { e ? . includes ( "redux" ) ? t . nodeBorder : t [ "cScaleLabel" + ( e === "neutral" ? 1 : 0 ) ] } ;
}
$ { t . useGradient && r && t . mainBkg ? wpt ( t . THEME _COLOR _LIMIT , r , t . mainBkg ) : "" }
` },"getStyles"),XEe=Ept});var QEe={};ur(QEe,{diagram:()=>Spt});var Spt,ZEe=P(()=>{"use strict";BEe();HEe();jEe();KEe();Spt={get db(){return new W_},renderer:YEe,parser:PEe,styles:XEe}});var tH,tSe,rSe=P(()=>{"use strict";tH=(function(){var t=o(function(E,S,L,M){for(L=L||{},M=E.length;M--;L[E[M]]=S);return L},"o"),e=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,31],g=[6,7,11,24],y=[1,6,13,16,17,20,23],v=[1,35],x=[1,36],b=[1,6,7,11,13,16,17,20,23],T=[1,38],w={trace:o(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:o(function(S,L,M,I,A,_,D){var N=_.length-1;switch(A){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: ",_[N-1].id),I.addNode(_[N-2].length,_[N-1].id,_[N-1].descr,_[N-1].type,_[N]);break;case 16:I.getLogger().info("Node: ",_[N].id),I.addNode(_[N-1].length,_[N].id,_[N].descr,_[N].type);break;case 17:I.getLogger().trace("Icon: ",_[N]),I.decorateNode({icon:_[N]});break;case 18:case 23:I.decorateNode({class:_[N]});break;case 19:I.getLogger().trace("SPACELIST");break;case 20:I.getLogger().trace("Node: ",_[N-1].id),I.addNode(0,_[N-1].id,_[N-1].descr,_[N-1].type,_[N]);break;case 21:I.getLogger().trace("Node: ",_[N].id),I.addNode(0,_[N].id,_[N].descr,_[N].type);break;case 22:I.decorateNode({icon:_[N]});break;case 27:I.getLogger().trace("node found ..",_[N-2]),this. $ ={id:_[N-1],descr:_[N-1],type:I.getType(_[N-2],_[N])};break;case 28:this. $ ={id:_[N],descr:_[N],type:0};break;case 29:I.getLogger().trace("node found ..",_[N-3]),this. $ ={id:_[N-3],descr:_[N-1],type:I.getType(_[N-2],_[N])};break;case 30:this. $ =_[N-1]+_[N];break;case 31:this. $ =_[N];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:s,23:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:s,23:l},{6:r,9:22,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:s,23:l},{6:h,7:f,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:f,10:34,11:d},{1:[2,7],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:s,23:l},t(y,[2,14],{7:v,11:x}),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:T}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(y,[2,13],{7:v,11:x}),t(b,[2,11]),t(b,[2,12]),t(p,[2,15],{24:T}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(S,L){if(L.recoverable)this.trace(S);else{var M=new Error(S);throw M.hash=L,M}},"parseError"),parse:o(function(S){var L=this,M=[0],I=[],A=[null],_=[],D=this.table,N="",R=0,B=0,O=0, $ =2,z=1,F=_.slice.call(arguments,1),V=Object.create(this.lexer),H={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(H.yy[X]=this.yy[X]);V.setInput(S,H.yy),H.yy.lexer=V,H.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var W=V.yylloc;_.push(W);var Z=V.options&&V.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(pe){M.length=M.length
2026-03-01 01:45:57 +00:00
` +V.showPosition()+ `
2026-04-01 22:38:25 +00:00
Expecting ` +De.join(", ")+", got '"+(this.terminals_[J]||J)+"'": $ e="Parse error on line "+(R+1)+": Unexpected "+(J==z?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError( $ e,{text:V.match,token:this.terminals_[J]||J,line:V.yylineno,loc:W,expected:De})}if(te[0]instanceof Array&&te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+J);switch(te[0]){case 1:M.push(J),A.push(V.yytext),_.push(V.yylloc),M.push(te[1]),J=null,ee?(J=ee,ee=null):(B=V.yyleng,N=V.yytext,R=V.yylineno,W=V.yylloc,O>0&&O--);break;case 2:if(we=this.productions_[te[1]][1],Ee. $ =A[A.length-we],Ee._ $ ={first_line:_[_.length-(we||1)].first_line,last_line:_[_.length-1].last_line,first_column:_[_.length-(we||1)].first_column,last_column:_[_.length-1].last_column},Z&&(Ee._ $ .range=[_[_.length-(we||1)].range[0],_[_.length-1].range[1]]),de=this.performAction.apply(Ee,[N,B,R,H.yy,te[1],A,_].concat(F)),typeof de<"u")return de;we&&(M=M.slice(0,-1*we*2),A=A.slice(0,-1*we),_=_.slice(0,-1*we)),M.push(this.productions_[te[1]][0]),A.push(Ee. $ ),_.push(Ee._ $ ),Te=D[M[M.length-2]][M[M.length-1]],M.push(Te);break;case 3:return!0}}return!0},"parse")},k=(function(){var E={EOF:1,parseError:o(function(L,M){if(this.yy.parser)this.yy.parser.parseError(L,M);else throw new Error(L)},"parseError"),setInput:o(function(S,L){return this.yy=L||this.yy||{},this._input=S,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:o(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var L=S.match(/(?: \r \n ?| \n ).*/g);return L?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:o(function(S){var L=S.length,M=S.split(/(?: \r \n ?| \n )/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var I=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),M.length-1&&(this.yylineno-=M.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:M?(M.length===I.length?this.yylloc.first_column:0)+I[I.length-M.length].length-M[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(S){this.unput(this.match.slice(S))},"less"),pastInput:o(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var S=this.pastInput(),L=new Array(S.length+1).join("-");return S+this.upcomingInput()+ `
` +L+"^"},"showPosition"),test_match:o(function(S,L){var M,I,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),I=S[0].match(/(?: \r \n ?| \n ).*/g),I&&(this.yylineno+=I.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:I?I[I.length-1].length-I[I.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[0],M=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var _ in A)this[_]=A[_];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,L,M,I;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),_=0;_<A.length;_++)if(M=this._input.match(this.rules[A[_]]),M&&(!L||M[0].length>L[0].length)){if(L=M,I=_,this.options.backtrack_lexer){if(S=this.test_match(M,A[_]),S!==!1)return S;if(this._backtrack){L=!1;continue}else return!1}else if(!this.options.flex)break}return L?(S=this.test_match(L,A[I]),S!==!1?S:!1):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:o(function(){var L=this.next();return L||this.lex()},"lex"),begin:o(function(L){this.conditionStack.push(L)},"begin"),popState:o(function(){var L=this.conditionStack.length-1;return L>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(L){return L=this.conditionStack.length-1-Math.abs(L||0),L>=0?this.conditionStack[L]:"INITIAL"},"topState"),pushState:o(function(L){this.begin(L)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(L,M,I,A){var _=A;switch(I){case 0:return this.pushState("shapeData"),M.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let D=/ \n \s */g;return M.yytext=M.yytext.replace(D,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return L.getLogger().trace("Found comment",M.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:L.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return L.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:L.getLogger().trace("end icon"),this.popState();break;case 16:return L.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return L.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return L.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return L.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;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:L.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return L.getLogger().trace("description:",M.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),L.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),L.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),L.getLogger().trace("node end ...",M.yytext),"NODE_DEND";break;case 36:return this.popState(),L.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),L.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),L.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),L.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),L.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return L.getLogger().trace("Long description:",M.yytext),21;break;case 42:return L.getLogger().trace("Long description:",M.yytext),21;break}},"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 ] , inc
` )?h=n+ `
2026-02-13 14:04:06 -07:00
` :h= ` {
2026-04-01 22:38:25 +00:00
` +n+ `
} ` ;let f=ud(h,{schema:cd});if(f.shape&&(f.shape!==f.shape.toLowerCase()||f.shape.includes("_")))throw new Error( ` No such shape : $ { f . shape } . Shape names should be lowercase . ` );f?.shape&&f.shape==="kanbanItem"&&(l.shape=f?.shape),f?.label&&(l.label=f?.label),f?.icon&&(l.icon=f?.icon.toString()),f?.assigned&&(l.assigned=f?.assigned.toString()),f?.ticket&&(l.ticket=f?.ticket.toString()),f?.priority&&(l.priority=f?.priority)}let u=Rpt(t);u?l.parentId=u.id||"kbn"+rH++:iH.push(l),nc.push(l)},"addNode"),ka={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Mpt=o((t,e)=>{switch(Q.debug("In get type",t,e),t){case"[":return ka.RECT;case"(":return e===")"?ka.ROUNDED_RECT:ka.CLOUD;case"((":return ka.CIRCLE;case")":return ka.CLOUD;case"))":return ka.BANG;case"{{":return ka.HEXAGON;default:return ka.DEFAULT}},"getType"),Opt=o((t,e)=>{nH[t]=e},"setElementForId"),Ppt=o(t=>{if(!t)return;let e=ge(),r=nc[nc.length-1];t.icon&&(r.icon=Tr(t.icon,e)),t.class&&(r.cssClasses=Tr(t.class,e))},"decorateNode"),Bpt=o(t=>{switch(t){case ka.DEFAULT:return"no-border";case ka.RECT:return"rect";case ka.ROUNDED_RECT:return"rounded-rect";case ka.CIRCLE:return"circle";case ka.CLOUD:return"cloud";case ka.BANG:return"bang";case ka.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Fpt=o(()=>Q,"getLogger"), $ pt=o(t=>nH[t],"getElementById"),zpt={clear:Lpt,addNode:Ipt,getSections:iSe,getData:Npt,nodeType:ka,getType:Mpt,setElementForId:Opt,decorateNode:Ppt,type2Str:Bpt,getLogger:Fpt,getElementById: $ pt},nSe=zpt});var Gpt,sSe,oSe=P(()=>{"use strict";Ut();bt();ro();Xi();wa();A5();B5();Gpt=o(async(t,e,r,i)=>{Q.debug( ` Rendering kanban diagram
` +t);let a=i.db.getData(),s=ge();s.htmlLabels=!1;let l=Fi(e);for(let v of a.nodes)v.domId= ` $ { e } - $ { v . id } ` ;let u=l.append("g");u.attr("class","sections");let h=l.append("g");h.attr("class","items");let f=a.nodes.filter(v=>v.isGroup),d=0,p=10,m=[],g=25;for(let v of f){let x=s?.kanban?.sectionWidth||200;d=d+1,v.x=x*d+(d-1)*p/2,v.width=x,v.y=0,v.height=x*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+d;let b=await N1(u,v);g=Math.max(g,b?.labelBBox?.height),m.push(b)}let y=0;for(let v of f){let x=m[y];y=y+1;let b=s?.kanban?.sectionWidth||200,T=-b*3/2+g,w=T,k=a.nodes.filter(S=>S.parentId===v.id);for(let S of k){if(S.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");S.x=v.x,S.width=b-1.5*p;let M=(await I1(h,S,{config:s})).node().getBBox();S.y=w+M.height/2,await Mb(S),w=S.y+M.height/2+p/2}let C=x.cluster.select("rect"),E=Math.max(w-T+3*p,50)+(g-25);C.attr("height",E)}El(void 0,l,s.mindmap?.padding??fr.kanban.padding,s.mindmap?.useMaxWidth??fr.kanban.useMaxWidth)},"draw"),sSe={draw:Gpt}});var Vpt,qpt,lSe,cSe=P(()=>{"use strict";Yn();wy();Vpt=o(t=>{let e="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],yi(t["lineColor"+i])?t["lineColor"+i]=Ke(t["lineColor"+i],20):t["lineColor"+i]=Ye(t["lineColor"+i],20);let r=o((i,n)=>t.darkMode?Ye(i,n):Ke(i,n),"adjuster");for(let i=0;i<t.THEME_COLOR_LIMIT;i++){let n=""+(17-3*i);e+= `
. section - $ { i - 1 } rect , . section - $ { i - 1 } path , . section - $ { i - 1 } circle , . section - $ { i - 1 } polygon , . section - $ { i - 1 } path {
fill : $ { r ( t [ "cScale" + i ] , 10 ) } ;
stroke : $ { r ( t [ "cScale" + i ] , 10 ) } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - $ { i - 1 } text {
fill : $ { t [ "cScaleLabel" + i ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. node - icon - $ { i - 1 } {
2026-02-13 14:04:06 -07:00
font - size : 40 px ;
2026-04-01 22:38:25 +00:00
color : $ { t [ "cScaleLabel" + i ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - edge - $ { i - 1 } {
stroke : $ { t [ "cScale" + i ] } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. edge - depth - $ { i - 1 } {
stroke - width : $ { n } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
. section - $ { i - 1 } line {
stroke : $ { t [ "cScaleInv" + i ] } ;
2026-02-13 14:04:06 -07:00
stroke - width : 3 ;
}
. disabled , . disabled circle , . disabled text {
fill : lightgray ;
}
. disabled text {
fill : # efefef ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . background } ;
stroke : $ { t . nodeBorder } ;
stroke - width : 1 px ;
}
. kanban - ticket - link {
fill : $ { t . background } ;
stroke : $ { t . nodeBorder } ;
text - decoration : underline ;
}
2026-04-01 22:38:25 +00:00
` }return e},"genSections"),qpt=o(t=> `
2026-02-13 14:04:06 -07:00
. edge {
stroke - width : 3 ;
}
2026-04-01 22:38:25 +00:00
$ { Vpt ( t ) }
2026-02-13 14:04:06 -07:00
. section - root rect , . section - root path , . section - root circle , . section - root polygon {
fill : $ { t . git0 } ;
}
. section - root text {
fill : $ { t . gitBranchLabel0 } ;
}
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
}
. edge {
fill : none ;
}
. cluster - label , . label {
color : $ { t . textColor } ;
fill : $ { t . textColor } ;
}
. kanban - label {
dy : 1 em ;
alignment - baseline : middle ;
text - anchor : middle ;
dominant - baseline : middle ;
text - align : center ;
}
2026-04-01 22:38:25 +00:00
$ { qu ( ) }
` ,"getStyles"),lSe=qpt});var uSe={};ur(uSe,{diagram:()=>Wpt});var Wpt,hSe=P(()=>{"use strict";rSe();aSe();oSe();cSe();Wpt={db:nSe,renderer:sSe,parser:tSe,styles:lSe}});var aH, $ C,pSe=P(()=>{"use strict";aH=(function(){var t=o(function(l,u,h,f){for(h=h||{},f=l.length;f--;h[l[f]]=u);return h},"o"),e=[1,9],r=[1,10],i=[1,5,10,12],n={trace:o(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:o(function(u,h,f,d,p,m,g){var y=m.length-1;switch(p){case 7:let v=d.findOrCreateNode(m[y-4].trim().replaceAll('""','"')),x=d.findOrCreateNode(m[y-2].trim().replaceAll('""','"')),b=parseFloat(m[y].trim());d.addLink(v,x,b);break;case 8:case 9:case 11:this. $ =m[y];break;case 10:this. $ =m[y-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:o(function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},"parseError"),parse:o(function(u){var h=this,f=[0],d=[],p=[null],m=[],g=this.table,y="",v=0,x=0,b=0,T=2,w=1,k=m.slice.call(arguments,1),C=Object.create(this.lexer),E={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(E.yy[S]=this.yy[S]);C.setInput(u,E.yy),E.yy.lexer=C,E.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var L=C.yylloc;m.push(L);var M=C.options&&C.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(W){f.length=f.length-2*W,p.length=p.length-W,m.length=m.length-W}o(I,"popStack");function A(){var W;return W=d.pop()||C.lex()||w,typeof W!="number"&&(W instanceof Array&&(d=W,W=d.pop()),W=h.symbols_[W]||W),W}o(A,"lex");for(var _,D,N,R,B,O, $ ={},z,F,V,H;;){if(N=f[f.length-1],this.defaultActions[N]?R=this.defaultActions[N]:((_===null||typeof _>"u")&&(_=A()),R=g[N]&&g[N][_]),typeof R>"u"||!R.length||!R[0]){var X="";H=[];for(z in g[N])this.terminals_[z]&&z>T&&H.push("'"+this.terminals_[z]+"'");C.showPosition?X="Parse error on line "+(v+1)+ ` :
` +C.showPosition()+ `
Expecting ` +H.join(", ")+", got '"+(this.terminals_[_]||_)+"'":X="Parse error on line "+(v+1)+": Unexpected "+(_==w?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(X,{text:C.match,token:this.terminals_[_]||_,line:C.yylineno,loc:L,expected:H})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+_);switch(R[0]){case 1:f.push(_),p.push(C.yytext),m.push(C.yylloc),f.push(R[1]),_=null,D?(_=D,D=null):(x=C.yyleng,y=C.yytext,v=C.yylineno,L=C.yylloc,b>0&&b--);break;case 2:if(F=this.productions_[R[1]][1], $ . $ =p[p.length-F], $ ._ $ ={first_line:m[m.length-(F||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(F||1)].first_column,last_column:m[m.length-1].last_column},M&&( $ ._ $ .range=[m[m.length-(F||1)].range[0],m[m.length-1].range[1]]),O=this.performAction.apply( $ ,[y,x,v,E.yy,R[1],p,m].concat(k)),typeof O<"u")return O;F&&(f=f.slice(0,-1*F*2),p=p.slice(0,-1*F),m=m.slice(0,-1*F)),f.push(this.productions_[R[1]][0]),p.push( $ . $ ),m.push( $ ._ $ ),V=g[f[f.length-2]][f[f.length-1]],f.push(V);break;case 3:return!0}}return!0},"parse")},a=(function(){var l={EOF:1,parseError:o(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},"parseError"),setInput:o(function(u,h){return this.yy=h||this.yy||{},this._input=u,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:o(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?: \r \n ?| \n ).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:o(function(u){var h=u.length,f=u.split(/(?: \r \n ?| \n )/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var d=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
2026-02-13 14:04:06 -07:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(u){this.unput(this.match.slice(u))},"less"),pastInput:o(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+ `
` +h+"^"},"showPosition"),test_match:o(function(u,h){var f,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=u[0].match(/(?: \r \n ?| \n ).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var m in p)this[m]=p[m];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;m<p.length;m++)if(f=this._input.match(this.rules[p[m]]),f&&(!h||f[0].length>h[0].length)){if(h=f,d=m,this.options.backtrack_lexer){if(u=this.test_match(f,p[m]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,p[d]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
2026-04-01 22:38:25 +00:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var h=this.next();return h||this.lex()},"lex"),begin:o(function(h){this.conditionStack.push(h)},"begin"),popState:o(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:o(function(h){this.begin(h)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(h,f,d,p){var m=p;switch(d){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta \b )/i,/^(?:sankey \b )/i,/^(?: $ )/i,/^(?:(( \u 000D \u 000A)|( \u 000A)))/i,/^(?:( \u 002C))/i,/^(?:( \u 0022))/i,/^(?:([ \u 0020- \u 0021 \u 0023- \u 002B \u 002D- \u 007E])*)/i,/^(?:( \u 0022)(?!( \u 0022)))/i,/^(?:(([ \u 0020- \u 0021 \u 0023- \u 002B \u 002D- \u 007E])|( \u 002C)|( \u 000D)|( \u 000A)|( \u 0022)( \u 0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return l})();n.lexer=a;function s(){this.yy={}}return o(s,"Parser"),s.prototype=n,n.Parser=s,new s})();aH.parser=aH; $ C=aH});var H_,Y_,U_,jpt,sH,Xpt,oH,Kpt,Qpt,Zpt,Jpt,mSe,gSe=P(()=>{"use strict";Ut();Vr();Ki();H_=[],Y_=[],U_=new Map,jpt=o(()=>{H_=[],Y_=[],U_=new Map,wr()},"clear"),sH=class{constructor(e,r,i=0){this.source=e;this.target=r;this.value=i}static{o(this,"SankeyLink")}},Xpt=o((t,e,r)=>{H_.push(new sH(t,e,r))},"addLink"),oH=class{constructor(e){this.ID=e}static{o(this,"SankeyNode")}},Kpt=o(t=>{t=lt.sanitizeText(t,ge());let e=U_.get(t);return e===void 0&&(e=new oH(t),U_.set(t,e),Y_.push(e)),e},"findOrCreateNode"),Qpt=o(()=>Y_,"getNodes"),Zpt=o(()=>H_,"getLinks"),Jpt=o(()=>({nodes:Y_.map(t=>({id:t.ID})),links:H_.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),mSe={nodesMap:U_,getConfig:o(()=>ge().sankey,"getConfig"),getNodes:Qpt,getLinks:Zpt,getGraph:Jpt,addLink:Xpt,findOrCreateNode:Kpt,getAccTitle:Dr,setAccTitle:Ar,getAccDescription:Rr,setAccDescription:Lr,getDiagramTitle:Nr,setDiagramTitle:Mr,clear:jpt}});function zC(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}var ySe=P(()=>{"use strict";o(zC,"max")});function lx(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}var vSe=P(()=>{"use strict";o(lx,"min")});function cx(t,e){let r=0;if(e===void 0)for(let i of t)(i=+i)&&(r+=i);else{let i=-1;for(let n of t)(n=+e(n,++i,t))&&(r+=n)}return r}var xSe=P(()=>{"use strict";o(cx,"sum")});var lH=P(()=>{"use strict";ySe();vSe();xSe()});function e0t(t){return t.target.depth}function cH(t){return t.depth}function uH(t,e){return e-1-t.height}function GC(t,e){return t.sourceLinks.length?t.depth:e-1}function hH(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?lx(t.sourceLinks,e0t)-1:0}var fH=P(()=>{"use strict";lH();o(e0t,"targetDepth");o(cH,"left");o(uH,"right");o(GC,"justify");o(hH,"center")});function ux(t){return function(){return t}}var bSe=P(()=>{"use strict";o(ux,"constant")});function TSe(t,e){return j_(t.source,e.source)||t.index-e.index}function kSe(t,e){return j_(t.target,e.target)||t.index-e.index}function j_(t,e){return t.y0-e.y0}function dH(t){return t.value}function t0t(t){return t.index}function r0t(t){return t.nodes}fun
$ { g } $ { Math . round ( I * 100 ) / 100 } $ { y } ` :M,"getText");h.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",M=>M.x0<f/2?M.x1+6:M.x0-6).attr("y",M=>(M.y1+M.y0)/2).attr("dy", ` $ { v ? "0" : "0.35" } em ` ).attr("text-anchor",M=>M.x0<f/2?"start":"end").text(C);let E=h.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(x.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),S=a?.linkColor??"gradient";if(S==="gradient"){let M=E.append("linearGradient").attr("id",I=>(I.uid=VC.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",I=>I.source.x1).attr("x2",I=>I.target.x0);M.append("stop").attr("offset","0%").attr("stop-color",I=>k(I.source.id)),M.append("stop").attr("offset","100%").attr("stop-color",I=>k(I.target.id))}let L;switch(S){case"gradient":L=o(M=>M.uid,"coloring");break;case"source":L=o(M=>k(M.source.id),"coloring");break;case"target":L=o(M=>k(M.target.id),"coloring");break;default:L=S}E.append("path").attr("d",Q_()).attr("stroke",L).attr("stroke-width",M=>Math.max(1,M.width)),El(void 0,h,0,p)},"draw"),zSe={draw:f0t}});var VSe,qSe=P(()=>{"use strict";VSe=o(t=>t.replaceAll(/^[^ \S \n \r ]+|[^ \S \n \r ]+ $ /g,"").replaceAll(/([ \n \r ])+/g, `
` ).trim(),"prepareTextForParsing")});var d0t,WSe,USe=P(()=>{"use strict";d0t=o(t=> ` . label {
2026-02-13 14:04:06 -07:00
font - family : $ { t . fontFamily } ;
2026-04-01 22:38:25 +00:00
} ` ,"getStyles"),WSe=d0t});var HSe={};ur(HSe,{diagram:()=>m0t});var p0t,m0t,YSe=P(()=>{"use strict";pSe();gSe();GSe();qSe();USe();p0t= $ C.parse.bind( $ C); $ C.parse=t=>p0t(VSe(t));m0t={styles:WSe,parser: $ C,db:mSe,renderer:zSe}});var x0t,hx,xH=P(()=>{"use strict";Sr();wa();er();Ki();x0t=fr.packet,hx=class{constructor(){this.packet=[];this.setAccTitle=Ar;this.getAccTitle=Dr;this.setDiagramTitle=Mr;this.getDiagramTitle=Nr;this.getAccDescription=Rr;this.setAccDescription=Lr}static{o(this,"PacketDB")}getConfig(){let e=fi({...x0t,...Lt().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){wr(),this.packet=[]}}});var b0t,T0t,k0t,bH,KSe=P(()=>{"use strict";sh();bt();vf();xH();b0t=1e4,T0t=o((t,e)=>{Ss(t,e);let r=-1,i=[],n=1,{bitsPerRow:a}=e.getConfig();for(let{start:s,end:l,bits:u,label:h}of t.blocks){if(s!==void 0&&l!==void 0&&l<s)throw new Error( ` Packet block $ { s } - $ { l } is invalid . End must be greater than start . ` );if(s??=r+1,s!==r+1)throw new Error( ` Packet block $ { s } - $ { l ? ? s } is not contiguous . It should start from $ { r + 1 } . ` );if(u===0)throw new Error( ` Packet block $ { s } is invalid . Cannot have a zero bit field . ` );for(l??=s+(u??1)-1,u??=l-s+1,r=l,Q.debug( ` Packet block $ { s } - $ { r } with label $ { h } ` );i.length<=a+1&&e.getPacket().length<b0t;){let[f,d]=k0t({start:s,end:l,bits:u,label:h},n,a);if(i.push(f),f.end+1===n*a&&(e.pushWord(i),i=[],n++),!d)break;({start:s,end:l,bits:u,label:h}=d)}}e.pushWord(i)},"populate"),k0t=o((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error( ` Block start $ { t . start } is greater than block end $ { t . end } . ` );if(t.end+1<=e*r)return[t,void 0];let i=e*r-1,n=e*r;return[{start:t.start,end:i,label:t.label,bits:i-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),bH={parser:{yy:void 0},parse:o(async t=>{let e=await ba("packet",t),r=bH.parser?.yy;if(!(r instanceof hx))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Q.debug(e),T0t(e,r)},"parse")}});var C0t,w0t,QSe,ZSe=P(()=>{"use strict";ro();Xi();C0t=o((t,e,r,i)=>{let n=i.db,a=n.getConfig(),{rowHeight:s,paddingY:l,bitWidth:u,bitsPerRow:h}=a,f=n.getPacket(),d=n.getDiagramTitle(),p=s+l,m=p*(f.length+1)-(d?0:s),g=u*h+2,y=Fi(e);y.attr("viewBox", ` 0 0 $ { g } $ { m } ` ),Hr(y,m,g,a.useMaxWidth);for(let[v,x]of f.entries())w0t(y,x,v,a);y.append("text").text(d).attr("x",g/2).attr("y",m-p/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),w0t=o((t,e,r,{rowHeight:i,paddingX:n,paddingY:a,bitWidth:s,bitsPerRow:l,showBits:u})=>{let h=t.append("g"),f=r*(i+a)+a;for(let d of e){let p=d.start%l*s+1,m=(d.end-d.start+1)*s-n;if(h.append("rect").attr("x",p).attr("y",f).attr("width",m).attr("height",i).attr("class","packetBlock"),h.append("text").attr("x",p+m/2).attr("y",f+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!u)continue;let g=d.end===d.start,y=f-2;h.append("text").attr("x",p+(g?m/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(d.start),g||h.append("text").attr("x",p+m).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),QSe={draw:C0t}});var E0t,JSe,e6e=P(()=>{"use strict";er();E0t={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},JSe=o(({packet:t}={})=>{let e=fi(E0t,t);return `
2026-02-13 14:04:06 -07:00
. packetByte {
font - size : $ { e . byteFontSize } ;
}
. packetByte . start {
fill : $ { e . startByteColor } ;
}
. packetByte . end {
fill : $ { e . endByteColor } ;
}
. packetLabel {
fill : $ { e . labelColor } ;
font - size : $ { e . labelFontSize } ;
}
. packetTitle {
fill : $ { e . titleColor } ;
font - size : $ { e . titleFontSize } ;
}
. packetBlock {
stroke : $ { e . blockStrokeColor } ;
stroke - width : $ { e . blockStrokeWidth } ;
fill : $ { e . blockFillColor } ;
}
2026-04-01 22:38:25 +00:00
` },"styles")});var t6e={};ur(t6e,{diagram:()=>S0t});var S0t,r6e=P(()=>{"use strict";xH();KSe();ZSe();e6e();S0t={parser:bH,get db(){return new hx},renderer:QSe,styles:JSe}});var fx,a6e,mg,D0t,L0t,s6e,R0t,N0t,I0t,M0t,O0t,P0t,B0t,gg,TH=P(()=>{"use strict";Sr();wa();er();Ki();fx={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},a6e={axes:[],curves:[],options:fx},mg=structuredClone(a6e),D0t=fr.radar,L0t=o(()=>fi({...D0t,...Lt().radar}),"getConfig"),s6e=o(()=>mg.axes,"getAxes"),R0t=o(()=>mg.curves,"getCurves"),N0t=o(()=>mg.options,"getOptions"),I0t=o(t=>{mg.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),M0t=o(t=>{mg.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:O0t(e.entries)}))},"setCurves"),O0t=o(t=>{if(t[0].axis==null)return t.map(r=>r.value);let e=s6e();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{let i=t.find(n=>n.axis?. $ refText===r.name);if(i===void 0)throw new Error("Missing entry for axis "+r.label);return i.value})},"computeCurveEntries"),P0t=o(t=>{let e=t.reduce((r,i)=>(r[i.name]=i,r),{});mg.options={showLegend:e.showLegend?.value??fx.showLegend,ticks:e.ticks?.value??fx.ticks,max:e.max?.value??fx.max,min:e.min?.value??fx.min,graticule:e.graticule?.value??fx.graticule}},"setOptions"),B0t=o(()=>{wr(),mg=structuredClone(a6e)},"clear"),gg={getAxes:s6e,getCurves:R0t,getOptions:N0t,setAxes:I0t,setCurves:M0t,setOptions:P0t,getConfig:L0t,clear:B0t,setAccTitle:Ar,getAccTitle:Dr,setDiagramTitle:Mr,getDiagramTitle:Nr,getAccDescription:Rr,setAccDescription:Lr}});var F0t,o6e,l6e=P(()=>{"use strict";sh();bt();vf();TH();F0t=o(t=>{Ss(t,gg);let{axes:e,curves:r,options:i}=t;gg.setAxes(e),gg.setCurves(r),gg.setOptions(i)},"populate"),o6e={parse:o(async t=>{let e=await ba("radar",t);Q.debug(e),F0t(e)},"parse")}});function q0t(t,e,r,i,n,a,s){let l=e.length,u=Math.min(s.width,s.height)/2;r.forEach((h,f)=>{if(h.entries.length!==l)return;let d=h.entries.map((p,m)=>{let g=2*Math.PI*m/l-Math.PI/2,y=W0t(p,i,n,u),v=y*Math.cos(g),x=y*Math.sin(g);return{x:v,y:x}});a==="circle"?t.append("path").attr("d",U0t(d,s.curveTension)).attr("class", ` radarCurve - $ { f } ` ):a==="polygon"&&t.append("polygon").attr("points",d.map(p=> ` $ { p . x } , $ { p . y } ` ).join(" ")).attr("class", ` radarCurve - $ { f } ` )})}function W0t(t,e,r,i){let n=Math.min(Math.max(t,e),r);return i*(n-e)/(r-e)}function U0t(t,e){let r=t.length,i= ` M$ { t [ 0 ] . x } , $ { t [ 0 ] . y } ` ;for(let n=0;n<r;n++){let a=t[(n-1+r)%r],s=t[n],l=t[(n+1)%r],u=t[(n+2)%r],h={x:s.x+(l.x-a.x)*e,y:s.y+(l.y-a.y)*e},f={x:l.x-(u.x-s.x)*e,y:l.y-(u.y-s.y)*e};i+= ` C$ { h . x } , $ { h . y } $ { f . x } , $ { f . y } $ { l . x } , $ { l . y } ` }return ` $ { i } Z ` }function H0t(t,e,r,i){if(!r)return;let n=(i.width/2+i.marginRight)*3/4,a=-(i.height/2+i.marginTop)*3/4,s=20;e.forEach((l,u)=>{let h=t.append("g").attr("transform", ` translate ( $ { n } , $ { a + u * s } ) ` );h.append("rect").attr("width",12).attr("height",12).attr("class", ` radarLegendBox - $ { u } ` ),h.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(l.label)})}var $ 0t,z0t,G0t,V0t,c6e,u6e=P(()=>{"use strict";ro();Xi(); $ 0t=o((t,e,r,i)=>{let n=i.db,a=n.getAxes(),s=n.getCurves(),l=n.getOptions(),u=n.getConfig(),h=n.getDiagramTitle(),f=Fi(e),d=z0t(f,u),p=l.max??Math.max(...s.map(y=>Math.max(...y.entries))),m=l.min,g=Math.min(u.width,u.height)/2;G0t(d,a,g,l.ticks,l.graticule),V0t(d,a,g,u),q0t(d,a,s,m,p,l.graticule,u),H0t(d,s,l.showLegend,u),d.append("text").attr("class","radarTitle").text(h).attr("x",0).attr("y",-u.height/2-u.marginTop)},"draw"),z0t=o((t,e)=>{let r=e.width+e.marginLeft+e.marginRight,i=e.height+e.marginTop+e.marginBottom,n={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return Hr(t,i,r,e.useMaxWidth??!0),t.attr("viewBox", ` 0 0 $ { r } $ { i } ` ),t.append("g").attr("transform", ` translate ( $ { n . x } , $ { n . y } ) ` )},"drawFrame"),G0t=o((t,e,r,i,n)=>{if(n==="circle")for(let a=0;a<i;a++){let s=r*(a+1)/i;t.append("circle").attr("r",s).attr("class","radarGraticule")}else if(n==="polygon"){let a=e.length;for(let s=0;s<i;s++){let l=r*(s+1)/i,u=e.map((h,f)=>{let d=2*f*Math.PI/a-Math.PI/2,p=l*Math.cos(d),m=l*Math.sin(d);return ` $ { p } , $ {
. radarCurve - $ { i } {
color : $ { n } ;
fill : $ { n } ;
2026-02-13 14:04:06 -07:00
fill - opacity : $ { e . curveOpacity } ;
2026-04-01 22:38:25 +00:00
stroke : $ { n } ;
2026-02-13 14:04:06 -07:00
stroke - width : $ { e . curveStrokeWidth } ;
}
2026-04-01 22:38:25 +00:00
. radarLegendBox - $ { i } {
fill : $ { n } ;
2026-02-13 14:04:06 -07:00
fill - opacity : $ { e . curveOpacity } ;
2026-04-01 22:38:25 +00:00
stroke : $ { n } ;
2026-02-13 14:04:06 -07:00
}
2026-04-01 22:38:25 +00:00
` }return r},"genIndexStyles"),j0t=o(t=>{let e=Zc(),r=Lt(),i=fi(e,r.themeVariables),n=fi(i.radar,t);return{themeVariables:i,radarOptions:n}},"buildRadarStyleOptions"),h6e=o(({radar:t}={})=>{let{themeVariables:e,radarOptions:r}=j0t(t);return `
2026-02-13 14:04:06 -07:00
. radarTitle {
font - size : $ { e . fontSize } ;
color : $ { e . titleColor } ;
dominant - baseline : hanging ;
text - anchor : middle ;
}
. radarAxisLine {
stroke : $ { r . axisColor } ;
stroke - width : $ { r . axisStrokeWidth } ;
}
. radarAxisLabel {
dominant - baseline : middle ;
text - anchor : middle ;
font - size : $ { r . axisLabelFontSize } px ;
color : $ { r . axisColor } ;
}
. radarGraticule {
fill : $ { r . graticuleColor } ;
fill - opacity : $ { r . graticuleOpacity } ;
stroke : $ { r . graticuleColor } ;
stroke - width : $ { r . graticuleStrokeWidth } ;
}
. radarLegendText {
text - anchor : start ;
font - size : $ { r . legendFontSize } px ;
dominant - baseline : hanging ;
}
2026-04-01 22:38:25 +00:00
$ { Y0t ( e , r ) }
` },"styles")});var d6e={};ur(d6e,{diagram:()=>X0t});var X0t,p6e=P(()=>{"use strict";TH();l6e();u6e();f6e();X0t={parser:o6e,db:gg,renderer:c6e,styles:h6e}});var kH,y6e,v6e=P(()=>{"use strict";kH=(function(){var t=o(function(T,w,k,C){for(k=k||{},C=T.length;C--;k[T[C]]=w);return k},"o"),e=[1,15],r=[1,7],i=[1,13],n=[1,14],a=[1,19],s=[1,16],l=[1,17],u=[1,18],h=[8,30],f=[8,10,21,28,29,30,31,39,43,46],d=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],g=[8,10,15,16,21,27,28,29,30,31,39,43,46],y=[1,49],v={trace:o(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,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48, $ 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:"NODE_ID",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"},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],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:o(function(w,k,C,E,S,L,M){var I=L.length-1;switch(S){case 4:E.getLogger().debug("Rule: separator (NL) ");break;case 5:E.getLogger().debug("Rule: separator (Space) ");break;case 6:E.getLogger().debug("Rule: separator (EOF) ");break;case 7:E.getLogger().debug("Rule: hierarchy: ",L[I-1]),E.setHierarchy(L[I-1]);break;case 8:E.getLogger().debug("Stop NL ");break;case 9:E.getLogger().debug("Stop EOF ");break;case 10:E.getLogger().debug("Stop NL2 ");break;case 11:E.getLogger().debug("Stop EOF2 ");break;case 12:E.getLogger().debug("Rule: statement: ",L[I]),typeof L[I].length=="number"?this. $ =L[I]:this. $ =[L[I]];break;case 13:E.getLogger().debug("Rule: statement #2: ",L[I-1]),this. $ =[L[I-1]].concat(L[I]);break;case 14:E.getLogger().debug("Rule: link: ",L[I],w),this. $ ={edgeTypeStr:L[I],label:""};break;case 15:E.getLogger().debug("Rule: LABEL link: ",L[I-3],L[I-1],L[I]),this. $ ={edgeTypeStr:L[I],label:L[I-1]};break;case 18:let A=parseInt(L[I]),_=E.generateId();this. $ ={id:_,type:"space",label:"",width:A,children:[]};break;case 23:E.getLogger().debug("Rule: (nodeStatement link node) ",L[I-2],L[I-1],L[I]," typestr: ",L[I-1].edgeTypeStr);let D=E.edgeStrToEdgeData(L[I-1].edgeTypeStr);this. $ =[{id:L[I-2].id,label:L[I-2].label,type:L[I-2].type,directions:L[I-2].directions},{id:L[I-2].id+"-"+L[I].id,start:L[I-2].id,end:L[I].id,label:L[I-1].label,type:"edge",directions:L[I].directions,arrowTypeEnd:D,arrowTypeStart:"arrow_open"},{id:L[I].id,label:L[I].label,type:E.typeStr2Type(L[I].typeStr),directions:L[I].directions}];break;case 24:E.getLogger().debug("Rule: nodeStatement (abc88 node size) ",L[I-1],L[I]),this. $ ={id:L[I-1].id,label:L[I-1].label,type:E.typeStr2Type(L[I-1].typeStr),directions:L[I-1].directions,widthInColumns:parseInt(L[I],10)};break;case 25:E.getLogger().debug("Rule: nodeStatement (node) ",L[I]),this. $ ={id:L[I].id,label:L[I].label,type:E.typeStr2Type(L[I].typeStr),directions:L[I].directions,widthInColumns:1};break;case 26:E.getLogger().debug("APA123",this?this:"na"),E.getLogger().debug("COLUMNS: ",L[I]),this. $ ={type:"column-setting",columns:L[I]==="auto"?-1:parseInt(L[I])};break;case 27:E.getLogger().de
` +O.showPosition()+ `
Expecting ` +Ee.join(", ")+", got '"+(this.terminals_[W]||W)+"'":Ne="Parse error on line "+(A+1)+": Unexpected "+(W==R?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(Ne,{text:O.match,token:this.terminals_[W]||W,line:O.yylineno,loc:F,expected:Ee})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+W);switch(ae[0]){case 1:C.push(W),S.push(O.yytext),L.push(O.yylloc),C.push(ae[1]),W=null,Z?(W=Z,Z=null):(_=O.yyleng,I=O.yytext,A=O.yylineno,F=O.yylloc,D>0&&D--);break;case 2:if(be=this.productions_[ae[1]][1],re. $ =S[S.length-be],re._ $ ={first_line:L[L.length-(be||1)].first_line,last_line:L[L.length-1].last_line,first_column:L[L.length-(be||1)].first_column,last_column:L[L.length-1].last_column},V&&(re._ $ .range=[L[L.length-(be||1)].range[0],L[L.length-1].range[1]]),ee=this.performAction.apply(re,[I,_,A, $ .yy,ae[1],S,L].concat(B)),typeof ee<"u")return ee;be&&(C=C.slice(0,-1*be*2),S=S.slice(0,-1*be),L=L.slice(0,-1*be)),C.push(this.productions_[ae[1]][0]),S.push(re. $ ),L.push(re._ $ ),de=M[C[C.length-2]][C[C.length-1]],C.push(de);break;case 3:return!0}}return!0},"parse")},x=(function(){var T={EOF:1,parseError:o(function(k,C){if(this.yy.parser)this.yy.parser.parseError(k,C);else throw new Error(k)},"parseError"),setInput:o(function(w,k){return this.yy=k||this.yy||{},this._input=w,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:o(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?: \r \n ?| \n ).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:o(function(w){var k=w.length,C=w.split(/(?: \r \n ?| \n )/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var E=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===E.length?this.yylloc.first_column:0)+E[E.length-C.length].length-C[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(w){this.unput(this.match.slice(w))},"less"),pastInput:o(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+ `
` +k+"^"},"showPosition"),test_match:o(function(w,k){var C,E,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),E=w[0].match(/(?: \r \n ?| \n ).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],C=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var L in S)this[L]=S[L];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,C,E;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),L=0;L<S.length;L++)if(C=this._input.match(this.rules[S[L]]),C&&(!k||C[0].length>k[0].length)){if(k=C,E=L,this.options.backtrack_lexer){if(w=this.test_match(C,S[L]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,S[E]),w!==!1?w:!1):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:o(function(){var k=this.next();return k||this.lex()},"lex"),begin:o(function(k){this.conditionStack.push(k)},"begin"),popState:o(function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},"topState"),pushState:o(function(k){this.begin(k)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(k,C,E,S){var L=S;switch(E){case 0:return k.getLogger().debug("Found block-beta"),10;break;case 1:return k.getLogger().debug("Found id-block"),29;break;case 2:return k.getLogger().debug("Found block"),10;break;case 3:k.getLogger().debug(".",C.yytext);break;case 4:k.getLogger().debug("_",C.yytext);break;case 5:return 5;case 6:return C.yytext=-1,28;break;case 7:return C.yytext=C.yytext.replace(/columns \s +/,""),k.getLogger().debug("COLUMNS (LEX)",C.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:k.getLogger().debug("LEX: POPPING STR:",C.yytext),this.popState();break;case 13:return k.getLogger().debug("LEX: STR end:",C.yytext),"STR";break;case 14:return C.yytext=C.yytext.replace(/space \: /,""),k.getLogger().debug("SPACE NUM (LEX)",C.yytext),21;break;case 15:return C.yytext="1",k.getLogger().debug("COLUMNS (LEX)",C.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),k.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),k.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),k.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),k.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),k.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),k.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),k.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),k.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),k.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),k.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),k.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),k.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),k.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),k.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),k.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),k.getLogger().debug("Lex: ]>"),"NODE_DEND";bre
2026-02-13 14:04:06 -07:00
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. cluster - label text {
fill : $ { t . titleColor } ;
}
. cluster - label span , p {
color : $ { t . titleColor } ;
}
. label text , span , p {
fill : $ { t . nodeTextColor || t . textColor } ;
color : $ { t . nodeTextColor || t . textColor } ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
stroke - width : 1 px ;
}
. flowchart - label text {
text - anchor : middle ;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
. node . label {
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
. arrowheadPath {
fill : $ { t . arrowheadColor } ;
}
. edgePath . path {
stroke : $ { t . lineColor } ;
stroke - width : 2.0 px ;
}
. flowchart - link {
stroke : $ { t . lineColor } ;
fill : none ;
}
. edgeLabel {
background - color : $ { t . edgeLabelBackground } ;
2026-03-11 20:55:37 +00:00
/ *
* This is for backward compatibility with existing code that didn ' t
* add a \ ` <p> \` around edge labels.
*
* TODO : We should probably remove this in a future release .
* /
p {
margin : 0 ;
padding : 0 ;
display : inline ;
}
2026-02-13 14:04:06 -07:00
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
/* For html labels only */
. labelBkg {
2026-03-11 20:55:37 +00:00
background - color : $ { t . edgeLabelBackground } ;
2026-02-13 14:04:06 -07:00
}
. node . cluster {
2026-04-01 22:38:25 +00:00
// fill: ${AH(t.mainBkg,.5)};
fill : $ { AH ( t . clusterBkg , . 5 ) } ;
stroke : $ { AH ( t . clusterBorder , . 2 ) } ;
2026-02-13 14:04:06 -07:00
box - shadow : rgba ( 50 , 50 , 93 , 0.25 ) 0 px 13 px 27 px - 5 px , rgba ( 0 , 0 , 0 , 0.3 ) 0 px 8 px 16 px - 8 px ;
stroke - width : 1 px ;
}
. cluster text {
fill : $ { t . titleColor } ;
}
. cluster span , p {
color : $ { t . titleColor } ;
}
/ * . c l u s t e r d i v {
color : $ { t . titleColor } ;
} * /
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
font - family : $ { t . fontFamily } ;
font - size : 12 px ;
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
. flowchartTitleText {
text - anchor : middle ;
font - size : 18 px ;
fill : $ { t . textColor } ;
}
2026-04-01 22:38:25 +00:00
$ { qu ( ) }
` ,"getStyles"),S6e=Tmt});var kmt,Cmt,wmt,Emt,Smt,Amt,_mt,Dmt,Lmt,Rmt,Nmt,_6e,D6e=P(()=>{"use strict";bt();kmt=o((t,e,r,i)=>{e.forEach(n=>{Nmt[n](t,r,i)})},"insertMarkers"),Cmt=o((t,e,r)=>{Q.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"),wmt=o((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"),Emt=o((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"),Smt=o((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"),Amt=o((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"),_mt=o((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"),Dmt=o((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","aut
2026-02-13 14:04:06 -07:00
outsidePoint : $ { JSON . stringify ( e ) }
insidePoint : $ { JSON . stringify ( r ) }
2026-04-01 22:38:25 +00:00
node : x : $ { t . x } y : $ { t . y } w : $ { t . width } h : $ { t . height } ` );let i=t.x,n=t.y,a=Math.abs(i-r.x),s=t.width/2,l=r.x<e.x?s-a:s+a,u=t.height/2,h=Math.abs(e.y-r.y),f=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*s>Math.abs(i-e.x)*u){let d=r.y<e.y?e.y-u-n:n-u-e.y;l=f*d/h;let p={x:r.x<e.x?r.x+l:r.x-f+l,y:r.y<e.y?r.y+h-d:r.y-h+d};return l===0&&(p.x=e.x,p.y=e.y),f===0&&(p.x=e.x),h===0&&(p.y=e.y),Q.debug( ` abc89 topp / bott calc , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,p),p}else{r.x<e.x?l=e.x-s-i:l=i-s-e.x;let d=h*l/f,p=r.x<e.x?r.x+f-l:r.x-f+l,m=r.y<e.y?r.y+d:r.y-d;return Q.debug( ` sides calc abc89 , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,{_x:p,_y:m}),l===0&&(p=e.x,m=e.y),f===0&&(p=e.x),h===0&&(m=e.y),{x:p,y:m}}},"intersection"),F6e=o((t,e)=>{Q.debug("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(a=>{if(!Pmt(e,a)&&!n){let s=Bmt(e,i,a),l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)||r.push(s),n=!0}else i=a,n||r.push(a)}),r},"cutPathAtIntersect"),G6e=o(function(t,e,r,i,n,a,s){let l=r.points;Q.debug("abc88 InsertEdge: edge=",r,"e=",e);let u=!1,h=a.node(e.v);var f=a.node(e.w);f?.intersect&&h?.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(h.intersect(l[0])),l.push(f.intersect(l[l.length-1]))),r.toCluster&&(Q.debug("to cluster abc88",i[r.toCluster]),l=F6e(r.points,i[r.toCluster].node),u=!0),r.fromCluster&&(Q.debug("from cluster abc88",i[r.fromCluster]),l=F6e(l.reverse(),i[r.fromCluster].node).reverse(),u=!0);let d=l.filter(w=>!Number.isNaN(w.y)),p=wc;r.curve&&(n==="graph"||n==="flowchart")&&(p=r.curve);let{x:m,y:g}=D5(r),y=Cc().x(m).y(g).curve(p),v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}let x=t.append("path").attr("d",y(d)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";(ge().flowchart.arrowMarkerAbsolute||ge().state.arrowMarkerAbsolute)&&(b=Yp(!0)),P6e(x,r,b,s,n);let T={};return u&&(T.updatedPath=l),T.originalPath=r.points,T},"insertEdge")});var Fmt,q6e,W6e=P(()=>{"use strict";Fmt=o(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),q6e=o((t,e,r)=>{let i=Fmt(t),n=2,a=e.height+2*r.padding,s=a/n,l=e.width+2*s+r.padding,u=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:l/2,y:2*u},{x:l-s,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*u,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-s,y:-a},{x:l/2,y:-a-2*u},{x:s,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*u,y:-a/2},{x:0,y:-a/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-a},{x:l-s,y:-a},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-s},{x:l,y:-a+s},{x:0,y:-a}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-s},{x:0,y:-a+s},{x:l,y:-a}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-s},{x:0,y:-a}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-s},{x:l,y:-a}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:i.has("right")?[{x:s,y:-u},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a+u}]:i.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:i.has("up")?[{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u
` +t);let n=i.db,a=n.getRoot(),s=n.getConfig(),l=Fi(e),u=l.append("g");u.attr("class","tree-view");let{totalHeight:h,totalWidth:f}=Lgt(u,a,s);l.attr("viewBox", ` - $ { s . lineThickness / 2 } 0 $ { f } $ { h } ` ),Hr(l,h,f,s.useMaxWidth)},"draw"),Ngt={draw:Rgt},wAe=Ngt});var Igt,Mgt,SAe,AAe=P(()=>{"use strict";er();Igt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},Mgt=o(({treeView:t})=>{let{labelFontSize:e,labelColor:r,lineColor:i}=fi(Igt,t);return `
. treeView - node - label {
font - size : $ { e } ;
fill : $ { r } ;
}
. treeView - node - line {
stroke : $ { i } ;
}
` },"styles"),SAe=Mgt});var _Ae={};ur(_Ae,{diagram:()=>Ogt});var Ogt,DAe=P(()=>{"use strict";kAe();PH();EAe();AAe();Ogt={db:WC,renderer:wAe,parser:TAe,styles:SAe}});var BH,FH,UC,NAe, $ H,Ds,hh,HC,IAe, $ gt,YC,MAe,OAe,PAe,BAe,FAe,i8,Np,n8=P(()=>{"use strict";BH={L:"left",R:"right",T:"top",B:"bottom"},FH={L:o(t=> ` $ { t } , $ { t / 2 } 0 , $ { t } 0 , 0 ` ,"L"),R:o(t=> ` 0 , $ { t / 2 } $ { t } , 0 $ { t } , $ { t } ` ,"R"),T:o(t=> ` 0 , 0 $ { t } , 0 $ { t / 2 } , $ { t } ` ,"T"),B:o(t=> ` $ { t / 2 } , 0 $ { t } , $ { t } 0 , $ { t } ` ,"B")},UC={L:o((t,e)=>t-e+2,"L"),R:o((t,e)=>t-2,"R"),T:o((t,e)=>t-e+2,"T"),B:o((t,e)=>t-2,"B")},NAe=o(function(t){return Ds(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"), $ H=o(function(t){let e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),Ds=o(function(t){let e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),hh=o(function(t){let e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),HC=o(function(t,e){let r=Ds(t)&&hh(e),i=hh(t)&&Ds(e);return r||i},"isArchitectureDirectionXY"),IAe=o(function(t){let e=t[0],r=t[1],i=Ds(e)&&hh(r),n=hh(e)&&Ds(r);return i||n},"isArchitecturePairXY"), $ gt=o(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),YC=o(function(t,e){let r= ` $ { t } $ { e } ` ;return $ gt(r)?r:void 0},"getArchitectureDirectionPair"),MAe=o(function([t,e],r){let i=r[0],n=r[1];return Ds(i)?hh(n)?[t+(i==="L"?-1:1),e+(n==="T"?1:-1)]:[t+(i==="L"?-1:1),e]:Ds(n)?[t+(n==="L"?1:-1),e+(i==="T"?1:-1)]:[t,e+(i==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),OAe=o(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),PAe=o(function(t,e){return HC(t,e)?"bend":Ds(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),BAe=o(function(t){return t.type==="service"},"isArchitectureService"),FAe=o(function(t){return t.type==="junction"},"isArchitectureJunction"),i8=o(t=>t.data(),"edgeData"),Np=o(t=>t.data(),"nodeData")});var zgt,dx,zH=P(()=>{"use strict";Sr();wa();er();Ki();n8();zgt=fr.architecture,dx=class{constructor(){this.nodes={};this.groups={};this.edges=[];this.registeredIds={};this.elements={};this.diagramId="";this.setAccTitle=Ar;this.getAccTitle=Dr;this.setDiagramTitle=Mr;this.getDiagramTitle=Nr;this.getAccDescription=Rr;this.setAccDescription=Lr;this.clear()}static{o(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",wr()}addService({id:e,icon:r,in:i,title:n,iconText:a}){if(this.registeredIds[e]!==void 0)throw new Error( ` The service id [ $ { e } ] is already in use by another $ { this . registeredIds [ e ] } ` );if(i!==void 0){if(e===i)throw new Error( ` The service [ $ { e } ] cannot be placed within itself ` );if(this.registeredIds[i]===void 0)throw new Error( ` The service [ $ { e } ] 's parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[i]==="node")throw new Error(`The service [${e}]' s parent is not a group ` )}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"service",icon:r,iconText:a,title:n,edges:[],in:i}}getServices(){return Object.values(this.nodes).filter(BAe)}addJunction({id:e,in:r}){if(this.registeredIds[e]!==void 0)throw new Error( ` The junction id [ $ { e } ] is already in use by another $ { this . registeredIds [ e ] } ` );if(r!==void 0){if(e===r)throw new Error( ` The junction [ $ { e } ] cannot be placed within itself ` );if(this.registeredIds[r]===void 0)throw new Error( ` The junction [ $ { e } ] 's parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[r]==="node")throw new Error(`The junction [${e}]' s parent is not a group ` )}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(FAe)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:i,title:n}){if(this.registeredIds?.[e]!==void 0)throw new Error( ` The group id [ $ { e }
2026-02-13 14:04:06 -07:00
. edge {
stroke - width : $ { t . archEdgeWidth } ;
stroke : $ { t . archEdgeColor } ;
fill : none ;
}
. arrow {
fill : $ { t . archEdgeArrowColor } ;
}
. node - bkg {
fill : none ;
stroke : $ { t . archGroupBorderColor } ;
stroke - width : $ { t . archGroupBorderWidth } ;
stroke - dasharray : 8 ;
}
. node - icon - text {
display : flex ;
align - items : center ;
}
. node - icon - text > div {
color : # fff ;
margin : 1 px ;
height : fit - content ;
text - align : center ;
overflow : hidden ;
display : - webkit - box ;
- webkit - box - orient : vertical ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),zAe=Vgt});var qH=ar((jC,VH)=>{"use strict";o((function(e,r){typeof jC=="object"&&typeof VH=="object"?VH.exports=r():typeof define=="function"&&define.amd?define([],r):typeof jC=="object"?jC.layoutBase=r():e.layoutBase=r()}),"webpackUniversalModuleDefinition")(jC,function(){return(function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return o(r,"__webpack_require__"),r.m=t,r.c=e,r.i=function(i){return i},r.d=function(i,n,a){r.o(i,n)||Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:a})},r.n=function(i){var n=i&&i.__esModule?o(function(){return i.default},"getDefault"):o(function(){return i},"getModuleExports");return r.d(n,"a",n),n},r.o=function(i,n){return Object.prototype.hasOwnProperty.call(i,n)},r.p="",r(r.s=28)})([(function(t,e,r){"use strict";function i(){}o(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_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i}),(function(t,e,r){"use strict";var i=r(2),n=r(8),a=r(9);function s(u,h,f){i.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(i.prototype);for(var l in i)s[l]=i[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s}),(function(t,e,r){"use strict";function i(n){this.vGraphObject=n}o(i,"LGraphObject"),t.exports=i}),(function(t,e,r){"use strict";var i=r(2),n=r(10),a=r(13),s=r(0),l=r(16),u=r(5);function h(d,p,m,g){m==null&&g==null&&(g=p),i.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(i.prototype);for(var f in i)h[f]=i[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwn
translate ( $ { k } , $ { C - N . height / 2 } )
translate ( $ { R * O . width / 2 } , $ { B * O . height / 2 } )
rotate ( $ { - 1 * R * B * 45 } , 0 , $ { N . height / 2 } )
` )}}}}}))},"drawEdges"),WAe=o(async function(t,e,r,i){let a=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),u=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async h=>{let f=Np(h);if(f.type==="group"){let{h:d,w:p,x1:m,y1:g}=h.boundingBox(),y=t.append("rect");y.attr("id", ` $ { i } - group - $ { f . id } ` ).attr("x",m+u).attr("y",g+u).attr("width",p).attr("height",d).attr("class","node-bkg");let v=t.append("g"),x=m,b=g;if(f.icon){let T=v.append("g");T.html( ` < g > $ { await fo ( f . icon , { height : a , width : a , fallbackPrefix : yg . prefix } ) } < / g > ` ) , T . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( x + u + 1 ) + " , " + ( b + u + 1 ) + " ) " ) , x + = a , b + = s / 2 - 1 - 2 } i f ( f . l a b e l ) { l e t T = v . a p p e n d ( " g " ) ; a w a i t V i ( T , f . l a b e l , { u s e H t m l L a b e l s : ! 1 , w i d t h : p , c l a s s e s : " a r c h i t e c t u r e - s e r v i c e - l a b e l " } , g e ( ) ) , T . a t t r ( " d y " , " 1 e m " ) . a t t r ( " a l i g n m e n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " d o m i n a n t - b a s e l i n e " , " s t a r t " ) . a t t r ( " t e x t - a n c h o r " , " s t a r t " ) , T . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( x + u + 4 ) + " , " + ( b + u + 2 ) + " ) " ) } r . s e t E l e m e n t F o r I d ( f . i d , y ) } } ) ) } , " d r a w G r o u p s " ) , U A e = o ( a s y n c f u n c t i o n ( t , e , r , i ) { l e t n = g e ( ) ; f o r ( l e t a o f r ) { l e t s = e . a p p e n d ( " g " ) , l = t . g e t C o n f i g F i e l d ( " i c o n S i z e " ) ; i f ( a . t i t l e ) { l e t d = s . a p p e n d ( " g " ) ; a w a i t V i ( d , a . t i t l e , { u s e H t m l L a b e l s : ! 1 , w i d t h : l * 1 . 5 , c l a s s e s : " a r c h i t e c t u r e - s e r v i c e - l a b e l " } , n ) , d . a t t r ( " d y " , " 1 e m " ) . a t t r ( " a l i g n m e n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " d o m i n a n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " t e x t - a n c h o r " , " m i d d l e " ) , d . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + l / 2 + " , " + l + " ) " ) } l e t u = s . a p p e n d ( " g " ) ; i f ( a . i c o n ) u . h t m l ( ` < g > $ { a w a i t f o ( a . i c o n , { h e i g h t : l , w i d t h : l , f a l l b a c k P r e f i x : y g . p r e f i x } ) } < / g > ` ) ; e l s e i f ( a . i c o n T e x t ) { u . h t m l ( ` < g > $ { a w a i t f o ( " b l a n k " , { h e i g h t : l , w i d t h : l , f a l l b a c k P r e f i x : y g . p r e f i x } ) } < / g > ` ) ; l e t m = u . a p p e n d ( " g " ) . a p p e n d ( " f o r e i g n O b j e c t " ) . a t t r ( " w i d t h " , l ) . a t t r ( " h e i g h t " , l ) . a p p e n d ( " d i v " ) . a t t r ( " c l a s s " , " n o d e - i c o n - t e x t " ) . a t t r ( " s t y l e " , ` h e i g h t : $ { l } p x ; ` ) . a p p e n d ( " d i v " ) . h t m l ( T r ( a . i c o n T e x t , n ) ) , g = p a r s e I n t ( w i n d o w . g e t C o m p u t e d S t y l e ( m . n o d e ( ) , n u l l ) . g e t P r o p e r t y V a l u e ( " f o n t - s i z e " ) . r e p l a c e ( / \ D / g , " " ) ) ? ? 1 6 ; m . a t t r ( " s t y l e " , ` - w e b k i t - l i n e - c l a m p : $ { M a t h . f l o o r ( ( l - 2 ) / g ) } ; ` ) } e l s e u . a p p e n d ( " p a t h " ) . a t t r ( " c l a s s " , " n o d e - b k g " ) . a t t r ( " i d " , ` $ { i } - n o d e - $ { a . i d } ` ) . a t t r ( " d " , ` M 0 , $ { l } V 5 Q 0 , 0 5 , 0 H $ { l - 5 } Q $ { l } , 0 $ { l } , 5 V $ { l } Z ` ) ; s . a t t r ( " i d " , ` $ { i } - s e r v i c e - $ { a . i d } ` ) . a t t r ( " c l a s s " , " a r c h i t e c t u r e - s e r v i c e " ) ; l e t { w i d t h : h , h e i g h t : f } = s . n o d e ( ) . g e t B B o x ( ) ; a . w i d t h = h , a . h e i g h t = f , t . s e t E l e m e n t F o r I d ( a . i d , s ) } r e t u r n 0 } , " d r a w S e r v i c e s " ) , H A e = o ( f u n c t i o n ( t , e , r , i ) { r . f o r E a c h ( n = > { l e t a = e . a p p e n d ( " g " ) , s = t . g e t C o n f i g F i e l d ( " i c o n S i z e " ) ; a . a p p e n d ( " g " ) . a p p e n d ( " r e c t " ) . a t t r ( " i d " , ` $ { i } - n o d e - $ { n . i d } ` ) . a t t r ( " f i l l - o p a c i t y " , " 0 " ) . a t t r ( " w i d t h " , s ) . a t t r ( " h e i g h t " , s ) , a . a t t r ( " c l a s s " , " a r c h i t e c t u r e - j u n c t i o n " ) ; l e t { w i d t h : u , h e i g h t : h } = a . _ g r o u p s [ 0 ] [ 0 ] . g e t B B o x ( ) ; a . w i d t h = u , a . h e i g h t = h , t . s e t E l e m e n t F o r I d ( n . i d , a ) } ) } , " d r a w J u n c t i o n s " ) } ) ; f u n c t i o n q g t ( t , e , r ) { t . f o r E a c h ( i = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " s e r v i c e " , i d : i . i d , i c o n : i . i c o n , l a b e l : i . t i t l e , p a r e n t : i . i n , w i d t h : r . g e t C o n f i g F i e l d ( " i c o n S i z e " ) , h e i g h t : r . g e t C o n f i g F i e l d ( " i c o n S i z e " ) } , c l a s s e s : " n o d e - s e r v i c e " } ) } ) } f u n c t i o n W g t ( t , e , r ) { t . f o r E a c h ( i = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " j u n c t i o n " , i d : i . i d , p a r e n t : i . i n , w i d t h : r . g e t C o n f i g F i e l d ( " i c o n S i z e " ) , h e i g h t : r . g e t C o n f i g F i e l d ( " i c o n S i z e " ) } , c l a s s e s : " n o d e - j u n c t i o n " } ) } ) } f u n c t i o n U g t ( t , e ) { e . n o d e s ( ) . m a p ( r = > { l e t i = N p ( r ) ; i f ( i . t y p e = = = " g r o u p " ) r e t u r n ; i . x = r . p o s i t i o n ( ) . x , i . y = r . p o s i t i o n ( ) . y , t . g e t E l e m e n t B y I d ( i . i d ) . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( i . x | | 0 ) + " , " + ( i . y | | 0 ) + " ) " ) } ) } f u n c t i o n H g t ( t , e ) { t . f o r E a c h ( r = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " g r o u p " , i d : r . i d , i c o n : r . i c o n , l a b e l : r . t i t l e , p a r e n t : r . i n } , c l a s s e s : " n o d e - g r o u p " } ) } ) } f u n c t i o n Y g t ( t , e ) { t . f o r E a c h ( r = > { l e t { l h s I d : i , r h s I d : n , l h s I n t o : a , l h s G r o u p : s , r h s I n t o : l , l h s D i r : u , r h s D i r : h , r h s G r o u p : f , t i t l e : d } = r , p = H C ( r . l h s D i r , r . r h s D i r ) ? " s e g m e n t s " : " s t r a i g h t " , m = { i d : ` $ { i } - $ { n } ` , l a b e l : d , s o u r c e : i , s o u r c e D i r : u , s o u r c e A r r o w : a , s o u r c e G r o u p : s , s o u r c e E n d p o i n t : u = = = " L " ? " 0 5 0 % " : u = = = " R " ? " 1 0 0 % 5 0 % " : u = = = " T " ? " 5 0 % 0 " : " 5 0 % 1 0 0 % " , t a r g e t : n , t a r g e t D i r : h , t a r g e t A r r o w : l , t a r g e t G r o u p : f , t a r g e t E n d p o i n t : h = = = " L " ? " 0 5 0 % " : h = = = " R " ? " 1 0 0 % 5 0 % " : h = = = " T " ? " 5 0 % 0 " : " 5 0 % 1 0 0 % " } ; e . a d d ( { g r o u p : " e d g e s " , d a t a : m , c l a s s e s : p } ) } ) } f u n c t i o n j g t ( t , e , r ) { l e t i = o ( ( l , u ) = > O b j e c t . e n t r i e s ( l ) . r e d u c e ( ( h , [ f , d ] ) = > { l e t p = 0 , m = O b j e c t . e n t r i e s ( d ) ; i f ( m . l e n g t h = = = 1 ) r e t u r n h [ f ] = m [ 0 ] [ 1 ] , h ; f o r ( l e t g = 0 ; g < m . l e n g t h - 1 ; g + + ) f o r ( l e t y = g + 1 ; y < m . l e n g t h ; y + + ) { l e t [ v , x ] = m [ g ] , [
2026-03-11 20:55:37 +00:00
` +R.showPosition()+ `
2026-04-01 22:38:25 +00:00
Expecting ` +be.join(", ")+", got '"+(this.terminals_[H]||H)+"'":de="Parse error on line "+(M+1)+": Unexpected "+(H==D?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(de,{text:R.match,token:this.terminals_[H]||H,line:R.yylineno,loc: $ ,expected:be})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+H);switch(Z[0]){case 1:w.push(H),C.push(R.yytext),E.push(R.yylloc),w.push(Z[1]),H=null,X?(H=X,X=null):(I=R.yyleng,L=R.yytext,M=R.yylineno, $ =R.yylloc,A>0&&A--);break;case 2:if(re=this.productions_[Z[1]][1],J. $ =C[C.length-re],J._ $ ={first_line:E[E.length-(re||1)].first_line,last_line:E[E.length-1].last_line,first_column:E[E.length-(re||1)].first_column,last_column:E[E.length-1].last_column},z&&(J._ $ .range=[E[E.length-(re||1)].range[0],E[E.length-1].range[1]]),ae=this.performAction.apply(J,[L,I,M,B.yy,Z[1],C,E].concat(N)),typeof ae<"u")return ae;re&&(w=w.slice(0,-1*re*2),C=C.slice(0,-1*re),E=E.slice(0,-1*re)),w.push(this.productions_[Z[1]][0]),C.push(J. $ ),E.push(J._ $ ),te=S[w[w.length-2]][w[w.length-1]],w.push(te);break;case 3:return!0}}return!0},"parse")},y=(function(){var x={EOF:1,parseError:o(function(T,w){if(this.yy.parser)this.yy.parser.parseError(T,w);else throw new Error(T)},"parseError"),setInput:o(function(b,T){return this.yy=T||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var T=b.match(/(?: \r \n ?| \n ).*/g);return T?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:o(function(b){var T=b.length,w=b.split(/(?: \r \n ?| \n )/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var k=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1&&(this.yylineno-=w.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===k.length?this.yylloc.first_column:0)+k[k.length-w.length].length-w[0].length:this.yylloc.first_column-T},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-T]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
2026-03-11 20:55:37 +00:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(b){this.unput(this.match.slice(b))},"less"),pastInput:o(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var b=this.pastInput(),T=new Array(b.length+1).join("-");return b+this.upcomingInput()+ `
2026-04-01 22:38:25 +00:00
` +T+"^"},"showPosition"),test_match:o(function(b,T){var w,k,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),k=b[0].match(/(?: \r \n ?| \n ).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],w=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),w)return w;if(this._backtrack){for(var E in C)this[E]=C[E];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,T,w,k;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),E=0;E<C.length;E++)if(w=this._input.match(this.rules[C[E]]),w&&(!T||w[0].length>T[0].length)){if(T=w,k=E,this.options.backtrack_lexer){if(b=this.test_match(w,C[E]),b!==!1)return b;if(this._backtrack){T=!1;continue}else return!1}else if(!this.options.flex)break}return T?(b=this.test_match(T,C[k]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var T=this.next();return T||this.lex()},"lex"),begin:o(function(T){this.conditionStack.push(T)},"begin"),popState:o(function(){var T=this.conditionStack.length-1;return T>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(T){return T=this.conditionStack.length-1-Math.abs(T||0),T>=0?this.conditionStack[T]:"INITIAL"},"topState"),pushState:o(function(T){this.begin(T)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(T,w,k,C){var E=C;switch(k){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?: \s *%%.*)/i,/^(?:ishikawa-beta \b )/i,/^(?:ishikawa \b )/i,/^(?:[ \s ]+[ \n ])/i,/^(?:[ \n ]+)/i,/^(?:[ \s ]+)/i,/^(?:[^ \n ]+)/i,/^(?: $ )/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return x})();g.lexer=y;function v(){this.yy={}}return o(v,"Parser"),v.prototype=g,g.Parser=v,new v})();jH.parser=jH;t7e=jH});var a8,i7e=P(()=>{"use strict";Ut();Vr();Ki();a8=class{constructor(){this.stack=[];this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{o(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,wr()}getRoot(){return this.root}addNode(e,r){let i=lt.sanitizeText(r,ge());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],Mr(i);return}this.baseLevel??=e;let n=e-this.baseLevel+1;for(n<=0&&(n=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=n;)this.stack.pop();let a=this.stack[this.stack.length-1].node,s={text:i,children:[]};a.children.push(s),this.stack.push({level:n,node:s})}getAccTitle(){return Dr()}setAccTitle(e){Ar(e)}getAccDescription(){return Rr()}setAccDescription(e){Lr(e)}getDiagramTitle(){return Nr()}setDiagramTitle(e){Mr(e)}}});var r1t,mx,i1t,n1t,a1t,c7e,n7e,a7e,s7e,s1t,o7e,o1t,l1t,c1t,XH,u1t,h1t,u7e,s8,l7e,gx,h7e,f7e=P(()=>{"use strict";Ut();ro();Xi();er();Yt();r1t=14,mx=250,i1t=30,n1t=60,a1t=5,c7e=82*Math.PI/180,n7e=Math.cos(c7e),a7e=Math.sin(c7e),s7e=o((t,e,r)=>{let i=t.node().getBBox(),n=i.width+e*2,a=i.height+e*2;Hr(t,a,n,r),t.attr("viewBox", ` $ { i . x - e } $ { i . y - e } $ { n } $ { a } ` )},"applyPaddedViewBox"),s1t=o((t,e,r,i)=>{let a=i.db.getRoot();if(!a)return;let s=ge(),{look:l,handDrawnSeed:u,themeVariables:h}=s,f= $ s(s.fontSize)[0]??r1t,d=l==="handDrawn",p=a.children??[],m=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,y=Fi(e),v=y.append("g").attr("class","ishikawa"),x=d?rt.svg(y.node()):void 0,b=x?{roughSvg:x,seed:u??0,lineColor:h?.lineColor??"#333",fillColor:h?.mainBkg??"#fff"}:void 0,T= ` ishikawa - arrow - $ { e } ` ;d||v.append("defs").append("marker").attr("id",T).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let w=0,k=mx,C=d?void 0:gx(v,w,k,w,k,"ishikawa-spine");if(o1t(v,w,k,a.text,f,b),!p.length){d&&gx(v,w,k,w,k,"ishikawa-spine",b),s7e(y,m,g);return}w-=20;let E=p.filter((R,B)=>B%2===0),S=p.filter((R,B)=>B%2===1),L=o7e(E),M=o7e(S),I=L.total+M.total,A=mx,_=mx;if(I>0){let R=mx*2,B=mx*.3;A=Math.max(B,R*(L.total/I)),_=Math.max(B,R*(M.total/I))}let D=f*2;A=Math.max(A,L.max*D),_=Math.max(_,M.max*D),k=Math.max(A,mx),C&&C.attr("y1",k).attr("y2",k),v.select(".ishikawa-head-group").attr("transform", ` translate ( 0 , $ { k } ) ` );let N=Math.ceil(p.length/2);for(let R=0;R<N;R++){let B=v.append("g").attr("class","ishikawa-pair");for(let[O, $ ,z]of[[p[R*2],-1,A],[p[R*2+1],1,_]])O&&u1t(B,O,w,k, $ ,z,f,b);w=B.selectAll("text").nodes().reduce((O, $ )=>Math.min(O, $ .getBBox().x),1/0)}if(d)gx(v,w,k,0,k,"ishikawa-spine
` )},"wrapText"),s8=o((t,e,r,i,n,a,s)=>{let l=h1t(e),u=s*1.05,h=t.append("text").attr("class",n).attr("text-anchor",a).attr("x",r).attr("y",i-(l.length-1)*u/2);for(let[f,d]of l.entries())h.append("tspan").attr("x",r).attr("dy",f===0?0:u).text(d);return h},"drawMultilineText"),l7e=o((t,e,r)=>t+(e-t)*r,"lerp"),gx=o((t,e,r,i,n,a,s)=>{if(s){let l=s.roughSvg.line(e,r,i,n,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>l).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",r).attr("x2",i).attr("y2",n)},"drawLine"),h7e={draw:s1t}});var f1t,d7e,p7e=P(()=>{"use strict";f1t=o(t=> `
2026-03-11 20:55:37 +00:00
. ishikawa . ishikawa - spine ,
. ishikawa . ishikawa - branch ,
. ishikawa . ishikawa - sub - branch {
stroke : $ { t . lineColor } ;
stroke - width : 2 ;
fill : none ;
}
. ishikawa . ishikawa - sub - branch {
stroke - width : 1 ;
}
. ishikawa . ishikawa - arrow {
fill : $ { t . lineColor } ;
}
. ishikawa . ishikawa - head {
fill : $ { t . mainBkg } ;
stroke : $ { t . lineColor } ;
stroke - width : 2 ;
}
. ishikawa . ishikawa - label - box {
fill : $ { t . mainBkg } ;
stroke : $ { t . lineColor } ;
stroke - width : 2 ;
}
. ishikawa text {
font - family : $ { t . fontFamily } ;
font - size : $ { t . fontSize } ;
fill : $ { t . textColor } ;
}
. ishikawa . ishikawa - head - label {
font - weight : 600 ;
text - anchor : middle ;
dominant - baseline : middle ;
font - size : 14 px ;
}
. ishikawa . ishikawa - label {
text - anchor : end ;
}
. ishikawa . ishikawa - label . cause {
text - anchor : middle ;
dominant - baseline : middle ;
}
. ishikawa . ishikawa - label . align {
text - anchor : end ;
dominant - baseline : middle ;
}
. ishikawa . ishikawa - label . up {
dominant - baseline : baseline ;
}
. ishikawa . ishikawa - label . down {
dominant - baseline : hanging ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),d7e=f1t});var m7e={};ur(m7e,{diagram:()=>d1t});var d1t,g7e=P(()=>{"use strict";r7e();i7e();f7e();p7e();d1t={parser:t7e,get db(){return new a8},renderer:h7e,styles:d7e}});var KH,x7e,b7e=P(()=>{"use strict";KH=(function(){var t=o(function(b,T,w,k){for(w=w||{},k=b.length;k--;w[b[k]]=T);return w},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],n=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],l=[1,39],u=[7,8,11,12,17,19,22,24,27],h=[1,57],f=[1,56],d=[1,58],p=[1,59],m=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],y={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33, $ accept:0, $ end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:o(function(T,w,k,C,E,S,L){var M=S.length-1;switch(E){case 1:return S[M-1];case 2:case 3:case 4:this. $ =[];break;case 5:S[M-1].push(S[M]),this. $ =S[M-1];break;case 6:this. $ =[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this. $ =S[M];break;case 8:C.setDiagramTitle(S[M].substr(6)),this. $ =S[M].substr(6);break;case 9:C.addSubsetData([S[M]],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 10:C.addSubsetData([S[M-1]],S[M],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 11:C.addSubsetData([S[M-2]],void 0,parseFloat(S[M])),C.setIndentMode&&C.setIndentMode(!0);break;case 12:C.addSubsetData([S[M-3]],S[M-2],parseFloat(S[M])),C.setIndentMode&&C.setIndentMode(!0);break;case 13:if(S[M].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(S[M]),C.addSubsetData(S[M],void 0,void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 14:if(S[M-1].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(S[M-1]),C.addSubsetData(S[M-1],S[M],void 0),C.setIndentMode&&C.setIndentMode(!0);break;case 15:if(S[M-2].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(S[M-2]),C.addSubsetData(S[M-2],void 0,parseFloat(S[M])),C.setIndentMode&&C.setIndentMode(!0);break;case 16:if(S[M-3].length<2)throw new Error("union requires multiple identifiers");C.validateUnionIdentifiers&&C.validateUnionIdentifiers(S[M-3]),C.addSubsetData(S[M-3],S[M-2],parseFloat(S[M])),C.setIndentMode&&C.setIndentMode(!0);break;case 17:case 18:case 19:C.addTextData(S[M-1],S[M],void 0);break;case 20:case 21:C.addTextData(S[M-2],S[M-1],S[M]);break;case 23:C.addStyleData(S[M-1],S[M]);break;case 24:case 25:case 26:var I=C.getCurrentSets();if(!I)throw new Error("text requires set");C.addTextData(I,S[M],void 0);break;case 27:case 28:var I=C.getCurrentSets();if(!I)throw new Error("text requires set");C.addTextData(I,S[M-1],S[M]);break;case 29:case 41:this. $ =[S[M]];break;case 30:case 42:this. $ =[...S[M-2],S[M]];break;case 31:this. $ =[S[M-2],S[M]];break;case 33:this. $ =S[M].join(" ");break;case 34:this. $ =[S[M]];break;case 35:S[M-1].push(S[M]),this. $ =S[M-1];break;case 43:case 44:this. $ =S[M];break}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13
` +B.showPosition()+ `
Expecting ` +de.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Ee="Parse error on line "+(I+1)+": Unexpected "+(X==N?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Ee,{text:B.match,token:this.terminals_[X]||X,line:B.yylineno,loc:z,expected:de})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+X);switch(Y[0]){case 1:k.push(X),E.push(B.yytext),S.push(B.yylloc),k.push(Y[1]),X=null,W?(X=W,W=null):(A=B.yyleng,M=B.yytext,I=B.yylineno,z=B.yylloc,_>0&&_--);break;case 2:if(te=this.productions_[Y[1]][1],ee. $ =E[E.length-te],ee._ $ ={first_line:S[S.length-(te||1)].first_line,last_line:S[S.length-1].last_line,first_column:S[S.length-(te||1)].first_column,last_column:S[S.length-1].last_column},F&&(ee._ $ .range=[S[S.length-(te||1)].range[0],S[S.length-1].range[1]]),J=this.performAction.apply(ee,[M,A,I,O.yy,Y[1],E,S].concat(R)),typeof J<"u")return J;te&&(k=k.slice(0,-1*te*2),E=E.slice(0,-1*te),S=S.slice(0,-1*te)),k.push(this.productions_[Y[1]][0]),E.push(ee. $ ),S.push(ee._ $ ),be=L[k[k.length-2]][k[k.length-1]],k.push(be);break;case 3:return!0}}return!0},"parse")},v=(function(){var b={EOF:1,parseError:o(function(w,k){if(this.yy.parser)this.yy.parser.parseError(w,k);else throw new Error(w)},"parseError"),setInput:o(function(T,w){return this.yy=w||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:o(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var w=T.match(/(?: \r \n ?| \n ).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},"input"),unput:o(function(T){var w=T.length,k=T.split(/(?: \r \n ?| \n )/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var C=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===C.length?this.yylloc.first_column:0)+C[C.length-k.length].length-k[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(T){this.unput(this.match.slice(T))},"less"),pastInput:o(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var T=this.pastInput(),w=new Array(T.length+1).join("-");return T+this.upcomingInput()+ `
` +w+"^"},"showPosition"),test_match:o(function(T,w){var k,C,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),C=T[0].match(/(?: \r \n ?| \n ).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.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],k=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var S in E)this[S]=E[S];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var T,w,k,C;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),S=0;S<E.length;S++)if(k=this._input.match(this.rules[E[S]]),k&&(!w||k[0].length>w[0].length)){if(w=k,C=S,this.options.backtrack_lexer){if(T=this.test_match(k,E[S]),T!==!1)return T;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(T=this.test_match(w,E[C]),T!==!1?T:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var w=this.next();return w||this.lex()},"lex"),begin:o(function(w){this.conditionStack.push(w)},"begin"),popState:o(function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},"topState"),pushState:o(function(w){this.begin(w)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(w,k,C,E){var S=E;switch(C){case 0:break;case 1:break;case 2:break;case 3:if(w.getIndentMode&&w.getIndentMode())return w.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:w.setIndentMode&&w.setIndentMode(!1),this.begin("INITIAL"),this.unput(k.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(w.consumeIndentText)w.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return k.yytext=k.yytext.slice(2,-2),14;break;case 17:return k.yytext=k.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \t ]+(?=[ \n \r ]))/i,/^(?:[ \t ]+(?=text \b ))/i,/^(?:[ \t ]+)/i,/^(?:[^ \t \n \r ])/i,/^(?:[ \n \r ]+)/i,/^(?:%%[^ \n ]*)/i,/^(?:[ \t ]+)/i,/^(?: $ )/i,/^(?:title \s [^# \n ;]+)/i,/^(?:venn-beta \b )/i,/^(?:set \b )/i,/^(?:union \b )/i,/^(?:text \b )/i,/^(?:style \b )/i,/^(?: \[ "[^ \" ]*" \] )/i,/^(?: \[ [^ \] \" ]+ \] )/i,/^(?:[+-]?( \d +( \. \d +)?| \. \d +))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba \( \s *[0-9.]+ \s *[,] \s *[0-9.]+ \s *[,] \s *[0-9.]+ \s *[,] \s *[0-9.]+ \s * \) )/i,/^(?:rgb \( \s *[0-9.]+ \s *[,] \s *[0-9.]+ \s *[,] \s *[0-9.]+ \s * \) )/i,/^(?:[A-Za-z_][A-Za-z0-9 \- _]*)/i,/^(?:"[^ \" ]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return b})();y.lexer=v;function x(){this.yy={}}return o(x,"Parser"),x.prototype=y,y.Parser=x,new x})();KH.parser=KH;x7e=KH});function _1t(){return fi(A1t,Lt().venn)}var QH,ZH,JH,eY,tY,rY,g1t,y1t,QC,v1t,x1t,b1t,T1t,o8,k1t,C1t,w1t,E1t,S1t,A1t,D1t,T7e,k7e=P(()=>{"use strict";er();Sr();Ki();wa();QH=[],ZH=[],JH=[],eY=new Set,rY=!1,g1t=o((t,e,r)=>{let i=o8(t).sort(),n=r??10/Math.pow(t.length,2);tY=i,i.length===1&&eY.add(i[0]),QH.push({sets:i,size:n,label:e?QC(e):void 0})},"addSubsetData"),y1t=o(()=>QH,"getSubsetData"),QC=o(t=>{let e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),v1t=o(t=>t&&QC(t),"normalizeStyleValue"),x1t=o((t,e,r)=>{let i=QC(e);ZH.push({sets:o8(t).sort(),id:i,label:r?QC(r):void 0})},"addTextData"),b1t=o((t,e)=>{let r=o8(t).sort(),i={};for(let[n,a]of e)i[n]=v1t(a)??a;JH.push({targets:r,styles:i})},"addStyleData"),T1t=o(()=>JH,"getStyleData"),o8=o(t=>t.map(e=>QC(e)),"normalizeIdentifierList"),k1t=o(t=>{let r=o8(t).filter(i=>!eY.has(i));if(r.length>0)throw new Error( ` unknown set identifier : $ { r . join ( ", " ) } ` )},"validateUnionIdentifiers"),C1t=o(()=>ZH,"getTextData"),w1t=o(()=>tY,"getCurrentSets"),E1t=o(()=>rY,"getIndentMode"),S1t=o(t=>{rY=t},"setIndentMode"),A1t=fr.venn;o(_1t,"getConfig");D1t=o(()=>{wr(),QH.length=0,ZH.length=0,JH.length=0,eY.clear(),tY=void 0,rY=!1},"customClear"),T7e={getConfig:_1t,clear:D1t,setAccTitle:Ar,getAccTitle:Dr,setDiagramTitle:Mr,getDiagramTitle:Nr,getAccDescription:Rr,setAccDescription:Lr,addSubsetData:g1t,getSubsetData:y1t,addTextData:x1t,addStyleData:b1t,validateUnionIdentifiers:k1t,getTextData:C1
2026-03-11 20:55:37 +00:00
. venn - title {
font - size : 32 px ;
fill : $ { t . vennTitleTextColor } ;
font - family : $ { t . fontFamily } ;
}
. venn - circle text {
font - size : 48 px ;
font - family : $ { t . fontFamily } ;
}
. venn - intersection text {
font - size : 48 px ;
fill : $ { t . vennSetTextColor } ;
font - family : $ { t . fontFamily } ;
}
. venn - text - node {
font - family : $ { t . fontFamily } ;
color : $ { t . vennSetTextColor } ;
}
2026-04-01 22:38:25 +00:00
` ,"getStyles"),C7e=L1t});function l8(t,e){let r=N1t(t),i=r.filter(l=>R1t(l,t)),n=0,a=0,s=[];if(i.length>1){let l=_7e(i);for(let h=0;h<i.length;++h){let f=i[h];f.angle=Math.atan2(f.x-l.x,f.y-l.y)}i.sort((h,f)=>f.angle-h.angle);let u=i[i.length-1];for(let h=0;h<i.length;++h){let f=i[h];a+=(u.x+f.x)*(f.y-u.y);let d={x:(f.x+u.x)/2,y:(f.y+u.y)/2},p=null;for(let m=0;m<f.parentIndex.length;++m)if(u.parentIndex.includes(f.parentIndex[m])){let g=t[f.parentIndex[m]],y=Math.atan2(f.x-g.x,f.y-g.y),v=Math.atan2(u.x-g.x,u.y-g.y),x=v-y;x<0&&(x+=2*Math.PI);let b=v-x/2,T=qo(d,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});T>g.radius*2&&(T=g.radius*2),(p==null||p.width>T)&&(p={circle:g,width:T,p1:f,p2:u,large:T>g.radius,sweep:!0})}p!=null&&(s.push(p),n+=aY(p.circle.radius,p.width),u=f)}}else{let l=t[0];for(let h=1;h<t.length;++h)t[h].radius<l.radius&&(l=t[h]);let u=!1;for(let h=0;h<t.length;++h)if(qo(t[h],l)>Math.abs(l.radius-t[h].radius)){u=!0;break}u?n=a=0:(n=l.radius*l.radius*Math.PI,s.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-1e-10,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return a/=2,e&&(e.area=n+a,e.arcArea=n,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=r),n+a}function R1t(t,e){return e.every(r=>qo(t,r)<r.radius+1e-10)}function N1t(t){let e=[];for(let r=0;r<t.length;++r)for(let i=r+1;i<t.length;++i){let n=A7e(t[r],t[i]);for(let a of n)a.parentIndex=[r,i],e.push(a)}return e}function aY(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function qo(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function hY(t,e,r){if(r>=t+e)return 0;if(r<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);let i=t-(r*r-e*e+t*t)/(2*r),n=e-(r*r-t*t+e*e)/(2*r);return aY(t,i)+aY(e,n)}function A7e(t,e){let r=qo(t,e),i=t.radius,n=e.radius;if(r>=i+n||r<=Math.abs(i-n))return[];let a=(i*i-n*n+r*r)/(2*r),s=Math.sqrt(i*i-a*a),l=t.x+a*(e.x-t.x)/r,u=t.y+a*(e.y-t.y)/r,h=-(e.y-t.y)*(s/r),f=-(e.x-t.x)*(s/r);return[{x:l+h,y:u-f},{x:l-h,y:u+f}]}function _7e(t){let e={x:0,y:0};for(let r of t)e.x+=r.x,e.y+=r.y;return e.x/=t.length,e.y/=t.length,e}function I1t(t,e,r,i){i=i||{};let n=i.maxIterations||100,a=i.tolerance||1e-10,s=t(e),l=t(r),u=r-e;if(s*l>0)throw"Initial bisect points must have opposite signs";if(s===0)return e;if(l===0)return r;for(let h=0;h<n;++h){u/=2;let f=e+u,d=t(f);if(d*s>=0&&(e=f),Math.abs(u)<a||d===0)return f}return e+u}function sY(t){let e=new Array(t);for(let r=0;r<t;++r)e[r]=0;return e}function E7e(t,e){return sY(t).map(()=>sY(e))}function yx(t,e){let r=0;for(let i=0;i<t.length;++i)r+=t[i]*e[i];return r}function oY(t){return Math.sqrt(yx(t,t))}function lY(t,e,r){for(let i=0;i<e.length;++i)t[i]=e[i]*r}function _f(t,e,r,i,n){for(let a=0;a<t.length;++a)t[a]=e*r[a]+i*n[a]}function D7e(t,e,r){r=r||{};let i=r.maxIterations||e.length*200,n=r.nonZeroDelta||1.05,a=r.zeroDelta||.001,s=r.minErrorDelta||1e-6,l=r.minErrorDelta||1e-5,u=r.rho!==void 0?r.rho:1,h=r.chi!==void 0?r.chi:2,f=r.psi!==void 0?r.psi:-.5,d=r.sigma!==void 0?r.sigma:.5,p,m=e.length,g=new Array(m+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(let k=0;k<m;++k){let C=e.slice();C[k]=C[k]?C[k]*n:a,g[k+1]=C,g[k+1].fx=t(C),g[k+1].id=k+1}function y(k){for(let C=0;C<k.length;C++)g[m][C]=k[C];g[m].fx=k.fx}o(y,"updateSimplex");let v=o((k,C)=>k.fx-C.fx,"sortOrder"),x=e.slice(),b=e.slice(),T=e.slice(),w=e.slice();for(let k=0;k<i;++k){if(g.sort(v),r.history){let E=g.map(S=>{let L=S.slice();return L.fx=S.fx,L.id=S.id,L});E.sort((S,L)=>S.id-L.id),r.history.push({x:g[0].slice(),fx:g[0].fx,simplex:E})}p=0;for(let E=0;E<m;++E)p=Math.max(p,Math.abs(g[0][E]-g[1][E]));if(Math.abs(g[0].fx-g[m].fx)<s&&p<l)break;for(let E=0;E<m;++E){x[E]=0;for(let S=0;S<m;++S)x[E]+=g[S][E];x[E]/=m}let C=g[m];if(_f(b,1+u,x,-u,C),b.fx=t(b),b.fx<g[0].fx)_f(w,1+h,x,-h,C),w.fx=t(w),w.fx<b.fx?y(w):y(b);else if(b.fx>=g[m-1].fx){let E=!1;if(b.fx>C.fx?(_f(T,1+f,x,-f,C),T.fx=t(T),T.fx<C.fx?y(T):E=!0):(_f(T,1-f*u,x,f*u,C),T.fx=t(T),T.fx<b.fx?y(T):E=!0),E){if(d>=1)break;for(let S=1;S<g.length;++S)_f(g[S],1-d,g[0],d,g[S]),g[S].fx=t(g[S])}}else y(b)}return g.sort(v),{fx:g[0].fx,x:g
M ` ,t,e),i.push( `
m ` ,-r,0),i.push( `
a ` ,r,r,0,1,0,r*2,0),i.push( `
a ` ,r,r,0,1,0,-r*2,0),i.join(" ")}function H1t(t){let e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function z7e(t){if(t.length===0)return[];let e={};return l8(t,e),e.arcs}function G7e(t,e){if(t.length===0)return"M 0 0";let r=Math.pow(10,e||0),i=e!=null?a=>Math.round(a*r)/r:a=>a;if(t.length==1){let a=t[0].circle;return U1t(i(a.x),i(a.y),i(a.radius))}let n=[ `
M ` ,i(t[0].p2.x),i(t[0].p2.y)];for(let a of t){let s=i(a.circle.radius);n.push( `
A ` ,s,s,0,a.large?1:0,a.sweep?1:0,i(a.p1.x),i(a.p1.y))}return n.join(" ")}function S7e(t,e){return G7e(z7e(t),e)}function V7e(t,e={}){let{lossFunction:r,layoutFunction:i=L7e,normalize:n=!0,orientation:a=Math.PI/2,orientationOrder:s,width:l=600,height:u=350,padding:h=15,scaleToFit:f=!1,symmetricalTextCentre:d=!1,distinct:p,round:m=2}=e,g=i(t,{lossFunction:r==="default"||!r?vx:r==="logRatio"?N7e:r,distinct:p});n&&(g=I7e(g,a,s));let y=M7e(g,l,u,h,f),v= $ 7e(y,t,d),x=new Map(Object.keys(y).map(w=>[w,{set:w,x:y[w].x,y:y[w].y,radius:y[w].radius}])),b=t.map(w=>{let k=w.sets.map(S=>x.get(S)),C=z7e(k),E=G7e(C,m);return{circles:k,arcs:C,path:E,area:w,has:new Set(w.sets)}});function T(w){let k="";for(let C of b)C.has.size>w.length&&w.every(E=>C.has.has(E))&&(k+=" "+C.path);return k}return o(T,"genDistinctPath"),b.map(({circles:w,arcs:k,path:C,area:E})=>({data:E,text:v[E.sets],circles:w,arcs:k,path:C,distinctPath:C+T(E.sets)}))}var R7e,q7e=P(()=>{"use strict";o(l8,"intersectionArea");o(R1t,"containedInCircles");o(N1t,"getIntersectionPoints");o(aY,"circleArea");o(qo,"distance");o(hY,"circleOverlap");o(A7e,"circleCircleIntersection");o(_7e,"getCenter");o(I1t,"bisect");o(sY,"zeros");o(E7e,"zerosM");o(yx,"dot");o(oY,"norm2");o(lY,"scale");o(_f,"weightedSum");o(D7e,"nelderMead");o(M1t,"wolfeLineSearch");o(O1t,"conjugateGradient");o(L7e,"venn");R7e=1e-10;o(cY,"distanceFromIntersectArea");o(P1t,"addMissingAreas");o(B1t,"getDistanceMatrices");o(F1t,"constrainedMDSGradient");o( $ 1t,"bestInitialLayout");o(z1t,"constrainedMDSLayout");o(G1t,"greedyLayout");o(vx,"lossFunction");o(N7e,"logRatioLossFunction");o(V1t,"orientateCircles");o(q1t,"disjointCluster");o(uY,"getBoundingBox");o(I7e,"normalizeSolution");o(M7e,"scaleSolution");o(O7e,"toObjectNotation");o(P7e,"fromObjectNotation");o(B7e,"VennDiagram");o(iY,"wrapText");o(nY,"circleMargin");o(F7e,"computeTextCentre");o(W1t,"getOverlappingCircles");o( $ 7e,"computeTextCentres");o(U1t,"circlePath");o(H1t,"circleFromPath");o(z7e,"intersectionAreaArcs");o(G7e,"arcsToPath");o(S7e,"intersectionAreaPath");o(V7e,"layout")});function j1t(t){let e=new Map;for(let r of t){let i=r.targets.join("|"),n=e.get(i);n?Object.assign(n,r.styles):e.set(i,{...r.styles})}return e}function vg(t){return t.join("|")}function K1t(t,e,r,i,n,a){let s=t?.useDebugLayout??!1,u=r.select("svg").append("g").attr("class","venn-text-nodes"),h=new Map;for(let f of i){let d=vg(f.sets),p=h.get(d);p?p.push(f):h.set(d,[f])}for(let[f,d]of h.entries()){let p=e.get(f);if(!p?.text)continue;let m=p.text.x,g=p.text.y,y=Math.min(...p.circles.map(D=>D.radius)),v=Math.min(...p.circles.map(D=>D.radius-Math.hypot(m-D.x,g-D.y))),x=Number.isFinite(v)?Math.max(0,v):0;x===0&&Number.isFinite(y)&&(x=y*.6);let b=u.append("g").attr("class","venn-text-area").attr("font-size", ` $ { 40 * n } px ` );s&&b.append("circle").attr("class","venn-text-debug-circle").attr("cx",m).attr("cy",g).attr("r",x).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*n).attr("stroke-dasharray", ` $ { 6 * n } $ { 4 * n } ` );let T=Math.max(80*n,x*2*.95),w=Math.max(60*n,x*2*.95),E=(p.data.label&&p.data.label.length>0?Math.min(32*n,x*.25):0)+(d.length<=2?30*n:0),S=m-T/2,L=g-w/2+E,M=Math.max(1,Math.ceil(Math.sqrt(d.length))),I=Math.max(1,Math.ceil(d.length/M)),A=T/M,_=w/I;for(let[D,N]of d.entries()){let R=D%M,B=Math.floor(D/M),O=S+A*(R+.5), $ =L+_*(B+.5);s&&b.append("rect").attr("class","venn-text-debug-cell").attr("x",S+A*R).attr("y",L+_*B).attr("width",A).attr("height",_).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*n).attr("stroke-dasharray", ` $ { 4 * n } $ { 3 * n } ` );let z=A*.9,F=_*.9,V=b.append("foreignObject").attr("class","venn-text-node-fo").attr("width",z).attr("height",F).attr("x",O-z/2).attr("y", $ -F/2).attr("overflow","visible"),H=a.get(N.id)?.color,X=V.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(N.label??N.id);H&&X.s
2026-02-13 14:04:06 -07:00
. treemapNode . section {
2026-04-01 22:38:25 +00:00
stroke : $ { n . sectionStrokeColor } ;
stroke - width : $ { n . sectionStrokeWidth } ;
fill : $ { n . sectionFillColor } ;
2026-02-13 14:04:06 -07:00
}
. treemapNode . leaf {
2026-04-01 22:38:25 +00:00
stroke : $ { n . leafStrokeColor } ;
stroke - width : $ { n . leafStrokeWidth } ;
fill : $ { n . leafFillColor } ;
2026-02-13 14:04:06 -07:00
}
. treemapLabel {
2026-04-01 22:38:25 +00:00
fill : $ { s } ;
font - size : $ { n . labelFontSize } ;
2026-02-13 14:04:06 -07:00
}
. treemapValue {
2026-04-01 22:38:25 +00:00
fill : $ { l } ;
font - size : $ { n . valueFontSize } ;
2026-02-13 14:04:06 -07:00
}
. treemapTitle {
2026-04-01 22:38:25 +00:00
fill : $ { a } ;
font - size : $ { n . titleFontSize } ;
}
` },"getStyles"),t_e=oyt});var i_e={};ur(i_e,{diagram:()=>lyt});var lyt,n_e=P(()=>{"use strict";fY();Z7e();e_e();r_e();lyt={parser:dY,get db(){return new xx},renderer:J7e,styles:t_e}});var c8,xg,o_e,hyt,fyt,pY,l_e=P(()=>{"use strict";sh();bt();vf();c8=o((t,e)=>{let r=t<=1?t*100:t;if(r<0||r>100)throw new Error( ` $ { e } must be between 0 - 1 ( decimal ) or 0 - 100 ( percentage ) . Received : $ { t } ` );return r},"toPercent"),xg=o((t,e,r)=>({x:c8(e, ` $ { r } evolution ` ),y:c8(t, ` $ { r } visibility ` )}),"toCoordinates"),o_e=o(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),hyt=o(t=>{if(!t?.startsWith("+"))return{};let r=/^ \+ '([^']*)'/.exec(t)?.[1];return t.includes("<>")?{flow:"bidirectional",label:r}:t.includes("<")?{flow:"backward",label:r}:t.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),fyt=o((t,e)=>{if(Ss(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){let r=t.evolution.stages.map(n=>n.secondName? ` $ { n . name . trim ( ) } / $ { n . secondName . trim ( ) } ` :n.name.trim()),i=t.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);e.updateAxes({stages:r,stageBoundaries:i})}if(t.anchors.forEach(r=>{let i=xg(r.visibility,r.evolution, ` Anchor "${r.name}" ` );e.addNode(r.name,r.name,i.x,i.y,"anchor")}),t.components.forEach(r=>{let i=xg(r.visibility,r.evolution, ` Component "${r.name}" ` ),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,a=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,s=r.decorator?.strategy;e.addNode(r.name,r.name,i.x,i.y,"component",n,a,r.inertia,s)}),t.notes.forEach(r=>{let i=xg(r.visibility,r.evolution, ` Note "${r.text}" ` );e.addNote(r.text,i.x,i.y)}),t.pipelines.forEach(r=>{let i=e.getNode(r.parent);if(!i||typeof i.y!="number")throw new Error( ` Pipeline "${r.parent}" must reference an existing component with coordinates . ` );let n=i.y;e.startPipeline(r.parent),r.components.forEach(a=>{let s= ` $ { r . parent } _$ { a . name } ` ,l=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,u=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,h=c8(a.evolution, ` Pipeline component "${a.name}" evolution ` );e.addNode(s,a.name,h,n,"pipeline-component",l,u),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{let i=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-.")),n=o_e(r.fromPort)??o_e(r.toPort),{flow:a,label:s}=hyt(r.arrow);!n&&a&&(n=a);let l=r.linkLabel,u=s??l;e.addLink(r.from,r.to,i,u,n)}),t.evolves.forEach(r=>{let i=e.getNode(r.component);if(i?.y!==void 0){let n=c8(r.target, ` Evolve target for "${r.component}" ` );e.addTrend(r.component,n,i.y)}}),t.annotations.length>0){let r=t.annotations[0],i=xg(r.x,r.y,"Annotations box");e.setAnnotationsBox(i.x,i.y)}t.annotation.forEach(r=>{let i=xg(r.x,r.y, ` Annotation $ { r . number } ` );e.addAnnotation(r.number,[{x:i.x,y:i.y}],r.text)}),t.accelerators.forEach(r=>{let i=xg(r.x,r.y, ` Accelerator "${r.name}" ` );e.addAccelerator(r.name,i.x,i.y)}),t.deaccelerators.forEach(r=>{let i=xg(r.x,r.y, ` Deaccelerator "${r.name}" ` );e.addDeaccelerator(r.name,i.x,i.y)})},"populateDb"),pY={parser:{yy:void 0},parse:o(async t=>{let e=await ba("wardley",t);Q.debug(e);let r=pY.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");fyt(e,r)},"parse")}});var u8,c_e=P(()=>{"use strict";u8=class{constructor(){this.nodes=new Map;this.links=[];this.trends=new Map;this.pipelines=new Map;this.annotations=[];this.notes=[];this.accelerators=[];this.deaccelerators=[];this.axes={}}static{o(this,"WardleyBuilder")}addNode(e){let r=this.nodes.get(e.id)??{id:e.id,label:e.label},i={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,i)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let r=this.nodes.get(e);r&&(r.isPipelineParent=!0)}addPipelineComponent(e,r){let i=this.pipelines.get(e);i&&i.compo
` +t);let n=Ryt(),a=Lyt(),s=n.nodeRadius*1.6,l=i.db,u=l.getWardleyData(),h=l.getDiagramTitle(),f=u.size?.width??n.width,d=u.size?.height??n.height,p=Fi(e);p.selectAll("*").remove(),Hr(p,d,f,n.useMaxWidth),p.attr("viewBox", ` 0 0 $ { f } $ { d } ` );let m=p.append("g").attr("class","wardley-map"),g=p.append("defs");g.append("marker").attr("id", ` arrow - $ { e } ` ).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.evolutionStroke).attr("stroke","none"),g.append("marker").attr("id", ` link - arrow - end - $ { e } ` ).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.linkStroke).attr("stroke","none"),g.append("marker").attr("id", ` link - arrow - start - $ { e } ` ).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",a.linkStroke).attr("stroke","none"),m.append("rect").attr("class","wardley-background").attr("width",f).attr("height",d).attr("fill",a.backgroundColor);let y=f-n.padding*2,v=d-n.padding*2;h&&m.append("text").attr("class","wardley-title").attr("x",f/2).attr("y",n.padding/2).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);let x=o(O=>n.padding+O/100*y,"projectX"),b=o(O=>d-n.padding-O/100*v,"projectY"),T=m.append("g").attr("class","wardley-axes");T.append("line").attr("x1",n.padding).attr("x2",f-n.padding).attr("y1",d-n.padding).attr("y2",d-n.padding).attr("stroke",a.axisColor).attr("stroke-width",1),T.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",d-n.padding).attr("stroke",a.axisColor).attr("stroke-width",1);let w=u.axes.xLabel??"Evolution",k=u.axes.yLabel??"Visibility";T.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+y/2).attr("y",d-n.padding/4).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(w),T.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+v/2).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform", ` rotate ( - 90 $ { n . padding / 3 } $ { n . padding + v / 2 } ) ` ).text(k);let C=u.axes.stages&&u.axes.stages.length>0?u.axes.stages:Dyt;if(C.length>0){let O=m.append("g").attr("class","wardley-stages"), $ =u.axes.stageBoundaries,z=[];if( $ && $ .length===C.length){let F=0; $ .forEach(V=>{z.push({start:F,end:V}),F=V})}else{let F=1/C.length;C.forEach((V,H)=>{z.push({start:H*F,end:(H+1)*F})})}C.forEach((F,V)=>{let H=z[V],X=n.padding+H.start*y,W=n.padding+H.end*y,Z=(X+W)/2;V>0&&O.append("line").attr("x1",X).attr("x2",X).attr("y1",n.padding).attr("y2",d-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),O.append("text").attr("class","wardley-stage-label").attr("x",Z).attr("y",d-n.padding/1.5).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(F)})}if(n.showGrid){let O=m.append("g").attr("class","wardley-grid");for(let $ =1; $ <4; $ ++){let z= $ /4,F=n.padding+y*z;O.append("line").attr("x1",F).attr("x2",F).attr("y1",n.padding).attr("y2",d-n.padding).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6"),O.append("line").attr("x1",n.padding).attr("x2",f-n.padding).attr("y1",d-n.padding-v*z).attr("y2",d-n.padding-v*z).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6")}}let E=new Map;if(u.nodes.forEach(O=>{E.set(O.id,{x:x(O.x),y:b(O.y),node:O})}),u.pipelines.length>0){let O=m.append("g").attr("class","wardley-pipelines"), $ =m.append("g").attr("class","wardley-pipeline-links");u.pipelines.forEach(z=>{if(z.componentIds.length===0)return;let F=z.componentIds.map(
M $ { z } $ { F - H / 2 }
L $ { z + V - X } $ { F - H / 2 }
L $ { z + V - X } $ { F - H / 2 - 8 }
L $ { z + V } $ { F }
L $ { z + V - X } $ { F + H / 2 + 8 }
L $ { z + V - X } $ { F + H / 2 }
L $ { z } $ { F + H / 2 }
Z
` ;O.append("path").attr("d",W).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),O.append("text").attr("x",z+V/2).attr("y",F+H/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text( $ .name)})}if(u.deaccelerators.length>0){let O=m.append("g").attr("class","wardley-deaccelerators");u.deaccelerators.forEach( $ =>{let z=x( $ .x),F=b( $ .y),V=60,H=30,X=20,W= `
M $ { z + V } $ { F - H / 2 }
L $ { z + X } $ { F - H / 2 }
L $ { z + X } $ { F - H / 2 - 8 }
L $ { z } $ { F }
L $ { z + X } $ { F + H / 2 + 8 }
L $ { z + X } $ { F + H / 2 }
L $ { z + V } $ { F + H / 2 }
Z
` ;O.append("path").attr("d",W).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),O.append("text").attr("x",z+V/2).attr("y",F+H/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text( $ .name)})}},"draw"),f_e={draw:Nyt}});var p_e={};ur(p_e,{diagram:()=>Iyt});var Iyt,m_e=P(()=>{"use strict";l_e();h_e();d_e();Iyt={parser:pY,db:u_e,renderer:f_e,styles:o(()=>"","styles")}});var bvt={};ur(bvt,{default:()=>xvt});lu();oL();Kp();var KFe=o(t=>/^ \s *C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),QFe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(kne(),Tne));return{id:"c4",diagram:t}},"loader"),ZFe={id:"c4",detector:KFe,loader:QFe},Cne=ZFe;var Cye="flowchart",Lit=o((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^ \s *graph/.test(t),"detector"),Rit=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(WS(),qS));return{id:Cye,diagram:t}},"loader"),Nit={id:Cye,detector:Lit,loader:Rit},wye=Nit;var Eye="flowchart-v2",Iit=o((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^ \s *graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^ \s *flowchart/.test(t)),"detector"),Mit=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(WS(),qS));return{id:Eye,diagram:t}},"loader"),Oit={id:Eye,detector:Iit,loader:Mit},Sye=Oit;var zit=o(t=>/^ \s *erDiagram/.test(t),"detector"),Git=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Oye(),Mye));return{id:"er",diagram:t}},"loader"),Vit={id:"er",detector:zit,loader:Git},Pye=Vit;var k4e="gitGraph",Ect=o(t=>/^ \s *gitGraph/.test(t),"detector"),Sct=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(T4e(),b4e));return{id:k4e,diagram:t}},"loader"),Act={id:k4e,detector:Ect,loader:Sct},C4e=Act;var twe="gantt",mut=o(t=>/^ \s *gantt/.test(t),"detector"),gut=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(ewe(),J4e));return{id:twe,diagram:t}},"loader"),yut={id:twe,detector:mut,loader:gut},rwe=yut;var hwe="info",kut=o(t=>/^ \s *info/.test(t),"detector"),Cut=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(uwe(),cwe));return{id:hwe,diagram:t}},"loader"),fwe={id:hwe,detector:kut,loader:Cut};var Put=o(t=>/^ \s *pie/.test(t),"detector"),But=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Twe(),bwe));return{id:"pie",diagram:t}},"loader"),kwe={id:"pie",detector:Put,loader:But};var Owe="quadrantChart",tht=o(t=>/^ \s *quadrantChart/.test(t),"detector"),rht=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Mwe(),Iwe));return{id:Owe,diagram:t}},"loader"),iht={id:Owe,detector:tht,loader:rht},Pwe=iht;var c3e="xychart",bht=o(t=>/^ \s *xychart(-beta)?/.test(t),"detector"),Tht=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(l3e(),o3e));return{id:c3e,diagram:t}},"loader"),kht={id:c3e,detector:bht,loader:Tht},u3e=kht;var x3e="requirement",Aht=o(t=>/^ \s *requirement(Diagram)?/.test(t),"detector"),_ht=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(v3e(),y3e));return{id:x3e,diagram:t}},"loader"),Dht={id:x3e,detector:Aht,loader:_ht},b3e=Dht;var F3e="sequence",Eft=o(t=>/^ \s *sequenceDiagram/.test(t),"detector"),Sft=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(B3e(),P3e));return{id:F3e,diagram:t}},"loader"),Aft={id:F3e,detector:Eft,loader:Sft}, $ 3e=Aft;var U3e="class",Ift=o((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^ \s *classDiagram/.test(t),"detector"),Mft=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(W3e(),q3e));return{id:U3e,diagram:t}},"loader"),Oft={id:U3e,detector:Ift,loader:Mft},H3e=Oft;var X3e="classDiagram",Bft=o((t,e)=>/^ \s *classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^ \s *classDiagram-v2/.test(t),"detector"),Fft=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(j3e(),Y3e));return{id:X3e,diagram:t}},"loader"), $ ft={id:X3e,detector:Bft,loader:Fft},K3e= $ ft;var _5e="state",hdt=o((t,e)=>e?.state?.defaultRendere
` );let i=Fi(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Hr(i,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),GU={draw:Gdt},K5e=GU;var Vdt={db:{},renderer:GU,parser:{parse:o(()=>{},"parse")}},Q5e=Vdt;var Z5e="flowchart-elk",qdt=o((t,e={})=>/^ \s *flowchart-elk/.test(t)||/^ \s *(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),Wdt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(WS(),qS));return{id:Z5e,diagram:t}},"loader"),Udt={id:Z5e,detector:qdt,loader:Wdt},J5e=Udt;var MEe="timeline",gpt=o(t=>/^ \s *timeline/.test(t),"detector"),ypt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(IEe(),NEe));return{id:MEe,diagram:t}},"loader"),vpt={id:MEe,detector:gpt,loader:ypt},OEe=vpt;var JEe="mindmap",Apt=o(t=>/^ \s *mindmap/.test(t),"detector"),_pt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(ZEe(),QEe));return{id:JEe,diagram:t}},"loader"),Dpt={id:JEe,detector:Apt,loader:_pt},eSe=Dpt;var fSe="kanban",Upt=o(t=>/^ \s *kanban/.test(t),"detector"),Hpt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(hSe(),uSe));return{id:fSe,diagram:t}},"loader"),Ypt={id:fSe,detector:Upt,loader:Hpt},dSe=Ypt;var jSe="sankey",g0t=o(t=>/^ \s *sankey(-beta)?/.test(t),"detector"),y0t=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(YSe(),HSe));return{id:jSe,diagram:t}},"loader"),v0t={id:jSe,detector:g0t,loader:y0t},XSe=v0t;var i6e="packet",A0t=o(t=>/^ \s *packet(-beta)?/.test(t),"detector"),_0t=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(r6e(),t6e));return{id:i6e,diagram:t}},"loader"),n6e={id:i6e,detector:A0t,loader:_0t};var m6e="radar",K0t=o(t=>/^ \s *radar-beta/.test(t),"detector"),Q0t=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(p6e(),d6e));return{id:m6e,diagram:t}},"loader"),g6e={id:m6e,detector:K0t,loader:Q0t};var xAe="block",vgt=o(t=>/^ \s *block(-beta)?/.test(t),"detector"),xgt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(vAe(),yAe));return{id:xAe,diagram:t}},"loader"),bgt={id:xAe,detector:vgt,loader:xgt},bAe=bgt;var LAe="treeView",Pgt=
` ;try{i2(n)}catch{let h=HK(n);if(!h)throw new Ng( ` Diagram $ { n } not found . ` );let{id:f,diagram:d}=await h();Qp(f,d)}let{db:a,parser:s,renderer:l,init:u}=i2(n);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new t(n,e,a,s,l)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}};Vr();var G_e=[];var V_e=o(()=>{G_e.forEach(t=>{t()}),G_e=[]},"attachFunctions");bt();var q_e=o(t=>t.replace(/^ \s *%%(?!{)[^ \n ]+ \n ?/gm,"").trimStart(),"cleanupComments");ew();xb();function W_e(t){let e=t.match(J4);if(!e)return{text:t,metadata:{}};let r=ud(e[1],{schema:cd})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}o(W_e,"extractFrontMatter");er();var $ yt=o(t=>t.replace(/ \r \n ?/g, `
` ).replace(/<( \w +)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"=' $ 1'")+">"),"cleanupText"),zyt=o(t=>{let{text:e,metadata:r}=W_e(t),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:e}},"processFrontmatter"),Gyt=o(t=>{let e=Kt.detectInit(t)??{},r=Kt.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:une(t),directive:e}},"processDirectives");function yY(t){let e= $ yt(t),r=zyt(e),i=Gyt(r.text),n=fi(r.config,i.directive);return t=q_e(i.text),{code:t,title:r.title,config:n}}o(yY,"preprocessDiagram");hL();g4();er();function U_e(t){let e=new TextEncoder().encode(t),r=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(r)}o(U_e,"toBase64");var Vyt=5e4,qyt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Wyt="sandbox",Uyt="loose",Hyt="http://www.w3.org/2000/svg",Yyt="http://www.w3.org/1999/xlink",jyt="http://www.w3.org/1999/xhtml",Xyt="100%",Kyt="100%",Qyt="border:0;margin:0;",Zyt="margin:0",Jyt="allow-top-navigation-by-user-activation allow-popups",evt='The "iframe" tag is not supported by your browser.',tvt=["foreignobject"],rvt=["dominant-baseline"];function X_e(t){let e=yY(t);return Mx(),qj(e.config??{}),e}o(X_e,"processAndSetConfigs");async function ivt(t,e){Tx();try{let{code:r,config:i}=X_e(t);return{diagramType:(await K_e(r)).type,config:i}}catch(r){if(e?.suppressErrors)return!1;throw r}}o(ivt,"parse");var H_e=o((t,e,r=[])=> `
. $ { t } $ { e } { $ { r . join ( " !important; " ) } ! important ; } ` ,"cssImportantStyles"),nvt=o((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0&&(r+= `
2026-02-13 14:04:06 -07:00
$ { t . themeCSS } ` ),t.fontFamily!==void 0&&(r+= `
: root { -- mermaid - font - family : $ { t . fontFamily } } ` ),t.altFontFamily!==void 0&&(r+= `
2026-04-01 22:38:25 +00:00
: root { -- mermaid - alt - font - family : $ { t . altFontFamily } } ` ),e instanceof Map){let s=Or(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{_r(l.styles)||s.forEach(u=>{r+=H_e(l.id,u,l.styles)}),_r(l.textStyles)||(r+=H_e(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),avt=o((t,e,r,i)=>{let n=nvt(t,r),a=XK(e,n,{...t.themeVariables,theme:t.theme,look:t.look},i);return b8(B_e( ` $ { i } { $ { a } } ` ),F_e)},"createUserStyles"),svt=o((t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url \( [ \d +./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=zs(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),ovt=o((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Kyt,i=U_e( ` < body style = "${Zyt}" > $ { t } < / b o d y > ` ) ; r e t u r n ` < i f r a m e s t y l e = " w i d t h : $ { X y t } ; h e i g h t : $ { r } ; $ { Q y t } " s r c = " d a t a : t e x t / h t m l ; c h a r s e t = U T F - 8 ; b a s e 6 4 , $ { i } " s a n d b o x = " $ { J y t } " >
$ { evt }
< / i f r a m e > ` } , " p u t I n t o I F r a m e " ) , Y _ e = o ( ( t , e , r , i , n ) = > { l e t a = t . a p p e n d ( " d i v " ) ; a . a t t r ( " i d " , r ) , i & & a . a t t r ( " s t y l e " , i ) ; l e t s = a . a p p e n d ( " s v g " ) . a t t r ( " i d " , e ) . a t t r ( " w i d t h " , " 1 0 0 % " ) . a t t r ( " x m l n s " , H y t ) ; r e t u r n n & & s . a t t r ( " x m l n s : x l i n k " , n ) , s . a p p e n d ( " g " ) , t } , " a p p e n d D i v S v g G " ) ; f u n c t i o n j _ e ( t , e ) { r e t u r n t . a p p e n d ( " i f r a m e " ) . a t t r ( " i d " , e ) . a t t r ( " s t y l e " , " w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; " ) . a t t r ( " s a n d b o x " , " " ) } o ( j _ e , " s a n d b o x e d I f r a m e " ) ; v a r l v t = o ( ( t , e , r , i ) = > { t . g e t E l e m e n t B y I d ( e ) ? . r e m o v e ( ) , t . g e t E l e m e n t B y I d ( r ) ? . r e m o v e ( ) , t . g e t E l e m e n t B y I d ( i ) ? . r e m o v e ( ) } , " r e m o v e E x i s t i n g E l e m e n t s " ) , c v t = o ( a s y n c f u n c t i o n ( t , e , r ) { T x ( ) ; l e t i = X _ e ( e ) ; e = i . c o d e ; l e t n = L t ( ) ; Q . d e b u g ( n ) , e . l e n g t h > ( n ? . m a x T e x t S i z e ? ? V y t ) & & ( e = q y t ) ; l e t a = " # " + t , s = " i " + t , l = " # " + s , u = " d " + t , h = " # " + u , f = o ( ( ) = > { l e t _ = Z e ( p ? l : h ) . n o d e ( ) ; _ & & " r e m o v e " i n _ & & _ . r e m o v e ( ) } , " r e m o v e T e m p E l e m e n t s " ) , d = Z e ( " b o d y " ) , p = n . s e c u r i t y L e v e l = = = W y t , m = n . s e c u r i t y L e v e l = = = U y t , g = n . f o n t F a m i l y ; i f ( r ! = = v o i d 0 ) { i f ( r & & ( r . i n n e r H T M L = " " ) , p ) { l e t A = j _ e ( Z e ( r ) , s ) ; d = Z e ( A . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e d = Z e ( r ) ; Y _ e ( d , t , u , ` f o n t - f a m i l y : $ { g } ` , Y y t ) } e l s e { i f ( l v t ( d o c u m e n t , t , u , s ) , p ) { l e t A = j _ e ( Z e ( " b o d y " ) , s ) ; d = Z e ( A . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e d = Z e ( " b o d y " ) ; Y _ e ( d , t , u ) } l e t y , v ; t r y { y = a w a i t S x . f r o m T e x t ( e , { t i t l e : i . t i t l e } ) } c a t c h ( A ) { i f ( n . s u p p r e s s E r r o r R e n d e r i n g ) t h r o w f ( ) , A ; y = a w a i t S x . f r o m T e x t ( " e r r o r " ) , v = A } l e t x = d . s e l e c t ( h ) . n o d e ( ) , b = y . t y p e , T = x . f i r s t C h i l d , w = T . f i r s t C h i l d , k = y . r e n d e r e r . g e t C l a s s e s ? . ( e , y ) , C = a v t ( n , b , k , a ) , E = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) ; E . i n n e r H T M L = C , T . i n s e r t B e f o r e ( E , w ) ; t r y { a w a i t y . r e n d e r e r . d r a w ( e , t , " 1 1 . 1 4 . 0 " , y ) } c a t c h ( A ) { t h r o w n . s u p p r e s s E r r o r R e n d e r i n g ? f ( ) : K 5 e . d r a w ( e , t , " 1 1 . 1 4 . 0 " ) , A } l e t S = d . s e l e c t ( ` $ { h } s v g ` ) , L = y . d b . g e t A c c T i t l e ? . ( ) , M = y . d b . g e t A c c D e s c r i p t i o n ? . ( ) ; h v t ( b , S , L , M ) , d . s e l e c t ( ` [ i d = " $ { t } " ] ` ) . s e l e c t A l l ( " f o r e i g n o b j e c t > * " ) . a t t r ( " x m l n s " , j y t ) ; l e t I = d . s e l e c t ( h ) . n o d e ( ) . i n n e r H T M L ; i f ( Q . d e b u g ( " c o n f i g . a r r o w M a r k e r A b s o l u t e " , n . a r r o w M a r k e r A b s o l u t e ) , I = s v t ( I , p , l s ( n . a r r o w M a r k e r A b s o l u t e ) ) , p ) { l e t A = d . s e l e c t ( h + " s v g " ) . n o d e ( ) ; I = o v t ( I , A ) } e l s e m | | ( I = T l . s a n i t i z e ( I , { A D D _ T A G S : t v t , A D D _ A T T R : r v t , H T M L _ I N T E G R A T I O N _ P O I N T S : { f o r e i g n o b j e c t : ! 0 } } ) ) ; i f ( V _ e ( ) , v ) t h r o w v ; r e t u r n f ( ) , { d i a g r a m T y p e : b , s v g : I , b i n d F u n c t i o n s : y . d b . b i n d F u n c t i o n s } } , " r e n d e r " ) ; f u n c t i o n u v t ( t = { } ) { l e t e = Y i ( { } , t ) ; e ? . f o n t F a m i l y & & ! e . t h e m e V a r i a b l e s ? . f o n t F a m i l y & & ( e . t h e m e V a r i a b l e s | | ( e . t h e m e V a r i a b l e s = { } ) , e . t h e m e V a r i a b l e s . f o n t F a m i l y = e . f o n t F a m i l y ) , z j ( e ) , e ? . t h e m e & & e . t h e m e i n x l ? e . t h e m e V a r i a b l e s = x l [ e . t h e m e ] . g e t T h e m e V a r i a b l e s ( e . t h e m e V a r i a b l e s ) : e & & ( e . t h e m e V a r i a b l e s = x l . d e f a u l t . g e t T h e m e V a r i a b l e s ( e . t h e m e V a r i a b l e s ) ) ; l e t r = t y p e o f e = = " o b j e c t " ? n D ( e ) : a D ( ) ; _ x ( r . l o g L e v e l ) , T x ( ) } o ( u v t , " i n i t i a l i z e " ) ; v a r K _ e = o ( ( t , e = { } ) = > { l e t { c o d e : r } = y Y ( t ) ; r e t u r n S x . f r o m T e x t ( r , e ) } , " g e t D i a g r a m F r o m T e x t " ) ; f u n c t i o n h v t ( t , e , r , i ) { $ _ e ( e , t ) , z _ e ( e , r , i , e . a t t r ( " i d " ) ) } o ( h v t , " a d d A 1 1 y I n f o " ) ; v a r P p = O b j e c t . f r e e z e ( { r e n d e r : c v t , p a r s e : i v t , g e t D i a g r a m F r o m T e x t : K _ e , i n i t i a l i z e : u v t , g e t C o n f i g : L t , s e t C o n f i g : x 4 , g e t S i t e C o n f i g : a D , u p d a t e S i t e C o n f i g : G j , r e s e t : o ( ( ) = > { M x ( ) } , " r e s e t " ) , g l o b a l R e s e t : o ( ( ) = > { M x ( N f ) } , " g l o b a l R e s e t " ) , d e f a u l t C o n f i g : N f } ) ; _ x ( L t ( ) . l o g L e v e l ) ; M x ( L t ( ) ) ; W d ( ) ; e r ( ) ; v a r f v t = o ( ( t , e , r ) = > { Q . w a r n ( t ) , w I ( t ) ? ( r & & r ( t . s t r , t . h a s h ) , e . p u s h ( { . . . t , m e s s a g e : t . s t r , e r r o r : t } ) ) : ( r & & r ( t ) , t i n s t a n c e o f E r r o r & & e . p u s h ( { s t r : t . m e s s a g e , m e s s a g e : t . m e s s a g e , h a s h : t . n a m e , e r r o r : t } ) ) } , " h a n d l e E r r o r " ) , Q _ e = o ( a s y n c f u n c t i o n ( t = { q u e r y S e l e c t o r : " . m e r m a i d " } ) { t r y { a w a i t d v t ( t ) } c a t c h ( e ) { i f ( w I ( e ) & & Q . e r r o r ( e . s t r ) , L f . p a r s e E r r o r & & L f . p a r s e E r r o r ( e ) , ! t . s u p p r e s s E r r o r s ) t h r o w Q . e r r o r ( " U s e t h e s u p p r e s s E r r o r s o p t i o n t o s u p p r e s s t h e s e e r r o r s " ) , e } } , " r u n " ) , d v t = o ( a s y n c f u n c t i o n ( { p o s t R e n d e r C a l l b a c k : t , q u e r y S e l e c t o r : e , n o d e s : r } = { q u e r y S e l e c t o r : " . m e r m a i d " } ) { l e t i = P p . g e t C o n f i g ( ) ; Q . d e b u g ( ` $ { t ? " " : " N o " } C a l l b a c k f u n c t i o n f o u n d ` ) ; l e t n ; i f ( r ) n = r ; e l s e i f ( e ) n = d o c u m e n t . q u e r y S e l e c t o r A l l ( e ) ; e l s e t h r o w n e w E r r o r ( " N o d e s a n d q u e r y S e l e c t o r a r e b o t h u n d e f i n e d " ) ; Q . d e b u g ( ` F o u n d $ { n . l e n g t h } d i a g r a m s ` ) , i ? . s t a r t O n L o a d ! = = v o i d 0 & & ( Q . d e b u g ( " S t a r t O n L o a d : " + i ? . s t a r t O n L o a d ) , P p . u p d a t e S i t e C o n f i g ( { s t a r t O n L o a d : i ? . s t a r t O n L o a d } ) ) ; l e t a = n e w K t . I n i t I D G e n e r a t o r ( i . d e t e r m i n i s t i c I d s , i . d e t e r m i n i s t i c I D S e e d ) , s , l = [ ] ; f o r ( l e t u o f A r r a y . f r o m ( n ) ) { Q . i n f o ( " R e n d e r i n g d i a g r a m : " + u . i d ) ; i f ( u . g e t A t t r i b u t e ( " d a t a - p r o c e s s e d " ) ) c o n t i n u e ; u . s e t A t t r i b u t e ( " d a t a - p r o c e s s e d " , " t r u e " ) ; l e t h = ` m e r m a i d - $
2026-02-13 14:04:06 -07:00
/*! Check if previously processed */
/ * !
* Wait for document loaded before starting the execution
* /
/ * ! B u n d l e d l i c e n s e i n f o r m a t i o n :
dompurify / dist / purify . es . mjs :
2026-03-11 20:55:37 +00:00
( * ! @ license DOMPurify 3.3 . 1 | ( c ) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github . com / cure53 / DOMPurify / blob / 3.3 . 1 / LICENSE * )
2026-02-13 14:04:06 -07:00
js - yaml / dist / js - yaml . mjs :
2026-03-11 20:55:37 +00:00
( * ! js - yaml 4.1 . 1 https : //github.com/nodeca/js-yaml @license MIT *)
2026-02-13 14:04:06 -07:00
lodash - es / lodash . js :
( * *
* @ license
* Lodash ( Custom Build ) < https : //lodash.com/>
* Build : ` lodash modularize exports="es" -o ./ `
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
* )
cytoscape / dist / cytoscape . esm . mjs :
( * !
Embeddable Minimum Strictly - Compliant Promises / A + 1.1 . 1 Thenable
Copyright ( c ) 2013 - 2014 Ralf S . Engelschall ( http : //engelschall.com)
Licensed under The MIT License ( http : //opensource.org/licenses/MIT)
* )
( * !
Event object based on jQuery events , MIT license
https : //jquery.org/license/
https : //tldrlegal.com/license/mit-license
https : //github.com/jquery/jquery/blob/master/src/event.js
* )
( * ! Bezier curve function generator . Copyright Gaetan Renaudeau . MIT License : http : //en.wikipedia.org/wiki/MIT_License *)
( * ! Runge - Kutta spring physics function generator . Adapted from Framer . js , copyright Koen Bok . MIT License : http : //en.wikipedia.org/wiki/MIT_License *)
* /
globalThis [ "mermaid" ] = globalThis . _ _esbuild _esm _mermaid _nm [ "mermaid" ] . default ;