orbitchat 2.0.1 → 2.1.1

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 (56) hide show
  1. package/bin/orbitchat.js +8 -2
  2. package/dist/assets/api-DA987w_8.js +2 -0
  3. package/dist/assets/api-DX_p3qKZ.js +2 -0
  4. package/dist/assets/arc-CvECY7sY-mF3uILBQ.js +1 -0
  5. package/dist/assets/{blockDiagram-c4efeb88-BF2cqC5E-BkXQGexK.js → blockDiagram-c4efeb88-NvaZhZFT-DyzUC8xw.js} +8 -8
  6. package/dist/assets/{c4Diagram-c83219d4-D9AJbzWz-CNYGOFES.js → c4Diagram-c83219d4-gPr1eF38-xGRY6ZJG.js} +3 -3
  7. package/dist/assets/channel-6PI3wNcc-DbDIx5lv.js +1 -0
  8. package/dist/assets/classDiagram-beda092f-B8axaKGu-BwcqEuwT.js +2 -0
  9. package/dist/assets/classDiagram-v2-2358418a-DPdf2DxR-5hysvjgp.js +2 -0
  10. package/dist/assets/clone-D01vUIhD-DWCt7jEw.js +1 -0
  11. package/dist/assets/{createText-1719965b-D5GExXUl-Ckz8tHz2.js → createText-1719965b-D9Y3vUMn-BXWUwuWn.js} +1 -1
  12. package/dist/assets/edges-96097737-Zc6U9nQz-B4W6EbQT.js +4 -0
  13. package/dist/assets/{erDiagram-0228fc6a-DNX6_tUA-DhPLx33M.js → erDiagram-0228fc6a-BLw8FsIp-Co3IqBB-.js} +4 -4
  14. package/dist/assets/{flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js → flowDb-c6c81e3f-DXVkMlSE-Bsj2HEVx.js} +3 -3
  15. package/dist/assets/{flowDiagram-50d868cf-Cmwizbui-BeKU27fc.js → flowDiagram-50d868cf-mkkB0hFd-Pl7pk3Xq.js} +3 -3
  16. package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-D9kQJ4UM.js +1 -0
  17. package/dist/assets/{flowchart-elk-definition-6af322e1-CNwLXR6A-DOFVWWCc.js → flowchart-elk-definition-6af322e1-D9IbjnSJ-D-DoGrrB.js} +1 -1
  18. package/dist/assets/{ganttDiagram-a2739b55-7uphPAFV-BP-Pmtkl.js → ganttDiagram-a2739b55-Cqs5_Zht-BUj_k1-4.js} +3 -3
  19. package/dist/assets/{gitGraphDiagram-82fe8481-DRDypp_x-D9EVaeSh.js → gitGraphDiagram-82fe8481-txBzFn40-DkScLHCv.js} +12 -12
  20. package/dist/assets/{graph-CvRY9YIM-BSWPV9Nr.js → graph-BZahQKIN-BnTQ3Y35.js} +1 -1
  21. package/dist/assets/index-4fWplple.css +1 -0
  22. package/dist/assets/{index-5325376f-D7k5u-pg-BkjFLQrR.js → index-5325376f-DsNDppci-C-Sv8Db0.js} +1 -1
  23. package/dist/assets/index-uJgdYNFJ.js +1006 -0
  24. package/dist/assets/{infoDiagram-8eee0895-BcQBWTwp-B_L_58_Z.js → infoDiagram-8eee0895-SbmhgTjv-CHX7_bdf.js} +3 -3
  25. package/dist/assets/{journeyDiagram-c64418c1-CN5eh0M6-Cblzjpty.js → journeyDiagram-c64418c1-C7AiwbKr-DOkt6igN.js} +4 -4
  26. package/dist/assets/layout-j-hMNqAM-kApliJ5_.js +1 -0
  27. package/dist/assets/{mindmap-definition-8da855dc-BIK1yn9--Jo-NTSHi.js → mindmap-definition-8da855dc-B1WjnfxE-atU1SoQA.js} +13 -13
  28. package/dist/assets/{pieDiagram-a8764435-ikNRxsHY-DMvtPLAT.js → pieDiagram-a8764435-zrkaw4r--BF-2aWXc.js} +5 -5
  29. package/dist/assets/{quadrantDiagram-1e28029f-jvSP5gnQ-6wFt9EAe.js → quadrantDiagram-1e28029f-C2Wa5n16-CLeiHK9N.js} +5 -5
  30. package/dist/assets/{requirementDiagram-08caed73-FO_Z83qK-B12P_I-Z.js → requirementDiagram-08caed73-BtHxx079-BbOwqupS.js} +4 -4
  31. package/dist/assets/{sankeyDiagram-a04cb91d-DN0iWjES-D5WnyMp5.js → sankeyDiagram-a04cb91d-DXlmqTKB-Dbgyfluo.js} +5 -5
  32. package/dist/assets/{sequenceDiagram-c5b8d532-CGsjpH84-dYgkkktm.js → sequenceDiagram-c5b8d532-BVQF3vcA-C6q0Hvwz.js} +1 -1
  33. package/dist/assets/{stateDiagram-1ecb1508-zuhKSs9y-jJmEXeoz.js → stateDiagram-1ecb1508-Dybc3i2m-CELUBkCg.js} +1 -1
  34. package/dist/assets/stateDiagram-v2-c2b004d7-Bp8rRkv2-B560Z2oj.js +1 -0
  35. package/dist/assets/{styles-b4e223ce-BOk_k5Y1-BRehazjg.js → styles-b4e223ce-BSiU4oYL-BgSFRCxx.js} +3 -3
  36. package/dist/assets/{styles-ca3715f6-g0iC1zjD-137Q5E3Y.js → styles-ca3715f6-DU7x0doE-BGs7K4Ws.js} +4 -4
  37. package/dist/assets/{styles-d45a18b0-VfGWd52Q-CGigGBMU.js → styles-d45a18b0-B_CU21kM-nwxkzuib.js} +3 -3
  38. package/dist/assets/{svgDrawCommon-b86b1483-BnVJ45aa-DzmeVj2M.js → svgDrawCommon-b86b1483-sbEe2n2v-BuguNFlb.js} +1 -1
  39. package/dist/assets/threadService-B9Db3n0J.js +1 -0
  40. package/dist/assets/{timeline-definition-faaaa080-BpDBXry4-BFWV_D1Z.js → timeline-definition-faaaa080-b82QCnJ9-CCJ0MYkA.js} +5 -5
  41. package/dist/assets/{xychartDiagram-f5964ef8-CvN7DIQW-DQ0y-Ye4.js → xychartDiagram-f5964ef8-BtRcO0uy-Co4cQ3MA.js} +4 -4
  42. package/dist/index.html +3 -6
  43. package/package.json +3 -3
  44. package/dist/assets/api-BHF9IxKN.js +0 -1
  45. package/dist/assets/api-BK67K_W_.js +0 -2
  46. package/dist/assets/arc-CVHSP1cu-BRo_NEw5.js +0 -1
  47. package/dist/assets/channel-BYhLgIow-BRybLlZc.js +0 -1
  48. package/dist/assets/classDiagram-beda092f-B88VjdUG-BbwMvv2v.js +0 -2
  49. package/dist/assets/classDiagram-v2-2358418a-BPyGCNOs-Cbd2QXtY.js +0 -2
  50. package/dist/assets/clone-C0MdfhAf-BMHvCdCo.js +0 -1
  51. package/dist/assets/edges-96097737-BnGLzlID-DglIvYsr.js +0 -4
  52. package/dist/assets/flowDiagram-v2-4f6560a1-LfQOA08G-CEF5LezR.js +0 -1
  53. package/dist/assets/index-BocEneU2.js +0 -983
  54. package/dist/assets/index-CfrvHiM_.css +0 -1
  55. package/dist/assets/layout-DSZZaifl-Dg6wRbVD.js +0 -1
  56. package/dist/assets/stateDiagram-v2-c2b004d7-CNnNRi3z-D_BHzNsc.js +0 -1
