@staticbolt/docs 0.0.1-beta.4 → 0.0.1-beta.5

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 (116) hide show
  1. package/README.md +2 -7
  2. package/lib/index.d.mts +35 -3
  3. package/lib/mermaid/abnfDiagram-PAR5IXJI-Ibbj5eGO.js +1 -0
  4. package/lib/mermaid/architecture-7GRP2DOG-M7G3SWCO-BJAoKIRD.js +1 -0
  5. package/lib/mermaid/architectureDiagram-2PNWDENW-CI3fLWIN.js +36 -0
  6. package/lib/mermaid/blockDiagram-PUWGUBOA-DAfWpjz7.js +129 -0
  7. package/lib/mermaid/c4Diagram-3NLNHZP5-at-f4FDi.js +38 -0
  8. package/lib/mermaid/chunk-2NMSUPJH-DuxvnX1p.js +1 -0
  9. package/lib/mermaid/chunk-32MCUW2P-D8U-Oy6M.js +206 -0
  10. package/lib/mermaid/chunk-3NPNU5GP-8WYybYAh.js +1 -0
  11. package/lib/mermaid/chunk-3SMGFRGC-C0WC5bhP.js +1 -0
  12. package/lib/mermaid/chunk-4CAJECRU-C_QnaDal.js +15 -0
  13. package/lib/mermaid/chunk-4OADUZ5Q-DHE3k_pb.js +10 -0
  14. package/lib/mermaid/chunk-5IMINLNL-Cl3N81sR.js +1 -0
  15. package/lib/mermaid/chunk-5IQCK5RY-Df5Ppxew.js +3 -0
  16. package/lib/mermaid/chunk-5MVFYWFU-DgXg5u6h.js +1 -0
  17. package/lib/mermaid/chunk-AQ6EADP3-CZhslHi-.js +1 -0
  18. package/lib/mermaid/chunk-AZZRMDJM-y-xJBuMz.js +15 -0
  19. package/lib/mermaid/chunk-CLS4B6BI-BRLlisnG.js +168 -0
  20. package/lib/mermaid/chunk-DZP67EKU-9RpG5Rdc.js +70 -0
  21. package/lib/mermaid/chunk-EICP7K5X-8YS1Gtlr.js +1 -0
  22. package/lib/mermaid/chunk-GDY2UAB4-QtXfmDIW.js +1 -0
  23. package/lib/mermaid/chunk-H7VHZCWX-CwFRFlEn.js +1 -0
  24. package/lib/mermaid/chunk-IJBDOHL6-CgcssvZb.js +1 -0
  25. package/lib/mermaid/chunk-JFFVMJIA-Cx1_ZSMR.js +1 -0
  26. package/lib/mermaid/chunk-JQRUD6KW-Dbva2Z17.js +1 -0
  27. package/lib/mermaid/chunk-JZGDI5JK-BspJQ1vQ.js +1 -0
  28. package/lib/mermaid/chunk-KD6SPIPN-4bKl37hM.js +2 -0
  29. package/lib/mermaid/chunk-NF366YI6-D1lnbapv.js +231 -0
  30. package/lib/mermaid/chunk-NUDPKBEF-CL0e9XiQ.js +34 -0
  31. package/lib/mermaid/chunk-OJINMHTS-rKnCIFV0.js +1 -0
  32. package/lib/mermaid/chunk-Q6NGPIAH-CM9NYxWM.js +2 -0
  33. package/lib/mermaid/chunk-QJSWEUOL-kvKBktmc.js +133 -0
  34. package/lib/mermaid/chunk-R7JDMUKV-CSyCOfYj.js +1 -0
  35. package/lib/mermaid/chunk-RCXAM2GK-BeKcutEV.js +1 -0
  36. package/lib/mermaid/chunk-RT4MAWR3-Cv_8LyN5.js +1 -0
  37. package/lib/mermaid/chunk-SFMINX4W-BW2NSwFJ.js +1 -0
  38. package/lib/mermaid/chunk-SLDQ463B-D15xTdNW.js +88 -0
  39. package/lib/mermaid/chunk-STOV2HOB-GnExfzIX.js +1 -0
  40. package/lib/mermaid/chunk-T5OCTHI4-DdZvN-9i.js +1 -0
  41. package/lib/mermaid/chunk-TCEHX7R3-BXjgPiQF.js +1 -0
  42. package/lib/mermaid/chunk-VQC2EELJ-sGo2yn97.js +1 -0
  43. package/lib/mermaid/chunk-VRZKL3EH-BzaZ6KlD.js +1 -0
  44. package/lib/mermaid/chunk-VTHDQ7BV-BqUEu5Ml.js +1 -0
  45. package/lib/mermaid/chunk-VY2OSTJR-BYk2nUI_.js +2 -0
  46. package/lib/mermaid/chunk-WUBWJARI-Z8MI6quX.js +1 -0
  47. package/lib/mermaid/chunk-YBMQ5JGJ-DlZ1nCKo.js +2 -0
  48. package/lib/mermaid/chunk-YDMLL4PJ-BHgx6nXf.js +1 -0
  49. package/lib/mermaid/chunk-Z6V44ARX-CWGOZvke.js +62 -0
  50. package/lib/mermaid/chunk-ZJJ7VQJP-CZ7qJzqZ.js +340 -0
  51. package/lib/mermaid/chunk-ZNLK7HRR-B-wIfXTw.js +1 -0
  52. package/lib/mermaid/chunk-ZQN7UHIL-CNp35E78.js +1 -0
  53. package/lib/mermaid/chunk-ZS6VBONO-D-IFTJgn.js +175 -0
  54. package/lib/mermaid/chunk-ZUNWM646-DRKPDcQl.js +1 -0
  55. package/lib/mermaid/classDiagram-FGAMPOII-D1sf64vv.js +1 -0
  56. package/lib/mermaid/classDiagram-v2-AI5RJEK4-D1sf64vv.js +1 -0
  57. package/lib/mermaid/cose-bilkent-Q72C2OJ3-iX90typn.js +1 -0
  58. package/lib/mermaid/cynefin-OW5HDTMX-6OCTWOGG-6jDAiaRu.js +1 -0
  59. package/lib/mermaid/cynefinDiagram-2OOWUY4M-5ACKe62t.js +62 -0
  60. package/lib/mermaid/dagre-MPVFI544-BUrJjGwd.js +4 -0
  61. package/lib/mermaid/diagram-AE4NWXFW-B3Lkw8MS.js +24 -0
  62. package/lib/mermaid/diagram-BUJID5UG-p2ajLLgr.js +41 -0
  63. package/lib/mermaid/diagram-C44CZ5NI-CO0U1GX-.js +24 -0
  64. package/lib/mermaid/diagram-EYOLEXXS-DDoUndBV.js +30 -0
  65. package/lib/mermaid/diagram-P7B6PWOJ-C_dSNQyG.js +3 -0
  66. package/lib/mermaid/ebnfDiagram-FTPZ3PV6-DIwB5te0.js +1 -0
  67. package/lib/mermaid/erDiagram-H3ERR26V-CN4pCzIq.js +99 -0
  68. package/lib/mermaid/eventmodeling-NTZA5JFV-WKSWQHFS-Ruta89_N.js +1 -0
  69. package/lib/mermaid/flowDiagram-YHGXBVSY-CrSHzFwR.js +1 -0
  70. package/lib/mermaid/ganttDiagram-RWFTB7ED-C-rfEOn5.js +292 -0
  71. package/lib/mermaid/gitGraph-4MIJSDKK-JH2HKYUO-B76vihW5.js +1 -0
  72. package/lib/mermaid/gitGraphDiagram-MAR6GKOP-peAd7EYO.js +106 -0
  73. package/lib/mermaid/index.js +15 -0
  74. package/lib/mermaid/info-A6RAGUB7-3TX3OFWW-DykwOJ0Z.js +1 -0
  75. package/lib/mermaid/infoDiagram-LV547AFH-C46dOKDG.js +2 -0
  76. package/lib/mermaid/ishikawaDiagram-PUJQGNDS-DUmHXvO9.js +70 -0
  77. package/lib/mermaid/journeyDiagram-EW5QJT4W-CNAhUHsQ.js +139 -0
  78. package/lib/mermaid/kanban-definition-JSQERAZB-uOEoksHt.js +89 -0
  79. package/lib/mermaid/katex-CZ4GXH2S-CaEE-8Xf.js +257 -0
  80. package/lib/mermaid/mindmap-definition-VBJCLQLM-DZceCWFq.js +96 -0
  81. package/lib/mermaid/packet-AYTQ26CC-MKII6P3Y-XqJQX7OO.js +1 -0
  82. package/lib/mermaid/pegDiagram-7WILOQTJ-DMKA8PUf.js +1 -0
  83. package/lib/mermaid/pie-WAS4IAKB-6B4OPMJ5-DpoRuAye.js +1 -0
  84. package/lib/mermaid/pieDiagram-EFA7CBSB-BzO4xw8C.js +39 -0
  85. package/lib/mermaid/quadrantDiagram-WARVYA7P-DMQd2xKZ.js +7 -0
  86. package/lib/mermaid/radar-RG4KPBEZ-UPTR3XUL-BcwE6tO1.js +1 -0
  87. package/lib/mermaid/railroad-74A4TZTK-MEFUPFMS-B2Kwx3Uk.js +1 -0
  88. package/lib/mermaid/railroad-abnf-HS5TGJTU-R5YG2S5D-uBY3fYzG.js +1 -0
  89. package/lib/mermaid/railroad-ebnf-LZEXJU2U-G5QEX2L6-AhpzdU_3.js +1 -0
  90. package/lib/mermaid/railroad-peg-WCYAUIDC-H5I2ZRY2-CrsmP7-8.js +1 -0
  91. package/lib/mermaid/railroadDiagram-5NIQVNLQ-BGyZ628g.js +1 -0
  92. package/lib/mermaid/requirementDiagram-SXREGOKZ-CtCO7u9U.js +84 -0
  93. package/lib/mermaid/sankeyDiagram-VV74M2VP-CPXqmSKK.js +40 -0
  94. package/lib/mermaid/sequenceDiagram-52ZFIFDL-B1rSqWZp.js +162 -0
  95. package/lib/mermaid/sizeCapture-FGA5AGYP-BEqQzsxs.js +1 -0
  96. package/lib/mermaid/stateDiagram-3QAKPIVI-3KzWPUq3.js +1 -0
  97. package/lib/mermaid/stateDiagram-v2-HN2P4RDZ-dXASbYMy.js +1 -0
  98. package/lib/mermaid/swimlanes-QLVP42QD-CLpR90IY.js +1 -0
  99. package/lib/mermaid/swimlanesDiagram-JKPDBFCN-C2sgVGQE.js +8 -0
  100. package/lib/mermaid/timeline-definition-GS45XAXW-DLn0_RV5.js +120 -0
  101. package/lib/mermaid/treeView-Q6P3EWNA-ZRJGANNQ-u1bD1sZ1.js +1 -0
  102. package/lib/mermaid/treemap-WGGIJYW6-K64VN5AS-DrIaTBlj.js +1 -0
  103. package/lib/mermaid/vennDiagram-QIQU2ZRJ-FxbUp7-Z.js +34 -0
  104. package/lib/mermaid/wardley-WFR3VGLG-D67OWCCH-Br9hyuFK.js +1 -0
  105. package/lib/mermaid/wardleyDiagram-U6YNM66N-l-Kvr0Az.js +78 -0
  106. package/lib/mermaid/xychartDiagram-XJAZEDNM-O9bztWNh.js +7 -0
  107. package/lib/plugins.mjs +73 -14
  108. package/package.json +4 -17
  109. package/sources/parts/document/document.part.html +5 -7
  110. package/sources/parts/header/header.part.html +2 -2
  111. package/sources/parts/header/header.style.css +4 -2
  112. package/sources/parts/mermaid/mermaid.part.html +1 -1
  113. package/sources/parts/pagefind/pagefind.part.html +5 -3
  114. package/sources/parts/sidebar/sidebar.style.css +10 -0
  115. package/sources/parts/table-of-content/table-of-content-desktop.part.html +2 -2
  116. package/sources/scripts/mermaid.ts +3 -1
