grimoire3d 0.0.0-dev.ef50bb6 → 0.0.0-dev.f7e9e26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +28 -124
  2. package/cli/cli.js +348 -0
  3. package/cli/content.js +382 -0
  4. package/cli/cover-options.d.ts +15 -0
  5. package/cli/cover-options.js +105 -0
  6. package/cli/markdown.js +139 -0
  7. package/cli/markup.d.ts +3 -0
  8. package/cli/markup.js +60 -0
  9. package/cli/routes.d.ts +6 -0
  10. package/cli/routes.js +19 -0
  11. package/cli/static-pages.js +467 -0
  12. package/cli/video-url.d.ts +5 -0
  13. package/cli/video-url.js +51 -0
  14. package/dist/BookViewer-CwCn-LTn.js +332 -0
  15. package/dist/components/BookModel.d.ts +20 -0
  16. package/dist/components/BookViewer.d.ts +17 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/index.js +5 -0
  19. package/dist/grimoire3d.css +1 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +4 -0
  22. package/dist/main.d.ts +1 -0
  23. package/dist/site/assets/BookReader-BxKrexRZ.js +2 -0
  24. package/dist/site/assets/BookScene-DN1_Kxe3.js +4045 -0
  25. package/dist/site/assets/MermaidDiagram-Dma3Cwvn.js +312 -0
  26. package/dist/site/assets/PageMarkdown-C-gI_dXg.js +37 -0
  27. package/dist/site/assets/abnfDiagram-S7VZAUFO-BIA2ezcb.js +1 -0
  28. package/dist/site/assets/alcove-cyX4Tv3E.avif +0 -0
  29. package/dist/site/assets/architectureDiagram-YGSQEFNW-DMB5UtEZ.js +36 -0
  30. package/dist/site/assets/blockDiagram-APKKGZFW-CeBSUSaW.js +140 -0
  31. package/dist/site/assets/bpmnIcons-APHXDYXF-ByGoYv9M.js +1 -0
  32. package/dist/site/assets/c4Diagram-KJ2TOQU5-BmBo2PHu.js +38 -0
  33. package/dist/site/assets/catalog-07-UR91A.avif +0 -0
  34. package/dist/site/assets/chunk-2Q5K7J3B-BDgDFVbx.js +1 -0
  35. package/dist/site/assets/chunk-5VM5RSS4-CCNs5Q1j.js +15 -0
  36. package/dist/site/assets/chunk-HFQBQIA3-B8uXoLoT.js +1 -0
  37. package/dist/site/assets/chunk-JWPE2WC7-BiKy7CcD.js +1 -0
  38. package/dist/site/assets/chunk-KQLB2F66-D_kpUTKA.js +2 -0
  39. package/dist/site/assets/chunk-KS47KZWR-C_s_qnHf.js +1 -0
  40. package/dist/site/assets/chunk-OY52VR5R-D8f7gl4W.js +88 -0
  41. package/dist/site/assets/chunk-TU62E6Q5-Bm44Znlj.js +1 -0
  42. package/dist/site/assets/chunk-XXDRQBXY-ChLLr56_.js +1 -0
  43. package/dist/site/assets/classDiagram-v2-L25IHNXF-DwKi-r2i.js +217 -0
  44. package/dist/site/assets/cose-bilkent-JH36ORCC-8N6YUm1i.js +1 -0
  45. package/dist/site/assets/cover-blue-Bh8Xp4T5.avif +0 -0
  46. package/dist/site/assets/cover-blue-mobile-YcuYIg0I.avif +0 -0
  47. package/dist/site/assets/cover-green-By13JjUx.avif +0 -0
  48. package/dist/site/assets/cover-green-mobile-BNTgNt7v.avif +0 -0
  49. package/dist/site/assets/cover-red-mobile-DHOCz3wI.avif +0 -0
  50. package/dist/site/assets/cover-red-qvZEk3PI.avif +0 -0
  51. package/dist/site/assets/cynefin-EF2NZ3EQ-Df5ATUPb.js +141 -0
  52. package/dist/site/assets/cynefinDiagram-L36ESFBY-DmAbfxAU.js +62 -0
  53. package/dist/site/assets/cytoscape.esm-BHa1VTXv.js +321 -0
  54. package/dist/site/assets/d3-scale-4DPf7zan.js +1 -0
  55. package/dist/site/assets/dagre-SPEB5RXH-B_2grAE7.js +4 -0
  56. package/dist/site/assets/diagram-3B7GL73J-C9FXwDlf.js +200 -0
  57. package/dist/site/assets/diagram-DNEMPZML-DflAT3gr.js +24 -0
  58. package/dist/site/assets/diagram-L3MUGCDN-B04gjrM_.js +41 -0
  59. package/dist/site/assets/diagram-LA4NIPWU-cfWJg8HX.js +24 -0
  60. package/dist/site/assets/diagram-MHCOC4E2-jRbOs2Df.js +3 -0
  61. package/dist/site/assets/diagram-XPFHEONP-yR45xV59.js +30 -0
  62. package/dist/site/assets/ebnfDiagram-UZSYDL2S-DlmNJUx4.js +1 -0
  63. package/dist/site/assets/elk-XV6XMXQE-cHLdRN7u.js +27 -0
  64. package/dist/site/assets/erDiagram-EYBAPDEH-7HsRsmBI.js +99 -0
  65. package/dist/site/assets/es-DoLiZPBX.js +2 -0
  66. package/dist/site/assets/favicon-C9YRygge.png +0 -0
  67. package/dist/site/assets/flowDiagram-MALGAFMO-DoJjw4RA.js +213 -0
  68. package/dist/site/assets/ganttDiagram-23REXITY-D2uZtX_8.js +292 -0
  69. package/dist/site/assets/gitGraphDiagram-STJD7YCW-CjftfLRK.js +106 -0
  70. package/dist/site/assets/graph-D8UmR1vK.js +1 -0
  71. package/dist/site/assets/index-CqcyU6rA.js +1 -0
  72. package/dist/site/assets/index-DWW-KDWe.css +1 -0
  73. package/dist/site/assets/infoDiagram-KBXO4MBG-HN-1tqq1.js +2 -0
  74. package/dist/site/assets/ishikawaDiagram-M35NCXHK-DcnRwsO0.js +70 -0
  75. package/dist/site/assets/journeyDiagram-OPLOXDXO-CMZGp8mG.js +139 -0
  76. package/dist/site/assets/kanban-definition-BZKZHSQY-C9vGS-EW.js +89 -0
  77. package/dist/site/assets/katex-DLSO0Xi6.js +257 -0
  78. package/dist/site/assets/mindmap-definition-I2QAS2VK-R2SGME7R.js +98 -0
  79. package/dist/site/assets/mobile-cabinet-BUr9vtlo.avif +0 -0
  80. package/dist/site/assets/mobile-cabinet-sm-pauJUfRH.avif +0 -0
  81. package/dist/site/assets/mobile-paper-DF0CuLes.avif +0 -0
  82. package/dist/site/assets/mobile-paper-sm-77eJHX6h.avif +0 -0
  83. package/dist/site/assets/open-nWGD2hyb.glb +0 -0
  84. package/dist/site/assets/pegDiagram-FD4XPPHP-eDMY4Hpd.js +1 -0
  85. package/dist/site/assets/pieDiagram-J4AKIIQI-DoHNiqwi.js +39 -0
  86. package/dist/site/assets/quadrantDiagram-XTYBLID2-Bz5idec8.js +7 -0
  87. package/dist/site/assets/railroadDiagram-MRQ6NCDL-DHJisW8P.js +1 -0
  88. package/dist/site/assets/requirementDiagram-Y7LWUY3S-5aETRIZz.js +84 -0
  89. package/dist/site/assets/resting-amber-BSjsErIg.avif +0 -0
  90. package/dist/site/assets/resting-black-DDQ4XMJI.avif +0 -0
  91. package/dist/site/assets/resting-blue-DDOT8IQ8.avif +0 -0
  92. package/dist/site/assets/resting-green-DkRrV8eX.avif +0 -0
  93. package/dist/site/assets/resting-ivory-CEqoG5yI.avif +0 -0
  94. package/dist/site/assets/resting-plum-B-8tkSmP.avif +0 -0
  95. package/dist/site/assets/resting-red-D0hLpMpz.avif +0 -0
  96. package/dist/site/assets/resting-slate-CH8Z_Rky.avif +0 -0
  97. package/dist/site/assets/resting-teal-CGt6jFmT.avif +0 -0
  98. package/dist/site/assets/resting-walnut-t3WgHgUO.avif +0 -0
  99. package/dist/site/assets/sankeyDiagram-WGJFYUXA-C7O4v9rg.js +40 -0
  100. package/dist/site/assets/search-stage-B8cH1AE_.avif +0 -0
  101. package/dist/site/assets/search-stage-mobile-BZ58ew4F.avif +0 -0
  102. package/dist/site/assets/sequenceDiagram-5NDRBG5M-D4sVU6s6.js +169 -0
  103. package/dist/site/assets/sizeCapture-INFHLROL-Bi2DkFS3.js +1 -0
  104. package/dist/site/assets/stateDiagram-v2-FJ4FJNEA-WqXK7YOd.js +291 -0
  105. package/dist/site/assets/swimlanes-UMQ2AFYF-Czo9WyoV.js +1 -0
  106. package/dist/site/assets/swimlanesDiagram-OMPLPG4O-BH5aEx0X.js +8 -0
  107. package/dist/site/assets/three-core-Dkab0Vtn.js +40 -0
  108. package/dist/site/assets/timeline-definition-SEUHKTQE-KGKDZW_q.js +120 -0
  109. package/dist/site/assets/usecaseDiagram-AFA6YXN4-S0_9S22K.js +370 -0
  110. package/dist/site/assets/vennDiagram-NNMJR3RB-DJOjLlbA.js +34 -0
  111. package/dist/site/assets/wardleyDiagram-S7YFUSEH-BnzYzY-n.js +78 -0
  112. package/dist/site/assets/xychartDiagram-GGNKY7IX-CKOVznoa.js +7 -0
  113. package/dist/site/index.html +14 -0
  114. package/dist/types/index.d.ts +163 -0
  115. package/package.json +27 -11
  116. package/dist/grimoire3d.js +0 -54501
  117. package/dist/grimoire3d.umd.cjs +0 -4212