@@ -1,10 +1,10 @@
1
- import{j as Bt,w as mt,v as xt,x as vt,y as Lt,b as $t,aK as It,l as Rt,O as J1,g as ee,m as Nt,i as de,P as R1}from"./index-BocEneU2.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],P=[1,14],b=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],w1=[1,29],P1=[1,30],U1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],G1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],g1=[1,89],b1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],ge=[1,142],be=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],we=[1,133],Pe=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ue=[1,149],F=[8,9,11],G=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],w=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,U){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:g1,92:[1,80],94:[1,81],98:82,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:ge,14:be,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ue}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(G,[2,176]),t(G,[2,163]),t(G,[2,164]),t(G,[2,165]),t(G,[2,166]),t(G,[2,167]),t(G,[2,168]),t(G,[2,169]),t(G,[2,170]),t(G,[2,171]),t(G,[2,172]),t(G,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:ge,14:be,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(G,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ue}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:g1,98:266,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:g1,98:267,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],U=this.table,s="",K=0,Ge=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=U[f1]&&U[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in U[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
1
+ import{M as Bt,L as mt,R as xt,D as vt,N as Lt,I as $t,aK as It,p as Rt,O as J1,S as ee,j as Nt,u as de,F as R1}from"./index-uJgdYNFJ.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],P=[1,14],g=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],w1=[1,29],P1=[1,30],U1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],G1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],b1=[1,89],g1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],be=[1,142],ge=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],we=[1,133],Pe=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ue=[1,149],F=[8,9,11],G=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],w=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,U){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:b1,92:[1,80],94:[1,81],98:82,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:be,14:ge,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ue}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(G,[2,176]),t(G,[2,163]),t(G,[2,164]),t(G,[2,165]),t(G,[2,166]),t(G,[2,167]),t(G,[2,168]),t(G,[2,169]),t(G,[2,170]),t(G,[2,171]),t(G,[2,172]),t(G,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:be,14:ge,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(G,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ue}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:b1,98:266,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:b1,98:267,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],U=this.table,s="",K=0,Ge=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=U[f1]&&U[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in U[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+j1.join(", ")+", got '"+(this.terminals_[V]||V)+"'":he="Parse error on line "+(K+1)+": Unexpected "+(V==Ke?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(he,{text:S.match,token:this.terminals_[V]||V,line:S.yylineno,loc:le,expected:j1})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f1+", token: "+V);switch(X[0]){case 1:l.push(V),k.push(S.yytext),e.push(S.yylloc),l.push(X[1]),V=null,Ge=S.yyleng,s=S.yytext,K=S.yylineno,le=S.yylloc;break;case 2:if(a1=this.productions_[X[1]][1],x1.$=k[k.length-a1],x1._$={first_line:e[e.length-(a1||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(a1||1)].first_column,last_column:e[e.length-1].last_column},Ct&&(x1._$.range=[e[e.length-(a1||1)].range[0],e[e.length-1].range[1]]),oe=this.performAction.apply(x1,[s,Ge,K,d1.yy,X[1],k,e].concat(St)),typeof oe<"u")return oe;a1&&(l=l.slice(0,-1*a1*2),k=k.slice(0,-1*a1),e=e.slice(0,-1*a1)),l.push(this.productions_[X[1]][0]),k.push(x1.$),e.push(x1._$),Xe=U[l[l.length-2]][l[l.length-1]],l.push(Xe);break;case 3:return!0}}return!0}},Ft=function(){var j={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(a,l){return this.yy=l||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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.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),a},unput:function(a){var l=a.length,n=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),n.length-1&&(this.yylineno-=n.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:n?(n.length===k.length?this.yylloc.first_column:0)+k[k.length-n.length].length-n[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
5
  `+l+"^"},test_match:function(a,l){var n,k,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),k=a[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+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],n=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var U in e)this[U]=e[U];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,l,n,k;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),U=0;U<e.length;U++)if(n=this._input.match(this.rules[e[U]]),n&&(!l||n[0].length>l[0].length)){if(l=n,k=U,this.options.backtrack_lexer){if(a=this.test_match(n,e[U]),a!==!1)return a;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(a=this.test_match(l,e[k]),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})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,l,n,k){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return a.lex.firstGraph()&&this.begin("dir"),12;case 30:return a.lex.firstGraph()&&this.begin("dir"),12;case 31:return a.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return j}();re.lexer=Ft;function ae(){this.yy={}}return ae.prototype=re,re.Parser=ae,new ae}();pe.parser=pe;const Yt=pe,Ot="flowchart-";let Ye=0,L1=ee(),g={},z=[],v1={},l1=[],Z1={},q1={},Q1=0,Ae=!0,Y,te,se=[];const ue=t=>Rt.sanitizeText(t,L1),O1=function(t){const r=Object.keys(g);for(const i of r)if(g[i].id===t)return g[i].domId;return t},He=function(t,r,i,u,c,D,d={}){let P,b=t;b!==void 0&&b.trim().length!==0&&(g[b]===void 0&&(g[b]={id:b,labelType:"text",domId:Ot+b+"-"+Ye,styles:[],classes:[]}),Ye++,r!==void 0?(L1=ee(),P=ue(r.text.trim()),g[b].labelType=r.type,P[0]==='"'&&P[P.length-1]==='"'&&(P=P.substring(1,P.length-1)),g[b].text=P):g[b].text===void 0&&(g[b].text=t),i!==void 0&&(g[b].type=i),u!=null&&u.forEach(function(N){g[b].styles.push(N)}),c!=null&&c.forEach(function(N){g[b].classes.push(N)}),D!==void 0&&(g[b].dir=D),g[b].props===void 0?g[b].props=d:d!==void 0&&Object.assign(g[b].props,d))},ze=function(t,r,i){const u={start:t,end:r,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",u);const c=i.text;if(c!==void 0&&(u.text=ue(c.text.trim()),u.text[0]==='"'&&u.text[u.text.length-1]==='"'&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=c.type),i!==void 0&&(u.type=i.type,u.stroke=i.stroke,u.length=i.length),(u==null?void 0:u.length)>10&&(u.length=10),z.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),z.push(u);else throw new Error(`Edge limit exceeded. ${z.length} edges found, but the limit is ${L1.maxEdges}.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,l,n,k){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return a.lex.firstGraph()&&this.begin("dir"),12;case 30:return a.lex.firstGraph()&&this.begin("dir"),12;case 31:return a.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return j}();re.lexer=Ft;function ae(){this.yy={}}return ae.prototype=re,re.Parser=ae,new ae}();pe.parser=pe;const Yt=pe,Ot="flowchart-";let Ye=0,L1=ee(),b={},z=[],v1={},l1=[],Z1={},q1={},Q1=0,Ae=!0,Y,te,se=[];const ue=t=>Rt.sanitizeText(t,L1),O1=function(t){const r=Object.keys(b);for(const i of r)if(b[i].id===t)return b[i].domId;return t},He=function(t,r,i,u,c,D,d={}){let P,g=t;g!==void 0&&g.trim().length!==0&&(b[g]===void 0&&(b[g]={id:g,labelType:"text",domId:Ot+g+"-"+Ye,styles:[],classes:[]}),Ye++,r!==void 0?(L1=ee(),P=ue(r.text.trim()),b[g].labelType=r.type,P[0]==='"'&&P[P.length-1]==='"'&&(P=P.substring(1,P.length-1)),b[g].text=P):b[g].text===void 0&&(b[g].text=t),i!==void 0&&(b[g].type=i),u!=null&&u.forEach(function(N){b[g].styles.push(N)}),c!=null&&c.forEach(function(N){b[g].classes.push(N)}),D!==void 0&&(b[g].dir=D),b[g].props===void 0?b[g].props=d:d!==void 0&&Object.assign(b[g].props,d))},ze=function(t,r,i){const u={start:t,end:r,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",u);const c=i.text;if(c!==void 0&&(u.text=ue(c.text.trim()),u.text[0]==='"'&&u.text[u.text.length-1]==='"'&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=c.type),i!==void 0&&(u.type=i.type,u.stroke=i.stroke,u.length=i.length),(u==null?void 0:u.length)>10&&(u.length=10),z.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),z.push(u);else throw new Error(`Edge limit exceeded. ${z.length} edges found, but the limit is ${L1.maxEdges}.
7
7
 
8
8
  Initialize mermaid with maxEdges set to a higher number to allow more edges.
9
9
  You cannot set this config via configuration inside the diagram as it is a secure config.
10
- You have to call mermaid.initialize.`)},We=function(t,r,i){J1.info("addLink (abc78)",t,r,i);let u,c;for(u=0;u<t.length;u++)for(c=0;c<r.length;c++)ze(t[u],r[c],i)},je=function(t,r){t.forEach(function(i){i==="default"?z.defaultInterpolate=r:z[i].interpolate=r})},Qe=function(t,r){t.forEach(function(i){if(i>=z.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?z.defaultStyle=r:(de.isSubstringInArray("fill",r)===-1&&r.push("fill:none"),z[i].style=r)})},Je=function(t,r){t.split(",").forEach(function(i){v1[i]===void 0&&(v1[i]={id:i,styles:[],textStyles:[]}),r!=null&&r.forEach(function(u){if(u.match("color")){const c=u.replace("fill","bgFill").replace("color","fill");v1[i].textStyles.push(c)}v1[i].styles.push(u)})})},Ze=function(t){Y=t,Y.match(/.*</)&&(Y="RL"),Y.match(/.*\^/)&&(Y="BT"),Y.match(/.*>/)&&(Y="LR"),Y.match(/.*v/)&&(Y="TB"),Y==="TD"&&(Y="TB")},ie=function(t,r){t.split(",").forEach(function(i){let u=i;g[u]!==void 0&&g[u].classes.push(r),Z1[u]!==void 0&&Z1[u].classes.push(r)})},wt=function(t,r){t.split(",").forEach(function(i){r!==void 0&&(q1[te==="gen-1"?O1(i):i]=ue(r))})},Pt=function(t,r,i){let u=O1(t);if(ee().securityLevel!=="loose"||r===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<c.length;D++){let d=c[D].trim();d.charAt(0)==='"'&&d.charAt(d.length-1)==='"'&&(d=d.substr(1,d.length-2)),c[D]=d}}c.length===0&&c.push(t),g[t]!==void 0&&(g[t].haveCallback=!0,se.push(function(){const D=document.querySelector(`[id="${u}"]`);D!==null&&D.addEventListener("click",function(){de.runFunc(r,...c)},!1)}))},qe=function(t,r,i){t.split(",").forEach(function(u){g[u]!==void 0&&(g[u].link=de.formatUrl(r,L1),g[u].linkTarget=i)}),ie(t,"clickable")},et=function(t){if(q1.hasOwnProperty(t))return q1[t]},tt=function(t,r,i){t.split(",").forEach(function(u){Pt(u,r,i)}),ie(t,"clickable")},st=function(t){se.forEach(function(r){r(t)})},ut=function(){return Y.trim()},it=function(){return g},nt=function(){return z},rt=function(){return v1},at=function(t){let r=R1(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=R1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),R1(t).select("svg").selectAll("g.node").on("mouseover",function(){const i=R1(this);if(i.attr("title")===null)return;const u=this.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),i.classed("hover",!0)}).on("mouseout",function(){r.transition().duration(500).style("opacity",0),R1(this).classed("hover",!1)})};se.push(at);const ct=function(t="gen-1"){g={},v1={},z=[],se=[at],l1=[],Z1={},Q1=0,q1={},Ae=!0,te=t,L1=ee(),Nt()},lt=t=>{te=t||"gen-2"},ot=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},ht=function(t,r,i){let u=t.text.trim(),c=i.text;t===i&&i.text.match(/\s/)&&(u=void 0);function D(H){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:H.filter(function(f){const T=typeof f;return f.stmt&&f.stmt==="dir"?(A1=f.value,!1):f.trim()===""?!1:T in o1?o1[T].hasOwnProperty(f)?!1:o1[T][f]=!0:p1.includes(f)?!1:p1.push(f)}),dir:A1}}let d=[];const{nodeList:P,dir:b}=D(d.concat.apply(d,r));if(d=P,te==="gen-1")for(let H=0;H<d.length;H++)d[H]=O1(d[H]);u=u||"subGraph"+Q1,c=c||"",c=ue(c),Q1=Q1+1;const N={id:u,nodes:d,title:c.trim(),classes:[],dir:b,labelType:i.type};return J1.info("Adding",N.id,N.nodes,N.dir),N.nodes=bt(N,l1).nodes,l1.push(N),Z1[u]=N,u},Ut=function(t){for(const[r,i]of l1.entries())if(i.id===t)return r;return-1};let N1=-1;const pt=[],At=function(t,r){const i=l1[r].nodes;if(N1=N1+1,N1>2e3)return;if(pt[N1]=r,l1[r].id===t)return{result:!0,count:0};let u=0,c=1;for(;u<i.length;){const D=Ut(i[u]);if(D>=0){const d=At(t,D);if(d.result)return{result:!0,count:c+d.count};c=c+d.count}u=u+1}return{result:!1,count:c}},dt=function(t){return pt[t]},ft=function(){N1=-1,l1.length>0&&At("none",l1.length-1)},yt=function(){return l1},Et=()=>Ae?(Ae=!1,!0):!1,Vt=t=>{let r=t.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let u="normal";return r.includes("=")&&(u="thick"),r.includes(".")&&(u="dotted"),{type:i,stroke:u}},Mt=(t,r)=>{const i=r.length;let u=0;for(let c=0;c<i;++c)r[c]===t&&++u;return u},Gt=t=>{const r=t.trim();let i=r.slice(0,-1),u="arrow_open";switch(r.slice(-1)){case"x":u="arrow_cross",r[0]==="x"&&(u="double_"+u,i=i.slice(1));break;case">":u="arrow_point",r[0]==="<"&&(u="double_"+u,i=i.slice(1));break;case"o":u="arrow_circle",r[0]==="o"&&(u="double_"+u,i=i.slice(1));break}let c="normal",D=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let d=Mt(".",i);return d&&(c="dotted",D=d),{type:u,stroke:c,length:D}},kt=(t,r)=>{const i=Gt(t);let u;if(r){if(u=Vt(r),u.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=i.type;else{if(u.type!==i.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=i.length,u}return i},gt=(t,r)=>{let i=!1;return t.forEach(u=>{u.nodes.indexOf(r)>=0&&(i=!0)}),i},bt=(t,r)=>{const i=[];return t.nodes.forEach((u,c)=>{gt(r,u)||i.push(t.nodes[c])}),{nodes:i}},Dt={firstGraph:Et},Kt={defaultConfig:()=>It.flowchart,setAccTitle:$t,getAccTitle:Lt,getAccDescription:vt,setAccDescription:xt,addVertex:He,lookUpDomId:O1,addLink:We,updateLinkInterpolate:je,updateLink:Qe,addClass:Je,setDirection:Ze,setClass:ie,setTooltip:wt,getTooltip:et,setClickEvent:tt,setLink:qe,bindFunctions:st,getDirection:ut,getVertices:it,getEdges:nt,getClasses:rt,clear:ct,setGen:lt,defaultStyle:ot,addSubGraph:ht,getDepthFirstPos:dt,indexNodes:ft,getSubGraphs:yt,destructLink:kt,lex:Dt,exists:gt,makeUniq:bt,setDiagramTitle:mt,getDiagramTitle:Bt},Ht=Object.freeze(Object.defineProperty({__proto__:null,addClass:Je,addLink:We,addSingleLink:ze,addSubGraph:ht,addVertex:He,bindFunctions:st,clear:ct,default:Kt,defaultStyle:ot,destructLink:kt,firstGraph:Et,getClasses:rt,getDepthFirstPos:dt,getDirection:ut,getEdges:nt,getSubGraphs:yt,getTooltip:et,getVertices:it,indexNodes:ft,lex:Dt,lookUpDomId:O1,setClass:ie,setClickEvent:tt,setDirection:Ze,setGen:lt,setLink:qe,updateLink:Qe,updateLinkInterpolate:je},Symbol.toStringTag,{value:"Module"}));export{Ht as H,Yt as X,Kt as j};
10
+ You have to call mermaid.initialize.`)},We=function(t,r,i){J1.info("addLink (abc78)",t,r,i);let u,c;for(u=0;u<t.length;u++)for(c=0;c<r.length;c++)ze(t[u],r[c],i)},je=function(t,r){t.forEach(function(i){i==="default"?z.defaultInterpolate=r:z[i].interpolate=r})},Qe=function(t,r){t.forEach(function(i){if(i>=z.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?z.defaultStyle=r:(de.isSubstringInArray("fill",r)===-1&&r.push("fill:none"),z[i].style=r)})},Je=function(t,r){t.split(",").forEach(function(i){v1[i]===void 0&&(v1[i]={id:i,styles:[],textStyles:[]}),r!=null&&r.forEach(function(u){if(u.match("color")){const c=u.replace("fill","bgFill").replace("color","fill");v1[i].textStyles.push(c)}v1[i].styles.push(u)})})},Ze=function(t){Y=t,Y.match(/.*</)&&(Y="RL"),Y.match(/.*\^/)&&(Y="BT"),Y.match(/.*>/)&&(Y="LR"),Y.match(/.*v/)&&(Y="TB"),Y==="TD"&&(Y="TB")},ie=function(t,r){t.split(",").forEach(function(i){let u=i;b[u]!==void 0&&b[u].classes.push(r),Z1[u]!==void 0&&Z1[u].classes.push(r)})},wt=function(t,r){t.split(",").forEach(function(i){r!==void 0&&(q1[te==="gen-1"?O1(i):i]=ue(r))})},Pt=function(t,r,i){let u=O1(t);if(ee().securityLevel!=="loose"||r===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<c.length;D++){let d=c[D].trim();d.charAt(0)==='"'&&d.charAt(d.length-1)==='"'&&(d=d.substr(1,d.length-2)),c[D]=d}}c.length===0&&c.push(t),b[t]!==void 0&&(b[t].haveCallback=!0,se.push(function(){const D=document.querySelector(`[id="${u}"]`);D!==null&&D.addEventListener("click",function(){de.runFunc(r,...c)},!1)}))},qe=function(t,r,i){t.split(",").forEach(function(u){b[u]!==void 0&&(b[u].link=de.formatUrl(r,L1),b[u].linkTarget=i)}),ie(t,"clickable")},et=function(t){if(q1.hasOwnProperty(t))return q1[t]},tt=function(t,r,i){t.split(",").forEach(function(u){Pt(u,r,i)}),ie(t,"clickable")},st=function(t){se.forEach(function(r){r(t)})},ut=function(){return Y.trim()},it=function(){return b},nt=function(){return z},rt=function(){return v1},at=function(t){let r=R1(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=R1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),R1(t).select("svg").selectAll("g.node").on("mouseover",function(){const i=R1(this);if(i.attr("title")===null)return;const u=this.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),i.classed("hover",!0)}).on("mouseout",function(){r.transition().duration(500).style("opacity",0),R1(this).classed("hover",!1)})};se.push(at);const ct=function(t="gen-1"){b={},v1={},z=[],se=[at],l1=[],Z1={},Q1=0,q1={},Ae=!0,te=t,L1=ee(),Nt()},lt=t=>{te=t||"gen-2"},ot=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},ht=function(t,r,i){let u=t.text.trim(),c=i.text;t===i&&i.text.match(/\s/)&&(u=void 0);function D(H){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:H.filter(function(f){const T=typeof f;return f.stmt&&f.stmt==="dir"?(A1=f.value,!1):f.trim()===""?!1:T in o1?o1[T].hasOwnProperty(f)?!1:o1[T][f]=!0:p1.includes(f)?!1:p1.push(f)}),dir:A1}}let d=[];const{nodeList:P,dir:g}=D(d.concat.apply(d,r));if(d=P,te==="gen-1")for(let H=0;H<d.length;H++)d[H]=O1(d[H]);u=u||"subGraph"+Q1,c=c||"",c=ue(c),Q1=Q1+1;const N={id:u,nodes:d,title:c.trim(),classes:[],dir:g,labelType:i.type};return J1.info("Adding",N.id,N.nodes,N.dir),N.nodes=gt(N,l1).nodes,l1.push(N),Z1[u]=N,u},Ut=function(t){for(const[r,i]of l1.entries())if(i.id===t)return r;return-1};let N1=-1;const pt=[],At=function(t,r){const i=l1[r].nodes;if(N1=N1+1,N1>2e3)return;if(pt[N1]=r,l1[r].id===t)return{result:!0,count:0};let u=0,c=1;for(;u<i.length;){const D=Ut(i[u]);if(D>=0){const d=At(t,D);if(d.result)return{result:!0,count:c+d.count};c=c+d.count}u=u+1}return{result:!1,count:c}},dt=function(t){return pt[t]},ft=function(){N1=-1,l1.length>0&&At("none",l1.length-1)},yt=function(){return l1},Et=()=>Ae?(Ae=!1,!0):!1,Vt=t=>{let r=t.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let u="normal";return r.includes("=")&&(u="thick"),r.includes(".")&&(u="dotted"),{type:i,stroke:u}},Mt=(t,r)=>{const i=r.length;let u=0;for(let c=0;c<i;++c)r[c]===t&&++u;return u},Gt=t=>{const r=t.trim();let i=r.slice(0,-1),u="arrow_open";switch(r.slice(-1)){case"x":u="arrow_cross",r[0]==="x"&&(u="double_"+u,i=i.slice(1));break;case">":u="arrow_point",r[0]==="<"&&(u="double_"+u,i=i.slice(1));break;case"o":u="arrow_circle",r[0]==="o"&&(u="double_"+u,i=i.slice(1));break}let c="normal",D=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let d=Mt(".",i);return d&&(c="dotted",D=d),{type:u,stroke:c,length:D}},kt=(t,r)=>{const i=Gt(t);let u;if(r){if(u=Vt(r),u.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=i.type;else{if(u.type!==i.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=i.length,u}return i},bt=(t,r)=>{let i=!1;return t.forEach(u=>{u.nodes.indexOf(r)>=0&&(i=!0)}),i},gt=(t,r)=>{const i=[];return t.nodes.forEach((u,c)=>{bt(r,u)||i.push(t.nodes[c])}),{nodes:i}},Dt={firstGraph:Et},Kt={defaultConfig:()=>It.flowchart,setAccTitle:$t,getAccTitle:Lt,getAccDescription:vt,setAccDescription:xt,addVertex:He,lookUpDomId:O1,addLink:We,updateLinkInterpolate:je,updateLink:Qe,addClass:Je,setDirection:Ze,setClass:ie,setTooltip:wt,getTooltip:et,setClickEvent:tt,setLink:qe,bindFunctions:st,getDirection:ut,getVertices:it,getEdges:nt,getClasses:rt,clear:ct,setGen:lt,defaultStyle:ot,addSubGraph:ht,getDepthFirstPos:dt,indexNodes:ft,getSubGraphs:yt,destructLink:kt,lex:Dt,exists:bt,makeUniq:gt,setDiagramTitle:mt,getDiagramTitle:Bt},Ht=Object.freeze(Object.defineProperty({__proto__:null,addClass:Je,addLink:We,addSingleLink:ze,addSubGraph:ht,addVertex:He,bindFunctions:st,clear:ct,default:Kt,defaultStyle:ot,destructLink:kt,firstGraph:Et,getClasses:rt,getDepthFirstPos:dt,getDirection:ut,getEdges:nt,getSubGraphs:yt,getTooltip:et,getVertices:it,indexNodes:ft,lex:Dt,lookUpDomId:O1,setClass:ie,setClickEvent:tt,setDirection:Ze,setGen:lt,setLink:qe,updateLink:Qe,updateLinkInterpolate:je},Symbol.toStringTag,{value:"Module"}));export{Ht as H,Yt as X,Kt as j};
@@ -1,4 +1,4 @@
1
- import{j as D,X as vt}from"./flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js";import{O as j,g as $,P as x,h as mt,a as U,k as R,Y as C,p as Q,n as J,l as Z,c as kt}from"./index-BocEneU2.js";import{K as St}from"./graph-CvRY9YIM-BSWPV9Nr.js";import{A as _t,j as Ot,e as Lt,k as B,a as At}from"./layout-DSZZaifl-Dg6wRbVD.js";import{h as It,w as Tt,Z as Mt,e as A,t as tt,p as et,f as rt,u as O,b as at}from"./styles-d45a18b0-VfGWd52Q-CGigGBMU.js";import"./index-5325376f-D7k5u-pg-BkjFLQrR.js";import"./clone-C0MdfhAf-BMHvCdCo.js";import"./edges-96097737-BnGLzlID-DglIvYsr.js";import"./createText-1719965b-D5GExXUl-Ckz8tHz2.js";import"./channel-BYhLgIow-BRybLlZc.js";function Pt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Nt(r,e){return fetch(r,e).then(Pt)}function Bt(r){return(e,t)=>Nt(e,t).then(a=>new DOMParser().parseFromString(a,r))}var Et=Bt("image/svg+xml"),W={normal:$t,vee:Ct,undirected:Dt};function jt(r){W=r}function $t(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ct(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Dt(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Rt(r,e){var t=r;return t.node().appendChild(e.label),A(t,e.labelStyle),t}function Ut(r,e){for(var t=r.append("text"),a=Wt(e.label).split(`
1
+ import{j as D,X as vt}from"./flowDb-c6c81e3f-DXVkMlSE-Bsj2HEVx.js";import{O as j,S as $,F as x,k as mt,b as R,c as U,d as C,v as Q,g as J,p as Z,e as kt}from"./index-uJgdYNFJ.js";import{K as St}from"./graph-BZahQKIN-BnTQ3Y35.js";import{A as _t,j as Ot,e as Lt,k as B,a as At}from"./layout-j-hMNqAM-kApliJ5_.js";import{h as It,w as Tt,Z as Mt,e as A,t as tt,p as et,f as rt,u as O,b as at}from"./styles-d45a18b0-B_CU21kM-nwxkzuib.js";import"./index-5325376f-DsNDppci-C-Sv8Db0.js";import"./clone-D01vUIhD-DWCt7jEw.js";import"./edges-96097737-Zc6U9nQz-B4W6EbQT.js";import"./createText-1719965b-D9Y3vUMn-BXWUwuWn.js";import"./channel-6PI3wNcc-DbDIx5lv.js";function Nt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Pt(r,e){return fetch(r,e).then(Nt)}function Bt(r){return(e,t)=>Pt(e,t).then(a=>new DOMParser().parseFromString(a,r))}var Et=Bt("image/svg+xml"),W={normal:$t,vee:Ct,undirected:Dt};function jt(r){W=r}function $t(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ct(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Dt(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ut(r,e){var t=r;return t.node().appendChild(e.label),A(t,e.labelStyle),t}function Rt(r,e){for(var t=r.append("text"),a=Wt(e.label).split(`
2
2
  `),n=0;n<a.length;n++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[n]);return A(t,e.labelStyle),t}function Wt(r){for(var e="",t=!1,a,n=0;n<r.length;++n)if(a=r[n],t){switch(a){case"n":e+=`
3
- `;break;default:e+=a}t=!1}else a==="\\"?t=!0:e+=a;return e}function H(r,e,t){var a=e.label,n=r.append("g");e.labelType==="svg"?Rt(n,e):typeof a!="string"||e.labelType==="html"?tt(n,e):Ut(n,e);var i=n.node().getBBox(),o;switch(t){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-i.height;break;default:o=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+o+")"),n}var z=function(r,e){var t=e.nodes().filter(function(i){return et(e,i)}),a=r.selectAll("g.cluster").data(t,function(i){return i});O(a.exit(),e).style("opacity",0).remove();var n=a.enter().append("g").attr("class","cluster").attr("id",function(i){var o=e.node(i);return o.id}).style("opacity",0).each(function(i){var o=e.node(i),s=x(this);x(this).append("rect");var d=s.append("g").attr("class","label");H(d,o,o.clusterLabelPos)});return a=a.merge(n),a=O(a,e).style("opacity",1),a.selectAll("rect").each(function(i){var o=e.node(i),s=x(this);A(s,o.style)}),a};function zt(r){z=r}let Y=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(n){return at(n)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(n){var i=x(this);i.select(".label").remove();var o=e.edge(n),s=H(i,e.edge(n),0).classed("label",!0),d=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),Object.prototype.hasOwnProperty.call(o,"width")||(o.width=d.width),Object.prototype.hasOwnProperty.call(o,"height")||(o.height=d.height)});var a;return t.exit?a=t.exit():a=t.selectAll(null),O(a,e).style("opacity",0).remove(),t};function Yt(r){Y=r}function G(r,e){return r.intersect(e)}var q=function(r,e,t){var a=r.selectAll("g.edgePath").data(e.edges(),function(o){return at(o)}).classed("update",!0),n=Ft(a,e);Gt(a,e);var i=a.merge!==void 0?a.merge(n):a;return O(i,e).style("opacity",1),i.each(function(o){var s=x(this),d=e.edge(o);d.elem=this,d.id&&s.attr("id",d.id),rt(s,d.class,(s.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(o){var s=e.edge(o);s.arrowheadId=Lt("arrowhead");var d=x(this).attr("marker-end",function(){return"url("+Xt(location.href,s.arrowheadId)+")"}).style("fill","none");O(d,e).attr("d",function(u){return Vt(e,u)}),A(d,s.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(o){var s=e.edge(o),d=t[s.arrowhead];d(x(this),s.arrowheadId,s,"arrowhead")}),i};function qt(r){q=r}function Xt(r,e){var t=r.split("#")[0];return t+"#"+e}function Vt(r,e){var t=r.edge(e),a=r.node(e.v),n=r.node(e.w),i=t.points.slice(1,t.points.length-1);return i.unshift(G(a,i[0])),i.push(G(n,i[i.length-1])),nt(t,i)}function nt(r,e){var t=(kt||Et.line)().x(function(a){return a.x}).y(function(a){return a.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Ht(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ft(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(a){var n=e.edge(a),i=e.node(a.v).elem,o=At(n.points.length).map(function(){return Ht(i)});return nt(n,o)}),t.append("defs"),t}function Gt(r,e){var t=r.exit();O(t,e).style("opacity",0).remove()}var X=function(r,e,t){var a=e.nodes().filter(function(o){return!et(e,o)}),n=r.selectAll("g.node").data(a,function(o){return o}).classed("update",!0);n.exit().remove(),n.enter().append("g").attr("class","node").style("opacity",0),n=r.selectAll("g.node"),n.each(function(o){var s=e.node(o),d=x(this);rt(d,s.class,(d.classed("update")?"update ":"")+"node"),d.select("g.label").remove();var u=d.append("g").attr("class","label"),l=H(u,s),g=t[s.shape],c=Ot(l.node().getBBox(),"width","height");s.elem=this,s.id&&d.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),Object.prototype.hasOwnProperty.call(s,"width")&&(c.width=s.width),Object.prototype.hasOwnProperty.call(s,"height")&&(c.height=s.height),c.width+=s.paddingLeft+s.paddingRight,c.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=x(this);h.select(".label-container").remove();var f=g(h,c,s).classed("label-container",!0);A(f,s.style);var b=f.node().getBBox();s.width=b.width,s.height=b.height});var i;return n.exit?i=n.exit():i=n.selectAll(null),O(i,e).style("opacity",0).remove(),n};function Kt(r){X=r}function Qt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a),O(t.selectAll("rect"),e).attr("width",function(n){return e.node(n).width}).attr("height",function(n){return e.node(n).height}).attr("x",function(n){var i=e.node(n);return-i.width/2}).attr("y",function(n){var i=e.node(n);return-i.height/2})}function Jt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.edge(n);return Object.prototype.hasOwnProperty.call(i,"x")?"translate("+i.x+","+i.y+")":""}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function Zt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function it(r,e,t,a){var n=r.x,i=r.y,o=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+t*t*o*o),u=Math.abs(e*t*o/d);a.x<n&&(u=-u);var l=Math.abs(e*t*s/d);return a.y<i&&(l=-l),{x:n+u,y:i+l}}function te(r,e,t){return it(r,e,e,t)}function ee(r,e,t,a){var n,i,o,s,d,u,l,g,c,h,f,b,p,w,k;if(n=e.y-r.y,o=r.x-e.x,d=e.x*r.y-r.x*e.y,c=n*t.x+o*t.y+d,h=n*a.x+o*a.y+d,!(c!==0&&h!==0&&K(c,h))&&(i=a.y-t.y,s=t.x-a.x,u=a.x*t.y-t.x*a.y,l=i*r.x+s*r.y+u,g=i*e.x+s*e.y+u,!(l!==0&&g!==0&&K(l,g))&&(f=n*s-i*o,f!==0)))return b=Math.abs(f/2),p=o*u-s*d,w=p<0?(p-b)/f:(p+b)/f,p=i*d-n*u,k=p<0?(p-b)/f:(p+b)/f,{x:w,y:k}}function K(r,e){return r*e>0}function L(r,e,t){var a=r.x,n=r.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(f){o=Math.min(o,f.x),s=Math.min(s,f.y)});for(var d=a-r.width/2-o,u=n-r.height/2-s,l=0;l<e.length;l++){var g=e[l],c=e[l<e.length-1?l+1:0],h=ee(r,t,{x:d+g.x,y:u+g.y},{x:d+c.x,y:u+c.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(f,b){var p=f.x-t.x,w=f.y-t.y,k=Math.sqrt(p*p+w*w),T=b.x-t.x,S=b.y-t.y,y=Math.sqrt(T*T+S*S);return k<y?-1:k===y?0:1}),i[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function F(r,e){var t=r.x,a=r.y,n=e.x-t,i=e.y-a,o=r.width/2,s=r.height/2,d,u;return Math.abs(i)*o>Math.abs(n)*s?(i<0&&(s=-s),d=i===0?0:s*n/i,u=s):(n<0&&(o=-o),d=o,u=n===0?0:o*i/n),{x:t+d,y:a+u}}var V={rect:ae,ellipse:ne,circle:ie,diamond:oe};function re(r){V=r}function ae(r,e,t){var a=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(n){return F(t,n)},a}function ne(r,e,t){var a=e.width/2,n=e.height/2,i=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",a).attr("ry",n);return t.intersect=function(o){return it(t,a,n,o)},i}function ie(r,e,t){var a=Math.max(e.width,e.height)/2,n=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",a);return t.intersect=function(i){return te(t,a,i)},n}function oe(r,e,t){var a=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,i=[{x:0,y:-n},{x:-a,y:0},{x:0,y:n},{x:a,y:0}],o=r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" "));return t.intersect=function(s){return L(t,i,s)},o}function se(){var r=function(e,t){ce(t);var a=E(e,"output"),n=E(a,"clusters"),i=E(a,"edgePaths"),o=Y(E(a,"edgeLabels"),t),s=X(E(a,"nodes"),t,V);_t(t),Zt(s,t),Jt(o,t),q(i,t,W);var d=z(n,t);Qt(d,t),he(t)};return r.createNodes=function(e){return arguments.length?(Kt(e),r):X},r.createClusters=function(e){return arguments.length?(zt(e),r):z},r.createEdgeLabels=function(e){return arguments.length?(Yt(e),r):Y},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):q},r.shapes=function(e){return arguments.length?(re(e),r):V},r.arrows=function(e){return arguments.length?(jt(e),r):W},r}var le={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},de={arrowhead:"normal",curve:C};function ce(r){r.nodes().forEach(e=>{const t=r.node(e);!Object.prototype.hasOwnProperty.call(t,"label")&&!r.children(e).length&&(t.label=e),Object.prototype.hasOwnProperty.call(t,"paddingX")&&B(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),Object.prototype.hasOwnProperty.call(t,"paddingY")&&B(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),Object.prototype.hasOwnProperty.call(t,"padding")&&B(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),B(t,le),["paddingLeft","paddingRight","paddingTop","paddingBottom"].forEach(a=>{t[a]=Number(t[a])}),Object.prototype.hasOwnProperty.call(t,"width")&&(t._prevWidth=t.width),Object.prototype.hasOwnProperty.call(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);Object.prototype.hasOwnProperty.call(t,"label")||(t.label=""),B(t,de)})}function he(r){r.nodes().forEach(e=>{var t=r.node(e);Object.prototype.hasOwnProperty.call(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,Object.prototype.hasOwnProperty.call(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function E(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ot(r,e,t){const a=e.width,n=e.height,i=(a+n)*.9,o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=I(r,i,i,o);return t.intersect=function(d){return L(t,o,d)},s}function st(r,e,t){const a=e.height,n=a/4,i=e.width+2*n,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-a/2},{x:i-n,y:-a},{x:n,y:-a},{x:0,y:-a/2}],s=I(r,i,a,o);return t.intersect=function(d){return L(t,o,d)},s}function lt(r,e,t){const a=e.width,n=e.height,i=[{x:-n/2,y:0},{x:a,y:0},{x:a,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function dt(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ct(r,e,t){const a=e.width,n=e.height,i=[{x:2*n/6,y:0},{x:a+n/6,y:0},{x:a-2*n/6,y:-n},{x:-n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ht(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a+2*n/6,y:0},{x:a-n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ut(r,e,t){const a=e.width,n=e.height,i=[{x:n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:-2*n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function pt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a+n/2,y:0},{x:a,y:-n/2},{x:a+n/2,y:-n},{x:0,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ft(r,e,t){const a=e.height,n=e.width+a/4,i=r.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-n/2).attr("y",-a/2).attr("width",n).attr("height",a);return t.intersect=function(o){return F(t,o)},i}function gt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function yt(r,e,t){const a=e.width,n=a/2,i=n/(2.5+a/50),o=e.height+i,s="M 0,"+i+" a "+n+","+i+" 0,0,0 "+a+" 0 a "+n+","+i+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+n+","+i+" 0,0,0 "+a+" 0 l 0,"+-o,d=r.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-a/2+","+-(o/2+i)+")");return t.intersect=function(u){const l=F(t,u),g=l.x-t.x;if(n!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-i)){let c=i*i*(1-g*g/(n*n));c!=0&&(c=Math.sqrt(c)),c=i-c,u.y-t.y>0&&(c=-c),l.y+=c}return l},d}function ue(r){r.shapes().question=ot,r.shapes().hexagon=st,r.shapes().stadium=ft,r.shapes().subroutine=gt,r.shapes().cylinder=yt,r.shapes().rect_left_inv_arrow=lt,r.shapes().lean_right=dt,r.shapes().lean_left=ct,r.shapes().trapezoid=ht,r.shapes().inv_trapezoid=ut,r.shapes().rect_right_inv_arrow=pt}function pe(r){r({question:ot}),r({hexagon:st}),r({stadium:ft}),r({subroutine:gt}),r({cylinder:yt}),r({rect_left_inv_arrow:lt}),r({lean_right:dt}),r({lean_left:ct}),r({trapezoid:ht}),r({inv_trapezoid:ut}),r({rect_right_inv_arrow:pt})}function I(r,e,t,a){return r.insert("polygon",":first-child").attr("points",a.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const fe={addToRender:ue,addToRenderV2:pe},wt={},ge=function(r){const e=Object.keys(r);for(const t of e)wt[t]=r[t]},bt=async function(r,e,t,a,n,i){const o=a?a.select(`[id="${t}"]`):x(`[id="${t}"]`),s=n||document,d=Object.keys(r);for(const u of d){const l=r[u];let g="default";l.classes.length>0&&(g=l.classes.join(" "));const c=U(l.styles);let h=l.text!==void 0?l.text:l.id,f;if(Q($().flowchart.htmlLabels)){const w={label:await J(h.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),$())};f=tt(o,w).node(),f.parentNode.removeChild(f)}else{const w=s.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("style",c.labelStyle.replace("color:","fill:"));const k=h.split(Z.lineBreakRegex);for(const T of k){const S=s.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","1"),S.textContent=T,w.appendChild(S)}f=w}let b=0,p="";switch(l.type){case"round":b=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}j.warn("Adding node",l.id,l.domId),e.setNode(i.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:c.labelStyle,shape:p,label:f,rx:b,ry:b,class:g,style:c.style,id:i.db.lookUpDomId(l.id)})}},xt=async function(r,e,t){let a=0,n,i;if(r.defaultStyle!==void 0){const o=U(r.defaultStyle);n=o.style,i=o.labelStyle}for(const o of r){a++;const s="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,l={};o.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let g="",c="";if(o.style!==void 0){const h=U(o.style);g=h.style,c=h.labelStyle}else switch(o.stroke){case"normal":g="fill:none",n!==void 0&&(g=n),i!==void 0&&(c=i);break;case"dotted":g="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":g=" stroke-width: 3.5px;fill:none";break}l.style=g,l.labelStyle=c,o.interpolate!==void 0?l.curve=R(o.interpolate,C):r.defaultInterpolate!==void 0?l.curve=R(r.defaultInterpolate,C):l.curve=R(wt.curve,C),o.text===void 0?o.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",Q($().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${s}" class="edgeLabel L-${d}' L-${u}" style="${l.labelStyle}">${await J(o.text.replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),$())}</span>`):(l.labelType="text",l.label=o.text.replace(Z.lineBreakRegex,`
4
- `),o.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=s,l.class=d+" "+u,l.minlen=o.length||1,e.setEdge(t.db.lookUpDomId(o.start),t.db.lookUpDomId(o.end),l,a)}},ye=function(r,e){return j.info("Extracting classes"),e.db.getClasses()},we=async function(r,e,t,a){j.info("Drawing flowchart");const{securityLevel:n,flowchart:i}=$();let o;n==="sandbox"&&(o=x("#i"+e));const s=n==="sandbox"?x(o.nodes()[0].contentDocument.body):x("body"),d=n==="sandbox"?o.nodes()[0].contentDocument:document;let u=a.db.getDirection();u===void 0&&(u="TD");const l=i.nodeSpacing||50,g=i.rankSpacing||50,c=new St({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:l,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let h;const f=a.db.getSubGraphs();for(let y=f.length-1;y>=0;y--)h=f[y],a.db.addVertex(h.id,h.title,"group",void 0,h.classes);const b=a.db.getVertices();j.warn("Get vertices",b);const p=a.db.getEdges();let w=0;for(w=f.length-1;w>=0;w--){h=f[w],Mt("cluster").append("text");for(let y=0;y<h.nodes.length;y++)j.warn("Setting subgraph",h.nodes[y],a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id)),c.setParent(a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id))}await bt(b,c,e,s,d,a),await xt(p,c,a);const k=new se;fe.addToRender(k),k.arrows().none=function(y,v,_,m){const M=y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");A(M,_[m+"Style"])},k.arrows().normal=function(y,v){y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const T=s.select(`[id="${e}"]`),S=s.select("#"+e+" g");for(k(S,c),S.selectAll("g.node").attr("title",function(){return a.db.getTooltip(this.id)}),a.db.indexNodes("subGraph"+w),w=0;w<f.length;w++)if(h=f[w],h.title!=="undefined"){const y=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"] rect'),v=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"]'),_=y[0].x.baseVal.value,m=y[0].y.baseVal.value,M=y[0].width.baseVal.value,N=x(v[0]).select(".label");N.attr("transform",`translate(${_+M/2}, ${m+14})`),N.attr("id",e+"Text");for(let P=0;P<h.classes.length;P++)v[0].classList.add(h.classes[P])}if(!i.htmlLabels){const y=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const v of y){const _=v.getBBox(),m=d.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),v.insertBefore(m,v.firstChild)}}mt(c,T,i.diagramPadding,i.useMaxWidth),Object.keys(b).forEach(function(y){const v=b[y];if(v.link){const _=s.select("#"+e+' [id="'+a.db.lookUpDomId(y)+'"]');if(_){const m=d.createElementNS("http://www.w3.org/2000/svg","a");m.setAttributeNS("http://www.w3.org/2000/svg","class",v.classes.join(" ")),m.setAttributeNS("http://www.w3.org/2000/svg","href",v.link),m.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n==="sandbox"?m.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):v.linkTarget&&m.setAttributeNS("http://www.w3.org/2000/svg","target",v.linkTarget);const M=_.insert(function(){return m},":first-child"),N=_.select(".label-container");N&&M.append(function(){return N.node()});const P=_.select(".label");P&&M.append(function(){return P.node()})}}})},be={setConf:ge,addVertices:bt,addEdges:xt,getClasses:ye,draw:we},Te={parser:vt,db:D,renderer:Tt,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),D.clear(),D.setGen("gen-1")}};export{Te as diagram};
3
+ `;break;default:e+=a}t=!1}else a==="\\"?t=!0:e+=a;return e}function H(r,e,t){var a=e.label,n=r.append("g");e.labelType==="svg"?Ut(n,e):typeof a!="string"||e.labelType==="html"?tt(n,e):Rt(n,e);var i=n.node().getBBox(),o;switch(t){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-i.height;break;default:o=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+o+")"),n}var z=function(r,e){var t=e.nodes().filter(function(i){return et(e,i)}),a=r.selectAll("g.cluster").data(t,function(i){return i});O(a.exit(),e).style("opacity",0).remove();var n=a.enter().append("g").attr("class","cluster").attr("id",function(i){var o=e.node(i);return o.id}).style("opacity",0).each(function(i){var o=e.node(i),s=x(this);x(this).append("rect");var d=s.append("g").attr("class","label");H(d,o,o.clusterLabelPos)});return a=a.merge(n),a=O(a,e).style("opacity",1),a.selectAll("rect").each(function(i){var o=e.node(i),s=x(this);A(s,o.style)}),a};function zt(r){z=r}let q=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(n){return at(n)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(n){var i=x(this);i.select(".label").remove();var o=e.edge(n),s=H(i,e.edge(n),0).classed("label",!0),d=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),Object.prototype.hasOwnProperty.call(o,"width")||(o.width=d.width),Object.prototype.hasOwnProperty.call(o,"height")||(o.height=d.height)});var a;return t.exit?a=t.exit():a=t.selectAll(null),O(a,e).style("opacity",0).remove(),t};function qt(r){q=r}function G(r,e){return r.intersect(e)}var X=function(r,e,t){var a=r.selectAll("g.edgePath").data(e.edges(),function(o){return at(o)}).classed("update",!0),n=Ft(a,e);Gt(a,e);var i=a.merge!==void 0?a.merge(n):a;return O(i,e).style("opacity",1),i.each(function(o){var s=x(this),d=e.edge(o);d.elem=this,d.id&&s.attr("id",d.id),rt(s,d.class,(s.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(o){var s=e.edge(o);s.arrowheadId=Lt("arrowhead");var d=x(this).attr("marker-end",function(){return"url("+Vt(location.href,s.arrowheadId)+")"}).style("fill","none");O(d,e).attr("d",function(u){return Yt(e,u)}),A(d,s.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(o){var s=e.edge(o),d=t[s.arrowhead];d(x(this),s.arrowheadId,s,"arrowhead")}),i};function Xt(r){X=r}function Vt(r,e){var t=r.split("#")[0];return t+"#"+e}function Yt(r,e){var t=r.edge(e),a=r.node(e.v),n=r.node(e.w),i=t.points.slice(1,t.points.length-1);return i.unshift(G(a,i[0])),i.push(G(n,i[i.length-1])),nt(t,i)}function nt(r,e){var t=(kt||Et.line)().x(function(a){return a.x}).y(function(a){return a.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Ht(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ft(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(a){var n=e.edge(a),i=e.node(a.v).elem,o=At(n.points.length).map(function(){return Ht(i)});return nt(n,o)}),t.append("defs"),t}function Gt(r,e){var t=r.exit();O(t,e).style("opacity",0).remove()}var V=function(r,e,t){var a=e.nodes().filter(function(o){return!et(e,o)}),n=r.selectAll("g.node").data(a,function(o){return o}).classed("update",!0);n.exit().remove(),n.enter().append("g").attr("class","node").style("opacity",0),n=r.selectAll("g.node"),n.each(function(o){var s=e.node(o),d=x(this);rt(d,s.class,(d.classed("update")?"update ":"")+"node"),d.select("g.label").remove();var u=d.append("g").attr("class","label"),l=H(u,s),g=t[s.shape],c=Ot(l.node().getBBox(),"width","height");s.elem=this,s.id&&d.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),Object.prototype.hasOwnProperty.call(s,"width")&&(c.width=s.width),Object.prototype.hasOwnProperty.call(s,"height")&&(c.height=s.height),c.width+=s.paddingLeft+s.paddingRight,c.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=x(this);h.select(".label-container").remove();var f=g(h,c,s).classed("label-container",!0);A(f,s.style);var b=f.node().getBBox();s.width=b.width,s.height=b.height});var i;return n.exit?i=n.exit():i=n.selectAll(null),O(i,e).style("opacity",0).remove(),n};function Kt(r){V=r}function Qt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a),O(t.selectAll("rect"),e).attr("width",function(n){return e.node(n).width}).attr("height",function(n){return e.node(n).height}).attr("x",function(n){var i=e.node(n);return-i.width/2}).attr("y",function(n){var i=e.node(n);return-i.height/2})}function Jt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.edge(n);return Object.prototype.hasOwnProperty.call(i,"x")?"translate("+i.x+","+i.y+")":""}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function Zt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function it(r,e,t,a){var n=r.x,i=r.y,o=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+t*t*o*o),u=Math.abs(e*t*o/d);a.x<n&&(u=-u);var l=Math.abs(e*t*s/d);return a.y<i&&(l=-l),{x:n+u,y:i+l}}function te(r,e,t){return it(r,e,e,t)}function ee(r,e,t,a){var n,i,o,s,d,u,l,g,c,h,f,b,p,w,k;if(n=e.y-r.y,o=r.x-e.x,d=e.x*r.y-r.x*e.y,c=n*t.x+o*t.y+d,h=n*a.x+o*a.y+d,!(c!==0&&h!==0&&K(c,h))&&(i=a.y-t.y,s=t.x-a.x,u=a.x*t.y-t.x*a.y,l=i*r.x+s*r.y+u,g=i*e.x+s*e.y+u,!(l!==0&&g!==0&&K(l,g))&&(f=n*s-i*o,f!==0)))return b=Math.abs(f/2),p=o*u-s*d,w=p<0?(p-b)/f:(p+b)/f,p=i*d-n*u,k=p<0?(p-b)/f:(p+b)/f,{x:w,y:k}}function K(r,e){return r*e>0}function L(r,e,t){var a=r.x,n=r.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(f){o=Math.min(o,f.x),s=Math.min(s,f.y)});for(var d=a-r.width/2-o,u=n-r.height/2-s,l=0;l<e.length;l++){var g=e[l],c=e[l<e.length-1?l+1:0],h=ee(r,t,{x:d+g.x,y:u+g.y},{x:d+c.x,y:u+c.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(f,b){var p=f.x-t.x,w=f.y-t.y,k=Math.sqrt(p*p+w*w),T=b.x-t.x,S=b.y-t.y,y=Math.sqrt(T*T+S*S);return k<y?-1:k===y?0:1}),i[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function F(r,e){var t=r.x,a=r.y,n=e.x-t,i=e.y-a,o=r.width/2,s=r.height/2,d,u;return Math.abs(i)*o>Math.abs(n)*s?(i<0&&(s=-s),d=i===0?0:s*n/i,u=s):(n<0&&(o=-o),d=o,u=n===0?0:o*i/n),{x:t+d,y:a+u}}var Y={rect:ae,ellipse:ne,circle:ie,diamond:oe};function re(r){Y=r}function ae(r,e,t){var a=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(n){return F(t,n)},a}function ne(r,e,t){var a=e.width/2,n=e.height/2,i=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",a).attr("ry",n);return t.intersect=function(o){return it(t,a,n,o)},i}function ie(r,e,t){var a=Math.max(e.width,e.height)/2,n=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",a);return t.intersect=function(i){return te(t,a,i)},n}function oe(r,e,t){var a=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,i=[{x:0,y:-n},{x:-a,y:0},{x:0,y:n},{x:a,y:0}],o=r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" "));return t.intersect=function(s){return L(t,i,s)},o}function se(){var r=function(e,t){ce(t);var a=E(e,"output"),n=E(a,"clusters"),i=E(a,"edgePaths"),o=q(E(a,"edgeLabels"),t),s=V(E(a,"nodes"),t,Y);_t(t),Zt(s,t),Jt(o,t),X(i,t,W);var d=z(n,t);Qt(d,t),he(t)};return r.createNodes=function(e){return arguments.length?(Kt(e),r):V},r.createClusters=function(e){return arguments.length?(zt(e),r):z},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):q},r.createEdgePaths=function(e){return arguments.length?(Xt(e),r):X},r.shapes=function(e){return arguments.length?(re(e),r):Y},r.arrows=function(e){return arguments.length?(jt(e),r):W},r}var le={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},de={arrowhead:"normal",curve:C};function ce(r){r.nodes().forEach(e=>{const t=r.node(e);!Object.prototype.hasOwnProperty.call(t,"label")&&!r.children(e).length&&(t.label=e),Object.prototype.hasOwnProperty.call(t,"paddingX")&&B(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),Object.prototype.hasOwnProperty.call(t,"paddingY")&&B(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),Object.prototype.hasOwnProperty.call(t,"padding")&&B(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),B(t,le),["paddingLeft","paddingRight","paddingTop","paddingBottom"].forEach(a=>{t[a]=Number(t[a])}),Object.prototype.hasOwnProperty.call(t,"width")&&(t._prevWidth=t.width),Object.prototype.hasOwnProperty.call(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);Object.prototype.hasOwnProperty.call(t,"label")||(t.label=""),B(t,de)})}function he(r){r.nodes().forEach(e=>{var t=r.node(e);Object.prototype.hasOwnProperty.call(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,Object.prototype.hasOwnProperty.call(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function E(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ot(r,e,t){const a=e.width,n=e.height,i=(a+n)*.9,o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=I(r,i,i,o);return t.intersect=function(d){return L(t,o,d)},s}function st(r,e,t){const a=e.height,n=a/4,i=e.width+2*n,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-a/2},{x:i-n,y:-a},{x:n,y:-a},{x:0,y:-a/2}],s=I(r,i,a,o);return t.intersect=function(d){return L(t,o,d)},s}function lt(r,e,t){const a=e.width,n=e.height,i=[{x:-n/2,y:0},{x:a,y:0},{x:a,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function dt(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ct(r,e,t){const a=e.width,n=e.height,i=[{x:2*n/6,y:0},{x:a+n/6,y:0},{x:a-2*n/6,y:-n},{x:-n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ht(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a+2*n/6,y:0},{x:a-n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ut(r,e,t){const a=e.width,n=e.height,i=[{x:n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:-2*n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function pt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a+n/2,y:0},{x:a,y:-n/2},{x:a+n/2,y:-n},{x:0,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ft(r,e,t){const a=e.height,n=e.width+a/4,i=r.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-n/2).attr("y",-a/2).attr("width",n).attr("height",a);return t.intersect=function(o){return F(t,o)},i}function gt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function yt(r,e,t){const a=e.width,n=a/2,i=n/(2.5+a/50),o=e.height+i,s="M 0,"+i+" a "+n+","+i+" 0,0,0 "+a+" 0 a "+n+","+i+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+n+","+i+" 0,0,0 "+a+" 0 l 0,"+-o,d=r.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-a/2+","+-(o/2+i)+")");return t.intersect=function(u){const l=F(t,u),g=l.x-t.x;if(n!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-i)){let c=i*i*(1-g*g/(n*n));c!=0&&(c=Math.sqrt(c)),c=i-c,u.y-t.y>0&&(c=-c),l.y+=c}return l},d}function ue(r){r.shapes().question=ot,r.shapes().hexagon=st,r.shapes().stadium=ft,r.shapes().subroutine=gt,r.shapes().cylinder=yt,r.shapes().rect_left_inv_arrow=lt,r.shapes().lean_right=dt,r.shapes().lean_left=ct,r.shapes().trapezoid=ht,r.shapes().inv_trapezoid=ut,r.shapes().rect_right_inv_arrow=pt}function pe(r){r({question:ot}),r({hexagon:st}),r({stadium:ft}),r({subroutine:gt}),r({cylinder:yt}),r({rect_left_inv_arrow:lt}),r({lean_right:dt}),r({lean_left:ct}),r({trapezoid:ht}),r({inv_trapezoid:ut}),r({rect_right_inv_arrow:pt})}function I(r,e,t,a){return r.insert("polygon",":first-child").attr("points",a.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const fe={addToRender:ue,addToRenderV2:pe},wt={},ge=function(r){const e=Object.keys(r);for(const t of e)wt[t]=r[t]},bt=async function(r,e,t,a,n,i){const o=a?a.select(`[id="${t}"]`):x(`[id="${t}"]`),s=n||document,d=Object.keys(r);for(const u of d){const l=r[u];let g="default";l.classes.length>0&&(g=l.classes.join(" "));const c=R(l.styles);let h=l.text!==void 0?l.text:l.id,f;if(Q($().flowchart.htmlLabels)){const w={label:await J(h.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),$())};f=tt(o,w).node(),f.parentNode.removeChild(f)}else{const w=s.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("style",c.labelStyle.replace("color:","fill:"));const k=h.split(Z.lineBreakRegex);for(const T of k){const S=s.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","1"),S.textContent=T,w.appendChild(S)}f=w}let b=0,p="";switch(l.type){case"round":b=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}j.warn("Adding node",l.id,l.domId),e.setNode(i.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:c.labelStyle,shape:p,label:f,rx:b,ry:b,class:g,style:c.style,id:i.db.lookUpDomId(l.id)})}},xt=async function(r,e,t){let a=0,n,i;if(r.defaultStyle!==void 0){const o=R(r.defaultStyle);n=o.style,i=o.labelStyle}for(const o of r){a++;const s="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,l={};o.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let g="",c="";if(o.style!==void 0){const h=R(o.style);g=h.style,c=h.labelStyle}else switch(o.stroke){case"normal":g="fill:none",n!==void 0&&(g=n),i!==void 0&&(c=i);break;case"dotted":g="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":g=" stroke-width: 3.5px;fill:none";break}l.style=g,l.labelStyle=c,o.interpolate!==void 0?l.curve=U(o.interpolate,C):r.defaultInterpolate!==void 0?l.curve=U(r.defaultInterpolate,C):l.curve=U(wt.curve,C),o.text===void 0?o.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",Q($().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${s}" class="edgeLabel L-${d}' L-${u}" style="${l.labelStyle}">${await J(o.text.replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),$())}</span>`):(l.labelType="text",l.label=o.text.replace(Z.lineBreakRegex,`
4
+ `),o.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=s,l.class=d+" "+u,l.minlen=o.length||1,e.setEdge(t.db.lookUpDomId(o.start),t.db.lookUpDomId(o.end),l,a)}},ye=function(r,e){return j.info("Extracting classes"),e.db.getClasses()},we=async function(r,e,t,a){j.info("Drawing flowchart");const{securityLevel:n,flowchart:i}=$();let o;n==="sandbox"&&(o=x("#i"+e));const s=n==="sandbox"?x(o.nodes()[0].contentDocument.body):x("body"),d=n==="sandbox"?o.nodes()[0].contentDocument:document;let u=a.db.getDirection();u===void 0&&(u="TD");const l=i.nodeSpacing||50,g=i.rankSpacing||50,c=new St({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:l,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let h;const f=a.db.getSubGraphs();for(let y=f.length-1;y>=0;y--)h=f[y],a.db.addVertex(h.id,h.title,"group",void 0,h.classes);const b=a.db.getVertices();j.warn("Get vertices",b);const p=a.db.getEdges();let w=0;for(w=f.length-1;w>=0;w--){h=f[w],Mt("cluster").append("text");for(let y=0;y<h.nodes.length;y++)j.warn("Setting subgraph",h.nodes[y],a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id)),c.setParent(a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id))}await bt(b,c,e,s,d,a),await xt(p,c,a);const k=new se;fe.addToRender(k),k.arrows().none=function(y,v,_,m){const M=y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");A(M,_[m+"Style"])},k.arrows().normal=function(y,v){y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const T=s.select(`[id="${e}"]`),S=s.select("#"+e+" g");for(k(S,c),S.selectAll("g.node").attr("title",function(){return a.db.getTooltip(this.id)}),a.db.indexNodes("subGraph"+w),w=0;w<f.length;w++)if(h=f[w],h.title!=="undefined"){const y=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"] rect'),v=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"]'),_=y[0].x.baseVal.value,m=y[0].y.baseVal.value,M=y[0].width.baseVal.value,P=x(v[0]).select(".label");P.attr("transform",`translate(${_+M/2}, ${m+14})`),P.attr("id",e+"Text");for(let N=0;N<h.classes.length;N++)v[0].classList.add(h.classes[N])}if(!i.htmlLabels){const y=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const v of y){const _=v.getBBox(),m=d.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),v.insertBefore(m,v.firstChild)}}mt(c,T,i.diagramPadding,i.useMaxWidth),Object.keys(b).forEach(function(y){const v=b[y];if(v.link){const _=s.select("#"+e+' [id="'+a.db.lookUpDomId(y)+'"]');if(_){const m=d.createElementNS("http://www.w3.org/2000/svg","a");m.setAttributeNS("http://www.w3.org/2000/svg","class",v.classes.join(" ")),m.setAttributeNS("http://www.w3.org/2000/svg","href",v.link),m.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n==="sandbox"?m.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):v.linkTarget&&m.setAttributeNS("http://www.w3.org/2000/svg","target",v.linkTarget);const M=_.insert(function(){return m},":first-child"),P=_.select(".label-container");P&&M.append(function(){return P.node()});const N=_.select(".label");N&&M.append(function(){return N.node()})}}})},be={setConf:ge,addVertices:bt,addEdges:xt,getClasses:ye,draw:we},Te={parser:vt,db:D,renderer:Tt,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),D.clear(),D.setGen("gen-1")}};export{Te as diagram};
@@ -0,0 +1 @@
1
+ import{j as o,X as e}from"./flowDb-c6c81e3f-DXVkMlSE-Bsj2HEVx.js";import{h as a,w as t}from"./styles-d45a18b0-B_CU21kM-nwxkzuib.js";import{f as s}from"./index-uJgdYNFJ.js";import"./graph-BZahQKIN-BnTQ3Y35.js";import"./layout-j-hMNqAM-kApliJ5_.js";import"./index-5325376f-DsNDppci-C-Sv8Db0.js";import"./clone-D01vUIhD-DWCt7jEw.js";import"./edges-96097737-Zc6U9nQz-B4W6EbQT.js";import"./createText-1719965b-D9Y3vUMn-BXWUwuWn.js";import"./channel-6PI3wNcc-DbDIx5lv.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};