@@ -0,0 +1,206 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{V as t,q as n}from"./chunk-H7VHZCWX-CwFRFlEn.js";import{B as r,F as i,Q as a,R as o,U as s,V as c,X as l,Y as u,_ as d,h as f,q as p,y as m}from"./chunk-QJSWEUOL-kvKBktmc.js";import{n as h,o as g}from"./chunk-VY2OSTJR-BYk2nUI_.js";import{n as _,r as v}from"./chunk-YDMLL4PJ-BHgx6nXf.js";import{t as y}from"./chunk-AZZRMDJM-y-xJBuMz.js";import{r as b}from"./chunk-EICP7K5X-8YS1Gtlr.js";import{t as x}from"./chunk-RCXAM2GK-BeKcutEV.js";import{t as S}from"./chunk-VTHDQ7BV-BqUEu5Ml.js";var C=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,18],r=[1,19],i=[1,20],a=[1,41],o=[1,26],s=[1,42],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],te=[1,64],P=[1,8,9,41],ne=[1,77],F=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],I=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],L=[13,60,86,100,102,103],R=[13,60,73,74,86,100,102,103],re=[13,60,68,69,70,71,72,86,100,102,103],z=[1,103],B=[1,121],V=[1,117],H=[1,113],U=[1,119],W=[1,114],G=[1,115],K=[1,116],q=[1,118],J=[1,120],ie=[22,50,60,61,82,86,87,88,89,90],ae=[1,128],Y=[12,39],X=[1,8,9,39,41,44,46],Z=[1,8,9,22],oe=[1,153],se=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],ce={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(D,[2,5],{8:[1,48]}),{8:[1,49]},t(O,[2,19],{22:[1,50]}),t(O,[2,21]),t(O,[2,22]),t(O,[2,23]),t(O,[2,24]),t(O,[2,25]),t(O,[2,26]),t(O,[2,27]),t(O,[2,28]),t(O,[2,29]),t(O,[2,30]),{34:[1,51]},{36:[1,52]},t(O,[2,33]),t(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:te}),{39:[1,65]},t(P,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(O,[2,65]),t(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:ne,55:76},{58:78,60:[1,79]},t(O,[2,76]),t(O,[2,77]),t(O,[2,78]),t(O,[2,79]),t(F,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),t(F,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},t(I,[2,133]),t(I,[2,134]),t(I,[2,135]),t(I,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:n,35:r,37:i,42:a,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},t(O,[2,20]),t(O,[2,31]),t(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:te},t(O,[2,64]),{67:93,73:ee,74:te},t(L,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),t(R,[2,84]),t(R,[2,85]),t(R,[2,86]),t(R,[2,87]),t(R,[2,88]),t(re,[2,89]),t(re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:s,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:z},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:B,50:V,59:110,60:H,82:U,84:111,85:112,86:W,87:G,88:K,89:q,90:J},{60:[1,122]},{13:ne,55:123},t(P,[2,72]),t(P,[2,138]),{22:B,50:V,59:124,60:H,61:[1,125],82:U,84:111,85:112,86:W,87:G,88:K,89:q,90:J},t(ie,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},t(F,[2,16]),t(F,[2,17]),t(F,[2,18]),{11:127,12:ae,39:[2,36]},t(Y,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),t(Y,[2,10]),t(X,[2,55],{11:131,12:ae}),t(D,[2,7]),{9:[1,132]},t(Z,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},t(L,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),t(L,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(P,[2,48],{39:[1,142]}),{41:[1,143]},t(P,[2,50]),{41:[2,61],45:144,51:z},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},t(O,[2,91],{13:[1,147]}),t(O,[2,93],{13:[1,149],77:[1,148]}),t(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(O,[2,105],{61:oe}),t(se,[2,107],{85:154,22:B,50:V,60:H,82:U,86:W,87:G,88:K,89:q,90:J}),t(Q,[2,109]),t(Q,[2,111]),t(Q,[2,112]),t(Q,[2,113]),t(Q,[2,114]),t(Q,[2,115]),t(Q,[2,116]),t(Q,[2,117]),t(Q,[2,118]),t(Q,[2,119]),t(O,[2,106]),t(P,[2,71]),t(O,[2,73],{61:oe}),{60:[1,155]},t(F,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},t(Y,[2,12]),t(X,[2,56]),{1:[2,4]},t(Z,[2,69]),t(Z,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},t(L,[2,80]),t(P,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:s,54:u,56:d},{45:163,51:z},t(P,[2,49]),{41:[2,62]},t(P,[2,52],{39:[1,164]}),t(O,[2,60]),t(O,[2,92]),t(O,[2,94]),t(O,[2,95],{77:[1,165]}),t(O,[2,98]),t(O,[2,99],{13:[1,166]}),t(O,[2,101],{13:[1,168],77:[1,167]}),{22:B,50:V,60:H,82:U,84:169,85:112,86:W,87:G,88:K,89:q,90:J},t(Q,[2,110]),t(ie,[2,75]),{14:[1,170]},t(Y,[2,11]),t(Z,[2,70]),t(P,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:z},t(O,[2,96]),t(O,[2,100]),t(O,[2,102]),t(O,[2,103],{77:[1,174]}),t(se,[2,108],{85:154,22:B,50:V,60:H,82:U,86:W,87:G,88:K,89:q,90:J}),t(X,[2,8]),t(P,[2,51]),{41:[1,175]},t(P,[2,54]),t(O,[2,104]),t(P,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,typeof h.yylloc>`u`&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e;return e=i.pop()||h.lex()||p,typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:((S===null||typeof S>`u`)&&(S=x()),T=s[w]&&s[w][S]),typeof T>`u`||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),typeof E<`u`)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};ce.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),33;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),35;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 82;case 28:return 57;case 29:return this.begin(`namespace`),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin(`namespace-body`),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return`EOF_IN_STRUCT`;case 36:return 8;case 37:break;case 38:return`EDGE_STATE`;case 39:return this.begin(`class`),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin(`class-body`),39;case 44:return this.popState(),41;case 45:return`EOF_IN_STRUCT`;case 46:return`EDGE_STATE`;case 47:return`OPEN_IN_STRUCT`;case 48:break;case 49:return`MEMBER`;case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return`GENERICTYPE`;case 61:this.begin(`generic`);break;case 62:this.popState();break;case 63:return`BQUOTE_STR`;case 64:this.begin(`bqstring`);break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return`PLUS`;case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return`EQUALS`;case 89:return`EQUALS`;case 90:return 60;case 91:return 12;case 92:return 14;case 93:return`PUNCTUATION`;case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\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])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}})();function $(){this.yy={}}return e($,`Parser`),$.prototype=ce,ce.Parser=$,new $})();C.parser=C;var w=C,T=[`#`,`+`,`~`,`-`,``],E=class{static{e(this,`ClassMember`)}constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=m(e,r());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+s(this.id);this.memberType===`method`&&(e+=`(${s(this.parameters.trim())})`,this.returnType&&(e+=` : `+s(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(T.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);T.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${s(this.id)}${this.memberType===`method`?`(${s(this.parameters)})${this.returnType?` : `+s(this.returnType):``}`:``}`;this.text=n.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`),this.text.startsWith(`\\&lt;`)&&(this.text=this.text.replace(`\\&lt;`,`~`))}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},D=`classId-`,O=0,k=e(e=>o.sanitizeText(e,r()),`sanitizeText`),A=class s{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=e(e=>{let n=b();t(e).select(`svg`).selectAll(`g`).filter(function(){return t(this).attr(`title`)!==null}).on(`mouseover`,e=>{let r=t(e.currentTarget),i=r.attr(`title`);if(!i)return;let a=e.currentTarget.getBoundingClientRect();n.transition().duration(200).style(`opacity`,`.9`),n.html(d.sanitize(i)).style(`left`,`${window.scrollX+a.left+a.width/2}px`).style(`top`,`${window.scrollY+a.bottom+4}px`),r.classed(`hover`,!0)}).on(`mouseout`,e=>{n.transition().duration(500).style(`opacity`,0),t(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=a,this.getAccTitle=c,this.setAccDescription=u,this.getAccDescription=p,this.setDiagramTitle=i,this.getDiagramTitle=l,this.getConfig=e(()=>r().class,`getConfig`),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{e(this,`ClassDB`)}splitClassNameAndType(e){let t=o.sanitizeText(e,r()),n=``,i=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);i=k(e[0]),n=k(e[1])}return{className:i,type:n}}setClassLabel(e,t){let n=o.sanitizeText(e,r());t&&=k(t);let{className:i}=this.splitClassNameAndType(n);this.classes.get(i).label=t,this.classes.get(i).text=`${t}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:``}`}addClass(e){let t=o.sanitizeText(e,r()),{className:n,type:i}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let a=o.sanitizeText(n,r());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`&lt;${i}&gt;`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:D+a+`-`+O}),O++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=o.sanitizeText(e,r());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.direction=`TB`,f()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){n.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!t.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=o.sanitizeText(e.relationTitle1.trim(),r()),e.relationTitle2=o.sanitizeText(e.relationTitle2.trim(),r()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(k(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new E(e,`method`)):e&&r.members.push(new E(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),k(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=D+n),n=this.splitClassNameAndType(n).className;let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{if(t!==void 0){let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=k(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let i=r();e.split(`,`).forEach(e=>{let r=e;/\d/.exec(e[0])&&(r=D+r),r=this.splitClassNameAndType(r).className;let a=this.classes.get(r);a&&(a.link=g.formatUrl(t,i),a.linkTarget=i.securityLevel===`sandbox`?`_top`:typeof n==`string`?k(n):`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n);let r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let i=o.sanitizeText(e,r());if(r().securityLevel!==`loose`||t===void 0)return;let a=this.splitClassNameAndType(i).className;if(this.classes.has(a)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<e.length;t++){let n=e[t].trim();n.startsWith(`"`)&&n.endsWith(`"`)&&(n=n.substr(1,n.length-2)),e[t]=n}}e.length===0&&e.push(a),this.functions.push(()=>{let n=this.lookUpDomId(a),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{g.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e<t.length;e++)n[e]=`${n[e-1]}.${t[e]}`;return n}createNamespaceNode(e,t,n,r=!1){return{id:e,label:t,classes:new Map,notes:new Map,children:new Map,domId:D+e+`-`+this.namespaceCounter++,parent:n,explicit:r}}linkParentChild(e,t){let n=this.namespaces.get(e),r=this.namespaces.get(t);!n||!r||(n.children.has(t)||n.children.set(t,r),r.parent??=e)}addNamespace(e,t){let n=s.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(n),this.namespaces.has(n)){let e=this.namespaces.get(n);return e.explicit=!0,t&&(e.label=t),n}let r=n.split(`.`),i=s.getAncestorIds(n);for(let e=0;e<i.length;e++){let n=i[e],a=e>0?i[e-1]:void 0,o=e===i.length-1,s=o&&t?t:r[e];this.namespaces.has(n)?o&&(this.namespaces.get(n).explicit=!0):this.namespaces.set(n,this.createNamespaceNode(n,s,a,o)),a&&this.linkParentChild(a,n)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(!(!t||!n))for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=r(),i=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!i&&!t.explicit)continue;let r={id:t.id,label:i?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:i?t.parent:void 0};e.push(r)}for(let t of this.classes.values()){let r=i?t.parent:this.resolveExplicitAncestor(t.parent),a={...t,type:void 0,isGroup:!1,parentId:r,look:n.look};e.push(a)}for(let r of this.notes.values()){let a=i?r.parent:this.resolveExplicitAncestor(r.parent),o={id:r.id,label:r.text,isGroup:!1,shape:`note`,padding:n.class.padding??6,cssStyles:[`text-align: left`,`white-space: nowrap`,`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:a,labelType:`markdown`};e.push(o);let s=this.classes.get(r.class)?.id;if(s){let e={id:`edgeNote${r.index}`,start:r.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let a=0;for(let e of this.relations){a++;let r={id:h(e.id1,e.id2,{prefix:`id`,counter:a}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},j=e(e=>`g.classGroup text {
7
+ fill: ${e.nodeBorder||e.classText};
8
+ stroke: none;
9
+ font-family: ${e.fontFamily};
10
+ font-size: 10px;
11
+
12
+ .title {
13
+ font-weight: bolder;
14
+ }
15
+
16
+ }
17
+
18
+ .cluster-label text {
19
+ fill: ${e.titleColor};
20
+ }
21
+ .cluster-label span {
22
+ color: ${e.titleColor};
23
+ }
24
+ .cluster-label span p {
25
+ background-color: transparent;
26
+ }
27
+
28
+ .cluster rect {
29
+ fill: ${e.clusterBkg};
30
+ stroke: ${e.clusterBorder};
31
+ stroke-width: 1px;
32
+ }
33
+
34
+ .cluster text {
35
+ fill: ${e.titleColor};
36
+ }
37
+
38
+ .cluster span {
39
+ color: ${e.titleColor};
40
+ }
41
+
42
+ .nodeLabel, .edgeLabel {
43
+ color: ${e.classText};
44
+ }
45
+
46
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
47
+ color: ${e.noteTextColor};
48
+ }
49
+ .edgeLabel .label rect {
50
+ fill: ${e.mainBkg};
51
+ }
52
+ .label text {
53
+ fill: ${e.classText};
54
+ }
55
+
56
+ .labelBkg {
57
+ background: ${e.mainBkg};
58
+ }
59
+ .edgeLabel .label span {
60
+ background: ${e.mainBkg};
61
+ }
62
+
63
+ .classTitle {
64
+ font-weight: bolder;
65
+ }
66
+ .node rect,
67
+ .node circle,
68
+ .node ellipse,
69
+ .node polygon,
70
+ .node path {
71
+ fill: ${e.mainBkg};
72
+ stroke: ${e.nodeBorder};
73
+ stroke-width: ${e.strokeWidth};
74
+ }
75
+
76
+
77
+ .divider {
78
+ stroke: ${e.nodeBorder};
79
+ stroke-width: 1;
80
+ }
81
+
82
+ g.clickable {
83
+ cursor: pointer;
84
+ }
85
+
86
+ g.classGroup rect {
87
+ fill: ${e.mainBkg};
88
+ stroke: ${e.nodeBorder};
89
+ }
90
+
91
+ g.classGroup line {
92
+ stroke: ${e.nodeBorder};
93
+ stroke-width: 1;
94
+ }
95
+
96
+ .classLabel .box {
97
+ stroke: none;
98
+ stroke-width: 0;
99
+ fill: ${e.mainBkg};
100
+ opacity: 0.5;
101
+ }
102
+
103
+ .classLabel .label {
104
+ fill: ${e.nodeBorder};
105
+ font-size: 10px;
106
+ }
107
+
108
+ .relation {
109
+ stroke: ${e.lineColor};
110
+ stroke-width: ${e.strokeWidth};
111
+ fill: none;
112
+ }
113
+
114
+ .dashed-line{
115
+ stroke-dasharray: 3;
116
+ }
117
+
118
+ .dotted-line{
119
+ stroke-dasharray: 1 2;
120
+ }
121
+
122
+ [id$="-compositionStart"], .composition {
123
+ fill: ${e.lineColor} !important;
124
+ stroke: ${e.lineColor} !important;
125
+ stroke-width: 1;
126
+ }
127
+
128
+ [id$="-compositionEnd"], .composition {
129
+ fill: ${e.lineColor} !important;
130
+ stroke: ${e.lineColor} !important;
131
+ stroke-width: 1;
132
+ }
133
+
134
+ [id$="-dependencyStart"], .dependency {
135
+ fill: ${e.lineColor} !important;
136
+ stroke: ${e.lineColor} !important;
137
+ stroke-width: 1;
138
+ }
139
+
140
+ [id$="-dependencyEnd"], .dependency {
141
+ fill: ${e.lineColor} !important;
142
+ stroke: ${e.lineColor} !important;
143
+ stroke-width: 1;
144
+ }
145
+
146
+ [id$="-extensionStart"], .extension {
147
+ fill: transparent !important;
148
+ stroke: ${e.lineColor} !important;
149
+ stroke-width: 1;
150
+ }
151
+
152
+ [id$="-extensionEnd"], .extension {
153
+ fill: transparent !important;
154
+ stroke: ${e.lineColor} !important;
155
+ stroke-width: 1;
156
+ }
157
+
158
+ [id$="-aggregationStart"], .aggregation {
159
+ fill: transparent !important;
160
+ stroke: ${e.lineColor} !important;
161
+ stroke-width: 1;
162
+ }
163
+
164
+ [id$="-aggregationEnd"], .aggregation {
165
+ fill: transparent !important;
166
+ stroke: ${e.lineColor} !important;
167
+ stroke-width: 1;
168
+ }
169
+
170
+ [id$="-lollipopStart"], .lollipop {
171
+ fill: ${e.mainBkg} !important;
172
+ stroke: ${e.lineColor} !important;
173
+ stroke-width: 1;
174
+ }
175
+
176
+ [id$="-lollipopEnd"], .lollipop {
177
+ fill: ${e.mainBkg} !important;
178
+ stroke: ${e.lineColor} !important;
179
+ stroke-width: 1;
180
+ }
181
+
182
+ .edgeTerminals {
183
+ font-size: 11px;
184
+ line-height: initial;
185
+ }
186
+
187
+ .classTitleText {
188
+ text-anchor: middle;
189
+ font-size: 18px;
190
+ fill: ${e.textColor};
191
+ }
192
+
193
+ .edgeLabel[data-look="neo"] {
194
+ background-color: ${e.edgeLabelBackground};
195
+ p {
196
+ background-color: ${e.edgeLabelBackground};
197
+ }
198
+ rect {
199
+ opacity: 0.5;
200
+ background-color: ${e.edgeLabelBackground};
201
+ fill: ${e.edgeLabelBackground};
202
+ }
203
+ text-align: center;
204
+ }
205
+ ${y()}
206
+ `,`getStyles`),M=e((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),N={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,t,i,a){n.info(`REF0:`),n.info(`Drawing class diagram (v3)`,t);let{securityLevel:o,state:s,layout:c}=r();a.db.setDiagramId(t);let l=a.db.getData(),u=x(t,o);l.type=a.type,l.layoutAlgorithm=_(c),l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],l.diagramId=t,await v(l,u),g.insertTitle(u,`classDiagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),S(u,8,`classDiagram`,s?.useMaxWidth??!0)},`draw`),getDir:M};export{A as i,j as n,N as r,w as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{c as t,i as n,m as r,n as i,o as a,r as o,s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends n{static{e(this,`InfoTokenBuilder`)}static{l(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},d={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new r,`ValueConverter`)}};function f(e=t){let n=o(a(e),i),r=o(c({shared:n}),s,d);return n.ServiceRegistry.register(r),{shared:n,Info:r}}e(f,`createInfoServices`),l(f,`createInfoServices`);export{d as n,f as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{_ as t,a as n,c as r,n as i,o as a,r as o,t as s,y as c}from"./chunk-ZS6VBONO-D-IFTJgn.js";var l=class extends n{static{e(this,`WardleyValueConverter`)}static{c(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},u={parser:{ValueConverter:c(()=>new l,`ValueConverter`)}};function d(e=r){let n=o(a(e),i),c=o(s({shared:n}),t,u);return n.ServiceRegistry.register(c),{shared:n,Wardley:c}}e(d,`createWardleyServices`),c(d,`createWardleyServices`);export{d as n,u as t};
@@ -0,0 +1,15 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";var t=typeof global==`object`&&global&&global.Object===Object&&global,n=typeof self==`object`&&self&&self.Object===Object&&self,r=t||n||Function(`return this`)(),i=r.Symbol,a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i?i.toStringTag:void 0;function l(e){var t=o.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch{}var i=s.call(e);return r&&(t?e[c]=n:delete e[c]),i}e(l,`getRawTag`);var u=l,d=Object.prototype.toString;function f(e){return d.call(e)}e(f,`objectToString`);var p=f,m=`[object Null]`,h=`[object Undefined]`,g=i?i.toStringTag:void 0;function ee(e){return e==null?e===void 0?h:m:g&&g in Object(e)?u(e):p(e)}e(ee,`baseGetTag`);var _=ee;function v(e){return typeof e==`object`&&!!e}e(v,`isObjectLike`);var y=v,te=`[object Symbol]`;function ne(e){return typeof e==`symbol`||y(e)&&_(e)==te}e(ne,`isSymbol`);var b=ne;function re(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}e(re,`arrayMap`);var x=re,S=Array.isArray,ie=1/0,ae=i?i.prototype:void 0,oe=ae?ae.toString:void 0;function se(e){if(typeof e==`string`)return e;if(S(e))return x(e,se)+``;if(b(e))return oe?oe.call(e):``;var t=e+``;return t==`0`&&1/e==-ie?`-0`:t}e(se,`baseToString`);var ce=se,le=/\s/;function ue(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}e(ue,`trimmedEndIndex`);var de=ue,fe=/^\s+/;function pe(e){return e&&e.slice(0,de(e)+1).replace(fe,``)}e(pe,`baseTrim`);var me=pe;function he(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}e(he,`isObject`);var C=he,ge=NaN,_e=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^0o[0-7]+$/i,be=parseInt;function xe(e){if(typeof e==`number`)return e;if(b(e))return ge;if(C(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=C(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=me(e);var n=ve.test(e);return n||ye.test(e)?be(e.slice(2),n?2:8):_e.test(e)?ge:+e}e(xe,`toNumber`);var Se=xe,Ce=1/0,we=17976931348623157e292;function Te(e){return e?(e=Se(e),e===Ce||e===-Ce?(e<0?-1:1)*we:e===e?e:0):e===0?e:0}e(Te,`toFinite`);var Ee=Te;function De(e){var t=Ee(e),n=t%1;return t===t?n?t-n:t:0}e(De,`toInteger`);var Oe=De;function ke(e){return e}e(ke,`identity`);var w=ke,Ae=`[object AsyncFunction]`,je=`[object Function]`,Me=`[object GeneratorFunction]`,Ne=`[object Proxy]`;function Pe(e){if(!C(e))return!1;var t=_(e);return t==je||t==Me||t==Ae||t==Ne}e(Pe,`isFunction`);var T=Pe,Fe=r[`__core-js_shared__`],Ie=(function(){var e=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function Le(e){return!!Ie&&Ie in e}e(Le,`isMasked`);var Re=Le,ze=Function.prototype.toString;function Be(e){if(e!=null){try{return ze.call(e)}catch{}try{return e+``}catch{}}return``}e(Be,`toSource`);var E=Be,Ve=/[\\^$.*+?()[\]{}|]/g,He=/^\[object .+?Constructor\]$/,Ue=Function.prototype,We=Object.prototype,Ge=Ue.toString,Ke=We.hasOwnProperty,qe=RegExp(`^`+Ge.call(Ke).replace(Ve,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Je(e){return!C(e)||Re(e)?!1:(T(e)?qe:He).test(E(e))}e(Je,`baseIsNative`);var Ye=Je;function Xe(e,t){return e?.[t]}e(Xe,`getValue`);var Ze=Xe;function Qe(e,t){var n=Ze(e,t);return Ye(n)?n:void 0}e(Qe,`getNative`);var D=Qe,$e=D(r,`WeakMap`),et=Object.create,tt=(function(){function t(){}return e(t,`object`),function(e){if(!C(e))return{};if(et)return et(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e(nt,`apply`);var rt=nt;function it(){}e(it,`noop`);var at=it;function ot(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}e(ot,`copyArray`);var st=ot,ct=800,lt=16,ut=Date.now;function dt(e){var t=0,n=0;return function(){var r=ut(),i=lt-(r-n);if(n=r,i>0){if(++t>=ct)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e(dt,`shortOut`);var ft=dt;function pt(e){return function(){return e}}e(pt,`constant`);var O=pt,mt=(function(){try{var e=D(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),ht=ft(mt?function(e,t){return mt(e,`toString`,{configurable:!0,enumerable:!1,value:O(t),writable:!0})}:w);function gt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}e(gt,`arrayEach`);var _t=gt;function vt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}e(vt,`baseFindIndex`);var yt=vt;function bt(e){return e!==e}e(bt,`baseIsNaN`);var xt=bt;function St(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}e(St,`strictIndexOf`);var Ct=St;function wt(e,t,n){return t===t?Ct(e,t,n):yt(e,xt,n)}e(wt,`baseIndexOf`);var Tt=wt;function Et(e,t){return!!(e!=null&&e.length)&&Tt(e,t,0)>-1}e(Et,`arrayIncludes`);var Dt=Et,Ot=9007199254740991,kt=/^(?:0|[1-9]\d*)$/;function At(e,t){var n=typeof e;return t??=Ot,!!t&&(n==`number`||n!=`symbol`&&kt.test(e))&&e>-1&&e%1==0&&e<t}e(At,`isIndex`);var jt=At;function Mt(e,t,n){t==`__proto__`&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e(Mt,`baseAssignValue`);var Nt=Mt;function Pt(e,t){return e===t||e!==e&&t!==t}e(Pt,`eq`);var k=Pt,Ft=Object.prototype.hasOwnProperty;function It(e,t,n){var r=e[t];(!(Ft.call(e,t)&&k(r,n))||n===void 0&&!(t in e))&&Nt(e,t,n)}e(It,`assignValue`);var Lt=It;function Rt(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Nt(n,s,c):Lt(n,s,c)}return n}e(Rt,`copyObject`);var zt=Rt,Bt=Math.max;function Vt(e,t,n){return t=Bt(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Bt(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),rt(e,this,s)}}e(Vt,`overRest`);var Ht=Vt;function Ut(e,t){return ht(Ht(e,t,w),e+``)}e(Ut,`baseRest`);var Wt=Ut,Gt=9007199254740991;function Kt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Gt}e(Kt,`isLength`);var qt=Kt;function Jt(e){return e!=null&&qt(e.length)&&!T(e)}e(Jt,`isArrayLike`);var A=Jt;function Yt(e,t,n){if(!C(n))return!1;var r=typeof t;return(r==`number`?A(n)&&jt(t,n.length):r==`string`&&t in n)?k(n[t],e):!1}e(Yt,`isIterateeCall`);var Xt=Yt;function Zt(e){return Wt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Xt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}e(Zt,`createAssigner`);var Qt=Zt,$t=Object.prototype;function en(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||$t)}e(en,`isPrototype`);var tn=en;function nn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e(nn,`baseTimes`);var rn=nn,an=`[object Arguments]`;function on(e){return y(e)&&_(e)==an}e(on,`baseIsArguments`);var sn=on,cn=Object.prototype,ln=cn.hasOwnProperty,un=cn.propertyIsEnumerable,j=sn((function(){return arguments})())?sn:function(e){return y(e)&&ln.call(e,`callee`)&&!un.call(e,`callee`)};function dn(){return!1}e(dn,`stubFalse`);var fn=dn,pn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,mn=pn&&typeof module==`object`&&module&&!module.nodeType&&module,hn=mn&&mn.exports===pn?r.Buffer:void 0,M=(hn?hn.isBuffer:void 0)||fn,gn=`[object Arguments]`,_n=`[object Array]`,vn=`[object Boolean]`,yn=`[object Date]`,bn=`[object Error]`,xn=`[object Function]`,Sn=`[object Map]`,Cn=`[object Number]`,wn=`[object Object]`,Tn=`[object RegExp]`,En=`[object Set]`,Dn=`[object String]`,On=`[object WeakMap]`,kn=`[object ArrayBuffer]`,An=`[object DataView]`,jn=`[object Float32Array]`,Mn=`[object Float64Array]`,Nn=`[object Int8Array]`,Pn=`[object Int16Array]`,Fn=`[object Int32Array]`,In=`[object Uint8Array]`,Ln=`[object Uint8ClampedArray]`,Rn=`[object Uint16Array]`,zn=`[object Uint32Array]`,N={};N[jn]=N[Mn]=N[Nn]=N[Pn]=N[Fn]=N[In]=N[Ln]=N[Rn]=N[zn]=!0,N[gn]=N[_n]=N[kn]=N[vn]=N[An]=N[yn]=N[bn]=N[xn]=N[Sn]=N[Cn]=N[wn]=N[Tn]=N[En]=N[Dn]=N[On]=!1;function Bn(e){return y(e)&&qt(e.length)&&!!N[_(e)]}e(Bn,`baseIsTypedArray`);var Vn=Bn;function Hn(e){return function(t){return e(t)}}e(Hn,`baseUnary`);var Un=Hn,Wn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,P=Wn&&typeof module==`object`&&module&&!module.nodeType&&module,Gn=P&&P.exports===Wn&&t.process,F=(function(){try{return P&&P.require&&P.require(`util`).types||Gn&&Gn.binding&&Gn.binding(`util`)}catch{}})(),Kn=F&&F.isTypedArray,qn=Kn?Un(Kn):Vn,Jn=Object.prototype.hasOwnProperty;function Yn(e,t){var n=S(e),r=!n&&j(e),i=!n&&!r&&M(e),a=!n&&!r&&!i&&qn(e),o=n||r||i||a,s=o?rn(e.length,String):[],c=s.length;for(var l in e)(t||Jn.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||jt(l,c)))&&s.push(l);return s}e(Yn,`arrayLikeKeys`);var Xn=Yn;function Zn(e,t){return function(n){return e(t(n))}}e(Zn,`overArg`);var Qn=Zn,$n=Qn(Object.keys,Object),er=Object.prototype.hasOwnProperty;function tr(e){if(!tn(e))return $n(e);var t=[];for(var n in Object(e))er.call(e,n)&&n!=`constructor`&&t.push(n);return t}e(tr,`baseKeys`);var nr=tr;function rr(e){return A(e)?Xn(e):nr(e)}e(rr,`keys`);var I=rr;function ir(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}e(ir,`nativeKeysIn`);var ar=ir,or=Object.prototype.hasOwnProperty;function sr(e){if(!C(e))return ar(e);var t=tn(e),n=[];for(var r in e)r==`constructor`&&(t||!or.call(e,r))||n.push(r);return n}e(sr,`baseKeysIn`);var cr=sr;function lr(e){return A(e)?Xn(e,!0):cr(e)}e(lr,`keysIn`);var L=lr,ur=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dr=/^\w*$/;function fr(e,t){if(S(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||b(e)?!0:dr.test(e)||!ur.test(e)||t!=null&&e in Object(t)}e(fr,`isKey`);var pr=fr,R=D(Object,`create`);function mr(){this.__data__=R?R(null):{},this.size=0}e(mr,`hashClear`);var hr=mr;function gr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}e(gr,`hashDelete`);var _r=gr,vr=`__lodash_hash_undefined__`,yr=Object.prototype.hasOwnProperty;function br(e){var t=this.__data__;if(R){var n=t[e];return n===vr?void 0:n}return yr.call(t,e)?t[e]:void 0}e(br,`hashGet`);var xr=br,Sr=Object.prototype.hasOwnProperty;function Cr(e){var t=this.__data__;return R?t[e]!==void 0:Sr.call(t,e)}e(Cr,`hashHas`);var wr=Cr,Tr=`__lodash_hash_undefined__`;function Er(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=R&&t===void 0?Tr:t,this}e(Er,`hashSet`);var Dr=Er;function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}e(z,`Hash`),z.prototype.clear=hr,z.prototype.delete=_r,z.prototype.get=xr,z.prototype.has=wr,z.prototype.set=Dr;var Or=z;function kr(){this.__data__=[],this.size=0}e(kr,`listCacheClear`);var Ar=kr;function jr(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return-1}e(jr,`assocIndexOf`);var Mr=jr,Nr=Array.prototype.splice;function Pr(e){var t=this.__data__,n=Mr(t,e);return n<0?!1:(n==t.length-1?t.pop():Nr.call(t,n,1),--this.size,!0)}e(Pr,`listCacheDelete`);var Fr=Pr;function Ir(e){var t=this.__data__,n=Mr(t,e);return n<0?void 0:t[n][1]}e(Ir,`listCacheGet`);var Lr=Ir;function Rr(e){return Mr(this.__data__,e)>-1}e(Rr,`listCacheHas`);var zr=Rr;function Br(e,t){var n=this.__data__,r=Mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e(Br,`listCacheSet`);var Vr=Br;function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}e(B,`ListCache`),B.prototype.clear=Ar,B.prototype.delete=Fr,B.prototype.get=Lr,B.prototype.has=zr,B.prototype.set=Vr;var Hr=B,V=D(r,`Map`);function Ur(){this.size=0,this.__data__={hash:new Or,map:new(V||Hr),string:new Or}}e(Ur,`mapCacheClear`);var Wr=Ur;function Gr(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}e(Gr,`isKeyable`);var Kr=Gr;function qr(e,t){var n=e.__data__;return Kr(t)?n[typeof t==`string`?`string`:`hash`]:n.map}e(qr,`getMapData`);var Jr=qr;function Yr(e){var t=Jr(this,e).delete(e);return this.size-=+!!t,t}e(Yr,`mapCacheDelete`);var Xr=Yr;function Zr(e){return Jr(this,e).get(e)}e(Zr,`mapCacheGet`);var Qr=Zr;function $r(e){return Jr(this,e).has(e)}e($r,`mapCacheHas`);var ei=$r;function ti(e,t){var n=Jr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}e(ti,`mapCacheSet`);var ni=ti;function H(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}e(H,`MapCache`),H.prototype.clear=Wr,H.prototype.delete=Xr,H.prototype.get=Qr,H.prototype.has=ei,H.prototype.set=ni;var ri=H,ii=`Expected a function`;function ai(t,n){if(typeof t!=`function`||n!=null&&typeof n!=`function`)throw TypeError(ii);var r=e(function(){var e=arguments,i=n?n.apply(this,e):e[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,e);return r.cache=a.set(i,o)||a,o},`memoized`);return r.cache=new(ai.Cache||ri),r}e(ai,`memoize`),ai.Cache=ri;var oi=ai,si=500;function ci(e){var t=oi(e,function(e){return n.size===si&&n.clear(),e}),n=t.cache;return t}e(ci,`memoizeCapped`);var li=ci,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/\\(\\)?/g,fi=li(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(ui,function(e,n,r,i){t.push(r?i.replace(di,`$1`):n||e)}),t});function pi(e){return e==null?``:ce(e)}e(pi,`toString`);var mi=pi;function hi(e,t){return S(e)?e:pr(e,t)?[e]:fi(mi(e))}e(hi,`castPath`);var gi=hi,_i=1/0;function vi(e){if(typeof e==`string`||b(e))return e;var t=e+``;return t==`0`&&1/e==-_i?`-0`:t}e(vi,`toKey`);var yi=vi;function bi(e,t){t=gi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[yi(t[n++])];return n&&n==r?e:void 0}e(bi,`baseGet`);var xi=bi;function Si(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}e(Si,`get`);var Ci=Si;function wi(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e(wi,`arrayPush`);var Ti=wi,Ei=i?i.isConcatSpreadable:void 0;function Di(e){return S(e)||j(e)||!!(Ei&&e&&e[Ei])}e(Di,`isFlattenable`);var Oi=Di;function ki(e,t,n,r,i){var a=-1,o=e.length;for(n||=Oi,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ki(s,t-1,n,r,i):Ti(i,s):r||(i[i.length]=s)}return i}e(ki,`baseFlatten`);var Ai=ki;function ji(e){return e!=null&&e.length?Ai(e,1):[]}e(ji,`flatten`);var Mi=ji;function Ni(e){return ht(Ht(e,void 0,Mi),e+``)}e(Ni,`flatRest`);var Pi=Ni,Fi=Qn(Object.getPrototypeOf,Object),Ii=`[object Object]`,Li=Function.prototype,Ri=Object.prototype,zi=Li.toString,Bi=Ri.hasOwnProperty,Vi=zi.call(Object);function Hi(e){if(!y(e)||_(e)!=Ii)return!1;var t=Fi(e);if(t===null)return!0;var n=Bi.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&zi.call(n)==Vi}e(Hi,`isPlainObject`);var Ui=Hi,Wi=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Gi(e){return Wi.test(e)}e(Gi,`hasUnicode`);var Ki=Gi;function qi(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}e(qi,`arrayReduce`);var Ji=qi;function Yi(){this.__data__=new Hr,this.size=0}e(Yi,`stackClear`);var Xi=Yi;function Zi(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e(Zi,`stackDelete`);var Qi=Zi;function $i(e){return this.__data__.get(e)}e($i,`stackGet`);var ea=$i;function ta(e){return this.__data__.has(e)}e(ta,`stackHas`);var na=ta,ra=200;function ia(e,t){var n=this.__data__;if(n instanceof Hr){var r=n.__data__;if(!V||r.length<ra-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ri(r)}return n.set(e,t),this.size=n.size,this}e(ia,`stackSet`);var aa=ia;function U(e){var t=this.__data__=new Hr(e);this.size=t.size}e(U,`Stack`),U.prototype.clear=Xi,U.prototype.delete=Qi,U.prototype.get=ea,U.prototype.has=na,U.prototype.set=aa;var W=U;function oa(e,t){return e&&zt(t,I(t),e)}e(oa,`baseAssign`);var sa=oa;function ca(e,t){return e&&zt(t,L(t),e)}e(ca,`baseAssignIn`);var la=ca,ua=typeof exports==`object`&&exports&&!exports.nodeType&&exports,da=ua&&typeof module==`object`&&module&&!module.nodeType&&module,fa=da&&da.exports===ua?r.Buffer:void 0,pa=fa?fa.allocUnsafe:void 0;function ma(e,t){if(t)return e.slice();var n=e.length,r=pa?pa(n):new e.constructor(n);return e.copy(r),r}e(ma,`cloneBuffer`);var ha=ma;function ga(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}e(ga,`arrayFilter`);var _a=ga;function va(){return[]}e(va,`stubArray`);var ya=va,ba=Object.prototype.propertyIsEnumerable,xa=Object.getOwnPropertySymbols,Sa=xa?function(e){return e==null?[]:(e=Object(e),_a(xa(e),function(t){return ba.call(e,t)}))}:ya;function Ca(e,t){return zt(e,Sa(e),t)}e(Ca,`copySymbols`);var wa=Ca,Ta=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ti(t,Sa(e)),e=Fi(e);return t}:ya;function Ea(e,t){return zt(e,Ta(e),t)}e(Ea,`copySymbolsIn`);var Da=Ea;function Oa(e,t,n){var r=t(e);return S(e)?r:Ti(r,n(e))}e(Oa,`baseGetAllKeys`);var ka=Oa;function Aa(e){return ka(e,I,Sa)}e(Aa,`getAllKeys`);var ja=Aa;function Ma(e){return ka(e,L,Ta)}e(Ma,`getAllKeysIn`);var Na=Ma,Pa=D(r,`DataView`),Fa=D(r,`Promise`),G=D(r,`Set`),Ia=`[object Map]`,La=`[object Object]`,Ra=`[object Promise]`,za=`[object Set]`,Ba=`[object WeakMap]`,Va=`[object DataView]`,Ha=E(Pa),Ua=E(V),Wa=E(Fa),Ga=E(G),Ka=E($e),K=_;(Pa&&K(new Pa(new ArrayBuffer(1)))!=Va||V&&K(new V)!=Ia||Fa&&K(Fa.resolve())!=Ra||G&&K(new G)!=za||$e&&K(new $e)!=Ba)&&(K=e(function(e){var t=_(e),n=t==La?e.constructor:void 0,r=n?E(n):``;if(r)switch(r){case Ha:return Va;case Ua:return Ia;case Wa:return Ra;case Ga:return za;case Ka:return Ba}return t},`getTag`));var q=K,qa=Object.prototype.hasOwnProperty;function Ja(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&qa.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}e(Ja,`initCloneArray`);var Ya=Ja,Xa=r.Uint8Array;function Za(e){var t=new e.constructor(e.byteLength);return new Xa(t).set(new Xa(e)),t}e(Za,`cloneArrayBuffer`);var Qa=Za;function $a(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e($a,`cloneDataView`);var eo=$a,to=/\w*$/;function no(e){var t=new e.constructor(e.source,to.exec(e));return t.lastIndex=e.lastIndex,t}e(no,`cloneRegExp`);var ro=no,io=i?i.prototype:void 0,ao=io?io.valueOf:void 0;function oo(e){return ao?Object(ao.call(e)):{}}e(oo,`cloneSymbol`);var so=oo;function co(e,t){var n=t?Qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e(co,`cloneTypedArray`);var lo=co,uo=`[object Boolean]`,fo=`[object Date]`,po=`[object Map]`,mo=`[object Number]`,ho=`[object RegExp]`,go=`[object Set]`,_o=`[object String]`,vo=`[object Symbol]`,yo=`[object ArrayBuffer]`,bo=`[object DataView]`,xo=`[object Float32Array]`,So=`[object Float64Array]`,Co=`[object Int8Array]`,wo=`[object Int16Array]`,To=`[object Int32Array]`,Eo=`[object Uint8Array]`,Do=`[object Uint8ClampedArray]`,Oo=`[object Uint16Array]`,ko=`[object Uint32Array]`;function Ao(e,t,n){var r=e.constructor;switch(t){case yo:return Qa(e);case uo:case fo:return new r(+e);case bo:return eo(e,n);case xo:case So:case Co:case wo:case To:case Eo:case Do:case Oo:case ko:return lo(e,n);case po:return new r;case mo:case _o:return new r(e);case ho:return ro(e);case go:return new r;case vo:return so(e)}}e(Ao,`initCloneByTag`);var jo=Ao;function Mo(e){return typeof e.constructor==`function`&&!tn(e)?tt(Fi(e)):{}}e(Mo,`initCloneObject`);var No=Mo,Po=`[object Map]`;function Fo(e){return y(e)&&q(e)==Po}e(Fo,`baseIsMap`);var Io=Fo,Lo=F&&F.isMap,Ro=Lo?Un(Lo):Io,zo=`[object Set]`;function Bo(e){return y(e)&&q(e)==zo}e(Bo,`baseIsSet`);var Vo=Bo,Ho=F&&F.isSet,Uo=Ho?Un(Ho):Vo,Wo=1,Go=2,Ko=4,qo=`[object Arguments]`,Jo=`[object Array]`,Yo=`[object Boolean]`,Xo=`[object Date]`,Zo=`[object Error]`,Qo=`[object Function]`,$o=`[object GeneratorFunction]`,es=`[object Map]`,ts=`[object Number]`,ns=`[object Object]`,rs=`[object RegExp]`,is=`[object Set]`,as=`[object String]`,os=`[object Symbol]`,ss=`[object WeakMap]`,cs=`[object ArrayBuffer]`,ls=`[object DataView]`,us=`[object Float32Array]`,ds=`[object Float64Array]`,fs=`[object Int8Array]`,ps=`[object Int16Array]`,ms=`[object Int32Array]`,hs=`[object Uint8Array]`,gs=`[object Uint8ClampedArray]`,_s=`[object Uint16Array]`,vs=`[object Uint32Array]`,J={};J[qo]=J[Jo]=J[cs]=J[ls]=J[Yo]=J[Xo]=J[us]=J[ds]=J[fs]=J[ps]=J[ms]=J[es]=J[ts]=J[ns]=J[rs]=J[is]=J[as]=J[os]=J[hs]=J[gs]=J[_s]=J[vs]=!0,J[Zo]=J[Qo]=J[ss]=!1;function ys(e,t,n,r,i,a){var o,s=t&Wo,c=t&Go,l=t&Ko;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!C(e))return e;var u=S(e);if(u){if(o=Ya(e),!s)return st(e,o)}else{var d=q(e),f=d==Qo||d==$o;if(M(e))return ha(e,s);if(d==ns||d==qo||f&&!i){if(o=c||f?{}:No(e),!s)return c?Da(e,la(o,e)):wa(e,sa(o,e))}else{if(!J[d])return i?e:{};o=jo(e,d,s)}}a||=new W;var p=a.get(e);if(p)return p;a.set(e,o),Uo(e)?e.forEach(function(r){o.add(ys(r,t,n,r,e,a))}):Ro(e)&&e.forEach(function(r,i){o.set(i,ys(r,t,n,i,e,a))});var m=u?void 0:(l?c?Na:ja:c?L:I)(e);return _t(m||e,function(r,i){m&&(i=r,r=e[i]),Lt(o,i,ys(r,t,n,i,e,a))}),o}e(ys,`baseClone`);var bs=ys,xs=1,Ss=4;function Cs(e){return bs(e,xs|Ss)}e(Cs,`cloneDeep`);var ws=Cs,Ts=`__lodash_hash_undefined__`;function Es(e){return this.__data__.set(e,Ts),this}e(Es,`setCacheAdd`);var Ds=Es;function Os(e){return this.__data__.has(e)}e(Os,`setCacheHas`);var ks=Os;function As(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ri;++t<n;)this.add(e[t])}e(As,`SetCache`),As.prototype.add=As.prototype.push=Ds,As.prototype.has=ks;var js=As;function Ms(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e(Ms,`arraySome`);var Ns=Ms;function Ps(e,t){return e.has(t)}e(Ps,`cacheHas`);var Fs=Ps,Is=1,Ls=2;function Rs(e,t,n,r,i,a){var o=n&Is,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Ls?new js:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Ns(t,function(e,t){if(!Fs(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}e(Rs,`equalArrays`);var zs=Rs;function Bs(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e(Bs,`mapToArray`);var Vs=Bs;function Hs(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e(Hs,`setToArray`);var Us=Hs,Ws=1,Gs=2,Ks=`[object Boolean]`,qs=`[object Date]`,Js=`[object Error]`,Ys=`[object Map]`,Xs=`[object Number]`,Zs=`[object RegExp]`,Qs=`[object Set]`,$s=`[object String]`,ec=`[object Symbol]`,tc=`[object ArrayBuffer]`,nc=`[object DataView]`,rc=i?i.prototype:void 0,ic=rc?rc.valueOf:void 0;function ac(e,t,n,r,i,a,o){switch(n){case nc:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tc:return!(e.byteLength!=t.byteLength||!a(new Xa(e),new Xa(t)));case Ks:case qs:case Xs:return k(+e,+t);case Js:return e.name==t.name&&e.message==t.message;case Zs:case $s:return e==t+``;case Ys:var s=Vs;case Qs:var c=r&Ws;if(s||=Us,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Gs,o.set(e,t);var u=zs(s(e),s(t),r,i,a,o);return o.delete(e),u;case ec:if(ic)return ic.call(e)==ic.call(t)}return!1}e(ac,`equalByTag`);var oc=ac,sc=1,cc=Object.prototype.hasOwnProperty;function lc(e,t,n,r,i,a){var o=n&sc,s=ja(e),c=s.length;if(c!=ja(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:cc.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var ee=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(ee===void 0?h===g||i(h,g,n,r,a):ee)){p=!1;break}m||=u==`constructor`}if(p&&!m){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(p=!1)}return a.delete(e),a.delete(t),p}e(lc,`equalObjects`);var uc=lc,dc=1,fc=`[object Arguments]`,pc=`[object Array]`,mc=`[object Object]`,hc=Object.prototype.hasOwnProperty;function gc(e,t,n,r,i,a){var o=S(e),s=S(t),c=o?pc:q(e),l=s?pc:q(t);c=c==fc?mc:c,l=l==fc?mc:l;var u=c==mc,d=l==mc,f=c==l;if(f&&M(e)){if(!M(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new W,o||qn(e)?zs(e,t,n,r,i,a):oc(e,t,c,n,r,i,a);if(!(n&dc)){var p=u&&hc.call(e,`__wrapped__`),m=d&&hc.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new W,i(h,g,n,r,a)}}return f?(a||=new W,uc(e,t,n,r,i,a)):!1}e(gc,`baseIsEqualDeep`);var _c=gc;function vc(e,t,n,r,i){return e===t?!0:e==null||t==null||!y(e)&&!y(t)?e!==e&&t!==t:_c(e,t,n,r,vc,i)}e(vc,`baseIsEqual`);var yc=vc,bc=1,xc=2;function Sc(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new W;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yc(u,l,bc|xc,r,d):f))return!1}}return!0}e(Sc,`baseIsMatch`);var Cc=Sc;function wc(e){return e===e&&!C(e)}e(wc,`isStrictComparable`);var Tc=wc;function Ec(e){for(var t=I(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Tc(i)]}return t}e(Ec,`getMatchData`);var Dc=Ec;function Oc(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}e(Oc,`matchesStrictComparable`);var kc=Oc;function Ac(e){var t=Dc(e);return t.length==1&&t[0][2]?kc(t[0][0],t[0][1]):function(n){return n===e||Cc(n,e,t)}}e(Ac,`baseMatches`);var jc=Ac;function Mc(e,t){return e!=null&&t in Object(e)}e(Mc,`baseHasIn`);var Nc=Mc;function Pc(e,t,n){t=gi(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=yi(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&qt(i)&&jt(o,i)&&(S(e)||j(e)))}e(Pc,`hasPath`);var Fc=Pc;function Ic(e,t){return e!=null&&Fc(e,t,Nc)}e(Ic,`hasIn`);var Lc=Ic,Rc=1,zc=2;function Bc(e,t){return pr(e)&&Tc(t)?kc(yi(e),t):function(n){var r=Ci(n,e);return r===void 0&&r===t?Lc(n,e):yc(t,r,Rc|zc)}}e(Bc,`baseMatchesProperty`);var Vc=Bc;function Hc(e){return function(t){return t?.[e]}}e(Hc,`baseProperty`);var Uc=Hc;function Wc(e){return function(t){return xi(t,e)}}e(Wc,`basePropertyDeep`);var Gc=Wc;function Kc(e){return pr(e)?Uc(yi(e)):Gc(e)}e(Kc,`property`);var qc=Kc;function Jc(e){return typeof e==`function`?e:e==null?w:typeof e==`object`?S(e)?Vc(e[0],e[1]):jc(e):qc(e)}e(Jc,`baseIteratee`);var Y=Jc;function Yc(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}e(Yc,`createBaseFor`);var Xc=Yc();function Zc(e,t){return e&&Xc(e,t,I)}e(Zc,`baseForOwn`);var Qc=Zc;function $c(e,t){return function(n,r){if(n==null)return n;if(!A(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}e($c,`createBaseEach`);var el=$c(Qc),tl=e(function(){return r.Date.now()},`now`),nl=Object.prototype,rl=nl.hasOwnProperty,il=Wt(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Xt(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=L(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||k(u,nl[l])&&!rl.call(e,l))&&(e[l]=a[l])}return e});function al(e,t,n){(n!==void 0&&!k(e[t],n)||n===void 0&&!(t in e))&&Nt(e,t,n)}e(al,`assignMergeValue`);var ol=al;function sl(e){return y(e)&&A(e)}e(sl,`isArrayLikeObject`);var cl=sl;function ll(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}e(ll,`safeGet`);var ul=ll;function dl(e){return zt(e,L(e))}e(dl,`toPlainObject`);var fl=dl;function pl(e,t,n,r,i,a,o){var s=ul(e,n),c=ul(t,n),l=o.get(c);if(l){ol(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=S(c),p=!f&&M(c),m=!f&&!p&&qn(c);u=c,f||p||m?S(s)?u=s:cl(s)?u=st(s):p?(d=!1,u=ha(c,!0)):m?(d=!1,u=lo(c,!0)):u=[]:Ui(c)||j(c)?(u=s,j(s)?u=fl(s):(!C(s)||T(s))&&(u=No(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),ol(e,n,u)}e(pl,`baseMergeDeep`);var ml=pl;function hl(e,t,n,r,i){e!==t&&Xc(t,function(a,o){if(i||=new W,C(a))ml(e,t,o,n,hl,r,i);else{var s=r?r(ul(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),ol(e,o,s)}},L)}e(hl,`baseMerge`);var gl=hl;function _l(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}e(_l,`arrayIncludesWith`);var vl=_l;function yl(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}e(yl,`last`);var bl=yl;function xl(e){return typeof e==`function`?e:w}e(xl,`castFunction`);var Sl=xl;function Cl(e,t){return(S(e)?_t:el)(e,Sl(t))}e(Cl,`forEach`);var X=Cl;function wl(e,t){var n=[];return el(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}e(wl,`baseFilter`);var Tl=wl;function El(e,t){return(S(e)?_a:Tl)(e,Y(t,3))}e(El,`filter`);var Dl=El;function Ol(t){return function(n,r,i){var a=Object(n);if(!A(n)){var o=Y(r,3);n=I(n),r=e(function(e){return o(a[e],e,a)},`predicate`)}var s=t(n,r,i);return s>-1?a[o?n[s]:s]:void 0}}e(Ol,`createFind`);var kl=Ol,Al=Math.max;function jl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Oe(n);return i<0&&(i=Al(r+i,0)),yt(e,Y(t,3),i)}e(jl,`findIndex`);var Ml=kl(jl);function Nl(e,t){var n=-1,r=A(e)?Array(e.length):[];return el(e,function(e,i,a){r[++n]=t(e,i,a)}),r}e(Nl,`baseMap`);var Pl=Nl;function Fl(e,t){return(S(e)?x:Pl)(e,Y(t,3))}e(Fl,`map`);var Il=Fl;function Ll(e,t){return e==null?e:Xc(e,Sl(t),L)}e(Ll,`forIn`);var Rl=Ll;function zl(e,t){return e&&Qc(e,Sl(t))}e(zl,`forOwn`);var Bl=zl;function Vl(e,t){return e>t}e(Vl,`baseGt`);var Hl=Vl,Ul=Object.prototype.hasOwnProperty;function Wl(e,t){return e!=null&&Ul.call(e,t)}e(Wl,`baseHas`);var Gl=Wl;function Kl(e,t){return e!=null&&Fc(e,t,Gl)}e(Kl,`has`);var ql=Kl,Jl=`[object String]`;function Yl(e){return typeof e==`string`||!S(e)&&y(e)&&_(e)==Jl}e(Yl,`isString`);var Xl=Yl;function Zl(e,t){return x(t,function(t){return e[t]})}e(Zl,`baseValues`);var Ql=Zl;function $l(e){return e==null?[]:Ql(e,I(e))}e($l,`values`);var eu=$l,tu=`[object Map]`,nu=`[object Set]`,ru=Object.prototype.hasOwnProperty;function iu(e){if(e==null)return!0;if(A(e)&&(S(e)||typeof e==`string`||typeof e.splice==`function`||M(e)||qn(e)||j(e)))return!e.length;var t=q(e);if(t==tu||t==nu)return!e.size;if(tn(e))return!nr(e).length;for(var n in e)if(ru.call(e,n))return!1;return!0}e(iu,`isEmpty`);var au=iu;function ou(e){return e===void 0}e(ou,`isUndefined`);var Z=ou;function su(e,t){return e<t}e(su,`baseLt`);var cu=su;function lu(e,t){var n={};return t=Y(t,3),Qc(e,function(e,r,i){Nt(n,r,t(e,r,i))}),n}e(lu,`mapValues`);var uu=lu;function du(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!b(o):n(o,s)))var s=o,c=a}return c}e(du,`baseExtremum`);var fu=du;function pu(e){return e&&e.length?fu(e,w,Hl):void 0}e(pu,`max`);var mu=pu,hu=Qt(function(e,t,n){gl(e,t,n)});function gu(e){return e&&e.length?fu(e,w,cu):void 0}e(gu,`min`);var _u=gu;function vu(e,t){return e&&e.length?fu(e,Y(t,2),cu):void 0}e(vu,`minBy`);var yu=vu;function bu(e,t,n,r){if(!C(e))return e;t=gi(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=yi(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=C(u)?u:jt(t[i+1])?[]:{})}Lt(s,c,l),s=s[c]}return e}e(bu,`baseSet`);var xu=bu;function Su(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=xi(e,o);n(s,o)&&xu(a,gi(o,e),s)}return a}e(Su,`basePickBy`);var Cu=Su;function wu(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e(wu,`baseSortBy`);var Tu=wu;function Eu(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=b(e),o=t!==void 0,s=t===null,c=t===t,l=b(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}e(Eu,`compareAscending`);var Du=Eu;function Ou(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Du(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}e(Ou,`compareMultiple`);var ku=Ou;function Au(e,t,n){t=t.length?x(t,function(e){return S(e)?function(t){return xi(t,e.length===1?e[0]:e)}:e}):[w];var r=-1;return t=x(t,Un(Y)),Tu(Pl(e,function(e,n,i){return{criteria:x(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ku(e,t,n)})}e(Au,`baseOrderBy`);var ju=Au,Mu=Uc(`length`),Nu=`\\ud800-\\udfff`,Pu=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Fu=`\\ufe0e\\ufe0f`,Iu=`[`+Nu+`]`,Lu=`[`+Pu+`]`,Ru=`\\ud83c[\\udffb-\\udfff]`,zu=`(?:`+Lu+`|`+Ru+`)`,Bu=`[^`+Nu+`]`,Vu=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Hu=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Uu=`\\u200d`,Wu=zu+`?`,Gu=`[`+Fu+`]?`,Ku=`(?:`+Uu+`(?:`+[Bu,Vu,Hu].join(`|`)+`)`+Gu+Wu+`)*`,qu=Gu+Wu+Ku,Ju=`(?:`+[Bu+Lu+`?`,Lu,Vu,Hu,Iu].join(`|`)+`)`,Yu=RegExp(Ru+`(?=`+Ru+`)|`+Ju+qu,`g`);function Xu(e){for(var t=Yu.lastIndex=0;Yu.test(e);)++t;return t}e(Xu,`unicodeSize`);var Zu=Xu;function Qu(e){return Ki(e)?Zu(e):Mu(e)}e(Qu,`stringSize`);var $u=Qu;function ed(e,t){return Cu(e,t,function(t,n){return Lc(e,n)})}e(ed,`basePick`);var td=ed,nd=Pi(function(e,t){return e==null?{}:td(e,t)}),rd=Math.ceil,id=Math.max;function ad(e,t,n,r){for(var i=-1,a=id(rd((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}e(ad,`baseRange`);var od=ad;function sd(e){return function(t,n,r){return r&&typeof r!=`number`&&Xt(t,n,r)&&(n=r=void 0),t=Ee(t),n===void 0?(n=t,t=0):n=Ee(n),r=r===void 0?t<n?1:-1:Ee(r),od(t,n,r,e)}}e(sd,`createRange`);var cd=sd();function ld(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}e(ld,`baseReduce`);var ud=ld;function dd(e,t,n){var r=S(e)?Ji:ud,i=arguments.length<3;return r(e,Y(t,4),n,i,el)}e(dd,`reduce`);var fd=dd,pd=`[object Map]`,md=`[object Set]`;function hd(e){if(e==null)return 0;if(A(e))return Xl(e)?$u(e):e.length;var t=q(e);return t==pd||t==md?e.size:nr(e).length}e(hd,`size`);var gd=hd,_d=Wt(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xt(e,t[0],t[1])?t=[]:n>2&&Xt(t[0],t[1],t[2])&&(t=[t[0]]),ju(e,Ai(t,1),[])}),vd=G&&1/Us(new G([,-0]))[1]==1/0?function(e){return new G(e)}:at,yd=200;function bd(e,t,n){var r=-1,i=Dt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=vl;else if(a>=yd){var l=t?null:vd(e);if(l)return Us(l);o=!1,i=Fs,c=new js}else c=t?[]:s;r:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue r;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}e(bd,`baseUniq`);var xd=bd,Sd=Wt(function(e){return xd(Ai(e,1,cl,!0))}),Cd=0;function wd(e){var t=++Cd;return mi(e)+t}e(wd,`uniqueId`);var Td=wd;function Ed(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}e(Ed,`baseZipObject`);var Dd=Ed;function Od(e,t){return Dd(e||[],t||[],Lt)}e(Od,`zipObject`);var kd=Od,Ad=`\0`,Q=`\0`,jd=``,Md=class{static{e(this,`Graph`)}constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=O(void 0),this._defaultEdgeLabelFn=O(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Q]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return T(e)||(e=O(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return I(this._nodes)}sources(){var e=this;return Dl(this.nodes(),function(t){return au(e._in[t])})}sinks(){var e=this;return Dl(this.nodes(),function(t){return au(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return X(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Q,this._children[e]={},this._children[Q][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var n=e(e=>this.removeEdge(this._edgeObjs[e]),`removeEdge`);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],X(this.children(t),e=>{this.setParent(e)}),delete this._children[t]),X(I(this._in[t]),n),delete this._in[t],delete this._preds[t],X(I(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Z(t))t=Q;else{t+=``;for(var n=t;!Z(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==Q)return t}}children(e){if(Z(e)&&(e=Q),this._isCompound){var t=this._children[e];if(t)return I(t)}else{if(e===Q)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return I(t)}successors(e){var t=this._sucs[e];if(t)return I(t)}neighbors(e){var t=this.predecessors(e);if(t)return Sd(t,this.successors(e))}isLeaf(e){var t;return t=this.isDirected()?this.successors(e):this.neighbors(e),t.length===0}filterNodes(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;X(this._nodes,function(e,r){t(r)&&n.setNode(r,e)}),X(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,r.edge(e))});var i={};function a(e){var t=r.parent(e);return t===void 0||n.hasNode(t)?(i[e]=t,t):t in i?i[t]:a(t)}return e(a,`findParent`),this._isCompound&&X(n.nodes(),function(e){n.setParent(e,a(e))}),n}setDefaultEdgeLabel(e){return T(e)||(e=O(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return eu(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return fd(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Z(n)||(n=``+n);var o=$(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Z(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=Fd(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,Nd(this._preds[t],e),Nd(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?Id(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?Id(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?Id(this._isDirected,arguments[0]):$(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],Pd(this._preds[t],e),Pd(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=eu(n);return t?Dl(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=eu(n);return t?Dl(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};Md.prototype._nodeCount=0,Md.prototype._edgeCount=0;function Nd(e,t){e[t]?e[t]++:e[t]=1}e(Nd,`incrementOrInitEntry`);function Pd(e,t){--e[t]||delete e[t]}e(Pd,`decrementOrRemoveEntry`);function $(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+jd+a+jd+(Z(r)?Ad:r)}e($,`edgeArgsToId`);function Fd(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}e(Fd,`edgeArgsToObj`);function Id(e,t){return $(e,t.v,t.w,t.name)}e(Id,`edgeObjToId`);
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */
15
+ export{S as C,Z as D,ql as E,Td as O,nd as S,Rl as T,O as _,Dl as a,Bl as b,eu as c,fd as d,Il as f,bl as g,mu as h,yu as i,uu as k,il as l,kd as m,_u as n,Md as o,hu as p,ws as r,tl as s,X as t,Mi as u,Ml as v,gd as w,cd as x,_d as y};
@@ -0,0 +1,10 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{D as t,L as n,O as r,Q as i,V as a,_ as o,a as s,b as c,g as l,h as u,o as d,q as f,r as p,x as m,z as h}from"./chunk-H7VHZCWX-CwFRFlEn.js";import{B as g,i as _,l as v}from"./chunk-QJSWEUOL-kvKBktmc.js";import{t as y}from"./chunk-5IMINLNL-Cl3N81sR.js";import{n as b,t as x}from"./chunk-ZNLK7HRR-B-wIfXTw.js";import{i as S,o as C}from"./chunk-VY2OSTJR-BYk2nUI_.js";import{n as ee,t as w}from"./chunk-DZP67EKU-9RpG5Rdc.js";import{r as T}from"./chunk-Z6V44ARX-CWGOZvke.js";import{i as E}from"./chunk-VRZKL3EH-BzaZ6KlD.js";var D=e((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),O={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},k={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function A(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=j(e),t=j(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}e(A,`calculateDeltaAndAngle`);var j=e(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),te=e(t=>({x:e(function(e,n,r){let i=0,a=j(r[0]).x<j(r[r.length-1]).x?`left`:`right`;if(n===0&&Object.hasOwn(O,t.arrowTypeStart)){let{angle:e,deltaX:n}=A(r[0],r[1]);i=O[t.arrowTypeStart]*Math.cos(e)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(O,t.arrowTypeEnd)){let{angle:e,deltaX:n}=A(r[r.length-1],r[r.length-2]);i=O[t.arrowTypeEnd]*Math.cos(e)*(n>=0?1:-1)}let o=Math.abs(j(e).x-j(r[r.length-1]).x),s=Math.abs(j(e).y-j(r[r.length-1]).y),c=Math.abs(j(e).x-j(r[0]).x),l=Math.abs(j(e).y-j(r[0]).y),u=O[t.arrowTypeStart],d=O[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let e=d+1-o;e*=a===`right`?-1:1,i-=e}if(c<u&&c>0&&l<u){let e=u+1-c;e*=a===`right`?-1:1,i+=e}return j(e).x+i},`x`),y:e(function(e,n,r){let i=0,a=j(r[0]).y<j(r[r.length-1]).y?`down`:`up`;if(n===0&&Object.hasOwn(O,t.arrowTypeStart)){let{angle:e,deltaY:n}=A(r[0],r[1]);i=O[t.arrowTypeStart]*Math.abs(Math.sin(e))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(O,t.arrowTypeEnd)){let{angle:e,deltaY:n}=A(r[r.length-1],r[r.length-2]);i=O[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(n>=0?1:-1)}let o=Math.abs(j(e).y-j(r[r.length-1]).y),s=Math.abs(j(e).x-j(r[r.length-1]).x),c=Math.abs(j(e).y-j(r[0]).y),l=Math.abs(j(e).x-j(r[0]).x),u=O[t.arrowTypeStart],d=O[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let e=d+1-o;e*=a===`up`?-1:1,i-=e}if(c<u&&c>0&&l<u){let e=u+1-c;e*=a===`up`?-1:1,i+=e}return j(e).y+i},`y`)}),`getLineFunctionsWithOffset`),ne=e((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&P(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&P(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),M={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},N=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],P=e((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let c=M[n],l=c&&N.includes(c.type);if(!c){f.warn(`Unknown arrow type: ${n}`);return}let u=`${i}_${a}-${c.type}${t===`start`?`Start`:`End`}${o&&l?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${u}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(u);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),c.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${u})`)},`addEdgeMarker`),re=e(e=>typeof e==`string`?e:g()?.flowchart?.curve,`resolveEdgeCurveType`),F=new Map,I=new Map,L=e(()=>{F.clear(),I.clear()},`clear`),R=e(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),z=e(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),B=e(async(e,t)=>{let n=g(),r=_(n),{labelStyles:i}=x(t);t.labelStyle=i;let o=e.insert(`g`).attr(`class`,`edgeLabel`),s=o.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),c=t.labelType===`markdown`,l=await ee(e,t.label,{style:z(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:c,width:void 0},n);s.node().appendChild(l),f.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=a(l);u=await w.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=a(l).select(`text`).node();await w.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}s.attr(`transform`,D(d,r)),F.set(t.id,o),t.width=u.width,t.height=u.height;let p;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),o=await T(i,t.startLabelLeft,z(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=a(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,D(s,r)),I.get(t.id)||I.set(t.id,{}),I.get(t.id).startLeft=n,V(p,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),o=await T(i,t.startLabelRight,z(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=a(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,D(s,r)),I.get(t.id)||I.set(t.id,{}),I.get(t.id).startRight=n,V(p,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),o=await T(n,t.endLabelLeft,z(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=a(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,D(s,r)),I.get(t.id)||I.set(t.id,{}),I.get(t.id).endLeft=n,V(p,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),o=await T(n,t.endLabelRight,z(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=a(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}i.attr(`transform`,D(s,r)),I.get(t.id)||I.set(t.id,{}),I.get(t.id).endRight=n,V(p,t.endLabelRight)}return l},`insertEdgeLabel`);function V(e,t){_(g())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(V,`setTerminalWidth`);var H=e((e,t)=>{f.debug(`Moving label abc88 `,e.id,e.label,F.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=g(),{subGraphTitleTotalMargin:i}=E(r);if(e.label){let r=F.get(e.id),a=e.x,o=e.y;if(n){let r=C.calcLabelPosition(n);f.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=I.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=I.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=I.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=I.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),ie=e((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),U=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),W=e((e,t,n)=>{f.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(n)}
4
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.x<t.x?o-a:o+a,c=e.height/2,l=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*c){let e=n.y<t.y?t.y-c-i:i-c-t.y;s=u*e/l;let r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+l-e:n.y-l+e};return s===0&&(r.x=t.x,r.y=t.y),u===0&&(r.x=t.x),l===0&&(r.y=t.y),f.debug(`abc89 top/bottom calc, Q ${l}, q ${e}, R ${u}, r ${s}`,r),r}{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=l*s/u,i=n.x<t.x?n.x+u-s:n.x-u+s,a=n.y<t.y?n.y+e:n.y-e;return f.debug(`sides calc abc89, Q ${l}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:a}),s===0&&(i=t.x,a=t.y),u===0&&(i=t.x),l===0&&(a=t.y),{x:i,y:a}}},`intersection`),G=e((e,t)=>{f.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(f.info(`abc88 checking point`,e,t),!U(t,e)&&!i){let a=W(t,r,e);f.debug(`abc88 inside`,e,r,a),f.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?f.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else f.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),f.debug(`returning points`,n),n},`cutPathAtIntersect`);function K(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}e(K,`extractCornerPoints`);var q=e(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ae=e(function(e){let{cornerPointPositions:t}=K(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],o=q(t,a,5),s=q(i,a,5),c=s.x-o.x,l=s.y-o.y;n.push(o);let u=Math.sqrt(2)*2,d={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(f.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),d=a.x===o.x?{x:c<0?o.x-5+u:o.x+5-u,y:l<0?o.y-u:o.y+u}:{x:c<0?o.x-u:o.x+u,y:l<0?o.y-5+u:o.y+5-u}):f.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(d,s)}else n.push(e[r]);return n},`fixCorners`),oe=e((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),J=e(function(e,_,v,x,ee,w,T,E=!1){if(!T)throw Error(`insertEdge: missing diagramId for edge "${_.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:D,layout:O}=g(),A=_.points,j=!1,M=ee;var N=w;let P=[];for(let e in _.cssCompiledStyles)b(e)||P.push(_.cssCompiledStyles[e]);if(O===`swimlane`){if(N.intersect&&M.intersect&&Array.isArray(A)&&A.length>=2){if(A.length===2)A=[M.intersect(A[0]),N.intersect(A[1])];else{let e=A.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(A[A.length-1].x-n.x)<r&&Math.abs(A[A.length-1].y-n.y)<r,a=M.intersect(t),o=i?n:N.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,c=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],l=s?[]:[o];A=[...c,...e,...l]}}A=ie(_,A)}else N.intersect&&M.intersect&&!E&&(A=A.slice(1,_.points.length-1),A.unshift(M.intersect(A[0])),A.push(N.intersect(A[A.length-1])));let F=btoa(JSON.stringify(A));_.toCluster&&(f.info(`to cluster abc88`,v.get(_.toCluster)),A=G(_.points,v.get(_.toCluster).node),j=!0),_.fromCluster&&(f.debug(`from cluster abc88`,v.get(_.fromCluster),JSON.stringify(A,null,2)),A=G(A.reverse(),v.get(_.fromCluster).node).reverse(),j=!0);let I=A.filter(e=>!Number.isNaN(e.y)),L=re(_.curve);L!==`rounded`&&(I=ae(I));let R=r;switch(L){case`linear`:R=r;break;case`basis`:R=p;break;case`cardinal`:R=d;break;case`bumpX`:R=o;break;case`bumpY`:R=i;break;case`catmullRom`:R=t;break;case`monotoneX`:R=n;break;case`monotoneY`:R=c;break;case`natural`:R=h;break;case`step`:R=m;break;case`stepAfter`:R=u;break;case`stepBefore`:R=l;break;case`rounded`:R=r;break;default:R=p}let{x:z,y:B}=te(_),V=s().x(z).y(B).curve(R),H;switch(_.thickness){case`normal`:H=`edge-thickness-normal`;break;case`thick`:H=`edge-thickness-thick`;break;case`invisible`:H=`edge-thickness-invisible`;break;default:H=`edge-thickness-normal`}switch(_.pattern){case`solid`:H+=` edge-pattern-solid`;break;case`dotted`:H+=` edge-pattern-dotted`;break;case`dashed`:H+=` edge-pattern-dashed`;break;default:H+=` edge-pattern-solid`}let U,W=L===`rounded`?Y(Z(I,_),5):V(I),K=Array.isArray(_.style)?_.style:[_.style],q=K.find(e=>e?.startsWith(`stroke:`)),J=``;_.animate&&(J=`edge-animation-fast`),_.animation&&(J=`edge-animation-`+_.animation);let X=!1;if(_.look===`handDrawn`){let t=y.svg(e);Object.assign([],I);let n=t.path(W,{roughness:.3,seed:D});H+=` transition`,U=a(n).select(`path`).attr(`id`,`${T}-${_.id}`).attr(`class`,` `+H+(_.classes?` `+_.classes:``)+(J?` `+J:``)).attr(`style`,K?K.reduce((e,t)=>e+`;`+t,``):``);let r=U.attr(`d`);U.attr(`d`,r),e.node().appendChild(U.node())}else{let t=P.join(`;`),n=K?K.reduce((e,t)=>e+t+`;`,``):``,r=(t?t+`;`+n+`;`:n)+`;`+(K?K.reduce((e,t)=>e+`;`+t,``):``);U=e.append(`path`).attr(`d`,W).attr(`id`,`${T}-${_.id}`).attr(`class`,` `+H+(_.classes?` `+_.classes:``)+(J?` `+J:``)).attr(`style`,r),q=r.match(/stroke:([^;]+)/)?.[1],X=_.animate===!0||!!_.animation||t.includes(`animation`);let i=U.node(),a=typeof i.getTotalLength==`function`?i.getTotalLength():0,o=k[_.arrowTypeStart]||0,s=k[_.arrowTypeEnd]||0;if(_.look===`neo`&&!X){let e=`stroke-dasharray: ${_.pattern===`dotted`||_.pattern===`dashed`?oe(a,o,s):`0 ${o} ${a-o-s} ${s}`}; stroke-dashoffset: 0;`;U.attr(`style`,e+U.attr(`style`))}}U.attr(`data-edge`,!0),U.attr(`data-et`,`edge`),U.attr(`data-id`,_.id),U.attr(`data-points`,F),U.attr(`data-look`,S(_.look)),_.showPoints&&I.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Q=``;(g().flowchart.arrowMarkerAbsolute||g().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),f.info(`arrowTypeStart`,_.arrowTypeStart),f.info(`arrowTypeEnd`,_.arrowTypeEnd);let se=!X&&_?.look===`neo`;ne(U,_,Q,T,x,se,q);let ce=Math.floor(A.length/2),le=A[ce];C.isLabelCoordinateInPath(le,U.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=A),$.originalPath=_.points,$},`insertEdge`);function Y(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}e(Y,`generateRoundedPath`);function X(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}e(X,`calculateDeltaAndAngle`);function Z(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&O[t.arrowTypeStart]){let r=O[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=X(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&O[t.arrowTypeEnd]){let i=O[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=X(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}e(Z,`applyMarkerOffsetsToPoints`);var Q=e((e,t,n,r)=>{t.forEach(t=>{Ee[t](e,n,r)})},`insertMarkers`),se=e((e,t,n)=>{f.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),ce=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),le=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),$=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),ue=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),de=e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),fe=e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),pe=e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),me=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),he=e((e,t,n)=>{let{themeVariables:r}=v(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),ge=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),_e=e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),ve=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),ye=e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),be=e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),xe=e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),Se=e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),Ce=e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),we=e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},`requirement_arrow`),Te=e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),Ee={extension:se,composition:ce,aggregation:le,dependency:$,lollipop:ue,point:de,circle:fe,cross:pe,barb:me,barbNeo:he,only_one:ge,zero_or_one:_e,one_or_more:ve,zero_or_more:ye,only_one_neo:be,zero_or_one_neo:xe,one_or_more_neo:Se,zero_or_more_neo:Ce,requirement_arrow:we,requirement_contains:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:Te,requirement_contains_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},De=Q;export{De as a,H as c,F as i,O as l,L as n,I as o,B as r,J as s,R as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";function t(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}e(t,`t`);function n(e,t){return e[0]===t[0]&&e[1]===t[1]}e(n,`e`);function r(e,r,i,a=1){let o=i,s=Math.max(r,.1),c=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,l=[0,0];if(o)for(let e of c)t(e,l,o);let u=(function(e,t,r){let i=[];for(let t of e){let e=[...t];n(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&i.push(e)}let a=[];t=Math.max(t,.1);let o=[];for(let e of i)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return a;let s=[],c=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach((e=>{s.push({s:c,edge:e})}))}if(s=s.filter((e=>!(e.edge.ymax<=c))),s.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(r!==1||l%t==0)&&s.length>1)for(let e=0;e<s.length;e+=2){let t=e+1;if(t>=s.length)break;let n=s[e].edge,r=s[t].edge;a.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=r,s.forEach((e=>{e.edge.x=e.edge.x+r*e.edge.islope})),l++}return a})(c,s,a);if(o){for(let e of c)t(e,l,-o);(function(e,n,r){let i=[];e.forEach((e=>i.push(...e))),t(i,n,r)})(u,l,-o)}return u}e(r,`s`);function i(e,t){let n=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(a=i),r(e,i,n,a||1)}e(i,`n`);var a=class{static{e(this,`o`)}constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function o(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}e(o,`a`);var s=class extends a{static{e(this,`h`)}fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=i(e,Object.assign({},t,{hachureGap:n})),a=Math.PI/180*t.hachureAngle,s=[],c=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(let[e,t]of r)o([e,t])&&s.push([[e[0]-c,e[1]+l],[...t]],[[e[0]+c,e[1]-l],[...t]]);return{type:`fillSketch`,ops:this.renderLines(s,t)}}},c=class extends a{static{e(this,`r`)}fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},l=class{static{e(this,`i`)}constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let s of e){let e=o(s),c=e/r,l=Math.ceil(c)-1,u=e-l*r,d=(s[0][0]+s[1][0])/2-r/4,f=Math.min(s[0][1],s[1][1]);for(let e=0;e<l;e++){let o=f+u+e*r,s=d-a+2*Math.random()*a,c=o-a+2*Math.random()*a,l=this.helper.ellipse(s,c,i,i,t);n.push(...l.ops)}}return{type:`fillSketch`,ops:n}}},u=class{static{e(this,`c`)}constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t);return{type:`fillSketch`,ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{let a=o(e),s=Math.floor(a/(n+r)),c=(a+r-s*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e<s;e++){let a=e*(n+r),o=a+n,s=[l[0]+a*Math.cos(d)+c*Math.cos(d),l[1]+a*Math.sin(d)+c*Math.sin(d)],u=[l[0]+o*Math.cos(d)+c*Math.cos(d),l[1]+o*Math.sin(d)+c*Math.sin(d)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],t))}})),i}},d=class{static{e(this,`l`)}constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,a=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:`fillSketch`,ops:this.zigzagLines(a,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach((e=>{let i=o(e),a=Math.round(i/(2*t)),s=e[0],c=e[1];s[0]>c[0]&&(s=e[1],c=e[0]);let l=Math.atan((c[1]-s[1])/(c[0]-s[0]));for(let e=0;e<a;e++){let i=2*e*t,a=2*(e+1)*t,o=Math.sqrt(2*t**2),c=[s[0]+i*Math.cos(l),s[1]+i*Math.sin(l)],u=[s[0]+a*Math.cos(l),s[1]+a*Math.sin(l)],d=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}},f={},p=class{static{e(this,`p`)}constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},m=0,h=1,g=2,_={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function v(e,t){return e.type===t}e(v,`k`);function y(e){let t=[],n=(function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:m,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:h,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:g,text:``},t})(e),r=`BOD`,i=0,a=n[i];for(;!v(a,g);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return y(`M0,0`+e);i++,o=_[a.text],r=a.text}else v(a,h)?o=_[r]:(i++,o=_[a.text],r=a.text);if(!(i+o<n.length))throw Error(`Path data ended short`);for(let e=i;e<i+o;e++){let t=n[e];if(!v(t,h))throw Error(`Param not a number: `+r+`,`+t.text);s[s.length]=+t.text}if(typeof _[r]!=`number`)throw Error(`Bad segment: `+r);{let e={key:r,data:s};t.push(e),i+=o,a=n[i],r===`M`&&(r=`L`),r===`m`&&(r=`l`)}}return t}e(y,`b`);function b(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:o,data:s}of e)switch(o){case`M`:a.push({key:`M`,data:[...s]}),[t,n]=s,[r,i]=s;break;case`m`:t+=s[0],n+=s[1],a.push({key:`M`,data:[t,n]}),r=t,i=n;break;case`L`:a.push({key:`L`,data:[...s]}),[t,n]=s;break;case`l`:t+=s[0],n+=s[1],a.push({key:`L`,data:[t,n]});break;case`C`:a.push({key:`C`,data:[...s]}),t=s[4],n=s[5];break;case`c`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}e(b,`y`);function x(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(C(r,i,c,l,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}e(x,`m`);function S(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}e(S,`w`);function C(e,t,n,r,i,a,o,s,c,l){let u=(d=o,Math.PI*d/180);var d;let f=[],p=0,m=0,h=0,g=0;if(l)[p,m,h,g]=l;else{[e,t]=S(e,t,-u),[n,r]=S(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i*=d,a*=d);let f=i*i,_=a*a,v=f*_-f*l*l-_*o*o,y=f*l*l+_*o*o,b=(s===c?-1:1)*Math.sqrt(Math.abs(v/y));h=b*i*l/a+(e+n)/2,g=b*-a*o/i+(t+r)/2,p=Math.asin(parseFloat(((t-g)/a).toFixed(9))),m=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<h&&(p=Math.PI-p),n<h&&(m=Math.PI-m),p<0&&(p=2*Math.PI+p),m<0&&(m=2*Math.PI+m),c&&p>m&&(p-=2*Math.PI),!c&&m>p&&(m-=2*Math.PI)}let _=m-p;if(Math.abs(_)>120*Math.PI/180){let e=m,t=n,s=r;m=c&&m>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=C(n=h+i*Math.cos(m),r=g+a*Math.sin(m),t,s,i,a,o,0,c,[m,e,h,g])}_=m-p;let v=Math.cos(p),y=Math.sin(p),b=Math.cos(m),x=Math.sin(m),w=Math.tan(_/4),T=4/3*i*w,E=4/3*a*w,D=[e,t],O=[e+T*y,t-E*v],k=[n+T*x,r-E*b],A=[n,r];if(O[0]=2*D[0]-O[0],O[1]=2*D[1]-O[1],l)return[O,k,A].concat(f);{f=[O,k,A].concat(f);let e=[];for(let t=0;t<f.length;t+=3){let n=S(f[t][0],f[t][1],u),r=S(f[t+1][0],f[t+1][1],u),i=S(f[t+2][0],f[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}e(C,`x`);var w={randOffset:e(function(e,t){return L(e,t)},`randOffset`),randOffsetWithRange:e(function(e,t,n){return I(e,t,n)},`randOffsetWithRange`),ellipse:e(function(e,t,n,r,i){return A(e,t,i,k(n,r,i)).opset},`ellipse`),doubleLineOps:e(function(e,t,n,r,i){return R(e,t,n,r,i,!0)},`doubleLineOps`)};function T(e,t,n,r,i){return{type:`path`,ops:R(e,t,n,r,i)}}e(T,`v`);function E(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...R(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...R(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:`path`,ops:i}}return r===2?T(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:`path`,ops:[]}}e(E,`S`);function D(e,t,n,r,i){return(function(e,t){return E(e,!0,t)})([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}e(D,`O`);function O(e,t){if(e.length){let n=typeof e[0][0]==`number`?[e]:e,r=B(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:B(n[0],1.5*(1+.22*t.roughness),P(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=B(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:B(a,1.5*(1+.22*t.roughness),P(t));for(let t of e)t.op!==`move`&&r.push(t);for(let e of n)e.op!==`move`&&i.push(e)}}return{type:`path`,ops:r.concat(i)}}return{type:`path`,ops:[]}}e(O,`L`);function k(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt(((e/2)**2+(t/2)**2)/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i,o=Math.abs(e/2),s=Math.abs(t/2),c=1-n.curveFitting;return o+=L(o*c,n),s+=L(s*c,n),{increment:a,rx:o,ry:s}}e(k,`T`);function A(e,t,n,r){let[i,a]=H(r.increment,e,t,r.rx,r.ry,1,r.increment*I(.1,I(.4,1,n),n),n),o=V(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){let[i]=H(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=V(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:`path`,ops:o}}}e(A,`D`);function j(e,t,n,r,i,a,o,s,c){let l=e,u=t,d=Math.abs(n/2),f=Math.abs(r/2);d+=L(.01*d,c),f+=L(.01*f,c);let p=i,m=a;for(;p<0;)p+=2*Math.PI,m+=2*Math.PI;m-p>2*Math.PI&&(p=0,m=2*Math.PI);let h=2*Math.PI/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=U(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=U(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...R(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...R(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}e(j,`A`);function ee(e,t){let n=x(b(y(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...R(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...te(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...R(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}e(ee,`_`);function M(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+L(e,t),r[0][1]+L(e,t)]});for(let a=1;a<i;a++)n.push({op:`lineTo`,data:[r[a][0]+L(e,t),r[a][1]+L(e,t)]})}}return{type:`fillPath`,ops:n}}e(M,`I`);function N(e,t){return(function(e,t){let n=e.fillStyle||`hachure`;if(!f[n])switch(n){case`zigzag`:f[n]||(f[n]=new s(t));break;case`cross-hatch`:f[n]||(f[n]=new c(t));break;case`dots`:f[n]||(f[n]=new l(t));break;case`dashed`:f[n]||(f[n]=new u(t));break;case`zigzag-line`:f[n]||(f[n]=new d(t));break;default:n=`hachure`,f[n]||(f[n]=new a(t))}return f[n]})(t,w).fillPolygons(e,t)}e(N,`C`);function P(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}e(P,`z`);function F(e){return e.randomizer||=new p(e.seed||0),e.randomizer.next()}e(F,`W`);function I(e,t,n,r=1){return n.roughness*r*(F(n)*(t-e)+e)}e(I,`E`);function L(e,t,n=1){return I(-e,e,t,n)}e(L,`G`);function R(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=z(e,t,n,r,i,!0,!1);if(o)return s;let c=z(e,t,n,r,i,!0,!0);return s.concat(c)}e(R,`$`);function z(t,n,r,i,a,o,s){let c=(t-r)**2+(n-i)**2,l=Math.sqrt(c),u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>c&&(d=l/10);let f=d/2,p=.2+.2*F(a),m=a.bowing*a.maxRandomnessOffset*(i-n)/200,h=a.bowing*a.maxRandomnessOffset*(t-r)/200;m=L(m,a,u),h=L(h,a,u);let g=[],_=e(()=>L(f,a,u),`M`),v=e(()=>L(d,a,u),`k`),y=a.preserveVertices;return o&&(s?g.push({op:`move`,data:[t+(y?0:_()),n+(y?0:_())]}):g.push({op:`move`,data:[t+(y?0:L(d,a,u)),n+(y?0:L(d,a,u))]})),s?g.push({op:`bcurveTo`,data:[m+t+(r-t)*p+_(),h+n+(i-n)*p+_(),m+t+2*(r-t)*p+_(),h+n+2*(i-n)*p+_(),r+(y?0:_()),i+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+t+(r-t)*p+v(),h+n+(i-n)*p+v(),m+t+2*(r-t)*p+v(),h+n+2*(i-n)*p+v(),r+(y?0:v()),i+(y?0:v())]}),g}e(z,`R`);function B(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]),r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]),i===e.length-1&&r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]);return V(r,null,n)}e(B,`j`);function V(e,t,n){let r=e.length,i=[];if(r>3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:`bcurveTo`,data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&t.length===2){let e=n.maxRandomnessOffset;i.push({op:`lineTo`,data:[t[0]+L(e,n),t[1]+L(e,n)]})}}else r===3?(i.push({op:`move`,data:[e[1][0],e[1][1]]}),i.push({op:`bcurveTo`,data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...z(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}e(V,`q`);function H(e,t,n,r,i,a,o,s){let c=[],l=[];if(s.roughness===0){e/=4,l.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];c.push(e),l.push(e)}l.push([t+r*Math.cos(0),n+i*Math.sin(0)]),l.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=L(.5,s)-Math.PI/2;l.push([L(a,s)+t+.9*r*Math.cos(u-e),L(a,s)+n+.9*i*Math.sin(u-e)]);let d=2*Math.PI+u-.01;for(let o=u;o<d;o+=e){let e=[L(a,s)+t+r*Math.cos(o),L(a,s)+n+i*Math.sin(o)];c.push(e),l.push(e)}l.push([L(a,s)+t+r*Math.cos(u+2*Math.PI+.5*o),L(a,s)+n+i*Math.sin(u+2*Math.PI+.5*o)]),l.push([L(a,s)+t+.98*r*Math.cos(u+o),L(a,s)+n+.98*i*Math.sin(u+o)]),l.push([L(a,s)+t+.9*r*Math.cos(u+.5*o),L(a,s)+n+.9*i*Math.sin(u+.5*o)])}return[l,c]}e(H,`F`);function U(e,t,n,r,i,a,o,s,c){let l=a+L(.1,c),u=[];u.push([L(s,c)+t+.9*r*Math.cos(l-e),L(s,c)+n+.9*i*Math.sin(l-e)]);for(let a=l;a<=o;a+=e)u.push([L(s,c)+t+r*Math.cos(a),L(s,c)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),V(u,null,c)}e(U,`V`);function te(e,t,n,r,i,a,o,s){let c=[],l=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],d=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<d;p++)p===0?c.push({op:`move`,data:[o[0],o[1]]}):c.push({op:`move`,data:[o[0]+(f?0:L(l[0],s)),o[1]+(f?0:L(l[0],s))]}),u=f?[i,a]:[i+L(l[p],s),a+L(l[p],s)],c.push({op:`bcurveTo`,data:[e+L(l[p],s),t+L(l[p],s),n+L(l[p],s),r+L(l[p],s),u[0],u[1]]});return c}e(te,`Z`);function W(e){return[...e]}e(W,`Q`);function G(e,t=0){let n=e.length;if(n<3)throw Error(`A curve must have at least three points.`);let r=[];if(n===3)r.push(W(e[0]),W(e[1]),W(e[2]),W(e[2]));else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push(W(n[0]));for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}e(G,`H`);function K(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}e(K,`N`);function ne(e,t,n){let r=K(t,n);if(r===0)return K(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),K(e,q(t,n,i))}e(ne,`B`);function q(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}e(q,`J`);function J(e,t,n,r){let i=r||[];if((function(e,t){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3],o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let c=3*i[0]-2*a[0]-n[0];c*=c;let l=3*i[1]-2*a[1]-n[1];return l*=l,o<c&&(o=c),s<l&&(s=l),o+s})(e,t)<n){let n=e[t+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(K(a,o))>1&&i.push(n)):i.push(n),i.push(e[t+3])}else{let r=e[t+0],a=e[t+1],o=e[t+2],s=e[t+3],c=q(r,a,.5),l=q(a,o,.5),u=q(o,s,.5),d=q(c,l,.5),f=q(l,u,.5),p=q(d,f,.5);J([r,c,d,p],0,n,i),J([p,f,u,s],0,n,i)}var a,o;return i}e(J,`K`);function re(e,t){return Y(e,0,e.length,t)}e(re,`U`);function Y(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=ne(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(Y(e,t,l+1,r,a),Y(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}e(Y,`X`);function X(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)J(e,3*n,t,r);return n&&n>0?Y(r,0,r.length,n):r}e(X,`Y`);var Z=`none`,Q=class{static{e(this,`et`)}constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[T(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=D(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(M([i],a)):o.push(N([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=k(n,r,a),c=A(e,t,a,s);if(a.fill){if(a.fillStyle===`solid`){let n=A(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(N([c.estimatedPoints],a))}return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[E(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=j(e,t,n,r,i,a,o,!0,c);if(o&&c.fill){if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=j(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push((function(e,t,n,r,i,a,o){let s=e,c=t,l=Math.abs(n/2),u=Math.abs(r/2);l+=L(.01*l,o),u+=L(.01*u,o);let d=i,f=a;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),N([m],o)})(e,t,n,r,i,a,c))}return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=O(e,n);if(n.fill&&n.fill!==Z){if(n.fillStyle===`solid`){let t=O(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...X(G([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...X(G(r),10,(1+n.roughness)/2))}t.length&&r.push(N([t],n))}}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=E(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(M([e],n)):r.push(N([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(t,n){let r=this._o(n),i=[];if(!t)return this._d(`path`,i,r);t=(t||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let a=r.fill&&r.fill!==`transparent`&&r.fill!==Z,o=r.stroke!==Z,s=!!(r.simplification&&r.simplification<1),c=(function(t,n,r){let i=x(b(y(t))),a=[],o=[],s=[0,0],c=[],l=e(()=>{c.length>=4&&o.push(...X(c,n)),c=[]},`i`),u=e(()=>{l(),o.length&&(a.push(o),o=[])},`c`);for(let{key:e,data:t}of i)switch(e){case`M`:u(),s=[t[0],t[1]],o.push(s);break;case`L`:l(),o.push([t[0],t[1]]);break;case`C`:if(!c.length){let e=o.length?o[o.length-1]:s;c.push([e[0],e[1]])}c.push([t[0],t[1]]),c.push([t[2],t[3]]),c.push([t[4],t[5]]);break;case`Z`:l(),o.push([s[0],s[1]])}if(u(),!r)return a;let d=[];for(let e of a){let t=re(e,r);t.length&&d.push(t)}return d})(t,1,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=ee(t,r);if(a){if(r.fillStyle===`solid`){if(c.length===1){let e=ee(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:`fillPath`,ops:this._mergedShape(e.ops)})}else i.push(M(c,r))}else i.push(N(c,r))}return o&&(s?c.forEach((e=>{i.push(E(e,!1,r))})):i.push(l)),this._d(`path`,i,r)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},ie=class{static{e(this,`st`)}constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c),c}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},$=`http://www.w3.org/2000/svg`,ae=class{static{e(this,`ot`)}constructor(e,t){this.svg=e,this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS($,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS($,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},oe={canvas:e((e,t)=>new ie(e,t),`canvas`),svg:e((e,t)=>new ae(e,t),`svg`),generator:e(e=>new Q(e),`generator`),newSeed:e(()=>Q.newSeed(),`newSeed`)};export{oe as t};
@@ -0,0 +1,3 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{y as t}from"./chunk-ZS6VBONO-D-IFTJgn.js";var n={},r={info:t(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-3TX3OFWW-DykwOJ0Z.js`);n.info=e().Info.parser.LangiumParser},`info`),packet:t(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-MKII6P3Y-XqJQX7OO.js`);n.packet=e().Packet.parser.LangiumParser},`packet`),pie:t(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-6B4OPMJ5-DpoRuAye.js`);n.pie=e().Pie.parser.LangiumParser},`pie`),treeView:t(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-ZRJGANNQ-u1bD1sZ1.js`);n.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:t(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-M7G3SWCO-BJAoKIRD.js`);n.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:t(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-JH2HKYUO-B76vihW5.js`);n.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:t(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-WKSWQHFS-Ruta89_N.js`);n.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:t(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-UPTR3XUL-BcwE6tO1.js`);n.radar=e().Radar.parser.LangiumParser},`radar`),railroad:t(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-MEFUPFMS-B2Kwx3Uk.js`);n.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:t(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-G5QEX2L6-AhpzdU_3.js`);n.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:t(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-R5YG2S5D-uBY3fYzG.js`);n.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:t(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-H5I2ZRY2-CrsmP7-8.js`);n.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:t(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-K64VN5AS-DrIaTBlj.js`);n.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:t(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-D67OWCCH-Br9hyuFK.js`);n.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:t(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-6OCTWOGG-6jDAiaRu.js`);n.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)};async function i(e,t){let i=r[e];if(!i)throw Error(`Unknown diagram type: ${e}`);n[e]||await i();let o=n[e].parse(t);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new a(o);return o.value}e(i,`parse`),t(i,`parse`);var a=class extends Error{static{e(this,`MermaidParseError`)}constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
2
+ `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
3
+ `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{t(this,`MermaidParseError`)}};export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{C as t,a as n,c as r,i,n as a,o,r as s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends i{static{e(this,`PieTokenBuilder`)}static{l(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},d=class extends n{static{e(this,`PieValueConverter`)}static{l(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},f={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new d,`ValueConverter`)}};function p(e=r){let n=s(o(e),a),i=s(c({shared:n}),t,f);return n.ServiceRegistry.register(i),{shared:n,Pie:i}}e(p,`createPieServices`),l(p,`createPieServices`);export{p as n,f as t};
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>t(e,`name`,{value:n,configurable:!0}),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{u as i,s as n,c as r,o as t};