@@ -0,0 +1,120 @@
1
+ import{_ as o,M as pt,F as nt,C as Rt,a6 as Wt,a7 as Pt,a8 as Bt,c as ft,l as E,R as Vt,S as Ft,a9 as yt,k as X,T as ct,L as zt,aa as Ot,A as Gt}from"./MermaidDiagram-Dma3Cwvn.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,W=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var U=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,R={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>W&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
2
+ `+w.showPosition()+`
3
+ Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==O?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],R.$=x[x.length-B],R._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},U&&(R._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(R,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(R.$),u.push(R._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;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),l.length-1&&(this.yylineno-=l.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:l?(l.length===g.length?this.yylloc.first_column:0)+g[g.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
+ `+d+"^"},"showPosition"),test_match:o(function(a,d){var l,g,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))),g=a[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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var u in x)this[u]=x[u];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,d,l,g;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),u=0;u<x.length;u++)if(l=this._input.match(this.rules[x[u]]),l&&(!d||l[0].length>d[0].length)){if(d=l,g=u,this.options.backtrack_lexer){if(a=this.test_match(l,x[u]),a!==!1)return a;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(a=this.test_match(d,x[g]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var d=this.next();return d||this.lex()},"lex"),begin:o(function(d){this.conditionStack.push(d)},"begin"),popState:o(function(){var d=this.conditionStack.length-1;return d>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(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:o(function(d){this.begin(d)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(d,l,g,x){switch(g){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;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";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 k})();p.lexer=m;function f(){this.yy={}}return o(f,"Parser"),f.prototype=p,p.Parser=f,new f})();tt.parser=tt;var Dt=tt,mt={};zt(mt,{addEvent:()=>$t,addSection:()=>wt,addTask:()=>Tt,addTaskOrg:()=>Nt,clear:()=>vt,default:()=>Kt,getCommonDb:()=>kt,getDirection:()=>_t,getSections:()=>St,getTasks:()=>Et,setDirection:()=>bt});var D="",xt=0,rt="LR",st=[],q=[],K=[],kt=o(()=>Ot,"getCommonDb"),vt=o(function(){st.length=0,q.length=0,D="",K.length=0,rt="LR",Gt()},"clear"),bt=o(function(e){rt=e},"setDirection"),_t=o(function(){return rt},"getDirection"),wt=o(function(e){D=e,st.push(e)},"addSection"),St=o(function(){return st},"getSections"),Et=o(function(){let e=lt();const t=100;let s=0;for(;!e&&s<t;)e=lt(),s++;return q.push(...K),q},"getTasks"),Tt=o(function(e,t,s){const r={id:xt++,section:D,type:D,task:e,score:t||0,events:s?[s]:[]};K.push(r)},"addTask"),$t=o(function(e){K.find(s=>s.id===xt-1).events.push(e)},"addEvent"),Nt=o(function(e){const t={section:D,type:D,description:e,task:e,classes:[]};q.push(t)},"addTaskOrg"),lt=o(function(){const e=o(function(s){return K[s].processed},"compileTask");let t=!0;for(const[s,r]of K.entries())e(s),t=t&&r.processed;return t},"compileTasks"),Kt={clear:vt,getCommonDb:kt,getDirection:_t,setDirection:bt,addSection:wt,getSections:St,getTasks:Et,addTask:Tt,addTaskOrg:Nt,addEvent:$t},It=0,J=o(function(e,t){const s=e.append("rect");return s.attr("x",t.x),s.attr("y",t.y),s.attr("fill",t.fill),s.attr("stroke",t.stroke),s.attr("width",t.width),s.attr("height",t.height),s.attr("rx",t.rx),s.attr("ry",t.ry),t.class!==void 0&&s.attr("class",t.class),s},"drawRect"),Ut=o(function(e,t){const r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=e.append("g");n.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const p=ct().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}o(h,"smile");function c(y){const p=ct().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}o(c,"sad");function i(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(i,"ambivalent"),t.score>3?h(n):t.score<3?c(n):i(n),r},"drawFace"),Xt=o(function(e,t){const s=e.append("circle");return s.attr("cx",t.cx),s.attr("cy",t.cy),s.attr("class","actor-"+t.pos),s.attr("fill",t.fill),s.attr("stroke",t.stroke),s.attr("r",t.r),s.class!==void 0&&s.attr("class",s.class),t.title!==void 0&&s.append("title").text(t.title),s},"drawCircle"),Ht=o(function(e,t){const s=t.text.replace(/<br\s*\/?>/gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(s),r},"drawText"),Zt=o(function(e,t){function s(n,h,c,i,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+i-y)+" "+(n+c-y*1.2)+","+(h+i)+" "+n+","+(h+i)}o(s,"genPoints");const r=e.append("polygon");r.attr("points",s(t.x,t.y,50,20,7)),r.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Ht(e,t)},"drawLabel"),jt=o(function(e,t,s){const r=e.append("g"),n=it();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=s.width,n.height=s.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,J(r,n),Lt(s)(t.text,r,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},s,t.colour)},"drawSection"),et=-1,qt=o(function(e,t,s,r){const n=t.x+s.width/2,h=e.append("g");et++,h.append("line").attr("id",r+"-task"+et).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ut(h,{cx:n,cy:300+(5-t.score)*30,score:t.score});const i=it();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=s.width,i.height=s.height,i.class="task task-type-"+t.num,i.rx=3,i.ry=3,J(h,i),Lt(s)(t.task,h,i.x,i.y,i.width,i.height,{class:"task"},s,t.colour)},"drawTask"),Jt=o(function(e,t){J(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Qt=o(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),it=o(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Lt=(function(){function e(n,h,c,i,y,p,m,f){const k=h.append("text").attr("x",c+y/2).attr("y",i+p/2+5).style("font-color",f).style("text-anchor","middle").text(n);r(k,m)}o(e,"byText");function t(n,h,c,i,y,p,m,f,k){const{taskFontSize:a,taskFontFamily:d}=f,l=n.split(/<br\s*\/?>/gi);for(let g=0;g<l.length;g++){const x=g*a-a*(l.length-1)/2,u=h.append("text").attr("x",c+y/2).attr("y",i).attr("fill",k).style("text-anchor","middle").style("font-size",a).style("font-family",d);u.append("tspan").attr("x",c+y/2).attr("dy",x).text(l[g]),u.attr("y",i+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(u,m)}}o(t,"byTspan");function s(n,h,c,i,y,p,m,f){const k=h.append("switch"),d=k.append("foreignObject").attr("x",c).attr("y",i).attr("width",y).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,k,c,i,y,p,m,f),r(d,m)}o(s,"byFo");function r(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return o(r,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?s:n.textPlacement==="old"?e:t}})(),Yt=o(function(e,t){It=0,et=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function at(e,t){e.each(function(){var s=X(this),r=s.text().split(/(\s+|<br>)/).reverse(),n,h=[],c=1.1,i=s.attr("y"),y=parseFloat(s.attr("dy")),p=s.text(null).append("tspan").attr("x",0).attr("y",i).attr("dy",y+"em");for(let m=0;m<r.length;m++)n=r[r.length-1-m],h.push(n),p.text(h.join(" ").trim()),(p.node().getComputedTextLength()>t||n==="<br>")&&(h.pop(),p.text(h.join(" ").trim()),n==="<br>"?h=[""]:h=[n],p=s.append("tspan").attr("x",0).attr("y",i).attr("dy",c+"em").text(n))})}o(at,"wrap");var te=o(function(e,t,s,r,n,h=!1){const{theme:c,look:i}=r,y=c?.includes("redux"),p=r?.themeVariables?.THEME_COLOR_LIMIT??12,m=s%p-1,f=e.append("g");t.section=m,f.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+m));const k=f.append("g"),a=f.append("g"),l=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(at,t.width).node().getBBox(),g=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;if(t.height=l.height+g*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,a.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),y&&a.attr("transform",`translate(${t.width/2}, ${h?t.padding/2+3:t.padding})`),ne(k,t,m,n,r),i==="neo"&&(f.attr("data-look","neo"),y)){const x=c.includes("dark"),u=e.node()?.ownerSVGElement??e.node(),S=X(u),v=S.attr("id")??"",I=v?`${v}-drop-shadow`:"drop-shadow";if(S.select(`#${I}`).empty()){const C=S.select("defs");(C.empty()?S.append("defs"):C).append("filter").attr("id",I).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",x?"0.2":"0.06").attr("flood-color",x?"#FFFFFF":"#000000")}}return t},"drawNode"),ee=o(function(e,t,s){const r=e.append("g"),h=r.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(at,t.width).node().getBBox(),c=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;return r.remove(),h.height+c*1.1*.5+t.padding},"getVirtualNodeHeight"),ne=o(function(e,t,s,r,n){const{theme:h}=n,c=h?.includes("redux")?0:5,i=5,y=c>0?`M0 ${t.height-i} v${-t.height+2*i} q0,-${c},${c},-${c} h${t.width-2*i} q${c},0,${c},${c} v${t.height-i} H0 Z`:`M0 ${t.height-i} v${-(t.height-i)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",r+"-node-"+It++).attr("class","node-bkg node-"+t.type).attr("d",y),h?.includes("redux")||e.append("line").attr("class","node-line-"+s).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),M={drawRect:J,drawCircle:Xt,drawSection:jt,drawText:Ht,drawLabel:Zt,drawTask:qt,drawBackgroundRect:Jt,getTextObj:Qt,getNoteRect:it,initGraphics:Yt,drawNode:te,getVirtualNodeHeight:ee},re=o(function(e,t,s,r){const n=ft(),{look:h,theme:c,themeVariables:i}=n,{useGradient:y,gradientStart:p,gradientStop:m}=i,f=n.timeline?.leftMargin??50;E.debug("timeline",r.db);const k=n.securityLevel;let a;k==="sandbox"&&(a=X("#i"+t));const l=(k==="sandbox"?X(a.nodes()[0].contentDocument.body):X("body")).select("#"+t);l.append("g");const g=r.db.getTasks(),x=r.db.getCommonDb().getDiagramTitle();E.debug("task",g),M.initGraphics(l,t);const u=r.db.getSections();E.debug("sections",u);let S=0,v=0,I=0,C=0,W=50+f,O=50;C=50;let L=0,w=!0;u.forEach(function(N){const b={number:L,descr:N,section:L,width:150,padding:20,maxHeight:S},_=M.getVirtualNodeHeight(l,b,n);E.debug("sectionHeight before draw",_),S=Math.max(S,_+20)});let H=0,V=0;E.debug("tasks.length",g.length);for(const[N,b]of g.entries()){const _={number:N,descr:b,section:b.section,width:150,padding:20,maxHeight:v},$=M.getVirtualNodeHeight(l,_,n);E.debug("taskHeight before draw",$),v=Math.max(v,$+20),H=Math.max(H,b.events.length);let T=0;for(const P of b.events){const R={descr:P,section:b.section,number:b.section,width:150,padding:20,maxHeight:50};T+=M.getVirtualNodeHeight(l,R,n)}b.events.length>0&&(T+=(b.events.length-1)*10),V=Math.max(V,T)}E.debug("maxSectionHeight before draw",S),E.debug("maxTaskHeight before draw",v),u&&u.length>0?u.forEach(N=>{const b=g.filter(P=>P.section===N),_={number:L,descr:N,section:L,width:200*Math.max(b.length,1)-50,padding:20,maxHeight:S};E.debug("sectionNode",_);const $=l.append("g"),T=M.drawNode($,_,L,n,t);E.debug("sectionNode output",T),$.attr("transform",`translate(${W}, ${C})`),O+=S+50,b.length>0&&ht(l,b,L,W,O,v,n,H,V,S,!1,t),W+=200*Math.max(b.length,1),O=C,L++}):(w=!1,ht(l,g,L,W,O,v,n,H,V,S,!0,t));const F=l.node().getBBox();if(E.debug("bounds",F),x&&l.append("text").text(x).attr("x",h==="neo"?F.x*2+f:F.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=w?S+v+150:v+100,l.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",I).attr("x2",F.width+3*f).attr("y2",I).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),h==="neo"&&y&&c!=="neutral"){const N=l.select("defs"),_=(N.empty()?l.append("defs"):N).append("linearGradient").attr("id",l.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");_.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),_.append("stop").attr("offset","100%").attr("stop-color",m).attr("stop-opacity",1)}yt(void 0,l,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),ht=o(function(e,t,s,r,n,h,c,i,y,p,m,f){for(const k of t){const a={descr:k.task,section:s,number:s,width:150,padding:20,maxHeight:h};E.debug("taskNode",a);const d=e.append("g").attr("class","taskWrapper"),g=M.drawNode(d,a,s,c,f).height;if(E.debug("taskHeight after draw",g),d.attr("transform",`translate(${r}, ${n})`),h=Math.max(h,g),k.events){const x=e.append("g").attr("class","lineWrapper");let u=h;n+=100,u=u+se(e,k.events,s,r,n,c,f),n-=100,x.append("line").attr("x1",r+190/2).attr("y1",n+h).attr("x2",r+190/2).attr("y2",n+h+100+y+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${f}-arrowhead)`).attr("stroke-dasharray","5,5")}r=r+200,m&&!c.timeline?.disableMulticolor&&s++}n=n-10},"drawTasks"),se=o(function(e,t,s,r,n,h,c){let i=0;const y=n;n=n+100;for(const p of t){const m={descr:p,section:s,number:s,width:150,padding:20,maxHeight:50};E.debug("eventNode",m);const f=e.append("g").attr("class","eventWrapper"),a=M.drawNode(f,m,s,h,c,!0).height;i=i+a,f.attr("transform",`translate(${r}, ${n})`),n=n+10+a}return n=y,i},"drawEvents"),ie={setConf:o(()=>{},"setConf"),draw:re},Q=200,z=5,ae=Q+z*2,ot=Q+100,oe=ot+z*2,Mt=10,ce=0,dt=20,At=20,ut=30,Ct=50,le=o(function(e,t,s,r){const n=ft(),h=n.timeline?.leftMargin??50;E.debug("timeline",r.db);const c=Vt(t);c.append("g");const i=r.db.getTasks(),y=r.db.getCommonDb().getDiagramTitle();E.debug("task",i),M.initGraphics(c);const p=r.db.getSections();E.debug("sections",p);let m=0,f=0;const k=50+h;let a=50;const d=a,l=k,g=ae+At,x=oe+Ct,u=l+g;let S=0;const v=p&&p.length>0,I=v?u:k+g,C=Math.max(50,g+x-z*2);p.forEach(function(N){const b={number:S,descr:N,section:S,width:C,padding:z,maxHeight:m},_=M.getVirtualNodeHeight(c,b,n);E.debug("sectionHeight before draw",_),m=Math.max(m,_)});let W=0;E.debug("tasks.length",i.length);for(const[N,b]of i.entries()){const _={number:N,descr:b,section:b.section,width:Q,padding:z,maxHeight:f},$=M.getVirtualNodeHeight(c,_,n);E.debug("taskHeight before draw",$),f=Math.max(f,$);let T=0;for(const P of b.events){const R={descr:P,section:b.section,number:b.section,width:ot,padding:z,maxHeight:50};T+=M.getVirtualNodeHeight(c,R,n)}b.events.length>0&&(T+=(b.events.length-1)*Mt),W=Math.max(W,T)+ce}E.debug("maxSectionHeight before draw",m),E.debug("maxTaskHeight before draw",f);const L=Math.max(f,W)+ut;v?p.forEach(N=>{const b=i.filter(Z=>Z.section===N),_={number:S,descr:N,section:S,width:C,padding:z,maxHeight:m};E.debug("sectionNode",_);const $=c.append("g"),T=M.drawNode($,_,S,n);E.debug("sectionNode output",T);const P=I-g;$.attr("transform",`translate(${P}, ${a})`);const R=a+T.height+dt;b.length>0&&gt(c,b,S,I,R,f,n,L,!1);const G=b.length,B=T.height+dt+L*Math.max(G,1)-(G>0?ut*2:0);a+=B,S++}):gt(c,i,S,I,a,f,n,L,!0);let w=c.node()?.getBBox();if(!w)throw new Error("bbox not found");if(E.debug("bounds",w),y){if(c.append("text").text(y).attr("x",w.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=c.node()?.getBBox(),!w)throw new Error("bbox not found");E.debug("bounds after title",w)}const[H]=Ft(n.fontSize),V=(H??16)*2,F=(H??16)*.5+20,U=c.append("g").attr("class","lineWrapper");U.append("line").attr("x1",I).attr("y1",d-V).attr("x2",I).attr("y2",w.y+w.height+F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),U.lower(),yt(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),gt=o(function(e,t,s,r,n,h,c,i,y){for(const p of t){const m={descr:p.task,section:s,number:s,width:Q,padding:z,maxHeight:h};E.debug("taskNode",m);const f=e.append("g").attr("class","taskWrapper"),k=M.drawNode(f,m,s,c),a=k.height;E.debug("taskHeight after draw",a);const d=r-At-k.width;if(f.attr("transform",`translate(${d}, ${n})`),h=Math.max(h,a),p.events&&p.events.length>0){const l=n,g=r+Ct;he(e,p.events,s,r,g,l,c)}n=n+i,y&&!c.timeline?.disableMulticolor&&s++}},"drawTasks"),he=o(function(e,t,s,r,n,h,c){let i=h;for(const y of t){const p={descr:y,section:s,number:s,width:ot,padding:z,maxHeight:0};E.debug("eventNode",p);const m=e.append("g").attr("class","eventWrapper"),k=M.drawNode(m,p,s,c).height;m.attr("transform",`translate(${n}, ${i})`);const a=e.append("g").attr("class","lineWrapper"),d=i+k/2;a.append("line").attr("x1",r).attr("y1",d).attr("x2",n).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),i=i+k+Mt}return i-h},"drawEvents"),de={setConf:o(()=>{},"setConf"),draw:le},ue=o(e=>{const{theme:t}=pt(),s=t?.includes("dark"),r=Rt(t,e.borderColorArray),n=e.svgId?.replace(/^#/,"")??"",h=n?`url(#${n}-drop-shadow)`:e.dropShadow??"none";let c="";for(let i=0;i<nt(e.THEME_COLOR_LIMIT);i++){const y=`${17-3*i}`,p=r?e.borderColorArray[i%e.borderColorArray.length]:void 0,m=p??e.mainBkg,f=p??e.nodeBorder;c+=`
7
+ .section-${i-1} rect,
8
+ .section-${i-1} path,
9
+ .section-${i-1} circle {
10
+ fill: ${s&&r?e.mainBkg:m};
11
+ stroke: ${f};
12
+ stroke-width: ${e.strokeWidth};
13
+ filter: ${h};
14
+ }
15
+
16
+ .section-${i-1} text {
17
+ fill: ${e.nodeBorder};
18
+ font-weight: ${e.fontWeight}
19
+ }
20
+
21
+ .node-icon-${i-1} {
22
+ font-size: 40px;
23
+ color: ${e["cScaleLabel"+i]};
24
+ }
25
+
26
+ .section-edge-${i-1} {
27
+ stroke: ${e["cScale"+i]};
28
+ }
29
+
30
+ .edge-depth-${i-1} {
31
+ stroke-width: ${y};
32
+ }
33
+
34
+ .section-${i-1} line {
35
+ stroke: ${e["cScaleInv"+i]};
36
+ stroke-width: 3;
37
+ }
38
+
39
+ .lineWrapper line {
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width:${e.strokeWidth}
42
+ }
43
+
44
+ .disabled,
45
+ .disabled circle,
46
+ .disabled text {
47
+ fill: ${e.tertiaryColor??"lightgray"};
48
+ }
49
+
50
+ .disabled text {
51
+ fill: ${e.clusterBorder??"#efefef"};
52
+ }
53
+ `}return c},"genReduxSections"),ge=o(e=>{let t="";const s=nt(e.THEME_COLOR_LIMIT);for(let r=0;r<s;r++)e["lineColor"+r]=e["lineColor"+r]??e["cScaleInv"+r],Wt(e["lineColor"+r])?e["lineColor"+r]=Pt(e["lineColor"+r],20):e["lineColor"+r]=Bt(e["lineColor"+r],20);for(let r=0;r<s;r++){const n=""+(17-3*r);t+=`
54
+ .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path {
55
+ fill: ${e["cScale"+r]};
56
+ }
57
+ .section-${r-1} text {
58
+ fill: ${e["cScaleLabel"+r]};
59
+ }
60
+ .node-icon-${r-1} {
61
+ font-size: 40px;
62
+ color: ${e["cScaleLabel"+r]};
63
+ }
64
+ .section-edge-${r-1}{
65
+ stroke: ${e["cScale"+r]};
66
+ }
67
+ .edge-depth-${r-1}{
68
+ stroke-width: ${n};
69
+ }
70
+ .section-${r-1} line {
71
+ stroke: ${e["cScaleInv"+r]} ;
72
+ stroke-width: 3;
73
+ }
74
+
75
+ .lineWrapper line{
76
+ stroke: ${e["cScaleLabel"+r]} ;
77
+ }
78
+
79
+ .disabled, .disabled circle, .disabled text {
80
+ fill: ${e.tertiaryColor??"lightgray"};
81
+ }
82
+ .disabled text {
83
+ fill: ${e.clusterBorder??"#efefef"};
84
+ }
85
+ `}return t},"genSections"),pe=o(e=>{const{theme:t}=pt(),s=t?.includes("redux"),r=t==="neutral",n=e.svgId?.replace(/^#/,"")??"";let h="";if(e.useGradient&&n&&e.THEME_COLOR_LIMIT&&!r){const c=nt(e.THEME_COLOR_LIMIT);for(let i=0;i<c;i++)h+=`
86
+ .section-${i-1}[data-look="neo"] rect,
87
+ .section-${i-1}[data-look="neo"] path,
88
+ .section-${i-1}[data-look="neo"] circle {
89
+ fill: ${e.mainBkg};
90
+ stroke: url(#${n}-gradient);
91
+ stroke-width: 2;
92
+ }
93
+ .section-${i-1}[data-look="neo"] line {
94
+ stroke: url(#${n}-gradient);
95
+ stroke-width: 2;
96
+ }`}return`
97
+ .edge {
98
+ stroke-width: 3;
99
+ }
100
+ ${s?ue(e):ge(e)}
101
+ ${h}
102
+ .section-root rect, .section-root path, .section-root circle {
103
+ fill: ${e.git0};
104
+ }
105
+ .section-root text {
106
+ fill: ${e.gitBranchLabel0};
107
+ }
108
+ .icon-container {
109
+ height:100%;
110
+ display: flex;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .edge {
115
+ fill: none;
116
+ }
117
+ .eventWrapper {
118
+ filter: brightness(120%);
119
+ }
120
+ `},"getStyles"),fe=pe,ye={setConf:o(()=>{},"setConf"),draw:o((e,t,s,r)=>(r?.db?.getDirection?.()??"LR")==="TD"?de.draw(e,t,s,r):ie.draw(e,t,s,r),"draw")},ve={db:mt,renderer:ye,parser:Dt,styles:fe};export{ve as diagram};