@dooc-dev/dooc 0.0.5 → 0.0.6
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.
- package/dist/cli.js +128 -67
- package/dist/code-worker.global.js +152 -0
- package/dist/code.global.js +101 -101
- package/dist/compiler/bundle-urls.js +2 -0
- package/dist/compiler/check.js +2 -0
- package/dist/compiler/compile.js +13 -3
- package/dist/compiler/dxf.d.ts +1 -0
- package/dist/compiler/dxf.js +81 -0
- package/dist/compiler/export.js +22 -15
- package/dist/compiler/figures.js +39 -10
- package/dist/compiler/files.js +2 -0
- package/dist/compiler/ignored-files.d.ts +2 -0
- package/dist/compiler/ignored-files.js +30 -0
- package/dist/compiler/ops.js +1 -1
- package/dist/compiler/subformat-schema.d.ts +14 -0
- package/dist/compiler/subformat-schema.js +92 -0
- package/dist/compiler/subformats.d.ts +5 -7
- package/dist/compiler/subformats.js +115 -75
- package/dist/core/code-file.js +7 -5
- package/dist/core/code-grammars.d.ts +5 -0
- package/dist/core/code-grammars.js +34 -0
- package/dist/core/content-metadata.d.ts +2 -1
- package/dist/core/content-metadata.js +7 -2
- package/dist/core/content-types.d.ts +1 -1
- package/dist/core/escape-html.d.ts +1 -0
- package/dist/core/escape-html.js +1 -0
- package/dist/core/figure-frame.js +1 -1
- package/dist/core/file-embed.js +7 -3
- package/dist/core/html.d.ts +4 -1
- package/dist/core/html.js +8 -7
- package/dist/core/language.js +5 -2
- package/dist/core/markdown.js +3 -1
- package/dist/core/previewers.d.ts +8 -0
- package/dist/core/previewers.js +2 -0
- package/dist/core/schema-fields.d.ts +13 -0
- package/dist/core/schema-fields.js +175 -0
- package/dist/core/schema-graph-mount.js +26 -3
- package/dist/core/schema-refs.d.ts +8 -0
- package/dist/core/schema-refs.js +82 -0
- package/dist/core/toc-ui.js +1 -1
- package/dist/edit.global.js +266 -285
- package/dist/flow.global.js +3 -3
- package/dist/graph/abnfDiagram-S7VZAUFO-ASBULSKE.js +1 -0
- package/dist/graph/architecture-WOLXFQ4H-V57EDXXY.js +1 -0
- package/dist/graph/architectureDiagram-YGSQEFNW-GIMP347N.js +36 -0
- package/dist/graph/blockDiagram-APKKGZFW-RDL2T4JW.js +140 -0
- package/dist/graph/bpmnIcons-APHXDYXF-TWOSQNUQ.js +1 -0
- package/dist/graph/c4Diagram-KJ2TOQU5-75LIUC4F.js +38 -0
- package/dist/graph/chunk-26TUJSYJ.js +1 -0
- package/dist/graph/chunk-3LU66YMI.js +1 -0
- package/dist/graph/chunk-3RNHDNP5.js +1 -0
- package/dist/graph/chunk-3Y2PDVDE.js +1 -0
- package/dist/graph/chunk-3YJHMOOA.js +3 -0
- package/dist/graph/chunk-4KILFWYV.js +339 -0
- package/dist/graph/chunk-4QDE4SUK.js +1 -0
- package/dist/graph/chunk-5OO6DATX.js +1 -0
- package/dist/graph/chunk-5UUEAHTN.js +1 -0
- package/dist/graph/chunk-6T55RVVR.js +1 -0
- package/dist/graph/chunk-ARAJTKOH.js +2 -0
- package/dist/graph/chunk-BBD5CEDC.js +72 -0
- package/dist/graph/chunk-BVXT562I.js +1 -0
- package/dist/graph/chunk-BZAMCJ6B.js +32 -0
- package/dist/graph/chunk-C6J4A356.js +15 -0
- package/dist/graph/chunk-EG5UVNOC.js +213 -0
- package/dist/graph/chunk-GF4TOPUK.js +1 -0
- package/dist/graph/chunk-GYT4IYBZ.js +1 -0
- package/dist/graph/chunk-HJG2HUYJ.js +88 -0
- package/dist/graph/chunk-HOPPTA6H.js +62 -0
- package/dist/graph/chunk-I3DMZIHV.js +1 -0
- package/dist/graph/chunk-IC23EEF6.js +1 -0
- package/dist/graph/chunk-ISO77HML.js +1 -0
- package/dist/graph/chunk-JD7ZBJD2.js +1 -0
- package/dist/graph/chunk-JRSH5GNS.js +1 -0
- package/dist/graph/chunk-JSHWCPFJ.js +1 -0
- package/dist/graph/chunk-K2KLZU7M.js +10 -0
- package/dist/graph/chunk-K4I76XBX.js +14 -0
- package/dist/graph/chunk-KT4VPQD5.js +135 -0
- package/dist/graph/chunk-KU6GTEMS.js +1 -0
- package/dist/graph/chunk-LT6LXKCR.js +136 -0
- package/dist/graph/chunk-MPR575IN.js +1 -0
- package/dist/graph/chunk-N3OHKGRZ.js +1 -0
- package/dist/graph/chunk-O656ZI37.js +1 -0
- package/dist/graph/chunk-OFZLK5G4.js +1 -0
- package/dist/graph/chunk-PDH25ALM.js +2 -0
- package/dist/graph/chunk-PW2RGZ3O.js +1 -0
- package/dist/graph/chunk-QCJUF4YA.js +1 -0
- package/dist/graph/chunk-QEEA3KYY.js +2 -0
- package/dist/graph/chunk-QYAXYFNI.js +1 -0
- package/dist/graph/chunk-QYTM6GY3.js +1 -0
- package/dist/graph/chunk-R63JUMUK.js +1 -0
- package/dist/graph/chunk-SCEY3ZPT.js +1 -0
- package/dist/graph/chunk-VM2H7G2R.js +1 -0
- package/dist/graph/chunk-XQS73SBQ.js +1 -0
- package/dist/graph/chunk-YCRLJT2S.js +1 -0
- package/dist/graph/chunk-Z4FIZ7CR.js +1 -0
- package/dist/graph/chunk-ZMCB7VP2.js +1 -0
- package/dist/graph/chunk-ZSZXN4BT.js +2 -0
- package/dist/graph/classDiagram-v2-L25IHNXF-JL7LVDZH.js +217 -0
- package/dist/graph/cose-bilkent-JH36ORCC-PNM3EYPB.js +1 -0
- package/dist/graph/cynefin-EF2NZ3EQ-PSXP3DXL.js +1 -0
- package/dist/graph/cynefinDiagram-L36ESFBY-QVY54CXO.js +62 -0
- package/dist/graph/dagre-SPEB5RXH-HPGQXBZJ.js +4 -0
- package/dist/graph/diagram-3B7GL73J-DWH5WS2P.js +200 -0
- package/dist/graph/diagram-DNEMPZML-TEGH2U5I.js +24 -0
- package/dist/graph/diagram-L3MUGCDN-X4MREUWR.js +41 -0
- package/dist/graph/diagram-LA4NIPWU-NXT746HG.js +24 -0
- package/dist/graph/diagram-MHCOC4E2-JGHXSAGS.js +3 -0
- package/dist/graph/diagram-XPFHEONP-ZHZPBLT4.js +30 -0
- package/dist/graph/ebnfDiagram-UZSYDL2S-SMF6KJ43.js +1 -0
- package/dist/graph/elk-XV6XMXQE-AZ4HLCWI.js +27 -0
- package/dist/graph/erDiagram-EYBAPDEH-B3JNJ357.js +99 -0
- package/dist/graph/eventmodeling-K75KTNOO-WG6DDYMC.js +1 -0
- package/dist/graph/flowDiagram-MALGAFMO-2R7EYAQI.js +1 -0
- package/dist/graph/ganttDiagram-23REXITY-YXBYWFOJ.js +292 -0
- package/dist/graph/gitGraph-VSP46ZUC-VBFWJBBT.js +1 -0
- package/dist/graph/gitGraphDiagram-STJD7YCW-4FZDCFGV.js +106 -0
- package/dist/graph/info-OHQRW6UA-ALVDUVYV.js +1 -0
- package/dist/graph/infoDiagram-KBXO4MBG-7EHX2GQG.js +2 -0
- package/dist/graph/ishikawaDiagram-M35NCXHK-FRZD2PWQ.js +70 -0
- package/dist/graph/journeyDiagram-OPLOXDXO-7Z66JCPR.js +139 -0
- package/dist/graph/kanban-definition-BZKZHSQY-NN5AIKTE.js +89 -0
- package/dist/graph/katex-DXDNVO6V.js +257 -0
- package/dist/graph/mindmap-definition-I2QAS2VK-HDPCABN2.js +98 -0
- package/dist/graph/packet-JDAUHWVQ-5MQIBWAH.js +1 -0
- package/dist/graph/pegDiagram-FD4XPPHP-H2BFNCKT.js +1 -0
- package/dist/graph/pie-XZMESJXO-T5VRKHVT.js +1 -0
- package/dist/graph/pieDiagram-J4AKIIQI-O3NJSVD3.js +39 -0
- package/dist/graph/quadrantDiagram-XTYBLID2-TMTZJI3P.js +7 -0
- package/dist/graph/radar-ABXABTNO-C6FXIBYW.js +1 -0
- package/dist/graph/railroad-I3PHUGI6-ZSO5JXB3.js +1 -0
- package/dist/graph/railroad-abnf-LNEFI6M7-CI4GQRHB.js +1 -0
- package/dist/graph/railroad-ebnf-DWYD2UWJ-MUENNCGK.js +1 -0
- package/dist/graph/railroad-peg-JR7BVNR7-N3X5GGIX.js +1 -0
- package/dist/graph/railroadDiagram-MRQ6NCDL-JHWS23UO.js +1 -0
- package/dist/graph/requirementDiagram-Y7LWUY3S-7DVLPO4B.js +84 -0
- package/dist/graph/sankeyDiagram-WGJFYUXA-Z5L4R5TR.js +40 -0
- package/dist/graph/schema-graph-global.js +639 -0
- package/dist/graph/sequenceDiagram-5NDRBG5M-RCTU25NT.js +169 -0
- package/dist/graph/sizeCapture-INFHLROL-RROY32P5.js +1 -0
- package/dist/graph/stateDiagram-v2-FJ4FJNEA-BXUSPWDK.js +291 -0
- package/dist/graph/swimlanes-UMQ2AFYF-LDD74Q2S.js +1 -0
- package/dist/graph/swimlanesDiagram-OMPLPG4O-ZYULLJSU.js +8 -0
- package/dist/graph/timeline-definition-SEUHKTQE-ZQSMIVAS.js +120 -0
- package/dist/graph/treeView-D4JQ5SDB-42S7U73N.js +1 -0
- package/dist/graph/treemap-SAJKECNS-RUBYQ7XF.js +1 -0
- package/dist/graph/usecaseDiagram-AFA6YXN4-57RDRYXF.js +370 -0
- package/dist/graph/vennDiagram-NNMJR3RB-5C3LVAV6.js +34 -0
- package/dist/graph/wardley-7MLQ67FV-NV5HXTTC.js +1 -0
- package/dist/graph/wardleyDiagram-S7YFUSEH-6D5BKXHM.js +78 -0
- package/dist/graph/xychartDiagram-GGNKY7IX-6ET3ZM67.js +7 -0
- package/dist/mcp.js +5 -4
- package/dist/plugins.global.js +71 -104
- package/dist/subformats.global.js +6 -112
- package/dist/ui.global.js +75 -108
- package/dist/viewer/build.d.ts +2 -0
- package/dist/viewer/build.js +22 -8
- package/dist/viewer/code-file.js +7 -2
- package/dist/viewer/figure-preview.d.ts +4 -0
- package/dist/viewer/figure-preview.js +54 -0
- package/dist/viewer/hmr.js +4 -3
- package/dist/viewer/lazy-preview.d.ts +2 -0
- package/dist/viewer/lazy-preview.js +43 -0
- package/dist/viewer/locales/eng.json +26 -3
- package/dist/viewer/locales/jpn.json +26 -3
- package/dist/viewer/locales/zho.json +26 -3
- package/dist/viewer/plugin-blocks.js +1 -1
- package/dist/viewer/plugins.js +1 -1
- package/dist/viewer/resource-library.d.ts +1 -1
- package/dist/viewer/resource-library.js +5 -4
- package/dist/viewer/serve.d.ts +2 -1
- package/dist/viewer/serve.js +148 -41
- package/dist/viewer/textfile.d.ts +2 -0
- package/dist/viewer/textfile.js +20 -5
- package/package.json +5 -3
- package/dist/viewer/lazy-graph.d.ts +0 -2
- package/dist/viewer/lazy-graph.js +0 -30
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{a as Pe}from"./chunk-C6J4A356.js";import{a as xe}from"./chunk-ZMCB7VP2.js";import{C as Re}from"./chunk-K4I76XBX.js";import{j as Oe,l as ze,m as Be,n as Ae}from"./chunk-K2KLZU7M.js";import{b as ae,e as Ce}from"./chunk-JD7ZBJD2.js";import"./chunk-HOPPTA6H.js";import"./chunk-4QDE4SUK.js";import"./chunk-QCJUF4YA.js";import"./chunk-BBD5CEDC.js";import"./chunk-ISO77HML.js";import{b as De,c as Ie,d as Ne,f as Te,g as ve}from"./chunk-KU6GTEMS.js";import{a as we,f as _e}from"./chunk-QEEA3KYY.js";import"./chunk-OFZLK5G4.js";import{$ as ie,C as R,O as me,P as ye,U as Ee,a as ke,b as Le}from"./chunk-KT4VPQD5.js";import{b as m,d as Y}from"./chunk-JRSH5GNS.js";import{a as c}from"./chunk-GYT4IYBZ.js";import"./chunk-3RNHDNP5.js";var oe=(function(){var e=c(function(C,g,s,n){for(s=s||{},n=C.length;n--;s[C[n]]=g);return s},"o"),o=[1,15],l=[1,7],a=[1,13],h=[1,14],p=[1,19],t=[1,16],u=[1,17],x=[1,18],k=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],E=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],w={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(function(g,s,n,d,y,r,K){var i=r.length-1;switch(y){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",r[i-1]),d.setHierarchy(r[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",r[i]),typeof r[i].length=="number"?this.$=r[i]:this.$=[r[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",r[i-1]),this.$=[r[i-1]].concat(r[i]);break;case 14:d.getLogger().debug("Rule: link: ",r[i],g),this.$={edgeTypeStr:r[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",r[i-3],r[i-1],r[i]),this.$={edgeTypeStr:r[i],label:r[i-1]};break;case 18:let F=parseInt(r[i]),V=d.generateId();this.$={id:V,type:"space",label:"",width:F,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",r[i-2],r[i-1],r[i]," typestr: ",r[i-1].edgeTypeStr);let j=d.edgeStrToEdgeData(r[i-1].edgeTypeStr),Z=d.edgeStrToEdgeStartData(r[i-1].edgeTypeStr),U=d.edgeStrToThickness(r[i-1].edgeTypeStr),Q=d.edgeStrToPattern(r[i-1].edgeTypeStr);this.$=[{id:r[i-2].id,label:r[i-2].label,type:r[i-2].type,directions:r[i-2].directions},{id:r[i-2].id+"-"+r[i].id,start:r[i-2].id,end:r[i].id,label:r[i-1].label,type:"edge",thickness:U,pattern:Q,directions:r[i].directions,arrowTypeEnd:j,arrowTypeStart:Z},{id:r[i].id,label:r[i].label,type:d.typeStr2Type(r[i].typeStr),directions:r[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[i-1],r[i]),this.$={id:r[i-1].id,label:r[i-1].label,type:d.typeStr2Type(r[i-1].typeStr),directions:r[i-1].directions,widthInColumns:parseInt(r[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",r[i]),this.$={id:r[i].id,label:r[i].label,type:d.typeStr2Type(r[i].typeStr),directions:r[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",r[i]),this.$={type:"column-setting",columns:r[i]==="auto"?-1:parseInt(r[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",r[i-2],r[i-1]);let D=d.generateId();this.$={...r[i-2],type:"composite",children:r[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",r[i-2],r[i-1],r[i]);let B=d.generateId();this.$={id:B,type:"composite",label:"",children:r[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",r[i]),this.$={id:r[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[i-1],r[i]),this.$={id:r[i-1],label:r[i].label,typeStr:r[i].typeStr,directions:r[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",r[i]),this.$=[r[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",r[i-1],r[i]),this.$=[r[i-1]].concat(r[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",r[i-2],r[i-1],r[i]),this.$={typeStr:r[i-2]+r[i],label:r[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[i-3],r[i-2]," #3:",r[i-1],r[i]),this.$={typeStr:r[i-3]+r[i],label:r[i-2],directions:r[i-1]};break;case 35:case 36:this.$={type:"classDef",id:r[i-1].trim(),css:r[i].trim()};break;case 37:this.$={type:"applyClass",id:r[i-1].trim(),styleClass:r[i].trim()};break;case 38:this.$={type:"applyStyles",id:r[i-1].trim(),stylesStr:r[i].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{8:[1,20]},e(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:a,29:h,31:p,39:t,43:u,46:x}),e(b,[2,16],{14:22,15:f,16:L}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(E,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(k,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(E,[2,24]),{10:o,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(E,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(g,s){if(s.recoverable)this.trace(g);else{var n=new Error(g);throw n.hash=s,n}},"parseError"),parse:c(function(g){var s=this,n=[0],d=[],y=[null],r=[],K=this.table,i="",F=0,V=0,j=0,Z=2,U=1,Q=r.slice.call(arguments,1),D=Object.create(this.lexer),B={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(B.yy[$]=this.yy[$]);D.setInput(g,B.yy),B.yy.lexer=D,B.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ee=D.yylloc;r.push(ee);var rt=D.options&&D.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(T){n.length=n.length-2*T,y.length=y.length-T,r.length=r.length-T}c(st,"popStack");function be(){var T;return T=d.pop()||D.lex()||U,typeof T!="number"&&(T instanceof Array&&(d=T,T=d.pop()),T=s.symbols_[T]||T),T}c(be,"lex");for(var N,te,P,O,Ot,re,M={},H,A,Se,X;;){if(P=n[n.length-1],this.defaultActions[P]?O=this.defaultActions[P]:((N===null||typeof N>"u")&&(N=be()),O=K[P]&&K[P][N]),typeof O>"u"||!O.length||!O[0]){var se="";X=[];for(H in K[P])this.terminals_[H]&&H>Z&&X.push("'"+this.terminals_[H]+"'");D.showPosition?se="Parse error on line "+(F+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[N]||N)+"'":se="Parse error on line "+(F+1)+": Unexpected "+(N==U?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(se,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:ee,expected:X})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+N);switch(O[0]){case 1:n.push(N),y.push(D.yytext),r.push(D.yylloc),n.push(O[1]),N=null,te?(N=te,te=null):(V=D.yyleng,i=D.yytext,F=D.yylineno,ee=D.yylloc,j>0&&j--);break;case 2:if(A=this.productions_[O[1]][1],M.$=y[y.length-A],M._$={first_line:r[r.length-(A||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(A||1)].first_column,last_column:r[r.length-1].last_column},rt&&(M._$.range=[r[r.length-(A||1)].range[0],r[r.length-1].range[1]]),re=this.performAction.apply(M,[i,V,F,B.yy,O[1],y,r].concat(Q)),typeof re<"u")return re;A&&(n=n.slice(0,-1*A*2),y=y.slice(0,-1*A),r=r.slice(0,-1*A)),n.push(this.productions_[O[1]][0]),y.push(M.$),r.push(M._$),Se=K[n[n.length-2]][n[n.length-1]],n.push(Se);break;case 3:return!0}}return!0},"parse")},I=(function(){var C={EOF:1,parseError:c(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:c(function(g,s){return this.yy=s||this.yy||{},this._input=g,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var s=g.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:c(function(g){var s=g.length,n=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var y=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===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(g){this.unput(this.match.slice(g))},"less"),pastInput:c(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var g=this.pastInput(),s=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},"showPosition"),test_match:c(function(g,s){var n,d,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),d=g[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(g[0].length),this.matched+=g[0],n=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in y)this[r]=y[r];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,s,n,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),r=0;r<y.length;r++)if(n=this._input.match(this.rules[y[r]]),n&&(!s||n[0].length>s[0].length)){if(s=n,d=r,this.options.backtrack_lexer){if(g=this.test_match(n,y[r]),g!==!1)return g;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(g=this.test_match(s,y[d]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var s=this.next();return s||this.lex()},"lex"),begin:c(function(s){this.conditionStack.push(s)},"begin"),popState:c(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:c(function(s){this.begin(s)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:c(function(s,n,d,y){var r=y;switch(d){case 0:return s.getLogger().debug("Found block-beta"),10;break;case 1:return s.getLogger().debug("Found id-block"),29;break;case 2:return s.getLogger().debug("Found block"),10;break;case 3:s.getLogger().debug(".",n.yytext);break;case 4:s.getLogger().debug("_",n.yytext);break;case 5:return 5;case 6:return n.yytext=-1,28;break;case 7:return n.yytext=n.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",n.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:s.getLogger().debug("LEX: POPPING STR:",n.yytext),this.popState();break;case 13:return s.getLogger().debug("LEX: STR end:",n.yytext),"STR";break;case 14:return n.yytext=n.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",n.yytext),21;break;case 15:return n.yytext="1",s.getLogger().debug("COLUMNS (LEX)",n.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),37;break;case 74:return s.getLogger().debug("Lex: NODE_ID",n.yytext),31;break;case 75:return s.getLogger().debug("Lex: EOF",n.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return s.getLogger().debug("LEX: NODE_DESCR:",n.yytext),"NODE_DESCR";break;case 83:s.getLogger().debug("LEX POPPING"),this.popState();break;case 84:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",n.yytext),"DIR";break;case 86:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",n.yytext),"DIR";break;case 87:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",n.yytext),"DIR";break;case 88:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",n.yytext),"DIR";break;case 89:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",n.yytext),"DIR";break;case 90:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",n.yytext),"DIR";break;case 91:return n.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",n.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;break;case 93:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 94:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 95:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 96:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 97:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 98:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;break;case 102:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 104:return s.getLogger().debug("Lex: COLON",n.yytext),n.yytext=n.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return C})();w.lexer=I;function v(){this.yy={}}return c(v,"Parser"),v.prototype=w,w.Parser=v,new v})();oe.parser=oe;var it=oe,z=new Map,he=[],le=new Map,Fe="color",Me="fill",at="bgFill",Ye=",",G=new Map,ue="",nt=c(e=>me.sanitizeText(e,ie()),"sanitizeText"),ot=c(function(e,o=""){let l=G.get(e);l||(l={id:e,styles:[],textStyles:[]},G.set(e,l)),o?.split(Ye).forEach(a=>{let h=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Fe).exec(a)){let t=h.replace(Me,at).replace(Fe,Me);l.textStyles.push(t)}l.styles.push(h)})},"addStyleClass"),lt=c(function(e,o=""){let l=z.get(e);o!=null&&(l.styles=o.split(Ye))},"addStyle2Node"),ct=c(function(e,o){e.split(",").forEach(function(l){let a=z.get(l);if(a===void 0){let h=l.trim();a={id:h,type:"na",children:[]},z.set(h,a)}a.classes||(a.classes=[]),a.classes.push(o)})},"setCssClass"),We=0,Ve=c((e,o)=>{let l=e.flat(),a=[],p=l.find(t=>t?.type==="column-setting")?.columns??-1;for(let t of l){if(typeof p=="number"&&p>0&&t.type!=="column-setting"&&typeof t.widthInColumns=="number"&&t.widthInColumns>p&&m.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${p}`),t.label&&(t.label=nt(t.label)),t.type==="classDef"){ot(t.id,t.css);continue}if(t.type==="applyClass"){ct(t.id,t?.styleClass??"");continue}if(t.type==="applyStyles"){t?.stylesStr&<(t.id,t?.stylesStr);continue}if(t.type==="column-setting")o.columns=t.columns??-1;else if(t.type==="edge"){let u=(le.get(t.id)??0)+1;le.set(t.id,u),t.id=u+"-"+t.id,he.push(t)}else{t.label||(t.type==="composite"?t.label="":t.label=t.id);let u=z.get(t.id);if(u===void 0?(t.type==="composite"&&(t.colorIndex=We++),z.set(t.id,t)):(t.type!=="na"&&(u.type=t.type),t.label!==t.id&&(u.label=t.label)),t.children&&Ve(t.children,t),t.type==="space"){let x=t.width??1;for(let k=0;k<x;k++){let b=we(t);b.id=b.id+"-"+k,z.set(b.id,b),a.push(b)}}else u===void 0&&a.push(t)}}o.children=a},"populateBlockDatabase"),ge=[],W={id:"root",type:"composite",children:[],columns:-1},ht=c(()=>{m.debug("Clear called"),Ee(),W={id:"root",type:"composite",children:[],columns:-1},z=new Map([["root",W]]),ge=[],G=new Map,he=[],le=new Map,ue="",We=0},"clear");function je(e){switch(m.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return m.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}c(je,"typeStr2Type");function Ue(e){return m.debug("typeStr2Type",e),e==="=="?"thick":"normal"}c(Ue,"edgeTypeStr2Type");function He(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}c(He,"edgeStrToEdgeData");function Xe(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}c(Xe,"edgeStrToEdgeStartData");function Ge(e){return e.includes("==")?"thick":"normal"}c(Ge,"edgeStrToThickness");function qe(e){return e.includes(".-")?"dotted":"solid"}c(qe,"edgeStrToPattern");var Ke=0,ut=c(()=>(Ke++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ke),"generateId"),gt=c(e=>{W.children=e,Ve(e,W),ge=W.children},"setHierarchy"),dt=c(e=>{let o=z.get(e);return o?o.columns?o.columns:o.children?o.children.length:-1:-1},"getColumns"),pt=c(()=>[...z.values()],"getBlocksFlat"),ft=c(()=>ge||[],"getBlocks"),bt=c(()=>he,"getEdges"),St=c(e=>z.get(e),"getBlock"),xt=c(e=>{z.set(e.id,e)},"setBlock"),kt=c(e=>{ue=e},"setDiagramId"),Lt=c(()=>ue,"getDiagramId"),mt=c(()=>m,"getLogger"),yt=c(function(){return G},"getClasses"),Et={getConfig:c(()=>R().block,"getConfig"),typeStr2Type:je,edgeTypeStr2Type:Ue,edgeStrToEdgeData:He,edgeStrToEdgeStartData:Xe,edgeStrToThickness:Ge,edgeStrToPattern:qe,getLogger:mt,getBlocksFlat:pt,getBlocks:ft,getEdges:bt,setHierarchy:gt,getBlock:St,setBlock:xt,getColumns:dt,getClasses:yt,clear:ht,generateId:ut,setDiagramId:kt,getDiagramId:Lt},wt=Et,_t=c(e=>{let{theme:o,bkgColorArray:l,borderColorArray:a}=e;if(!Ie(o,a))return"";let h=Ne(e.look),p=De(l),t="";for(let u=0;u<Te(e.THEME_COLOR_LIMIT,a);u++){let x=a[u%a.length],k=p?`fill: ${l[u%l.length]};`:"",b=`[data-look="${h}"][data-color-id="color-${u}"]`;t+=`
|
|
7
|
+
|
|
8
|
+
${b}.node rect.composite {
|
|
9
|
+
stroke: ${x};
|
|
10
|
+
${k}
|
|
11
|
+
}
|
|
12
|
+
`}return t},"genColor"),ne=c((e,o)=>{let l=Le,a=l(e,"r"),h=l(e,"g"),p=l(e,"b");return ke(a,h,p,o)},"fade"),Dt=c(e=>`${_t(e)}
|
|
13
|
+
.label {
|
|
14
|
+
font-family: ${e.fontFamily};
|
|
15
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
16
|
+
}
|
|
17
|
+
.cluster-label text {
|
|
18
|
+
fill: ${e.titleColor};
|
|
19
|
+
}
|
|
20
|
+
.cluster-label span {
|
|
21
|
+
color: ${e.titleColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.label text,span {
|
|
27
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
28
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.node rect,
|
|
32
|
+
.node circle,
|
|
33
|
+
.node ellipse,
|
|
34
|
+
.node polygon,
|
|
35
|
+
.node path {
|
|
36
|
+
fill: ${e.mainBkg};
|
|
37
|
+
stroke: ${e.nodeBorder};
|
|
38
|
+
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
39
|
+
thinner border than an identical flowchart node under any theme asking for more --
|
|
40
|
+
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
41
|
+
and filter, never stroke-width. */
|
|
42
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
43
|
+
}
|
|
44
|
+
.flowchart-label text {
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
}
|
|
47
|
+
// .flowchart-label .text-outer-tspan {
|
|
48
|
+
// text-anchor: middle;
|
|
49
|
+
// }
|
|
50
|
+
// .flowchart-label .text-inner-tspan {
|
|
51
|
+
// text-anchor: start;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${e.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePaths .path {
|
|
66
|
+
stroke: ${e.lineColor};
|
|
67
|
+
stroke-width: 2.0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${e.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${e.edgeLabelBackground};
|
|
77
|
+
/*
|
|
78
|
+
* This is for backward compatibility with existing code that didn't
|
|
79
|
+
* add a \`<p>\` around edge labels.
|
|
80
|
+
*
|
|
81
|
+
* TODO: We should probably remove this in a future release.
|
|
82
|
+
*/
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
rect {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
background-color: ${e.edgeLabelBackground};
|
|
91
|
+
fill: ${e.edgeLabelBackground};
|
|
92
|
+
}
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* For html labels only */
|
|
97
|
+
.labelBkg {
|
|
98
|
+
background-color: ${e.edgeLabelBackground};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.node .cluster {
|
|
102
|
+
// fill: ${ne(e.mainBkg,.5)};
|
|
103
|
+
fill: ${ne(e.clusterBkg,.5)};
|
|
104
|
+
stroke: ${ne(e.clusterBorder,.2)};
|
|
105
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
|
+
stroke-width: 1px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cluster text {
|
|
110
|
+
fill: ${e.titleColor};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cluster span {
|
|
114
|
+
color: ${e.titleColor};
|
|
115
|
+
}
|
|
116
|
+
/* .cluster div {
|
|
117
|
+
color: ${e.titleColor};
|
|
118
|
+
} */
|
|
119
|
+
|
|
120
|
+
div.mermaidTooltip {
|
|
121
|
+
position: absolute;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 200px;
|
|
124
|
+
padding: 2px;
|
|
125
|
+
font-family: ${e.fontFamily};
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
background: ${e.tertiaryColor};
|
|
128
|
+
border: 1px solid ${e.border2};
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
z-index: 100;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flowchartTitleText {
|
|
135
|
+
text-anchor: middle;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
fill: ${e.textColor};
|
|
138
|
+
}
|
|
139
|
+
${Pe()}
|
|
140
|
+
`,"getStyles"),It=Dt;function ce(e,o){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(o<0||!Number.isInteger(o))throw new Error("Position must be a non-negative integer."+o);if(e<0)return{px:o,py:0};if(e===1)return{px:0,py:o};let l=o%e,a=Math.floor(o/e);return{px:l,py:a}}c(ce,"calculateBlockPosition");var Nt=c(e=>{let o=0,l=0;for(let a of e.children){let{width:h,height:p,x:t,y:u}=a.size??{width:0,height:0,x:0,y:0};if(m.debug("getMaxChildSize abc95 child:",a.id,"width:",h,"height:",p,"x:",t,"y:",u,a.type),a.type==="space")continue;let x=h/(a.widthInColumns??1);x>o&&(o=x),p>l&&(l=p)}return{width:o,height:l}},"getMaxChildSize");function q(e,o,l=0,a=0,h=8){m.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",l),e?.size?.width||(e.size={width:l,height:a,x:0,y:0});let p=0,t=0;if(e.children?.length>0){for(let S of e.children)q(S,o,0,0,h);let u=Nt(e);p=u.width,t=u.height,m.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",p,t);for(let S of e.children)S.size&&(m.debug(`abc95 Setting size of children of ${e.id} id=${S.id} ${p} ${t} ${JSON.stringify(S.size)}`),S.size.width=p*(S.widthInColumns??1)+h*((S.widthInColumns??1)-1),S.size.height=t,S.size.x=0,S.size.y=0,m.debug(`abc95 updating size of ${e.id} children child:${S.id} maxWidth:${p} maxHeight:${t}`));for(let S of e.children)q(S,o,p,t,h);let x=e.columns??-1,k=0;for(let S of e.children)k+=S.widthInColumns??1;let b=e.children.length;x>0&&x<k&&(b=x);let f=Math.ceil(k/b),L=b*(p+h)+h,E=f*(t+h)+h;if(L<l){m.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${l} siblingHeight ${a} width ${L}`),L=l,E=a;let S=(l-b*h-h)/b,_=(a-f*h-h)/f;m.debug("Size indata abc88",e.id,"childWidth",S,"maxWidth",p),m.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",t),m.debug("Size indata abc88 xSize",b,"padding",h);for(let w of e.children)w.size&&(w.size.width=S,w.size.height=_,w.size.x=0,w.size.y=0)}if(m.debug(`abc95 (finale calc) ${e.id} xSize ${b} ySize ${f} columns ${x}${e.children.length} width=${Math.max(L,e.size?.width||0)}`),L<(e?.size?.width||0)){L=e?.size?.width||0;let S=x>0?Math.min(e.children.length,x):e.children.length;if(S>0){let _=(L-S*h-h)/S;m.debug("abc95 (growing to fit) width",e.id,L,e.size?.width,_);for(let w of e.children)w.size&&(w.size.width=_)}}e.size={width:L,height:E,x:0,y:0}}m.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}c(q,"setBlockSizes");function de(e,o,l=8){m.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let a=e.columns??-1;if(m.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){let h=e?.children[0]?.size?.width??0,p=e.children.length*h+(e.children.length-1)*l;m.debug("widthOfChildren 88",p,"posX");let t=new Map;{let f=0;for(let L of e.children){if(!L.size)continue;let{py:E}=ce(a,f),S=t.get(E)??0;L.size.height>S&&t.set(E,L.size.height);let _=L?.widthInColumns??1;a>0&&(_=Math.min(_,a-f%a)),f+=_}}let u=new Map;{let f=0,L=[...t.keys()].sort((E,S)=>E-S);for(let E of L)u.set(E,f),f+=(t.get(E)??0)+l}let x=0;m.debug("abc91 block?.size?.x",e.id,e?.size?.x);let k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,b=0;for(let f of e.children){let L=e;if(!f.size)continue;let{width:E,height:S}=f.size,{px:_,py:w}=ce(a,x);if(w!=b&&(b=w,k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,m.debug("New row in layout for block",e.id," and child ",f.id,b)),m.debug(`abc89 layout blocks (child) id: ${f.id} Pos: ${x} (px, py) ${_},${w} (${L?.size?.x},${L?.size?.y}) parent: ${L.id} width: ${E}${l}`),L.size){let v=E/2;f.size.x=k+l+v,m.debug(`abc91 layout blocks (calc) px, pyid:${f.id} startingPos=X${k} new startingPosX${f.size.x} ${v} padding=${l} width=${E} halfWidth=${v} => x:${f.size.x} y:${f.size.y} ${f.widthInColumns} (width * (child?.w || 1)) / 2 ${E*(f?.widthInColumns??1)/2}`),k=f.size.x+v;let C=u.get(w)??0,g=t.get(w)??S;f.size.y=L.size.y-L.size.height/2+C+g/2+l,m.debug(`abc88 layout blocks (calc) px, pyid:${f.id}startingPosX${k}${l}${v}=>x:${f.size.x}y:${f.size.y}${f.widthInColumns}(width * (child?.w || 1)) / 2${E*(f?.widthInColumns??1)/2}`)}f.children&&de(f,o,l);let I=f?.widthInColumns??1;a>0&&(I=Math.min(I,a-x%a)),x+=I,m.debug("abc88 columnsPos",f,x)}}m.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}c(de,"layoutBlocks");function pe(e,{minX:o,minY:l,maxX:a,maxY:h}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:p,y:t,width:u,height:x}=e.size;p-u/2<o&&(o=p-u/2),t-x/2<l&&(l=t-x/2),p+u/2>a&&(a=p+u/2),t+x/2>h&&(h=t+x/2)}if(e.children)for(let p of e.children)({minX:o,minY:l,maxX:a,maxY:h}=pe(p,{minX:o,minY:l,maxX:a,maxY:h}));return{minX:o,minY:l,maxX:a,maxY:h}}c(pe,"findBounds");function Je(e){let o=e.getBlock("root");if(!o)return;let l=ie()?.block?.padding??8;q(o,e,0,0,l),de(o,e,l),m.debug("getBlocks",JSON.stringify(o,null,2));let{minX:a,minY:h,maxX:p,maxY:t}=pe(o),u=t-h,x=p-a;return{x:a,y:h,width:x,height:u}}c(Je,"layout");function fe(e,o,l=!1){let a=e,h="default";(a?.classes?.length||0)>0&&(h=(a?.classes??[]).join(" ")),h=h+" flowchart-label";let p=(a?.classes??[]).flatMap(S=>o.getClasses().get(S)?.styles??[]),t=0,u="rect",x;switch(a.type){case"round":t=5,u="rect";break;case"composite":t=0,u="composite",x=0;break;case"square":u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"group":u="rect";break;case"doublecircle":u="doublecircle";break;default:u="rect"}let k=_e(a?.styles??[]),b=a.label,f=a.size??{width:0,height:0,x:0,y:0},L=o.getDiagramId();return{labelStyle:k.labelStyle,shape:u,label:b,labelText:b,rx:t,ry:t,class:h,cssClasses:h,cssStyles:a?.styles??[],cssCompiledStyles:p,style:k.style,id:a.id,domId:L?`${L}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||Number.POSITIVE_INFINITY,x:f.x,y:f.y,positioned:l,intersect:void 0,padding:x??R()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:R().look}}c(fe,"getNodeFromBlock");async function Ze(e,o,l){let a=fe(o,l,!1);if(o.type==="group")return;let h=R(),p=await ae(e,a,{config:h}),t=p.node()?.getBBox()??{width:0,height:0},u=l.getBlock(a.id);u.size={width:t.width,height:t.height,x:0,y:0,node:p},l.setBlock(u),p.remove()}c(Ze,"calculateBlockSize");async function Qe(e,o,l){let a=fe(o,l,!0);if(l.getBlock(a.id).type!=="space"){let p=R(),t=await ae(e,a,{config:p});a.colorIndex!==void 0&&ve(t,a.colorIndex,p.theme,p.themeVariables?.borderColorArray),o.intersect=a?.intersect,Ce(a)}}c(Qe,"insertBlockPositioned");async function J(e,o,l,a){for(let h of o)await a(e,h,l),h.children&&await J(e,h.children,l,a)}c(J,"performOperations");async function $e(e,o,l){await J(e,o,l,Ze)}c($e,"calculateBlockSizes");async function et(e,o,l){await J(e,o,l,Qe)}c(et,"insertBlocks");async function tt(e,o,l,a,h){let p=new Re({multigraph:!0,compound:!0});p.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let t of l)t.size&&p.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(let t of o)if(t.start&&t.end){let u=a.getBlock(t.start),x=a.getBlock(t.end);if(u?.size&&x?.size){let k=u.size,b=x.size,f=[{x:k.x,y:k.y},{x:k.x+(b.x-k.x)/2,y:k.y+(b.y-k.y)/2},{x:b.x,y:b.y}],L=h?`${h}-${t.id}`:t.id,E=t.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",S=t.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",_=`${E} ${S} flowchart-link LS-a1 LE-b1`;Be(e,{...t,id:L,arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_},{},"block",p.node(t.start),p.node(t.end),h),t.label&&(await Oe(e,{...t,label:t.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_}),ze({...t,x:f[1].x,y:f[1].y},{originalPath:f}))}}}c(tt,"insertEdges");var Tt=c(function(e,o){return o.db.getClasses()},"getClasses"),vt=c(async function(e,o,l,a){let{securityLevel:h,block:p}=R(),t=a.db;t.setDiagramId(o);let u;h==="sandbox"&&(u=Y("#i"+o));let x=h==="sandbox"?Y(u.nodes()[0].contentDocument.body):Y("body"),k=h==="sandbox"?x.select(`[id="${o}"]`):Y(`[id="${o}"]`);xe(k,R()),Ae(k,["point","circle","cross"],a.type,o);let f=t.getBlocks(),L=t.getBlocksFlat(),E=t.getEdges(),S=k.insert("g").attr("class","block");await $e(S,f,t);let _=Je(t);await et(S,f,t),await tt(S,E,L,t,o);let w=S.node()?.getBBox(),I=w&&Number.isFinite(w.width)&&Number.isFinite(w.height)?w:_;if(I){let v=Math.max(1,Math.round(.125*(I.width/I.height))),C=I.height+v+10,g=I.width+10,{useMaxWidth:s}=p;ye(k,C,g,!!s),m.debug("Here Bounds",_,I),k.attr("viewBox",`${I.x-5} ${I.y-5} ${I.width+10} ${I.height+10}`)}},"draw"),Ct={draw:vt,getClasses:Tt},Jt={parser:it,db:wt,renderer:Ct,styles:It};export{Jt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-GYT4IYBZ.js";import"./chunk-3RNHDNP5.js";var r={prefix:"bpmn",height:24,width:24,icons:{message:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path class="bpmn-glyph-fold" fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},timer:{body:'<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6"/><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M12 7v5l3.5 2.5"/><path stroke="currentColor" stroke-width="1.2" d="M12 3v1.5M21 12h-1.5M12 21v-1.5M3 12h1.5"/>'},error:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M4 21 9.5 6 13 12.5 20 4 14.5 19 11 12.5Z"/>'},escalation:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="m12 3 8 18-8-7-8 7z"/>'},signal:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M12 4 22 20H2z"/>'},conditional:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M4 4h16v16H4z"/><path stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M7 9h10M7 12.5h10M7 16h10"/>'},link:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M3 9h10V5l8 7-8 7v-4H3z"/>'},compensation:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M11 6 3 12l8 6zM21 6l-8 6 8 6z"/>'},cancel:{body:'<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="m5 5 14 14M19 5 5 19"/>'},terminate:{body:'<circle cx="12" cy="12" r="9" fill="currentColor"/>'},multiple:{body:'<path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" d="m12 3 8.5 6.2-3.2 10H6.7l-3.2-10z"/>'},user:{body:'<circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="1.7"/><path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" d="M4.5 21a7.5 7.5 0 0 1 15 0"/>'},service:{body:'<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m20.2 14.3-2 .6a6.6 6.6 0 0 1-1 1.7l.6 2-2.4 1.4-1.5-1.5a6.6 6.6 0 0 1-2 0l-1.5 1.5-2.4-1.4.6-2a6.6 6.6 0 0 1-1-1.7l-2-.6v-2.8l2-.6a6.6 6.6 0 0 1 1-1.7l-.6-2 2.4-1.4 1.5 1.5a6.6 6.6 0 0 1 2 0l1.5-1.5 2.4 1.4-.6 2a6.6 6.6 0 0 1 1 1.7l2 .6z"/><circle cx="12" cy="12.9" r="2.6" fill="none" stroke="currentColor" stroke-width="1.5"/>'},script:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 3h9a2.5 2.5 0 0 0-2.5 2.5v13A2.5 2.5 0 0 1 12 21H3a2.5 2.5 0 0 0 2.5-2.5v-13A2.5 2.5 0 0 1 8 3Z"/><path stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M6.5 8h6M6.5 11.5h6M6.5 15h4"/>'},manual:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 11V5.5a1.8 1.8 0 0 1 3.5 0V10m0-.5a1.8 1.8 0 0 1 3.5 0V11m0-.5a1.8 1.8 0 0 1 3.5 0V16a5 5 0 0 1-5 5h-2a5 5 0 0 1-5-5v-4.5a1.8 1.8 0 0 1 1.5-1.8z"/>'},receive:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},send:{body:'<path fill="currentColor" d="M3 6h18v12H3z" opacity=".18"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},rule:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 5h18v14H3z"/><path stroke="currentColor" stroke-width="1.4" d="M3 9h18M3 13h18M8 9v10"/>'},loop:{body:'<path fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" d="M20 12a8 8 0 1 1-2.7-6"/><path fill="currentColor" d="M20 3.2v5.4h-5.4z"/>'},parallel:{body:'<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M6 4v16M12 4v16M18 4v16"/>'},sequential:{body:'<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M4 6h16M4 12h16M4 18h16"/>'},"ad-hoc":{body:'<path fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M3 15c2.5-6 6-6 8.5 0S18 21 21 15"/>'},subprocess:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 3h18v18H3z"/><path stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 7v10M7 12h10"/>'},exclusive:{body:'<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="m6 6 12 12M18 6 6 18"/>'},"parallel-multiple":{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 5v14M5 12h14"/>'},inclusive:{body:'<circle cx="12" cy="12" r="7.5" fill="none" stroke="currentColor" stroke-width="2.4"/>'},"parallel-gateway":{body:'<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="M12 4v16M4 12h16"/>'},"event-based":{body:'<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.3"/><circle cx="12" cy="12" r="6.8" fill="none" stroke="currentColor" stroke-width="1.3"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m12 7.4 4 2.9-1.5 4.7h-5L8 10.3z"/>'},complex:{body:'<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M12 3v18M3 12h18M5.6 5.6l12.8 12.8M18.4 5.6 5.6 18.4"/>'}}};export{r as bpmnIcons};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{a as Se}from"./chunk-I3DMZIHV.js";import{d as ke,g as Ee}from"./chunk-HOPPTA6H.js";import"./chunk-4QDE4SUK.js";import"./chunk-QCJUF4YA.js";import"./chunk-BBD5CEDC.js";import"./chunk-ISO77HML.js";import"./chunk-KU6GTEMS.js";import{i as ve,j as ee,k as wt}from"./chunk-QEEA3KYY.js";import"./chunk-OFZLK5G4.js";import{$ as St,I as te,O as Yt,P as _e,V as be,W as me,X as ge,Y as xe,o as ye}from"./chunk-KT4VPQD5.js";import{b as $t,d as Ft}from"./chunk-JRSH5GNS.js";import{a as d}from"./chunk-GYT4IYBZ.js";import"./chunk-3RNHDNP5.js";var jt=(function(){var t=d(function(_t,m,x,k){for(x=x||{},k=_t.length;k--;x[_t[k]]=m);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],p=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],M=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],J=[1,41],Z=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],rt=[1,47],st=[1,48],at=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],S=[1,83],T=[1,84],C=[1,85],R=[12,14,42],ce=[12,14,33,42],It=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,k,_,D,o,Pt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:p,41:b,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Ct,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(Ct,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:E,77:S,79:T,80:C},{35:86,75:81,76:E,77:S,79:T,80:C},{35:87,75:81,76:E,77:S,79:T,80:C},{35:88,75:81,76:E,77:S,79:T,80:C},{35:89,75:81,76:E,77:S,79:T,80:C},{35:90,75:81,76:E,77:S,79:T,80:C},{35:91,75:81,76:E,77:S,79:T,80:C},{35:92,75:81,76:E,77:S,79:T,80:C},{35:93,75:81,76:E,77:S,79:T,80:C},{35:94,75:81,76:E,77:S,79:T,80:C},{35:95,75:81,76:E,77:S,79:T,80:C},{35:96,75:81,76:E,77:S,79:T,80:C},{35:97,75:81,76:E,77:S,79:T,80:C},{35:98,75:81,76:E,77:S,79:T,80:C},{35:99,75:81,76:E,77:S,79:T,80:C},{35:100,75:81,76:E,77:S,79:T,80:C},{35:101,75:81,76:E,77:S,79:T,80:C},{35:102,75:81,76:E,77:S,79:T,80:C},{35:103,75:81,76:E,77:S,79:T,80:C},{35:104,75:81,76:E,77:S,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:E,77:S,79:T,80:C},{35:106,75:81,76:E,77:S,79:T,80:C},{35:107,75:81,76:E,77:S,79:T,80:C},{35:108,75:81,76:E,77:S,79:T,80:C},{35:109,75:81,76:E,77:S,79:T,80:C},{35:110,75:81,76:E,77:S,79:T,80:C},{35:111,75:81,76:E,77:S,79:T,80:C},{35:112,75:81,76:E,77:S,79:T,80:C},{35:113,75:81,76:E,77:S,79:T,80:C},{35:114,75:81,76:E,77:S,79:T,80:C},{35:115,75:81,76:E,77:S,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:S,79:T,80:C},{35:120,75:81,76:E,77:S,79:T,80:C},{35:121,75:81,76:E,77:S,79:T,80:C},{35:122,75:81,76:E,77:S,79:T,80:C},{35:123,75:81,76:E,77:S,79:T,80:C},{35:124,75:81,76:E,77:S,79:T,80:C},{35:125,75:81,76:E,77:S,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Ct,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:p,41:b,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ce,[2,71],{75:81,35:132,76:E,77:S,79:T,80:C}),t(It,[2,73]),{78:[1,133]},t(It,[2,75]),t(It,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(Ct,[2,38]),t(ce,[2,72]),t(It,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=x,k}},"parseError"),parse:d(function(m){var x=this,k=[0],_=[],D=[null],o=[],Pt=this.table,f="",vt=0,ue=0,he=0,Ue=2,de=1,je=o.slice.call(arguments,1),A=Object.create(this.lexer),kt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(kt.yy[Qt]=this.yy[Qt]);A.setInput(m,kt.yy),kt.yy.lexer=A,kt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var ze=A.options&&A.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(B){k.length=k.length-2*B,D.length=D.length-B,o.length=o.length-B}d(We,"popStack");function pe(){var B;return B=_.pop()||A.lex()||de,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(pe,"lex");for(var L,Gt,Et,V,Q0,Jt,Rt={},Bt,z,fe,Vt;;){if(Et=k[k.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((L===null||typeof L>"u")&&(L=pe()),V=Pt[Et]&&Pt[Et][L]),typeof V>"u"||!V.length||!V[0]){var Zt="";Vt=[];for(Bt in Pt[Et])this.terminals_[Bt]&&Bt>Ue&&Vt.push("'"+this.terminals_[Bt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
2
|
+
`+A.showPosition()+`
|
|
3
|
+
Expecting `+Vt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Zt="Parse error on line "+(vt+1)+": Unexpected "+(L==de?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Zt,{text:A.match,token:this.terminals_[L]||L,line:A.yylineno,loc:Kt,expected:Vt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+L);switch(V[0]){case 1:k.push(L),D.push(A.yytext),o.push(A.yylloc),k.push(V[1]),L=null,Gt?(L=Gt,Gt=null):(ue=A.yyleng,f=A.yytext,vt=A.yylineno,Kt=A.yylloc,he>0&&he--);break;case 2:if(z=this.productions_[V[1]][1],Rt.$=D[D.length-z],Rt._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},ze&&(Rt._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Jt=this.performAction.apply(Rt,[f,ue,vt,kt.yy,V[1],D,o].concat(je)),typeof Jt<"u")return Jt;z&&(k=k.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),k.push(this.productions_[V[1]][0]),D.push(Rt.$),o.push(Rt._$),fe=Pt[k[k.length-2]][k[k.length-1]],k.push(fe);break;case 3:return!0}}return!0},"parse")},Fe=(function(){var _t={EOF:1,parseError:d(function(x,k){if(this.yy.parser)this.yy.parser.parseError(x,k);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===_.length?this.yylloc.first_column:0)+_[_.length-k.length].length-k[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
5
|
+
`+x+"^"},"showPosition"),test_match:d(function(m,x){var k,_,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),_=m[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],k=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var o in D)this[o]=D[o];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,x,k,_;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),o=0;o<D.length;o++)if(k=this._input.match(this.rules[D[o]]),k&&(!x||k[0].length>x[0].length)){if(x=k,_=o,this.options.backtrack_lexer){if(m=this.test_match(k,D[o]),m!==!1)return m;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(m=this.test_match(x,D[_]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var x=this.next();return x||this.lex()},"lex"),begin:d(function(x){this.conditionStack.push(x)},"begin"),popState:d(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:d(function(x){this.begin(x)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(x,k,_,D){var o=D;switch(_){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return _t})();Ht.lexer=Fe;function Mt(){this.yy={}}return d(Mt,"Parser"),Mt.prototype=Ht,Ht.Parser=Mt,new Mt})();jt.parser=jt;var Xe=jt,Oe=d(t=>St()[t],"getRequiredConfig"),Y=new Set(["label","descr","techn","type"]),Tt=d((t,e)=>{for(let[s,a]of Object.entries(e))if(a!==void 0)if(typeof a=="object"){let[u,i]=Object.entries(a)[0];t[u]=Y.has(u)?{text:i}:i}else t[s]=a},"assignAttributes"),Pe=d(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),U=[],bt=[""],I="global",F="",j=[Pe()],Lt=[],ie="",oe=!1,zt=4,Wt=2,De,qe=d(function(){return De},"getC4Type"),He=d(function(t){De=te(t,St())},"setC4Type"),Qe=d(function(t,e,s,a,u,i,n,l,r){if(t==null||e===void 0||e===null||s===void 0||s===null||a===void 0||a===null)return;let h={},y=Lt.find(p=>p.from===e&&p.to===s);if(y?h=y:Lt.push(h),h.type=t,h.from=e,h.to=s,h.label={text:a},u==null)h.techn??={text:""};else if(typeof u=="object"){let[p,b]=Object.entries(u)[0];h[p]=Y.has(p)?{text:b}:b}else h.techn={text:u};if(i==null)h.descr??={text:""};else if(typeof i=="object"){let[p,b]=Object.entries(i)[0];h[p]=Y.has(p)?{text:b}:b}else h.descr={text:i};Tt(h,{sprite:n,tags:l,link:r}),h.wrap=gt()},"addRel"),Ke=d(function(t,e,s,a,u,i,n){if(e===null||s===null)return;let l={},r=U.find(h=>h.alias===e);if(r&&e===r.alias?l=r:(l.alias=e,U.push(l)),s==null?l.label={text:""}:l.label={text:s},a==null)l.descr??={text:""};else if(typeof a=="object"){let[h,y]=Object.entries(a)[0];l[h]=Y.has(h)?{text:y}:y}else l.descr={text:a};Tt(l,{sprite:u,tags:i,link:n}),l.typeC4Shape={text:t},l.parentBoundary=I,l.wrap=gt()},"addPersonOrSystem"),Ge=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=U.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,U.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn??={text:""};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.techn={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{sprite:i,tags:n,link:l}),r.wrap=gt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addContainer"),Je=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=U.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,U.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn??={text:""};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.techn={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{sprite:i,tags:n,link:l}),r.wrap=gt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addComponent"),Ze=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=j.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,j.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"system"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]=Y.has(l)?{text:r}:r}else i.type={text:s};Tt(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=gt(),F=I,I=t,bt.push(F)},"addPersonOrSystemBoundary"),$e=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=j.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,j.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"container"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]=Y.has(l)?{text:r}:r}else i.type={text:s};Tt(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=gt(),F=I,I=t,bt.push(F)},"addContainerBoundary"),t0=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=j.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,j.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.type={text:"node"};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.type={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{tags:n,link:l}),r.nodeType=t,r.parentBoundary=I,r.wrap=gt(),F=I,I=e,bt.push(F)},"addDeploymentNode"),e0=d(function(){I=F,bt.pop(),F=bt.pop(),bt.push(F)},"popBoundaryParseStack"),n0=d(function(t,e,s,a,u,i,n,l,r,h,y){let p=U.find(b=>b.alias===e);if(!(p===void 0&&(p=j.find(b=>b.alias===e),p===void 0))){if(s!=null)if(typeof s=="object"){let[b,v]=Object.entries(s)[0];p[b]=v}else p.bgColor=s;if(a!=null)if(typeof a=="object"){let[b,v]=Object.entries(a)[0];p[b]=v}else p.fontColor=a;if(u!=null)if(typeof u=="object"){let[b,v]=Object.entries(u)[0];p[b]=v}else p.borderColor=u;if(i!=null)if(typeof i=="object"){let[b,v]=Object.entries(i)[0];p[b]=v}else p.shadowing=i;if(n!=null)if(typeof n=="object"){let[b,v]=Object.entries(n)[0];p[b]=v}else p.shape=n;if(l!=null)if(typeof l=="object"){let[b,v]=Object.entries(l)[0];p[b]=v}else p.sprite=l;if(r!=null)if(typeof r=="object"){let[b,v]=Object.entries(r)[0];p[b]=v}else p.techn=r;if(h!=null)if(typeof h=="object"){let[b,v]=Object.entries(h)[0];p[b]=v}else p.legendText=h;if(y!=null)if(typeof y=="object"){let[b,v]=Object.entries(y)[0];p[b]=v}else p.legendSprite=y}},"updateElStyle"),r0=d(function(t,e,s,a,u,i,n){let l=Lt.find(r=>r.from===e&&r.to===s);if(l!==void 0){if(a!=null)if(typeof a=="object"){let[r,h]=Object.entries(a)[0];l[r]=h}else l.textColor=a;if(u!=null)if(typeof u=="object"){let[r,h]=Object.entries(u)[0];l[r]=h}else l.lineColor=u;if(i!=null)if(typeof i=="object"){let[r,h]=Object.entries(i)[0];l[r]=parseInt(h)}else l.offsetX=parseInt(i);if(n!=null)if(typeof n=="object"){let[r,h]=Object.entries(n)[0];l[r]=parseInt(h)}else l.offsetY=parseInt(n)}},"updateRelStyle"),s0=d(function(t,e,s){let a=zt,u=Wt;if(typeof e=="object"){let i=Object.values(e)[0];a=parseInt(i)}else a=parseInt(e);if(typeof s=="object"){let i=Object.values(s)[0];u=parseInt(i)}else u=parseInt(s);a>=1&&(zt=a),u>=1&&(Wt=u)},"updateLayoutConfig"),a0=d(function(){return zt},"getC4ShapeInRow"),i0=d(function(){return Wt},"getC4BoundaryInRow"),o0=d(function(){return I},"getCurrentBoundaryParse"),l0=d(function(){return F},"getParentBoundaryParse"),Ne=d(function(t){return t==null?U:U.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),c0=d(function(t){return U.find(e=>e.alias===t)??j.find(e=>e.alias===t)},"getC4Shape"),u0=d(function(t){return Object.keys(Ne(t))},"getC4ShapeKeys"),Ae=d(function(t){return t==null?j:j.filter(e=>e.parentBoundary===t)},"getBoundaries"),h0=Ae,d0=d(function(){return Lt},"getRels"),p0=d(function(){return ie},"getTitle"),f0=d(function(t){oe=t},"setWrap"),gt=d(function(){return oe},"autoWrap"),y0=d(function(){U=[],j=[Pe()],F="",I="global",bt=[""],Lt=[],bt=[""],ie="",oe=!1,zt=4,Wt=2},"clear"),_0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},b0={FILLED:0,OPEN:1},m0={LEFTOF:0,RIGHTOF:1,OVER:2},g0=d(function(t){ie=te(t,St())},"setTitle"),re={addPersonOrSystem:Ke,addPersonOrSystemBoundary:Ze,addContainer:Ge,addContainerBoundary:$e,addComponent:Je,addDeploymentNode:t0,popBoundaryParseStack:e0,addRel:Qe,updateElStyle:n0,updateRelStyle:r0,updateLayoutConfig:s0,autoWrap:gt,setWrap:f0,getC4ShapeArray:Ne,getC4Shape:c0,getC4ShapeKeys:u0,getBoundaries:Ae,getBoundarys:h0,getCurrentBoundaryParse:o0,getParentBoundaryParse:l0,getRels:d0,getTitle:p0,getC4Type:qe,getC4ShapeInRow:a0,getC4BoundaryInRow:i0,setAccTitle:be,getAccTitle:me,getAccDescription:xe,setAccDescription:ge,getConfig:d(()=>Oe("c4"),"getConfig"),clear:y0,LINETYPE:_0,ARROWTYPE:b0,PLACEMENT:m0,setTitle:g0,setC4Type:He},Le=d(function(t,e){return Se(t,e)},"drawRect"),x0=d((t,e,s,a)=>{let u=t.append("g"),i=0;for(let n of e){let l=n.textColor?n.textColor:"#444444",r=n.lineColor?n.lineColor:"#444444",h=n.offsetX?parseInt(String(n.offsetX)):0,y=n.offsetY?parseInt(String(n.offsetY)):0,p="";if(i===0){let w=u.append("line");w.attr("x1",n.startPoint.x),w.attr("y1",n.startPoint.y),w.attr("x2",n.endPoint.x),w.attr("y2",n.endPoint.y),w.attr("stroke-width","1"),w.attr("stroke",r),w.style("fill","none"),n.type!=="rel_b"&&w.attr("marker-end","url("+p+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+p+"#"+a+"-arrowend)"),i=-1}else{let w=u.append("path");w.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",n.startPoint.x).replaceAll("starty",n.startPoint.y).replaceAll("controlx",n.startPoint.x+(n.endPoint.x-n.startPoint.x)/2-(n.endPoint.x-n.startPoint.x)/4).replaceAll("controly",n.startPoint.y+(n.endPoint.y-n.startPoint.y)/2).replaceAll("stopx",n.endPoint.x).replaceAll("stopy",n.endPoint.y)),n.type!=="rel_b"&&w.attr("marker-end","url("+p+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+p+"#"+a+"-arrowend)")}let b=n.label.width,v=s.messageFont();Dt(s)(n.label.text,u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+y,b,n.label.height,{fill:l},v),n.techn&&n.techn.text!==""&&(v=s.messageFont(),Dt(s)("["+n.techn.text+"]",u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+s.messageFontSize+5+y,Math.max(b,n.techn.width),n.techn.height,{fill:l,"font-style":"italic"},v))}},"drawRels"),v0=d(function(t,e,s){let a=t.append("g"),u=e.bgColor?e.bgColor:"none",i=e.borderColor?e.borderColor:"#444444",n=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let r={x:e.x,y:e.y,fill:u,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};Le(a,r);let h=s.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=n,Dt(s)(e.label.text,a,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},h),e.type&&e.type.text!==""&&(h=s.boundaryFont(),h.fontColor=n,Dt(s)(e.type.text,a,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},h)),e.descr&&e.descr.text!==""&&(h=s.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=n,Dt(s)(e.descr.text,a,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},h))},"drawBoundary"),k0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),E0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),S0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),T0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),C0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),R0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),w0=d(function(t,e){let a=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Dt=(function(){function t(u,i,n,l,r,h,y){let p=i.append("text").attr("x",n+r/2).attr("y",l+h/2+5).style("text-anchor","middle").text(u);a(p,y)}d(t,"byText");function e(u,i,n,l,r,h,y,p){let{fontSize:b,fontFamily:v,fontWeight:w}=p,N=u.split(Yt.lineBreakRegex);for(let O=0;O<N.length;O++){let P=O*b-b*(N.length-1)/2,M=i.append("text").attr("x",n+r/2).attr("y",l).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",b).style("font-weight",w).style("font-family",v);M.append("tspan").attr("dy",P).text(N[O]).attr("alignment-baseline","mathematical"),a(M,y)}}d(e,"byTspan");function s(u,i,n,l,r,h,y,p){let b=i.append("switch"),w=b.append("foreignObject").attr("x",n).attr("y",l).attr("width",r).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(u),e(u,b,n,l,r,h,y,p),a(w,y)}d(s,"byFo");function a(u,i){for(let n in i)i.hasOwnProperty(n)&&u.attr(n,i[n])}return d(a,"_setTextAttrs"),function(u){return u.textPlacement==="fo"?s:u.textPlacement==="old"?t:e}})(),W={drawRect:Le,drawBoundary:v0,drawRels:x0,insertArrowHead:T0,insertArrowEnd:C0,insertArrowFilledHead:R0,insertArrowCrossHead:w0,insertDatabaseIcon:k0,insertComputerIcon:E0,insertClockIcon:S0},O0=d((t,e)=>{if(e==="sandbox"){let a=Ft("#i"+t).node()?.contentDocument;if(!a)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:Ft(a.body),doc:a}}return{root:Ft("body"),doc:document}},"getDiagramRoot"),P0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),D0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),N0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},ne=d(t=>t?N0[t.toLowerCase()]:void 0,"keywordShape"),A0=d(t=>{let e=ne(t.shape)??ne(t.sprite);if(e)return e;if(t.tags)for(let a of t.tags.split(",")){let u=ne(a.trim());if(u)return u}let s=t.typeC4Shape.text;return s==="person"||s==="external_person"?"person":D0.has(s)?"cylinder":P0.has(s)?"h-cyl":"rounded"},"resolveNodeShape"),L0={person:"Person",system:"Software System",container:"Container",component:"Component"},I0=d(t=>{let e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return L0[e]??e.replace(/_/g," ")},"stereotypeLabel"),M0=d(t=>t.startsWith("external_"),"isExternal"),B0=d(t=>{let e=I0(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),Ie=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),V0=new Set(Ie),Te=d(t=>V0.has(t),"isC4ElementType"),Y0=d((t,e)=>{let s=t.typeC4Shape.text,a=t.bgColor??(Te(s)&&e[`${s}_bg_color`]),u=t.borderColor??(Te(s)&&e[`${s}_border_color`]),i=[];return a&&i.push(`fill:${a}`),u&&i.push(`stroke:${u}`),i.push(`color:${t.fontColor??"#FFFFFF"}`),i},"elementCssStyles"),Ce=d((t,e,s,a,u)=>{let i=t.typeC4Shape.text,n=["c4-shape",`c4-${i}`];M0(i)&&n.push("c4-external");let l=A0(t),r=Y0(t,e);return(l==="rounded"||l==="fr-rect")&&r.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:B0(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:l,cssClasses:n.join(" "),cssStyles:r,padding:s,look:a,useHtmlLabels:!1,width:u}},"buildC4Node"),Nt=0,At=0,Me=4,se=2;jt.yy=re;var g={},Be=class{static{d(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ae(t.db.getConfig())}setData(t,e,s,a){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=a}updateVal(t,e,s,a){t[e]===void 0?t[e]=s:t[e]=a(s,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.stopx,s=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?e+t.margin:e+t.margin*2,u=a+t.width,i=this.nextData.starty+t.margin*2,n=i+t.height;(a>=s||u>=s||this.nextData.cnt>Me)&&(a=this.nextData.startx+t.margin+g.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=u=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+t.height,this.nextData.cnt=1),t.x=a,t.y=i,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",u,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",u,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ae(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},ae=d(function(t){ye(g,t),t?.fontFamily&&(g.personFontFamily=g.systemFontFamily=g.messageFontFamily=t.fontFamily),t?.fontSize&&(g.personFontSize=g.systemFontSize=g.messageFontSize=t.fontSize),t?.fontWeight&&(g.personFontWeight=g.systemFontWeight=g.messageFontWeight=t.fontWeight)},"setConf"),Ut=d(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),F0=d(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function mt(t,e,s,a,u){let i=e[t];if(!i.width)if(s)i.text=ve(i.text,u,a),i.textLines=i.text.split(Yt.lineBreakRegex).length,i.width=u,i.height=ee(i.text,a);else{let n=i.text.split(Yt.lineBreakRegex);i.textLines=n.length;let l=0;i.height=0,i.width=0;for(let r of n)i.width=Math.max(wt(r,a),i.width),l=ee(r,a),i.height=i.height+l}return i}d(mt,"calcC4ShapeTextWH");var Ve=d(function(t,e,s){let a=s.data.startx,u=s.data.starty;e.x=a,e.y=u,e.width=s.data.stopx-a,e.height=s.data.stopy-u,e.intersect=r=>ke.rect({x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height},r),e.label.y=g.c4ShapeMargin-35;let i=e.wrap&&g.wrap,n=Ut(g);n.fontSize=n.fontSize+2,n.fontWeight="bold";let l=wt(e.label.text,n);mt("label",e,i,n,l),W.drawBoundary(t,e,g)},"drawBoundary"),Ye=d(async function(t,e,s,a){let u=St(),i=u.look??"classic",n={config:u},l=e.attr("id")??"",r=a.map(y=>s[Number(y)]),h=d(y=>{let p=y.shape?Ee[y.shape]:void 0;if(!p)throw new Error(`C4: no shape handler for "${y.shape}"`);return p},"shapeHandlerFor");await Promise.all(r.map(async y=>{let p=Ce(y,g,g.c4ShapePadding,i,g.width);p.domId=`${l}-${p.id}`;let b=await h(p)(e,p,n);y.width=p.width??g.width,y.height=p.height??g.height,y.margin=g.c4ShapeMargin,b.remove()}));for(let y of r)t.insert(y);await Promise.all(r.map(async y=>{let p=Ce(y,g,g.c4ShapePadding,i,g.width);p.domId=`${l}-${p.id}`,p.x=y.x+y.width/2,p.y=y.y+y.height/2;let b=e.append("g").attr("transform",`translate(${y.x+y.width/2}, ${y.y+y.height/2})`);await h(p)(b,p,n),y.intersect=p.intersect})),t.bumpLastMargin(g.c4ShapeMargin)},"drawC4ShapeArray"),U0=class{static{d(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Re=d(function(t,e){if(!t.intersect)throw new Error(`C4 element "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:s,y:a}=t.intersect(e);return new U0(s,a)},"getIntersectPoint"),j0=d(function(t,e){let s={x:0,y:0};s.x=e.x+e.width/2,s.y=e.y+e.height/2;let a=Re(t,s);s.x=t.x+t.width/2,s.y=t.y+t.height/2;let u=Re(e,s);return{startPoint:a,endPoint:u}},"getIntersectPoints"),z0=d(function(t,e,s,a,u){let i=a.db.getC4Type(),n=0;for(let l of e){n=n+1;let r=l.wrap&&g.wrap,h=F0(g);i==="C4Dynamic"&&(l.label.text=n+": "+l.label.text);let y=wt(l.label.text,h);mt("label",l,r,h,y),l.techn&&l.techn.text!==""&&(y=wt(l.techn.text,h),mt("techn",l,r,h,y)),l.descr&&l.descr.text!==""&&(y=wt(l.descr.text,h),mt("descr",l,r,h,y));let p=s(l.from),b=s(l.to);if(!p||!b)throw new Error(`C4 rel "${l.from}" -> "${l.to}" references an unknown shape or boundary`);let v=j0(p,b);if(!v.startPoint||!v.endPoint)throw new Error(`Could not calculate intersection points for rel "${l.from}" -> "${l.to}"`);l.startPoint=v.startPoint,l.endPoint=v.endPoint}W.drawRels(t,e,g,u)},"drawRels");async function le(t,e,s,a,u){let i=u.db,n=new Be(u);n.data.widthLimit=s.data.widthLimit/Math.min(se,a.length);for(let[l,r]of a.entries()){let h=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=h,h=r.image.Y+r.image.height);let y=r.wrap&&g.wrap,p=Ut(g);p.fontSize=p.fontSize+2,p.fontWeight="bold";let b=mt("label",r,y,p,n.data.widthLimit);if(b.Y=h+8,h=b.Y+b.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Ut(g),P=mt("type",r,y,O,n.data.widthLimit);P.Y=h+5,h=P.Y+P.height}if(r.descr&&r.descr.text!==""){let O=Ut(g);O.fontSize=O.fontSize-2;let P=mt("descr",r,y,O,n.data.widthLimit);P.Y=h+20,h=P.Y+P.height}if(l==0||l%se===0){let O=s.data.startx+g.diagramMarginX,P=s.data.stopy+g.diagramMarginY+h;n.setData(O,O,P,P)}else{let O=n.data.stopx!==n.data.startx?n.data.stopx+g.diagramMarginX:n.data.startx,P=n.data.starty;n.setData(O,O,P,P)}n.name=r.alias;let v=i.getC4ShapeArray(r.alias),w=i.getC4ShapeKeys(r.alias);w.length>0&&await Ye(n,t,v,w),e=r.alias;let N=i.getBoundaries(e);N.length>0&&await le(t,e,n,N,u),r.alias!=="global"&&Ve(t,r,n),s.data.stopy=Math.max(n.data.stopy+g.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(n.data.stopx+g.c4ShapeMargin,s.data.stopx),Nt=Math.max(Nt,s.data.stopx),At=Math.max(At,s.data.stopy)}}d(le,"drawInsideBoundary");var W0=d(async function(t,e,s,a){g=Oe("c4");let u=St().securityLevel,{root:i}=O0(e,u),n=a.db;n.setWrap(g.wrap),Me=n.getC4ShapeInRow(),se=n.getC4BoundaryInRow(),$t.debug(`C:${JSON.stringify(g,null,2)}`);let l=i.select(`[id="${e}"]`);W.insertComputerIcon(l,e),W.insertDatabaseIcon(l,e),W.insertClockIcon(l,e);let r=new Be(a);r.setData(g.diagramMarginX,g.diagramMarginX,g.diagramMarginY,g.diagramMarginY),r.data.widthLimit=screen.availWidth,Nt=g.diagramMarginX,At=g.diagramMarginY;let h=n.getTitle(),y=n.getBoundaries("");await le(l,"",r,y,a),W.insertArrowHead(l,e),W.insertArrowEnd(l,e),W.insertArrowCrossHead(l,e),W.insertArrowFilledHead(l,e),z0(l,n.getRels(),n.getC4Shape,a,e),r.data.stopx=Nt,r.data.stopy=At;let p=r.data,b=p.startx,v=p.starty,N=At-v+2*g.diagramMarginY,O=Nt-b,P=O+2*g.diagramMarginX;h&&l.append("text").text(h).attr("x",O/2-4*g.diagramMarginX).attr("y",v+g.diagramMarginY),_e(l,N,P,g.useMaxWidth);let M=h?60:0;l.attr("viewBox",b-g.diagramMarginX+" -"+(g.diagramMarginY+M)+" "+P+" "+(N+M)),$t.debug("models:",p)},"draw"),we={drawPersonOrSystemArray:Ye,drawBoundary:Ve,setConf:ae,draw:W0},X0=d(()=>{let t=St().c4??{},e=new CSSStyleSheet;for(let s of Ie){let a=e.cssRules[e.insertRule(`.c4-shape.c4-${s} .label {}`,e.cssRules.length)],u=t[`${s}FontFamily`],i=t[`${s}FontSize`],n=t[`${s}FontWeight`];u&&a.style.setProperty("font-family",u),i&&a.style.setProperty("font-size",typeof i=="number"?`${i}px`:i),n&&a.style.setProperty("font-weight",String(n))}return[...e.cssRules].filter(s=>s.style.length>0).map(s=>` ${s.cssText}`).join(`
|
|
7
|
+
`)},"elementFontStyles"),q0=d(t=>`.person {
|
|
8
|
+
stroke: ${t.personBorder};
|
|
9
|
+
fill: ${t.personBkg};
|
|
10
|
+
}
|
|
11
|
+
${X0()}
|
|
12
|
+
|
|
13
|
+
/* The element font colour is set inline per element (default white); the
|
|
14
|
+
label text takes it via currentColor. */
|
|
15
|
+
.c4-shape .label,
|
|
16
|
+
.c4-shape .label text {
|
|
17
|
+
color: inherit;
|
|
18
|
+
fill: currentColor;
|
|
19
|
+
}
|
|
20
|
+
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
21
|
+
.c4-shape .label .c4-name {
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
.c4-shape .label .c4-type {
|
|
25
|
+
font-size: 0.75em;
|
|
26
|
+
}
|
|
27
|
+
.c4-shape .label .c4-descr {
|
|
28
|
+
font-size: 0.82em;
|
|
29
|
+
}
|
|
30
|
+
.c4-shape .basic,
|
|
31
|
+
.c4-shape rect,
|
|
32
|
+
.c4-shape path,
|
|
33
|
+
.c4-shape circle,
|
|
34
|
+
.c4-shape ellipse,
|
|
35
|
+
.c4-shape line {
|
|
36
|
+
stroke-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
`,"getStyles"),H0=q0,i1={parser:Xe,db:re,renderer:we,styles:H0,init:d(({c4:t,wrap:e})=>{we.setConf(t),re.setWrap(e)},"init")};export{i1 as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as w}from"./chunk-KT4VPQD5.js";import{b as c}from"./chunk-JRSH5GNS.js";import{a as r}from"./chunk-GYT4IYBZ.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as i,c as o,d as t,e as n,g as u,k as d,x as G,y as l}from"./chunk-LT6LXKCR.js";var c=class extends l{static{e(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},p={parser:{TokenBuilder:e(()=>new c,"TokenBuilder"),ValueConverter:e(()=>new G,"ValueConverter")}};function h(s=n){let r=t(o(s),u),a=t(i({shared:r}),d,p);return r.ServiceRegistry.register(a),{shared:r,GitGraph:a}}e(h,"createGitGraphServices");export{p as a,h as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function Un(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xr(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Bn(n){let t,e,r;n.length!==2?(t=Un,e=(a,c)=>Un(n(a),c),r=(a,c)=>n(a)-c):(t=n===Un||n===xr?n:wr,e=n,r=n);function i(a,c,f=0,l=a.length){if(f<l){if(t(c,c)!==0)return l;do{let h=f+l>>>1;e(a[h],c)<0?f=h+1:l=h}while(f<l)}return f}function o(a,c,f=0,l=a.length){if(f<l){if(t(c,c)!==0)return l;do{let h=f+l>>>1;e(a[h],c)<=0?f=h+1:l=h}while(f<l)}return f}function u(a,c,f=0,l=a.length){let h=i(a,c,f,l-1);return h>f&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:u,right:o}}function wr(){return 0}function br(n){return n===null?NaN:+n}var jt=Bn(Un),zt=jt.right,zo=jt.left,_o=Bn(br).center;var Xo=_t(Xt),Zo=_t(vr);function _t(n){return function(t,e,r=e){if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:u}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((u=Math.floor(u!==void 0?u:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!u||!e&&!r)return t;let a=e&&n(e),c=r&&n(r),f=i.slice();return a&&c?(Mn(a,f,i,o,u),Mn(a,i,f,o,u),Mn(a,f,i,o,u),xn(c,i,f,o,u),xn(c,f,i,o,u),xn(c,i,f,o,u)):a?(Mn(a,i,f,o,u),Mn(a,f,i,o,u),Mn(a,i,f,o,u)):c&&(xn(c,i,f,o,u),xn(c,f,i,o,u),xn(c,i,f,o,u)),t}}function Mn(n,t,e,r,i){for(let o=0,u=r*i;o<u;)n(t,e,o,o+=r,1)}function xn(n,t,e,r,i){for(let o=0,u=r*i;o<r;++o)n(t,e,o,o+u,r)}function vr(n){let t=Xt(n);return(e,r,i,o,u)=>{i<<=2,o<<=2,u<<=2,t(e,r,i+0,o+0,u),t(e,r,i+1,o+1,u),t(e,r,i+2,o+2,u),t(e,r,i+3,o+3,u)}}function Xt(n){let t=Math.floor(n);if(t===n)return Tr(n);let e=n-t,r=2*n+1;return(i,o,u,a,c)=>{if(!((a-=c)>=u))return;let f=t*o[u],l=c*t,h=l+c;for(let s=u,p=u+l;s<p;s+=c)f+=o[Math.min(a,s)];for(let s=u,p=a;s<=p;s+=c)f+=o[Math.min(a,s+l)],i[s]=(f+e*(o[Math.max(u,s-h)]+o[Math.min(a,s+h)]))/r,f-=o[Math.max(u,s-l)]}}function Tr(n){let t=2*n+1;return(e,r,i,o,u)=>{if(!((o-=u)>=i))return;let a=n*r[i],c=u*n;for(let f=i,l=i+c;f<l;f+=u)a+=r[Math.min(o,f)];for(let f=i,l=o;f<=l;f+=u)a+=r[Math.min(o,f+c)],e[f]=a/t,a-=r[Math.max(i,f-c)]}}var An=class extends Map{constructor(t,e=Sr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),t!=null)for(let[r,i]of t)this.set(r,i)}get(t){return super.get(Pt(this,t))}has(t){return super.has(Pt(this,t))}set(t,e){return super.set(Nr(this,t),e)}delete(t){return super.delete(kr(this,t))}};function Pt({_intern:n,_key:t},e){let r=t(e);return n.has(r)?n.get(r):e}function Nr({_intern:n,_key:t},e){let r=t(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function kr({_intern:n,_key:t},e){let r=t(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function Sr(n){return n!==null&&typeof n=="object"?n.valueOf():n}var Cr=Array.prototype,Bo=Cr.slice;var Dr=Math.sqrt(50),Ur=Math.sqrt(10),Ar=Math.sqrt(2);function Xn(n,t,e){let r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),u=o>=Dr?10:o>=Ur?5:o>=Ar?2:1,a,c,f;return i<0?(f=Math.pow(10,-i)/u,a=Math.round(n*f),c=Math.round(t*f),a/f<n&&++a,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*u,a=Math.round(n/f),c=Math.round(t/f),a*f<n&&++a,c*f>t&&--c),c<a&&.5<=e&&e<2?Xn(n,t,e*2):[a,c,f]}function Zt(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];let r=t<n,[i,o,u]=r?Xn(t,n,e):Xn(n,t,e);if(!(o>=i))return[];let a=o-i+1,c=new Array(a);if(r)if(u<0)for(let f=0;f<a;++f)c[f]=(o-f)/-u;else for(let f=0;f<a;++f)c[f]=(o-f)*u;else if(u<0)for(let f=0;f<a;++f)c[f]=(i+f)/-u;else for(let f=0;f<a;++f)c[f]=(i+f)*u;return c}function Zn(n,t,e){return t=+t,n=+n,e=+e,Xn(n,t,e)[2]}function Fn(n,t,e){t=+t,n=+n,e=+e;let r=t<n,i=r?Zn(t,n,e):Zn(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function Vo(n,t){let e;if(t===void 0)for(let r of n)r!=null&&(e<r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e<i||e===void 0&&i>=i)&&(e=i)}return e}function Qo(n,t){let e;if(t===void 0)for(let r of n)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e>i||e===void 0&&i>=i)&&(e=i)}return e}function Bt(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((t-n)/e))|0,o=new Array(i);++r<i;)o[r]=n+r*e;return o}var Go=Fr(Math.random);function Fr(n){return function(e,r=0,i=e.length){let o=i-(r=+r);for(;o;){let u=n()*o--|0,a=e[o+r];e[o+r]=e[u+r],e[u+r]=a}return e}}function Tn(n,t,e){n.prototype=t.prototype=e,e.constructor=n}function $n(n,t){var e=Object.create(n.prototype);for(var r in t)e[r]=t[r];return e}function nn(){}var fn=.7,vn=1/fn,wn="\\s*([+-]?\\d+)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yr=/^#([0-9a-f]{3,8})$/,qr=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),$r=new RegExp(`^rgb\\(${z},${z},${z}\\)$`),Hr=new RegExp(`^rgba\\(${wn},${wn},${wn},${Yn}\\)$`),Ir=new RegExp(`^rgba\\(${z},${z},${z},${Yn}\\)$`),Lr=new RegExp(`^hsl\\(${Yn},${z},${z}\\)$`),Rr=new RegExp(`^hsla\\(${Yn},${z},${z},${Yn}\\)$`),Vt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Tn(nn,Nn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Qt,formatHex:Qt,formatHex8:Wr,formatHsl:Or,formatRgb:Gt,toString:Gt});function Qt(){return this.rgb().formatHex()}function Wr(){return this.rgb().formatHex8()}function Or(){return ue(this).formatHsl()}function Gt(){return this.rgb().formatRgb()}function Nn(n){var t,e;return n=(n+"").trim().toLowerCase(),(t=Yr.exec(n))?(e=t[1].length,t=parseInt(t[1],16),e===6?Jt(t):e===3?new D(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):e===8?Vn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):e===4?Vn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=qr.exec(n))?new D(t[1],t[2],t[3],1):(t=$r.exec(n))?new D(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Hr.exec(n))?Vn(t[1],t[2],t[3],t[4]):(t=Ir.exec(n))?Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lr.exec(n))?te(t[1],t[2]/100,t[3]/100,1):(t=Rr.exec(n))?te(t[1],t[2]/100,t[3]/100,t[4]):Vt.hasOwnProperty(n)?Jt(Vt[n]):n==="transparent"?new D(NaN,NaN,NaN,0):null}function Jt(n){return new D(n>>16&255,n>>8&255,n&255,1)}function Vn(n,t,e,r){return r<=0&&(n=t=e=NaN),new D(n,t,e,r)}function xt(n){return n instanceof nn||(n=Nn(n)),n?(n=n.rgb(),new D(n.r,n.g,n.b,n.opacity)):new D}function Hn(n,t,e,r){return arguments.length===1?xt(n):new D(n,t,e,r??1)}function D(n,t,e,r){this.r=+n,this.g=+t,this.b=+e,this.opacity=+r}Tn(D,Hn,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new D(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new D(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new D(un(this.r),un(this.g),un(this.b),Gn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kt,formatHex:Kt,formatHex8:Er,formatRgb:ne,toString:ne}));function Kt(){return`#${on(this.r)}${on(this.g)}${on(this.b)}`}function Er(){return`#${on(this.r)}${on(this.g)}${on(this.b)}${on((isNaN(this.opacity)?1:this.opacity)*255)}`}function ne(){let n=Gn(this.opacity);return`${n===1?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${n===1?")":`, ${n})`}`}function Gn(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function un(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function on(n){return n=un(n),(n<16?"0":"")+n.toString(16)}function te(n,t,e,r){return r<=0?n=t=e=NaN:e<=0||e>=1?n=t=NaN:t<=0&&(n=NaN),new E(n,t,e,r)}function ue(n){if(n instanceof E)return new E(n.h,n.s,n.l,n.opacity);if(n instanceof nn||(n=Nn(n)),!n)return new E;if(n instanceof E)return n;n=n.rgb();var t=n.r/255,e=n.g/255,r=n.b/255,i=Math.min(t,e,r),o=Math.max(t,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(t===o?u=(e-r)/a+(e<r)*6:e===o?u=(r-t)/a+2:u=(t-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new E(u,a,c,n.opacity)}function Kn(n,t,e,r){return arguments.length===1?ue(n):new E(n,t,e,r??1)}function E(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}Tn(E,Kn,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new E(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new E(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*t,i=2*e-r;return new D(mt(n>=240?n-240:n+120,i,r),mt(n,i,r),mt(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new E(ee(this.h),Qn(this.s),Qn(this.l),Gn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let n=Gn(this.opacity);return`${n===1?"hsl(":"hsla("}${ee(this.h)}, ${Qn(this.s)*100}%, ${Qn(this.l)*100}%${n===1?")":`, ${n})`}`}}));function ee(n){return n=(n||0)%360,n<0?n+360:n}function Qn(n){return Math.max(0,Math.min(1,n||0))}function mt(n,t,e){return(n<60?t+(e-t)*n/60:n<180?e:n<240?t+(e-t)*(240-n)/60:t)*255}var ae=Math.PI/180,fe=180/Math.PI,Jn=18,ce=.96422,le=1,se=.82521,he=4/29,bn=6/29,ge=3*bn*bn,Pr=bn*bn*bn;function me(n){if(n instanceof _)return new _(n.l,n.a,n.b,n.opacity);if(n instanceof V)return pe(n);n instanceof D||(n=xt(n));var t=Mt(n.r),e=Mt(n.g),r=Mt(n.b),i=dt((.2225045*t+.7168786*e+.0606169*r)/le),o,u;return t===e&&e===r?o=u=i:(o=dt((.4360747*t+.3850649*e+.1430804*r)/ce),u=dt((.0139322*t+.0971045*e+.7141733*r)/se)),new _(116*i-16,500*(o-i),200*(i-u),n.opacity)}function de(n,t,e,r){return arguments.length===1?me(n):new _(n,t,e,r??1)}function _(n,t,e,r){this.l=+n,this.a=+t,this.b=+e,this.opacity=+r}Tn(_,de,$n(nn,{brighter(n){return new _(this.l+Jn*(n??1),this.a,this.b,this.opacity)},darker(n){return new _(this.l-Jn*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,e=isNaN(this.b)?n:n-this.b/200;return t=ce*pt(t),n=le*pt(n),e=se*pt(e),new D(yt(3.1338561*t-1.6168667*n-.4906146*e),yt(-.9787684*t+1.9161415*n+.033454*e),yt(.0719453*t-.2289914*n+1.4052427*e),this.opacity)}}));function dt(n){return n>Pr?Math.pow(n,1/3):n/ge+he}function pt(n){return n>bn?n*n*n:ge*(n-he)}function yt(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Mt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function jr(n){if(n instanceof V)return new V(n.h,n.c,n.l,n.opacity);if(n instanceof _||(n=me(n)),n.a===0&&n.b===0)return new V(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*fe;return new V(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function nt(n,t,e,r){return arguments.length===1?jr(n):new V(n,t,e,r??1)}function V(n,t,e,r){this.h=+n,this.c=+t,this.l=+e,this.opacity=+r}function pe(n){if(isNaN(n.h))return new _(n.l,0,0,n.opacity);var t=n.h*ae;return new _(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}Tn(V,nt,$n(nn,{brighter(n){return new V(this.h,this.c,this.l+Jn*(n??1),this.opacity)},darker(n){return new V(this.h,this.c,this.l-Jn*(n??1),this.opacity)},rgb(){return pe(this).rgb()}}));var ye=-.14861,wt=1.78277,bt=-.29227,tt=-.90649,qn=1.97294,re=qn*tt,ie=qn*wt,oe=wt*bt-tt*ye;function zr(n){if(n instanceof an)return new an(n.h,n.s,n.l,n.opacity);n instanceof D||(n=xt(n));var t=n.r/255,e=n.g/255,r=n.b/255,i=(oe*r+re*t-ie*e)/(oe+re-ie),o=r-i,u=(qn*(e-i)-bt*o)/tt,a=Math.sqrt(u*u+o*o)/(qn*i*(1-i)),c=a?Math.atan2(u,o)*fe-120:NaN;return new an(c<0?c+360:c,a,i,n.opacity)}function et(n,t,e,r){return arguments.length===1?zr(n):new an(n,t,e,r??1)}function an(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}Tn(an,et,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new an(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new an(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=isNaN(this.h)?0:(this.h+120)*ae,t=+this.l,e=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(n),i=Math.sin(n);return new D(255*(t+e*(ye*r+wt*i)),255*(t+e*(bt*r+tt*i)),255*(t+e*(qn*r)),this.opacity)}}));function be(n,t,e,r,i){var o=n*n,u=o*n;return((1-3*n+3*o-u)*t+(4-6*o+3*u)*e+(1+3*n+3*o-3*u)*r+u*i)/6}function _r(n){var t=n.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,t-1):Math.floor(e*t),i=n[r],o=n[r+1],u=r>0?n[r-1]:2*i-o,a=r<t-1?n[r+2]:2*o-i;return be((e-r/t)*t,u,i,o,a)}}function Xr(n){var t=n.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*t),i=n[(r+t-1)%t],o=n[r%t],u=n[(r+1)%t],a=n[(r+2)%t];return be((e-r/t)*t,i,o,u,a)}}var it=n=>()=>n;function ve(n,t){return function(e){return n+e*t}}function Zr(n,t,e){return n=Math.pow(n,e),t=Math.pow(t,e)-n,e=1/e,function(r){return Math.pow(n+r*t,e)}}function kt(n,t){var e=t-n;return e?ve(n,e>180||e<-180?e-360*Math.round(e/360):e):it(isNaN(n)?t:n)}function Br(n){return(n=+n)==1?$:function(t,e){return e-t?Zr(t,e,n):it(isNaN(t)?e:t)}}function $(n,t){var e=t-n;return e?ve(n,e):it(isNaN(n)?t:n)}var Me=(function n(t){var e=Br(t);function r(i,o){var u=e((i=Hn(i)).r,(o=Hn(o)).r),a=e(i.g,o.g),c=e(i.b,o.b),f=$(i.opacity,o.opacity);return function(l){return i.r=u(l),i.g=a(l),i.b=c(l),i.opacity=f(l),i+""}}return r.gamma=n,r})(1);function Te(n){return function(t){var e=t.length,r=new Array(e),i=new Array(e),o=new Array(e),u,a;for(u=0;u<e;++u)a=Hn(t[u]),r[u]=a.r||0,i[u]=a.g||0,o[u]=a.b||0;return r=n(r),i=n(i),o=n(o),a.opacity=1,function(c){return a.r=r(c),a.g=i(c),a.b=o(c),a+""}}}var tu=Te(_r),eu=Te(Xr);function Vr(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(o){for(i=0;i<e;++i)r[i]=n[i]*(1-o)+t[i]*o;return r}}function Qr(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Gr(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),o=new Array(e),u;for(u=0;u<r;++u)i[u]=ot(n[u],t[u]);for(;u<e;++u)o[u]=t[u];return function(a){for(u=0;u<r;++u)o[u]=i[u](a);return o}}function Jr(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function P(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function Kr(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=ot(n[i],t[i]):r[i]=t[i];return function(o){for(i in e)r[i]=e[i](o);return r}}var Tt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vt=new RegExp(Tt.source,"g");function ni(n){return function(){return n}}function ti(n){return function(t){return n(t)+""}}function ei(n,t){var e=Tt.lastIndex=vt.lastIndex=0,r,i,o,u=-1,a=[],c=[];for(n=n+"",t=t+"";(r=Tt.exec(n))&&(i=vt.exec(t));)(o=i.index)>e&&(o=t.slice(e,o),a[u]?a[u]+=o:a[++u]=o),(r=r[0])===(i=i[0])?a[u]?a[u]+=i:a[++u]=i:(a[++u]=null,c.push({i:u,x:P(r,i)})),e=vt.lastIndex;return e<t.length&&(o=t.slice(e),a[u]?a[u]+=o:a[++u]=o),a.length<2?c[0]?ti(c[0].x):ni(t):(t=c.length,function(f){for(var l=0,h;l<t;++l)a[(h=c[l]).i]=h.x(f);return a.join("")})}function ot(n,t){var e=typeof t,r;return t==null||e==="boolean"?it(t):(e==="number"?P:e==="string"?(r=Nn(t))?(t=r,Me):ei:t instanceof Nn?Me:t instanceof Date?Jr:Qr(t)?Vr:Array.isArray(t)?Gr:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Kr:P)(n,t)}function Ne(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}var xe=180/Math.PI,Nt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ke(n,t,e,r,i,o){var u,a,c;return(u=Math.sqrt(n*n+t*t))&&(n/=u,t/=u),(c=n*e+t*r)&&(e-=n*c,r-=t*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),n*r<t*e&&(n=-n,t=-t,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(t,n)*xe,skewX:Math.atan(c)*xe,scaleX:u,scaleY:a}}var rt;function ri(n){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return t.isIdentity?Nt:ke(t.a,t.b,t.c,t.d,t.e,t.f)}function ii(n){return n==null||(rt||(rt=document.createElementNS("http://www.w3.org/2000/svg","g")),rt.setAttribute("transform",n),!(n=rt.transform.baseVal.consolidate()))?Nt:(n=n.matrix,ke(n.a,n.b,n.c,n.d,n.e,n.f))}function Se(n,t,e,r){function i(f){return f.length?f.pop()+" ":""}function o(f,l,h,s,p,x){if(f!==h||l!==s){var v=p.push("translate(",null,t,null,e);x.push({i:v-4,x:P(f,h)},{i:v-2,x:P(l,s)})}else(h||s)&&p.push("translate("+h+t+s+e)}function u(f,l,h,s){f!==l?(f-l>180?l+=360:l-f>180&&(f+=360),s.push({i:h.push(i(h)+"rotate(",null,r)-2,x:P(f,l)})):l&&h.push(i(h)+"rotate("+l+r)}function a(f,l,h,s){f!==l?s.push({i:h.push(i(h)+"skewX(",null,r)-2,x:P(f,l)}):l&&h.push(i(h)+"skewX("+l+r)}function c(f,l,h,s,p,x){if(f!==h||l!==s){var v=p.push(i(p)+"scale(",null,",",null,")");x.push({i:v-4,x:P(f,h)},{i:v-2,x:P(l,s)})}else(h!==1||s!==1)&&p.push(i(p)+"scale("+h+","+s+")")}return function(f,l){var h=[],s=[];return f=n(f),l=n(l),o(f.translateX,f.translateY,l.translateX,l.translateY,h,s),u(f.rotate,l.rotate,h,s),a(f.skewX,l.skewX,h,s),c(f.scaleX,f.scaleY,l.scaleX,l.scaleY,h,s),f=l=null,function(p){for(var x=-1,v=s.length,N;++x<v;)h[(N=s[x]).i]=N.x(p);return h.join("")}}}var ru=Se(ri,"px, ","px)","deg)"),iu=Se(ii,", ",")",")"),oi=1e-12;function we(n){return((n=Math.exp(n))+1/n)/2}function ui(n){return((n=Math.exp(n))-1/n)/2}function ai(n){return((n=Math.exp(2*n))-1)/(n+1)}var ou=(function n(t,e,r){function i(o,u){var a=o[0],c=o[1],f=o[2],l=u[0],h=u[1],s=u[2],p=l-a,x=h-c,v=p*p+x*x,N,F;if(v<oi)F=Math.log(s/f)/t,N=function(k){return[a+k*p,c+k*x,f*Math.exp(t*k*F)]};else{var W=Math.sqrt(v),A=(s*s-f*f+r*v)/(2*f*e*W),S=(s*s-f*f-r*v)/(2*s*e*W),L=Math.log(Math.sqrt(A*A+1)-A),d=Math.log(Math.sqrt(S*S+1)-S);F=(d-L)/t,N=function(k){var Z=k*F,en=we(L),mn=f/(e*W)*(en*ai(t*Z+L)-ui(L));return[a+mn*p,c+mn*x,f*en/we(t*Z+L)]}}return N.duration=Math.abs(F)*1e3*t/Math.SQRT2,N}return i.rho=function(o){var u=Math.max(.001,+o),a=u*u,c=a*a;return n(u,a,c)},i})(Math.SQRT2,2,4);function Ce(n){return function(t,e){var r=n((t=Kn(t)).h,(e=Kn(e)).h),i=$(t.s,e.s),o=$(t.l,e.l),u=$(t.opacity,e.opacity);return function(a){return t.h=r(a),t.s=i(a),t.l=o(a),t.opacity=u(a),t+""}}}var uu=Ce(kt),au=Ce($);function De(n){return function(t,e){var r=n((t=nt(t)).h,(e=nt(e)).h),i=$(t.c,e.c),o=$(t.l,e.l),u=$(t.opacity,e.opacity);return function(a){return t.h=r(a),t.c=i(a),t.l=o(a),t.opacity=u(a),t+""}}}var fu=De(kt),cu=De($);function Ue(n){return(function t(e){e=+e;function r(i,o){var u=n((i=et(i)).h,(o=et(o)).h),a=$(i.s,o.s),c=$(i.l,o.l),f=$(i.opacity,o.opacity);return function(l){return i.h=u(l),i.s=a(l),i.l=c(Math.pow(l,e)),i.opacity=f(l),i+""}}return r.gamma=t,r})(1)}var lu=Ue(kt),su=Ue($);function fi(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function at(n,t){if(!isFinite(n)||n===0)return null;var e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"),r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function kn(n){return n=at(Math.abs(n)),n?n[1]:NaN}function ci(n,t){return function(e,r){for(var i=e.length,o=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(t)}}function li(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var si=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(n){if(!(t=si.exec(n)))throw new Error("invalid format: "+n);var t;return new St({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}In.prototype=St.prototype;function St(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}St.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function hi(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var ft;function gi(n,t){var e=at(n,t);if(!e)return ft=void 0,n.toPrecision(t);var r=e[0],i=e[1],o=i-(ft=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+at(n,Math.max(0,t+o-1))[0]}function Ae(n,t){var e=at(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Fe={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:fi,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Ae(n*100,t),r:Ae,s:gi,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Ye(n){return n}var qe=Array.prototype.map,$e=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function mi(n){var t=n.grouping===void 0||n.thousands===void 0?Ye:ci(qe.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?Ye:li(qe.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"\u2212":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function f(h,s){h=In(h);var p=h.fill,x=h.align,v=h.sign,N=h.symbol,F=h.zero,W=h.width,A=h.comma,S=h.precision,L=h.trim,d=h.type;d==="n"?(A=!0,d="g"):Fe[d]||(S===void 0&&(S=12),L=!0,d="g"),(F||p==="0"&&x==="=")&&(F=!0,p="0",x="=");var k=(s&&s.prefix!==void 0?s.prefix:"")+(N==="$"?e:N==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():""),Z=(N==="$"?r:/[%p]/.test(d)?u:"")+(s&&s.suffix!==void 0?s.suffix:""),en=Fe[d],mn=/[defgprs%]/.test(d);S=S===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function zn(M){var B=k,Y=Z,K,_n,dn;if(d==="c")Y=en(M)+Y,M="";else{M=+M;var pn=M<0||1/M<0;if(M=isNaN(M)?c:en(Math.abs(M),S),L&&(M=hi(M)),pn&&+M==0&&v!=="+"&&(pn=!1),B=(pn?v==="("?v:a:v==="-"||v==="("?"":v)+B,Y=(d==="s"&&!isNaN(M)&&ft!==void 0?$e[8+ft/3]:"")+Y+(pn&&v==="("?")":""),mn){for(K=-1,_n=M.length;++K<_n;)if(dn=M.charCodeAt(K),48>dn||dn>57){Y=(dn===46?i+M.slice(K+1):M.slice(K))+Y,M=M.slice(0,K);break}}}A&&!F&&(M=t(M,1/0));var yn=B.length+M.length+Y.length,O=yn<W?new Array(W-yn+1).join(p):"";switch(A&&F&&(M=t(O+M,O.length?W-Y.length:1/0),O=""),x){case"<":M=B+M+Y+O;break;case"=":M=B+O+M+Y;break;case"^":M=O.slice(0,yn=O.length>>1)+B+M+Y+O.slice(yn);break;default:M=O+B+M+Y;break}return o(M)}return zn.toString=function(){return h+""},zn}function l(h,s){var p=Math.max(-8,Math.min(8,Math.floor(kn(s)/3)))*3,x=Math.pow(10,-p),v=f((h=In(h),h.type="f",h),{suffix:$e[8+p/3]});return function(N){return v(x*N)}}return{format:f,formatPrefix:l}}var ut,Ct,Dt;di({thousands:",",grouping:[3],currency:["$",""]});function di(n){return ut=mi(n),Ct=ut.format,Dt=ut.formatPrefix,ut}function He(n){return Math.max(0,-kn(Math.abs(n)))}function Ie(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kn(t)/3)))*3-kn(Math.abs(n)))}function Le(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,kn(t)-kn(n))+1}var Ut=new Date,At=new Date;function C(n,t,e,r){function i(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(n(o=new Date(+o)),o),i.ceil=o=>(n(o=new Date(o-1)),t(o,1),n(o),o),i.round=o=>{let u=i(o),a=i.ceil(o);return o-u<a-o?u:a},i.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),i.range=(o,u,a)=>{let c=[];if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<u)||!(a>0))return c;let f;do c.push(f=new Date(+o)),t(o,a),n(o);while(f<o&&o<u);return c},i.filter=o=>C(u=>{if(u>=u)for(;n(u),!o(u);)u.setTime(u-1)},(u,a)=>{if(u>=u)if(a<0)for(;++a<=0;)for(;t(u,-1),!o(u););else for(;--a>=0;)for(;t(u,1),!o(u););}),e&&(i.count=(o,u)=>(Ut.setTime(+o),At.setTime(+u),n(Ut),n(At),Math.floor(e(Ut,At))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?u=>r(u)%o===0:u=>i.count(0,u)%o===0):i)),i}var ct=C(()=>{},(n,t)=>{n.setTime(+n+t)},(n,t)=>t-n);ct.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?C(t=>{t.setTime(Math.floor(t/n)*n)},(t,e)=>{t.setTime(+t+e*n)},(t,e)=>(e-t)/n):ct);var du=ct.range,Q=1e3,R=Q*60,G=R*60,J=G*24,Yt=J*7,Re=J*30,Ft=J*365,tn=C(n=>{n.setTime(n-n.getMilliseconds())},(n,t)=>{n.setTime(+n+t*Q)},(n,t)=>(t-n)/Q,n=>n.getUTCSeconds()),pu=tn.range,lt=C(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Q)},(n,t)=>{n.setTime(+n+t*R)},(n,t)=>(t-n)/R,n=>n.getMinutes()),yu=lt.range,qt=C(n=>{n.setUTCSeconds(0,0)},(n,t)=>{n.setTime(+n+t*R)},(n,t)=>(t-n)/R,n=>n.getUTCMinutes()),Mu=qt.range,st=C(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Q-n.getMinutes()*R)},(n,t)=>{n.setTime(+n+t*G)},(n,t)=>(t-n)/G,n=>n.getHours()),xu=st.range,$t=C(n=>{n.setUTCMinutes(0,0,0)},(n,t)=>{n.setTime(+n+t*G)},(n,t)=>(t-n)/G,n=>n.getUTCHours()),wu=$t.range,cn=C(n=>n.setHours(0,0,0,0),(n,t)=>n.setDate(n.getDate()+t),(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*R)/J,n=>n.getDate()-1),bu=cn.range,Ln=C(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/J,n=>n.getUTCDate()-1),vu=Ln.range,We=C(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/J,n=>Math.floor(n/J)),Tu=We.range;function ln(n){return C(t=>{t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+e*7)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*R)/Yt)}var Sn=ln(0),Rn=ln(1),pi=ln(2),yi=ln(3),sn=ln(4),Mi=ln(5),xi=ln(6),Nu=Sn.range,ku=Rn.range,Su=pi.range,Cu=yi.range,Du=sn.range,Uu=Mi.range,Au=xi.range;function hn(n){return C(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e*7)},(t,e)=>(e-t)/Yt)}var Wn=hn(0),On=hn(1),wi=hn(2),bi=hn(3),gn=hn(4),vi=hn(5),Ti=hn(6),Fu=Wn.range,Yu=On.range,qu=wi.range,$u=bi.range,Hu=gn.range,Iu=vi.range,Lu=Ti.range,ht=C(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,t)=>{n.setMonth(n.getMonth()+t)},(n,t)=>t.getMonth()-n.getMonth()+(t.getFullYear()-n.getFullYear())*12,n=>n.getMonth()),Ru=ht.range,Ht=C(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCMonth(n.getUTCMonth()+t)},(n,t)=>t.getUTCMonth()-n.getUTCMonth()+(t.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth()),Wu=Ht.range,j=C(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t)},(n,t)=>t.getFullYear()-n.getFullYear(),n=>n.getFullYear());j.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:C(t=>{t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e*n)});var Ou=j.range,X=C(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t)},(n,t)=>t.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());X.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:C(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e*n)});var Eu=X.range;function Oe(n,t,e,r,i,o){let u=[[tn,1,Q],[tn,5,5*Q],[tn,15,15*Q],[tn,30,30*Q],[o,1,R],[o,5,5*R],[o,15,15*R],[o,30,30*R],[i,1,G],[i,3,3*G],[i,6,6*G],[i,12,12*G],[r,1,J],[r,2,2*J],[e,1,Yt],[t,1,Re],[t,3,3*Re],[n,1,Ft]];function a(f,l,h){let s=l<f;s&&([f,l]=[l,f]);let p=h&&typeof h.range=="function"?h:c(f,l,h),x=p?p.range(f,+l+1):[];return s?x.reverse():x}function c(f,l,h){let s=Math.abs(l-f)/h,p=Bn(([,,N])=>N).right(u,s);if(p===u.length)return n.every(Fn(f/Ft,l/Ft,h));if(p===0)return ct.every(Math.max(Fn(f,l,h),1));let[x,v]=u[s/u[p-1][2]<u[p][2]/s?p-1:p];return x.every(v)}return[a,c]}var[Ni,ki]=Oe(X,Ht,Wn,We,$t,qt),[Ee,Pe]=Oe(j,ht,Sn,cn,st,lt);function It(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Lt(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function En(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}function Si(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,u=n.shortDays,a=n.months,c=n.shortMonths,f=Pn(i),l=jn(i),h=Pn(o),s=jn(o),p=Pn(u),x=jn(u),v=Pn(a),N=jn(a),F=Pn(c),W=jn(c),A={a:dn,A:pn,b:yn,B:O,c:null,d:Be,e:Be,f:Vi,g:oo,G:ao,H:Xi,I:Zi,j:Bi,L:Ke,m:Qi,M:Gi,p:sr,q:hr,Q:Ge,s:Je,S:Ji,u:Ki,U:no,V:to,w:eo,W:ro,x:null,X:null,y:io,Y:uo,Z:fo,"%":Qe},S={a:gr,A:mr,b:dr,B:pr,c:null,d:Ve,e:Ve,f:ho,g:To,G:ko,H:co,I:lo,j:so,L:tr,m:go,M:mo,p:yr,q:Mr,Q:Ge,s:Je,S:po,u:yo,U:Mo,V:xo,w:wo,W:bo,x:null,X:null,y:vo,Y:No,Z:So,"%":Qe},L={a:mn,A:zn,b:M,B,c:Y,d:Xe,e:Xe,f:Pi,g:_e,G:ze,H:Ze,I:Ze,j:Ri,L:Ei,m:Li,M:Wi,p:en,q:Ii,Q:zi,s:_i,S:Oi,u:Fi,U:Yi,V:qi,w:Ai,W:$i,x:K,X:_n,y:_e,Y:ze,Z:Hi,"%":ji};A.x=d(e,A),A.X=d(r,A),A.c=d(t,A),S.x=d(e,S),S.X=d(r,S),S.c=d(t,S);function d(m,y){return function(w){var g=[],q=-1,T=0,H=m.length,I,rn,Et;for(w instanceof Date||(w=new Date(+w));++q<H;)m.charCodeAt(q)===37&&(g.push(m.slice(T,q)),(rn=je[I=m.charAt(++q)])!=null?I=m.charAt(++q):rn=I==="e"?" ":"0",(Et=y[I])&&(I=Et(w,rn)),g.push(I),T=q+1);return g.push(m.slice(T,q)),g.join("")}}function k(m,y){return function(w){var g=En(1900,void 0,1),q=Z(g,m,w+="",0),T,H;if(q!=w.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1e3+("L"in g?g.L:0));if(y&&!("Z"in g)&&(g.Z=0),"p"in g&&(g.H=g.H%12+g.p*12),g.m===void 0&&(g.m="q"in g?g.q:0),"V"in g){if(g.V<1||g.V>53)return null;"w"in g||(g.w=1),"Z"in g?(T=Lt(En(g.y,0,1)),H=T.getUTCDay(),T=H>4||H===0?On.ceil(T):On(T),T=Ln.offset(T,(g.V-1)*7),g.y=T.getUTCFullYear(),g.m=T.getUTCMonth(),g.d=T.getUTCDate()+(g.w+6)%7):(T=It(En(g.y,0,1)),H=T.getDay(),T=H>4||H===0?Rn.ceil(T):Rn(T),T=cn.offset(T,(g.V-1)*7),g.y=T.getFullYear(),g.m=T.getMonth(),g.d=T.getDate()+(g.w+6)%7)}else("W"in g||"U"in g)&&("w"in g||(g.w="u"in g?g.u%7:"W"in g?1:0),H="Z"in g?Lt(En(g.y,0,1)).getUTCDay():It(En(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(H+5)%7:g.w+g.U*7-(H+6)%7);return"Z"in g?(g.H+=g.Z/100|0,g.M+=g.Z%100,Lt(g)):It(g)}}function Z(m,y,w,g){for(var q=0,T=y.length,H=w.length,I,rn;q<T;){if(g>=H)return-1;if(I=y.charCodeAt(q++),I===37){if(I=y.charAt(q++),rn=L[I in je?y.charAt(q++):I],!rn||(g=rn(m,w,g))<0)return-1}else if(I!=w.charCodeAt(g++))return-1}return g}function en(m,y,w){var g=f.exec(y.slice(w));return g?(m.p=l.get(g[0].toLowerCase()),w+g[0].length):-1}function mn(m,y,w){var g=p.exec(y.slice(w));return g?(m.w=x.get(g[0].toLowerCase()),w+g[0].length):-1}function zn(m,y,w){var g=h.exec(y.slice(w));return g?(m.w=s.get(g[0].toLowerCase()),w+g[0].length):-1}function M(m,y,w){var g=F.exec(y.slice(w));return g?(m.m=W.get(g[0].toLowerCase()),w+g[0].length):-1}function B(m,y,w){var g=v.exec(y.slice(w));return g?(m.m=N.get(g[0].toLowerCase()),w+g[0].length):-1}function Y(m,y,w){return Z(m,t,y,w)}function K(m,y,w){return Z(m,e,y,w)}function _n(m,y,w){return Z(m,r,y,w)}function dn(m){return u[m.getDay()]}function pn(m){return o[m.getDay()]}function yn(m){return c[m.getMonth()]}function O(m){return a[m.getMonth()]}function sr(m){return i[+(m.getHours()>=12)]}function hr(m){return 1+~~(m.getMonth()/3)}function gr(m){return u[m.getUTCDay()]}function mr(m){return o[m.getUTCDay()]}function dr(m){return c[m.getUTCMonth()]}function pr(m){return a[m.getUTCMonth()]}function yr(m){return i[+(m.getUTCHours()>=12)]}function Mr(m){return 1+~~(m.getUTCMonth()/3)}return{format:function(m){var y=d(m+="",A);return y.toString=function(){return m},y},parse:function(m){var y=k(m+="",!1);return y.toString=function(){return m},y},utcFormat:function(m){var y=d(m+="",S);return y.toString=function(){return m},y},utcParse:function(m){var y=k(m+="",!0);return y.toString=function(){return m},y}}}var je={"-":"",_:" ",0:"0"},U=/^\s*\d+/,Ci=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function b(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(t)+i:i)}function Ui(n){return n.replace(Di,"\\$&")}function Pn(n){return new RegExp("^(?:"+n.map(Ui).join("|")+")","i")}function jn(n){return new Map(n.map((t,e)=>[t.toLowerCase(),e]))}function Ai(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Fi(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function Yi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function qi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function $i(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function ze(n,t,e){var r=U.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function _e(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Hi(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ii(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.q=r[0]*3-3,e+r[0].length):-1}function Li(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Xe(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function Ri(n,t,e){var r=U.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function Ze(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function Wi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function Oi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function Ei(n,t,e){var r=U.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function Pi(n,t,e){var r=U.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function ji(n,t,e){var r=Ci.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function zi(n,t,e){var r=U.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function _i(n,t,e){var r=U.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function Be(n,t){return b(n.getDate(),t,2)}function Xi(n,t){return b(n.getHours(),t,2)}function Zi(n,t){return b(n.getHours()%12||12,t,2)}function Bi(n,t){return b(1+cn.count(j(n),n),t,3)}function Ke(n,t){return b(n.getMilliseconds(),t,3)}function Vi(n,t){return Ke(n,t)+"000"}function Qi(n,t){return b(n.getMonth()+1,t,2)}function Gi(n,t){return b(n.getMinutes(),t,2)}function Ji(n,t){return b(n.getSeconds(),t,2)}function Ki(n){var t=n.getDay();return t===0?7:t}function no(n,t){return b(Sn.count(j(n)-1,n),t,2)}function nr(n){var t=n.getDay();return t>=4||t===0?sn(n):sn.ceil(n)}function to(n,t){return n=nr(n),b(sn.count(j(n),n)+(j(n).getDay()===4),t,2)}function eo(n){return n.getDay()}function ro(n,t){return b(Rn.count(j(n)-1,n),t,2)}function io(n,t){return b(n.getFullYear()%100,t,2)}function oo(n,t){return n=nr(n),b(n.getFullYear()%100,t,2)}function uo(n,t){return b(n.getFullYear()%1e4,t,4)}function ao(n,t){var e=n.getDay();return n=e>=4||e===0?sn(n):sn.ceil(n),b(n.getFullYear()%1e4,t,4)}function fo(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function Ve(n,t){return b(n.getUTCDate(),t,2)}function co(n,t){return b(n.getUTCHours(),t,2)}function lo(n,t){return b(n.getUTCHours()%12||12,t,2)}function so(n,t){return b(1+Ln.count(X(n),n),t,3)}function tr(n,t){return b(n.getUTCMilliseconds(),t,3)}function ho(n,t){return tr(n,t)+"000"}function go(n,t){return b(n.getUTCMonth()+1,t,2)}function mo(n,t){return b(n.getUTCMinutes(),t,2)}function po(n,t){return b(n.getUTCSeconds(),t,2)}function yo(n){var t=n.getUTCDay();return t===0?7:t}function Mo(n,t){return b(Wn.count(X(n)-1,n),t,2)}function er(n){var t=n.getUTCDay();return t>=4||t===0?gn(n):gn.ceil(n)}function xo(n,t){return n=er(n),b(gn.count(X(n),n)+(X(n).getUTCDay()===4),t,2)}function wo(n){return n.getUTCDay()}function bo(n,t){return b(On.count(X(n)-1,n),t,2)}function vo(n,t){return b(n.getUTCFullYear()%100,t,2)}function To(n,t){return n=er(n),b(n.getUTCFullYear()%100,t,2)}function No(n,t){return b(n.getUTCFullYear()%1e4,t,4)}function ko(n,t){var e=n.getUTCDay();return n=e>=4||e===0?gn(n):gn.ceil(n),b(n.getUTCFullYear()%1e4,t,4)}function So(){return"+0000"}function Qe(){return"%"}function Ge(n){return+n}function Je(n){return Math.floor(+n/1e3)}var Cn,Rt,Co,Wt,rr;Do({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Do(n){return Cn=Si(n),Rt=Cn.format,Co=Cn.parse,Wt=Cn.utcFormat,rr=Cn.utcParse,Cn}var ir="%Y-%m-%dT%H:%M:%S.%LZ";function Uo(n){return n.toISOString()}var zu=Date.prototype.toISOString?Uo:Wt(ir);function Ao(n){var t=new Date(n);return isNaN(t)?null:t}var _u=+new Date("2000-01-01T00:00:00.000Z")?Ao:rr(ir);function gt(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n);break}return this}var or=Symbol("implicit");function ar(){var n=new An,t=[],e=[],r=or;function i(o){let u=n.get(o);if(u===void 0){if(r!==or)return r;n.set(o,u=t.push(o)-1)}return e[u%e.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],n=new An;for(let u of o)n.has(u)||n.set(u,t.push(u)-1);return i},i.range=function(o){return arguments.length?(e=Array.from(o),i):e.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return ar(t,e).unknown(r)},gt.apply(i,arguments),i}function Fo(){var n=ar().unknown(void 0),t=n.domain,e=n.range,r=0,i=1,o,u,a=!1,c=0,f=0,l=.5;delete n.unknown;function h(){var s=t().length,p=i<r,x=p?i:r,v=p?r:i;o=(v-x)/Math.max(1,s-c+f*2),a&&(o=Math.floor(o)),x+=(v-x-o*(s-c))*l,u=o*(1-c),a&&(x=Math.round(x),u=Math.round(u));var N=Bt(s).map(function(F){return x+o*F});return e(p?N.reverse():N)}return n.domain=function(s){return arguments.length?(t(s),h()):t()},n.range=function(s){return arguments.length?([r,i]=s,r=+r,i=+i,h()):[r,i]},n.rangeRound=function(s){return[r,i]=s,r=+r,i=+i,a=!0,h()},n.bandwidth=function(){return u},n.step=function(){return o},n.round=function(s){return arguments.length?(a=!!s,h()):a},n.padding=function(s){return arguments.length?(c=Math.min(1,f=+s),h()):c},n.paddingInner=function(s){return arguments.length?(c=Math.min(1,s),h()):c},n.paddingOuter=function(s){return arguments.length?(f=+s,h()):f},n.align=function(s){return arguments.length?(l=Math.max(0,Math.min(1,s)),h()):l},n.copy=function(){return Fo(t(),[r,i]).round(a).paddingInner(c).paddingOuter(f).align(l)},gt.apply(h(),arguments)}function Yo(n){return function(){return n}}function qo(n){return+n}var ur=[0,1];function Dn(n){return n}function Ot(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Yo(isNaN(t)?NaN:.5)}function $o(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Ho(n,t,e){var r=n[0],i=n[1],o=t[0],u=t[1];return i<r?(r=Ot(i,r),o=e(u,o)):(r=Ot(r,i),o=e(o,u)),function(a){return o(r(a))}}function Io(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),o=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=Ot(n[u],n[u+1]),o[u]=e(t[u],t[u+1]);return function(a){var c=zt(n,a,1,r)-1;return o[c](i[c](a))}}function fr(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Lo(){var n=ur,t=ur,e=ot,r,i,o,u=Dn,a,c,f;function l(){var s=Math.min(n.length,t.length);return u!==Dn&&(u=$o(n[0],n[s-1])),a=s>2?Io:Ho,c=f=null,h}function h(s){return s==null||isNaN(s=+s)?o:(c||(c=a(n.map(r),t,e)))(r(u(s)))}return h.invert=function(s){return u(i((f||(f=a(t,n.map(r),P)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,qo),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),e=Ne,l()},h.clamp=function(s){return arguments.length?(u=s?!0:Dn,l()):u!==Dn},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(o=s,h):o},function(s,p){return r=s,i=p,l()}}function cr(){return Lo()(Dn,Dn)}function Ro(n,t,e,r){var i=Fn(n,t,e),o;switch(r=In(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(o=Ie(i,u))&&(r.precision=o),Dt(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Le(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=He(i))&&(r.precision=o-(r.type==="%")*2);break}}return Ct(r)}function Wo(n){var t=n.domain;return n.ticks=function(e){var r=t();return Zt(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Ro(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,o=r.length-1,u=r[i],a=r[o],c,f,l=10;for(a<u&&(f=u,u=a,a=f,f=i,i=o,o=f);l-- >0;){if(f=Zn(u,a,e),f===c)return r[i]=u,r[o]=a,t(r);if(f>0)u=Math.floor(u/f)*f,a=Math.ceil(a/f)*f;else if(f<0)u=Math.ceil(u*f)/f,a=Math.floor(a*f)/f;else break;c=f}return n},n}function Oo(){var n=cr();return n.copy=function(){return fr(n,Oo())},gt.apply(n,arguments),Wo(n)}function Eo(n,t){n=n.slice();var e=0,r=n.length-1,i=n[e],o=n[r],u;return o<i&&(u=e,e=r,r=u,u=i,i=o,o=u),n[e]=t.floor(i),n[r]=t.ceil(o),n}function Po(n){return new Date(n)}function jo(n){return n instanceof Date?+n:Math.round(n)}function lr(n,t,e,r,i,o,u,a,c,f){var l=cr(),h=l.invert,s=l.domain,p=f(".%L"),x=f(":%S"),v=f("%I:%M"),N=f("%I %p"),F=f("%a %d"),W=f("%b %d"),A=f("%B"),S=f("%Y");function L(d){return(c(d)<d?p:a(d)<d?x:u(d)<d?v:o(d)<d?N:r(d)<d?i(d)<d?F:W:e(d)<d?A:S)(d)}return l.invert=function(d){return new Date(Math.round(h(d)))},l.domain=function(d){return arguments.length?s(Array.from(d,jo)):s().map(Po)},l.ticks=function(d){var k=s();return n(k[0],k[k.length-1],d??10)},l.tickFormat=function(d,k){return k==null?L:f(k)},l.nice=function(d){var k=s();return(!d||typeof d.range!="function")&&(d=t(k[0],k[k.length-1],d??10)),d?s(Eo(k,d)):l},l.copy=function(){return fr(l,lr(n,t,e,r,i,o,u,a,c,f))},l}function ta(){return gt.apply(lr(Ee,Pe,j,ht,Sn,cn,st,lt,tn,Rt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Vo as a,Qo as b,Hn as c,et as d,tu as e,fu as f,su as g,Ct as h,ct as i,tn as j,lt as k,st as l,cn as m,Sn as n,Rn as o,pi as p,yi as q,sn as r,Mi as s,xi as t,ht as u,Rt as v,ar as w,Fo as x,Oo as y,ta as z};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a}from"./chunk-LT6LXKCR.js";var i={},d={info:a(async()=>{let{createInfoServices:e}=await import("./info-OHQRW6UA-ALVDUVYV.js"),r=e().Info.parser.LangiumParser;i.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./packet-JDAUHWVQ-5MQIBWAH.js"),r=e().Packet.parser.LangiumParser;i.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./pie-XZMESJXO-T5VRKHVT.js"),r=e().Pie.parser.LangiumParser;i.pie=r},"pie"),treeView:a(async()=>{let{createTreeViewServices:e}=await import("./treeView-D4JQ5SDB-42S7U73N.js"),r=e().TreeView.parser.LangiumParser;i.treeView=r},"treeView"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./architecture-WOLXFQ4H-V57EDXXY.js"),r=e().Architecture.parser.LangiumParser;i.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./gitGraph-VSP46ZUC-VBFWJBBT.js"),r=e().GitGraph.parser.LangiumParser;i.gitGraph=r},"gitGraph"),eventmodeling:a(async()=>{let{createEventModelingServices:e}=await import("./eventmodeling-K75KTNOO-WG6DDYMC.js"),r=e().EventModel.parser.LangiumParser;i.eventmodeling=r},"eventmodeling"),radar:a(async()=>{let{createRadarServices:e}=await import("./radar-ABXABTNO-C6FXIBYW.js"),r=e().Radar.parser.LangiumParser;i.radar=r},"radar"),railroad:a(async()=>{let{createRailroadServices:e}=await import("./railroad-I3PHUGI6-ZSO5JXB3.js"),r=e().Railroad.parser.LangiumParser;i.railroad=r},"railroad"),railroadEbnf:a(async()=>{let{createRailroadEbnfServices:e}=await import("./railroad-ebnf-DWYD2UWJ-MUENNCGK.js"),r=e().RailroadEbnf.parser.LangiumParser;i.railroadEbnf=r},"railroadEbnf"),railroadAbnf:a(async()=>{let{createRailroadAbnfServices:e}=await import("./railroad-abnf-LNEFI6M7-CI4GQRHB.js"),r=e().RailroadAbnf.parser.LangiumParser;i.railroadAbnf=r},"railroadAbnf"),railroadPeg:a(async()=>{let{createRailroadPegServices:e}=await import("./railroad-peg-JR7BVNR7-N3X5GGIX.js"),r=e().RailroadPeg.parser.LangiumParser;i.railroadPeg=r},"railroadPeg"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./treemap-SAJKECNS-RUBYQ7XF.js"),r=e().Treemap.parser.LangiumParser;i.treemap=r},"treemap"),wardley:a(async()=>{let{createWardleyServices:e}=await import("./wardley-7MLQ67FV-NV5HXTTC.js"),r=e().Wardley.parser.LangiumParser;i.wardley=r},"wardley"),cynefin:a(async()=>{let{createCynefinServices:e}=await import("./cynefin-EF2NZ3EQ-PSXP3DXL.js"),r=e().Cynefin.parser.LangiumParser;i.cynefin=r},"cynefin")};async function l(e,r){let n=d[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();let t=i[e].parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new m(t);return t.value}a(l,"parse");var s=a(e=>e!==void 0&&e>=0?e:"?","formatLocation"),m=class extends Error{constructor(e){let r=e.lexerErrors.map(o=>{let t=s(o.line),c=s(o.column);return`Lexer error on line ${t}, column ${c}: ${o.message}`}).join(`
|
|
2
|
+
`),n=e.parserErrors.map(o=>{let t=s(o.token.startLine),c=s(o.token.startColumn);return`Parse error on line ${t}, column ${c}: ${o.message}`}).join(`
|
|
3
|
+
`);super(`Parsing failed: ${r} ${n}`),this.result=e}static{a(this,"MermaidParseError")}};export{l as a,m as b};
|