@juki-team/base-ui 1.5.16 → 1.5.22
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/esm/ArrowForwardIcon-B_e3QWhU.js +1 -0
- package/dist/esm/BarChart-iS9A5dpq.js +1 -0
- package/dist/esm/{CartesianChart-cNl_tqN9.js → CartesianChart-DRkVAUTl.js} +6 -6
- package/dist/esm/ChangePasswordModal-DWcV41bD.js +1 -0
- package/dist/esm/CodeEditor-BIbu4VxL.js +1 -0
- package/dist/esm/CodeViewer-BUV-dalv.js +1 -0
- package/dist/esm/Collapse-paq7oWgG.js +1 -0
- package/dist/esm/{DataGrid-Bu-7Atkf.js → DataGrid-D3ZzYM2h.js} +1 -1
- package/dist/esm/DataViewer-CMI27AMZ.js +1 -0
- package/dist/esm/DrawerView-WQzHX5l-.js +1 -0
- package/dist/esm/ExcalidrawButton-Dkt-wFZK.js +1 -0
- package/dist/esm/GraphvizViewer-CYGvah6j.js +1 -0
- package/dist/esm/ImageLoaderCropper-DIEHTOiU.js +1 -0
- package/dist/esm/InputCellPhoneNumber-DgviNp4t.js +1 -0
- package/dist/esm/InputColor-BSBlv1oE.js +14 -0
- package/dist/esm/LineChart-BdYnYefg.js +1 -0
- package/dist/esm/LoaderLayer-CWElgcGs.js +1 -0
- package/dist/esm/MdMath-KE8c-hVy.js +1 -0
- package/dist/esm/MdMathEditor-DbH_jI7Y.js +28 -0
- package/dist/esm/{Popover-C0pozkRR.js → Popover-BLy0OI8L.js} +1 -1
- package/dist/esm/ReplyIcon-D3OGXdpv.js +1 -0
- package/dist/esm/SettingsIcon-W2HrGsHn.js +1 -0
- package/dist/esm/SlideDeck-o1krblz8.js +1 -0
- package/dist/esm/TableEyeIcon-cEB6wzrG.js +1 -0
- package/dist/esm/TableOfContents-DPsfG1VD.js +1 -0
- package/dist/esm/Tooltip-BI0Xe-XW.js +1 -0
- package/dist/esm/UserCodeEditor-CcaAG5g_.js +61 -0
- package/dist/esm/VirtualizedRowsFixed-VrMhZ4XD.js +1 -0
- package/dist/esm/WorksheetAsSlides-kPK5Z2vF.js +1 -0
- package/dist/esm/WorksheetBodies-CxDz0Rxa.js +1 -0
- package/dist/esm/WorksheetContents-Dxo5Xc3Y.js +1 -0
- package/dist/esm/WorksheetEditor-CvFYzeZC.js +1 -0
- package/dist/esm/WorksheetNode-DgQD3PMR.js +1 -0
- package/dist/esm/WorksheetViewer-DR45PXUH.js +1 -0
- package/dist/esm/abnfDiagram-WEYOIA3C-2vvvjt5F.js +1 -0
- package/dist/esm/{arc-CVDK40Ip.js → arc-C-pwTbE4.js} +1 -1
- package/dist/esm/architectureDiagram-ZHVYKT53-Njrg16Bb.js +1 -0
- package/dist/esm/blockDiagram-RJAE7QA3-OuYPx21T.js +1 -0
- package/dist/esm/c4Diagram-XDPPPE54-C4-sgPqw.js +1 -0
- package/dist/esm/channel-3HQcLN5a.js +1 -0
- package/dist/esm/{chunk-2E7WHVMD-CDFgC3vV.js → chunk-2E7WHVMD-BeozrAac.js} +1 -1
- package/dist/esm/{chunk-2Q5K7J3B-kc9wbXRi.js → chunk-2Q5K7J3B-4_3njuk_.js} +1 -1
- package/dist/esm/{chunk-4EMNKR2T-BOCYiV20.js → chunk-4EMNKR2T-DwE6V67-.js} +1 -1
- package/dist/esm/{chunk-55XCU76K-B9fq0Aas.js → chunk-55XCU76K-CpG64yyk.js} +1 -1
- package/dist/esm/{chunk-5VM5RSS4-BiSpRiw9.js → chunk-5VM5RSS4-CkeQhgn7.js} +1 -1
- package/dist/esm/{chunk-JWPE2WC7-fUi3mFpq.js → chunk-JWPE2WC7-CVtFylX6.js} +1 -1
- package/dist/esm/{chunk-NQOKRVIF-9yhnn9l0.js → chunk-NQOKRVIF-CYlkwWmJ.js} +1 -1
- package/dist/esm/{chunk-VQ5W62QI-k74sEYFL.js → chunk-VQ5W62QI-Be8I4VMn.js} +1 -1
- package/dist/esm/{chunk-XXDRQBXY-DJJHL2aw.js → chunk-XXDRQBXY-0jU-YNFU.js} +1 -1
- package/dist/esm/{chunk-ZCHMQSOR-DZxET8Hs.js → chunk-ZCHMQSOR-Cwl9AHIQ.js} +1 -1
- package/dist/esm/classDiagram-v2-4MYWR3UA-CgLXcYDZ.js +1 -0
- package/dist/esm/commons-C-9EFvh4.js +1 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/cose-bilkent-JH36ORCC-BUYPdwFO.js +1 -0
- package/dist/esm/cynefinDiagram-WF24UDRP-DFlv0vTF.js +1 -0
- package/dist/esm/dagre-NK4GIZVX-D3hfxWjC.js +1 -0
- package/dist/esm/diagram-CBK3MWTC-Dz3S8vtv.js +1 -0
- package/dist/esm/diagram-I5XIIV2D-CWQZNyHk.js +1 -0
- package/dist/esm/diagram-ODIL2UCW-RwcoAn2X.js +1 -0
- package/dist/esm/diagram-PFBEJUXE-BQ65i8Sl.js +1 -0
- package/dist/esm/diagram-RJA3I4VV-D3wAXEKx.js +1 -0
- package/dist/esm/diagram-TYUNFSNR-CQpNNmke.js +1 -0
- package/dist/esm/ebnfDiagram-V4P3TTPT-x6yeSo0p.js +1 -0
- package/dist/esm/elk-QONTBCTQ-BKyCSI5O.js +1 -0
- package/dist/esm/enums.js +1 -1
- package/dist/esm/erDiagram-KYQIGQAA-C9n_JA_w.js +1 -0
- package/dist/esm/{floating-ui.dom-DGDCR4EF.js → floating-ui.dom-DpXpy_9C.js} +1 -1
- package/dist/esm/flowDiagram-IUGLLWBU-BS8vlVHT.js +1 -0
- package/dist/esm/ganttDiagram-R7GPNTJY-CKebGhU7.js +1 -0
- package/dist/esm/gitGraphDiagram-PDYL7XHY-Bvp1UcgM.js +1 -0
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/index-B--41Rgp.js +1 -0
- package/dist/esm/{index-mLZqgXD7.js → index-BBCZJE-R.js} +1 -1
- package/dist/esm/index-BlaxEeMl.js +1 -0
- package/dist/esm/index-BwpxQGdp.js +1 -0
- package/dist/esm/{index-DWLuqDsD.js → index-C2_E6s4y.js} +1 -1
- package/dist/esm/{index-CffiBbeH.js → index-CB1wz24Q.js} +1 -1
- package/dist/esm/{index-CmWQEzQl.js → index-CWCIYdOV.js} +1 -1
- package/dist/esm/{index-DBWowQHL.js → index-C_OMDe9Q.js} +1 -1
- package/dist/esm/{index-nNMK7HvL.js → index-CqbF_7wB.js} +1 -1
- package/dist/esm/{index-CHgqN-d9.js → index-D2XW0y_s.js} +1 -1
- package/dist/esm/{index-BDQ8194g.js → index-D5f1dQka.js} +1 -1
- package/dist/esm/{index-CJtYjUlf.js → index-DBdTqY1b.js} +1 -1
- package/dist/esm/{index-CHVYA2P8.js → index-Dn0pnDCC.js} +1 -1
- package/dist/esm/index-DpobNvg5.js +1 -0
- package/dist/esm/index-Zvckkvpn.js +1 -0
- package/dist/esm/{index-BS7YTgMe.js → index-kHWDzZEv.js} +1 -1
- package/dist/esm/infoDiagram-MVDRKAX5-DrROCapb.js +1 -0
- package/dist/esm/ishikawaDiagram-HPEHV2GE-BGSVKWhg.js +1 -0
- package/dist/esm/journeyDiagram-BOSHW7O7-ogVQbHp2.js +1 -0
- package/dist/esm/kanban-definition-FNSA4HC5-lQM4fHQE.js +1 -0
- package/dist/esm/{linear-CIPQsvV7.js → linear-BCwRtKK9.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/mermaid.core-CvFWfSA0.js +5 -0
- package/dist/esm/mindmap-definition-6OY57UG3-D8l0C3RA.js +1 -0
- package/dist/esm/pegDiagram-ECIUJNBX-D8xo2dyF.js +1 -0
- package/dist/esm/pieDiagram-GNMPY74T-gHG-R83G.js +1 -0
- package/dist/esm/quadrantDiagram-D57K4MC3-DDHGqMWG.js +1 -0
- package/dist/esm/railroadDiagram-Y72NRBL7-BNcAWVzf.js +1 -0
- package/dist/esm/requirementDiagram-EQYSW5RA-D0TQZTve.js +1 -0
- package/dist/esm/sankeyDiagram-SY24JHO5-BgXxfdaz.js +1 -0
- package/dist/esm/sequenceDiagram-BLEHNHQU-BoejQXUR.js +1 -0
- package/dist/esm/server.js +1 -1
- package/dist/esm/settings-DzQM72QE.js +1 -0
- package/dist/esm/settings.js +1 -1
- package/dist/esm/sizeCapture-INFHLROL-sNhkxZSt.js +1 -0
- package/dist/esm/stateDiagram-v2-A6IESKWZ-sy3VIzCQ.js +1 -0
- package/dist/esm/swimlanes-B3ENRKFQ-BMvTnJVa.js +1 -0
- package/dist/esm/swimlanesDiagram-AYQRV4AK-CBA7l1Zm.js +1 -0
- package/dist/esm/{throttle-tEKq3i9o.js → throttle-DvoLRXRs.js} +1 -1
- package/dist/esm/{time-DP3lbwAd.js → time-2Ms6XNBq.js} +1 -1
- package/dist/esm/timeline-definition-JXYKGLGB-B9uS-p90.js +1 -0
- package/dist/esm/{types-C6dLWyzP.js → types-CdWZmDRI.js} +1 -1
- package/dist/esm/usecaseDiagram-WPOLBNNX-55ERmenj.js +1 -0
- package/dist/esm/vennDiagram-Q3Y3IDCW-M46hCRun.js +1 -0
- package/dist/esm/wardleyDiagram-IVAIDKWA-DiF93Bmd.js +1 -0
- package/dist/esm/websocket-KESFarc3.js +1 -0
- package/dist/esm/worksheet-CKlbZOJI.js +1 -0
- package/dist/esm/worksheet-Tio8jHyw.js +1 -0
- package/dist/esm/xychartDiagram-4URNHDU4-epgUCY99.js +1 -0
- package/dist/module-types/src/components/helpers/websocket.d.ts +0 -8
- package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/types.d.ts +7 -1
- package/dist/module-types/src/components/types/index.d.ts +5 -0
- package/dist/module-types/src/enums/index.d.ts +1 -1
- package/dist/module-types/src/stores/websocket/topicChannels.d.ts +1 -1
- package/package.json +2 -2
- package/src/styles/components/atoms/_menu.scss +25 -13
- package/dist/esm/ArrowForwardIcon-BIC54sbk.js +0 -1
- package/dist/esm/BarChart-54h6GU3p.js +0 -1
- package/dist/esm/ChangePasswordModal-DGIG264-.js +0 -1
- package/dist/esm/CodeEditor-C5-1AgZR.js +0 -1
- package/dist/esm/CodeViewer-CQrzGpJT.js +0 -1
- package/dist/esm/Collapse-Cx9QTKZD.js +0 -1
- package/dist/esm/DataViewer-Cv0iOPJ_.js +0 -1
- package/dist/esm/DrawerView-Cbw3l2O7.js +0 -1
- package/dist/esm/ExcalidrawButton-zJFah1nC.js +0 -1
- package/dist/esm/GraphvizViewer-DsTGulG0.js +0 -1
- package/dist/esm/ImageLoaderCropper-Bk1LxSbD.js +0 -1
- package/dist/esm/InputCellPhoneNumber-BaFBGcAe.js +0 -1
- package/dist/esm/InputColor-DhUlWGSD.js +0 -14
- package/dist/esm/LineChart-BQ1UY4l8.js +0 -1
- package/dist/esm/LoaderLayer-aKmuHFys.js +0 -1
- package/dist/esm/MdMath-DvH_O_A3.js +0 -1
- package/dist/esm/MdMathEditor-4-bjr11C.js +0 -29
- package/dist/esm/ReplyIcon-DFPc1kie.js +0 -1
- package/dist/esm/SettingsIcon-P_1rE3U0.js +0 -1
- package/dist/esm/SlideDeck-0cxhxG3b.js +0 -1
- package/dist/esm/TableEyeIcon-5qDbI7lU.js +0 -1
- package/dist/esm/TableOfContents-DG7lfEl8.js +0 -1
- package/dist/esm/Tooltip-OI-qyixa.js +0 -1
- package/dist/esm/UserCodeEditor-XI5CMxYI.js +0 -61
- package/dist/esm/VirtualizedRowsFixed-DH6WrMq1.js +0 -1
- package/dist/esm/WorksheetAsSlides-vK1Nqrlr.js +0 -1
- package/dist/esm/WorksheetBodies-AupmhX--.js +0 -1
- package/dist/esm/WorksheetContents-RcU2Wigz.js +0 -1
- package/dist/esm/WorksheetEditor-BExsBWi8.js +0 -1
- package/dist/esm/WorksheetNode-BTU0R61c.js +0 -1
- package/dist/esm/WorksheetViewer-Bn_SoOic.js +0 -1
- package/dist/esm/abnfDiagram-WEYOIA3C-Dpw6XMB5.js +0 -1
- package/dist/esm/architectureDiagram-ZHVYKT53-CwRCJS-f.js +0 -1
- package/dist/esm/blockDiagram-RJAE7QA3-BsveJL2h.js +0 -1
- package/dist/esm/c4Diagram-XDPPPE54-DT_YwSdM.js +0 -1
- package/dist/esm/channel-DfU2WyO4.js +0 -1
- package/dist/esm/classDiagram-v2-4MYWR3UA-Ccw8sMnD.js +0 -1
- package/dist/esm/commons-Bam9oxAR.js +0 -1
- package/dist/esm/cose-bilkent-JH36ORCC-iT9n9qMD.js +0 -1
- package/dist/esm/cynefinDiagram-WF24UDRP-COkkadSX.js +0 -1
- package/dist/esm/dagre-NK4GIZVX-B2jYnU0Q.js +0 -1
- package/dist/esm/diagram-CBK3MWTC-DzCzOobH.js +0 -1
- package/dist/esm/diagram-I5XIIV2D-ChGPyzwT.js +0 -1
- package/dist/esm/diagram-ODIL2UCW-_jTs4ZGf.js +0 -1
- package/dist/esm/diagram-PFBEJUXE-C66lVsSz.js +0 -1
- package/dist/esm/diagram-RJA3I4VV-QELSA6fF.js +0 -1
- package/dist/esm/diagram-TYUNFSNR-Be-cdxPq.js +0 -1
- package/dist/esm/ebnfDiagram-V4P3TTPT-Cr1EANnv.js +0 -1
- package/dist/esm/elk-QONTBCTQ-CqfCbAWo.js +0 -1
- package/dist/esm/erDiagram-KYQIGQAA-DMgweTFG.js +0 -1
- package/dist/esm/flowDiagram-IUGLLWBU-B4pY13UK.js +0 -1
- package/dist/esm/ganttDiagram-R7GPNTJY-YkRR1QZl.js +0 -1
- package/dist/esm/gitGraphDiagram-PDYL7XHY-BuhZy85T.js +0 -1
- package/dist/esm/index-CTKRTL8i.js +0 -1
- package/dist/esm/index-DU7OAICx.js +0 -1
- package/dist/esm/index-c3o5xJQl.js +0 -1
- package/dist/esm/index-w_leOmyv.js +0 -1
- package/dist/esm/infoDiagram-MVDRKAX5-CfqZ5lu9.js +0 -1
- package/dist/esm/ishikawaDiagram-HPEHV2GE-fwZw1vDt.js +0 -1
- package/dist/esm/journeyDiagram-BOSHW7O7-CJ0qr25S.js +0 -1
- package/dist/esm/kanban-definition-FNSA4HC5-D467uQkY.js +0 -1
- package/dist/esm/mermaid.core-QEjDbduh.js +0 -5
- package/dist/esm/mindmap-definition-6OY57UG3-BLQmSwVy.js +0 -1
- package/dist/esm/pegDiagram-ECIUJNBX-BD9B5ipu.js +0 -1
- package/dist/esm/pieDiagram-GNMPY74T-ALgTthPz.js +0 -1
- package/dist/esm/quadrantDiagram-D57K4MC3-DvM56mui.js +0 -1
- package/dist/esm/railroadDiagram-Y72NRBL7-Bbmv8kBV.js +0 -1
- package/dist/esm/requirementDiagram-EQYSW5RA-B2-FtMv8.js +0 -1
- package/dist/esm/sankeyDiagram-SY24JHO5-a4Tjq4bh.js +0 -1
- package/dist/esm/sequenceDiagram-BLEHNHQU-D51n1e3_.js +0 -1
- package/dist/esm/settings-Cd8fftVp.js +0 -1
- package/dist/esm/sizeCapture-INFHLROL-EvtR_ZF3.js +0 -1
- package/dist/esm/stateDiagram-v2-A6IESKWZ-Dy_vLRVL.js +0 -1
- package/dist/esm/swimlanes-B3ENRKFQ-0pqT2-Jw.js +0 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-COayinaD.js +0 -1
- package/dist/esm/timeline-definition-JXYKGLGB-DFhOynr-.js +0 -1
- package/dist/esm/usecaseDiagram-WPOLBNNX-MTVBbHK8.js +0 -1
- package/dist/esm/vennDiagram-Q3Y3IDCW-CgaIfPfv.js +0 -1
- package/dist/esm/wardleyDiagram-IVAIDKWA-CEQzSAI4.js +0 -1
- package/dist/esm/websocket-BppBoZUJ.js +0 -1
- package/dist/esm/worksheet-CQgex79V.js +0 -1
- package/dist/esm/xychartDiagram-4URNHDU4-BQJJ7mH2.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./chunk-5VM5RSS4-BiSpRiw9.js";import{aH as t,aI as s,aJ as n,aK as i,aL as r,aM as a,aN as o,aO as c,aP as l,aQ as h,aR as g,aS as d,aT as u,aU as y,aV as p,aW as b,aX as f,aY as m,aZ as x,a_ as S,a$ as L,b0 as k,b1 as _,b2 as w,b3 as E,_ as D,O as I,k as $,b4 as T,av as N,d as O,l as C,C as z,E as A,F as R,G as v,H as B,I as P,c as F,az as M,aC as Y,b5 as j,m as K,b6 as X,ao as W,b7 as U,ap as H}from"./mermaid.core-QEjDbduh.js";import{G}from"./graph-rGqC_56m.js";import{c as V}from"./channel-DfU2WyO4.js";import"./index-w_leOmyv.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-Bam9oxAR.js";import"./settings-Cd8fftVp.js";import"./constants.js";import"./LoaderLayer-aKmuHFys.js";import"./websocket-BppBoZUJ.js";import"./index-c3o5xJQl.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";import"./isSymbol-D2gNAbOe.js";import"./isUndefined--MLpwE__.js";function q(e){if(t(e))return e;const D=s(e);if(!function(e){switch(s(e)){case y:case E:case i:case r:case a:case l:case w:case _:case k:case L:case S:case d:case o:case x:case h:case u:case c:case g:case m:case f:case b:case p:return!0;default:return!1}}(e))return{};if(I=e,Array.isArray(I)){const t=Array.from(e);return e.length>0&&"string"==typeof e[0]&&Object.hasOwn(e,"index")&&(t.index=e.index,t.input=e.input),t}var I;if(n(e)){const t=e;return new(0,t.constructor)(t.buffer,t.byteOffset,t.length)}if(D===i)return new ArrayBuffer(e.byteLength);if(D===r){const t=e,s=t.buffer,n=t.byteOffset,i=t.byteLength,r=new ArrayBuffer(i),a=new Uint8Array(s,n,i);return new Uint8Array(r).set(a),new DataView(r)}if(D===a||D===o||D===c){const t=new(0,e.constructor)(e.valueOf());return D===c?function(e,t){const s=t.valueOf().length;for(const n in t)Object.hasOwn(t,n)&&(Number.isNaN(Number(n))||Number(n)>=s)&&(e[n]=t[n])}(t,e):J(t,e),t}if(D===l)return new Date(Number(e));if(D===h){const t=e,s=new RegExp(t.source,t.flags);return s.lastIndex=t.lastIndex,s}if(D===g)return Object(Symbol.prototype.valueOf.call(e));if(D===d){const t=e,s=new Map;return t.forEach((e,t)=>{s.set(t,e)}),s}if(D===u){const t=e,s=new Set;return t.forEach(e=>{s.add(e)}),s}if(D===y){const t=e,s={};return J(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}const $={};return function(e,t){const s=Object.getPrototypeOf(t);if(null!==s){"function"==typeof t.constructor&&Object.setPrototypeOf(e,s)}}($,e),J($,e),function(e,t){const s=Object.getOwnPropertySymbols(t);for(let n=0;n<s.length;n++){const i=s[n];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}($,e),$}function J(e,t){for(const s in t)Object.hasOwn(t,s)&&(e[s]=t[s])}var Z=function(){var e=D(function(e,t,s,n){for(s=s||{},n=e.length;n--;s[e[n]]=t);return s},"o"),t=[1,15],s=[1,7],n=[1,13],i=[1,14],r=[1,19],a=[1,16],o=[1,17],c=[1,18],l=[8,30],h=[8,10,21,28,29,30,31,39,43,46],g=[1,23],d=[1,24],u=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],p=[1,49],b={trace:D(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:D(function(e,t,s,n,i,r,a){var o=r.length-1;switch(i){case 4:n.getLogger().debug("Rule: separator (NL) ");break;case 5:n.getLogger().debug("Rule: separator (Space) ");break;case 6:n.getLogger().debug("Rule: separator (EOF) ");break;case 7:n.getLogger().debug("Rule: hierarchy: ",r[o-1]),n.setHierarchy(r[o-1]);break;case 8:n.getLogger().debug("Stop NL ");break;case 9:n.getLogger().debug("Stop EOF ");break;case 10:n.getLogger().debug("Stop NL2 ");break;case 11:n.getLogger().debug("Stop EOF2 ");break;case 12:n.getLogger().debug("Rule: statement: ",r[o]),"number"==typeof r[o].length?this.$=r[o]:this.$=[r[o]];break;case 13:n.getLogger().debug("Rule: statement #2: ",r[o-1]),this.$=[r[o-1]].concat(r[o]);break;case 14:n.getLogger().debug("Rule: link: ",r[o],e),this.$={edgeTypeStr:r[o],label:""};break;case 15:n.getLogger().debug("Rule: LABEL link: ",r[o-3],r[o-1],r[o]),this.$={edgeTypeStr:r[o],label:r[o-1]};break;case 18:const t=parseInt(r[o]),s=n.generateId();this.$={id:s,type:"space",label:"",width:t,children:[]};break;case 23:n.getLogger().debug("Rule: (nodeStatement link node) ",r[o-2],r[o-1],r[o]," typestr: ",r[o-1].edgeTypeStr);const i=n.edgeStrToEdgeData(r[o-1].edgeTypeStr),a=n.edgeStrToEdgeStartData(r[o-1].edgeTypeStr),c=n.edgeStrToThickness(r[o-1].edgeTypeStr),l=n.edgeStrToPattern(r[o-1].edgeTypeStr);this.$=[{id:r[o-2].id,label:r[o-2].label,type:r[o-2].type,directions:r[o-2].directions},{id:r[o-2].id+"-"+r[o].id,start:r[o-2].id,end:r[o].id,label:r[o-1].label,type:"edge",thickness:c,pattern:l,directions:r[o].directions,arrowTypeEnd:i,arrowTypeStart:a},{id:r[o].id,label:r[o].label,type:n.typeStr2Type(r[o].typeStr),directions:r[o].directions}];break;case 24:n.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[o-1],r[o]),this.$={id:r[o-1].id,label:r[o-1].label,type:n.typeStr2Type(r[o-1].typeStr),directions:r[o-1].directions,widthInColumns:parseInt(r[o],10)};break;case 25:n.getLogger().debug("Rule: nodeStatement (node) ",r[o]),this.$={id:r[o].id,label:r[o].label,type:n.typeStr2Type(r[o].typeStr),directions:r[o].directions,widthInColumns:1};break;case 26:n.getLogger().debug("APA123",this?this:"na"),n.getLogger().debug("COLUMNS: ",r[o]),this.$={type:"column-setting",columns:"auto"===r[o]?-1:parseInt(r[o])};break;case 27:n.getLogger().debug("Rule: id-block statement : ",r[o-2],r[o-1]),n.generateId(),this.$={...r[o-2],type:"composite",children:r[o-1]};break;case 28:n.getLogger().debug("Rule: blockStatement : ",r[o-2],r[o-1],r[o]);const h=n.generateId();this.$={id:h,type:"composite",label:"",children:r[o-1]};break;case 29:n.getLogger().debug("Rule: node (NODE_ID separator): ",r[o]),this.$={id:r[o]};break;case 30:n.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[o-1],r[o]),this.$={id:r[o-1],label:r[o].label,typeStr:r[o].typeStr,directions:r[o].directions};break;case 31:n.getLogger().debug("Rule: dirList: ",r[o]),this.$=[r[o]];break;case 32:n.getLogger().debug("Rule: dirList: ",r[o-1],r[o]),this.$=[r[o-1]].concat(r[o]);break;case 33:n.getLogger().debug("Rule: nodeShapeNLabel: ",r[o-2],r[o-1],r[o]),this.$={typeStr:r[o-2]+r[o],label:r[o-1]};break;case 34:n.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[o-3],r[o-2]," #3:",r[o-1],r[o]),this.$={typeStr:r[o-3]+r[o],label:r[o-2],directions:r[o-1]};break;case 35:case 36:this.$={type:"classDef",id:r[o-1].trim(),css:r[o].trim()};break;case 37:this.$={type:"applyClass",id:r[o-1].trim(),styleClass:r[o].trim()};break;case 38:this.$={type:"applyStyles",id:r[o-1].trim(),stylesStr:r[o].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,39:a,43:o,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:s,28:n,29:i,31:r,39:a,43:o,46:c}),e(h,[2,16],{14:22,15:g,16:d}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(u,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:r},{10:t,11:27,13:4,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,39:a,43:o,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:r},{31:[2,14]},{17:[1,36]},e(u,[2,24]),{10:t,11:37,13:4,14:22,15:g,16:d,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,39:a,43:o,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(u,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:p},{15:[1,50]},e(h,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:p,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:D(function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},"parseError"),parse:D(function(e){var t=this,s=[0],n=[],i=[null],r=[],a=this.table,o="",c=0,l=0,h=r.slice.call(arguments,1),g=Object.create(this.lexer),d={yy:{}};for(var u in this.yy)Object.prototype.hasOwnProperty.call(this.yy,u)&&(d.yy[u]=this.yy[u]);g.setInput(e,d.yy),d.yy.lexer=g,d.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var y=g.yylloc;r.push(y);var p=g.options&&g.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||g.lex()||1)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,D(function(e){s.length=s.length-2*e,i.length=i.length-e,r.length=r.length-e},"popStack"),D(b,"lex");for(var f,m,x,S,L,k,_,w,E={};;){if(m=s[s.length-1],this.defaultActions[m]?x=this.defaultActions[m]:(null==f&&(f=b()),x=a[m]&&a[m][f]),void 0===x||!x.length||!x[0]){var I="";for(L in w=[],a[m])this.terminals_[L]&&L>2&&w.push("'"+this.terminals_[L]+"'");I=g.showPosition?"Parse error on line "+(c+1)+":\n"+g.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(I,{text:g.match,token:this.terminals_[f]||f,line:g.yylineno,loc:y,expected:w})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(x[0]){case 1:s.push(f),i.push(g.yytext),r.push(g.yylloc),s.push(x[1]),f=null,l=g.yyleng,o=g.yytext,c=g.yylineno,y=g.yylloc;break;case 2:if(k=this.productions_[x[1]][1],E.$=i[i.length-k],E._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(S=this.performAction.apply(E,[o,l,c,d.yy,x[1],i,r].concat(h))))return S;k&&(s=s.slice(0,-1*k*2),i=i.slice(0,-1*k),r=r.slice(0,-1*k)),s.push(this.productions_[x[1]][0]),i.push(E.$),r.push(E._$),_=a[s[s.length-2]][s[s.length-1]],s.push(_);break;case 3:return!0}}return!0},"parse")},f=function(){return{EOF:1,parseError:D(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:D(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:D(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:D(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=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),s.length-1&&(this.yylineno-=s.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===n.length?this.yylloc.first_column:0)+n[n.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:D(function(){return this._more=!0,this},"more"),reject:D(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:D(function(e){this.unput(this.match.slice(e))},"less"),pastInput:D(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:D(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:D(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:D(function(e,t){var s,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in i)this[r]=i[r];return!1}return!1},"test_match"),next:D(function(){if(this.done)return this.EOF;var e,t,s,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;r<i.length;r++)if((s=this._input.match(this.rules[i[r]]))&&(!t||s[0].length>t[0].length)){if(t=s,n=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,i[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:D(function(){var e=this.next();return e||this.lex()},"lex"),begin:D(function(e){this.conditionStack.push(e)},"begin"),popState:D(function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:D(function(e){this.begin(e)},"pushState"),stateStackSize:D(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:D(function(e,t,s,n){switch(s){case 0:return e.getLogger().debug("Found block-beta"),10;case 1:return e.getLogger().debug("Found id-block"),29;case 2:return e.getLogger().debug("Found block"),10;case 3:e.getLogger().debug(".",t.yytext);break;case 4:e.getLogger().debug("_",t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 13:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 14:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 15:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),37;case 74:return e.getLogger().debug("Lex: NODE_ID",t.yytext),31;case 75:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 78:return"NODE_DESCR";case 80:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return e.getLogger().debug("LEX: NODE_DESCR:",t.yytext),"NODE_DESCR";case 83:e.getLogger().debug("LEX POPPING"),this.popState();break;case 84:e.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (right): dir:",t.yytext),"DIR";case 86:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (left):",t.yytext),"DIR";case 87:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (x):",t.yytext),"DIR";case 88:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (y):",t.yytext),"DIR";case 89:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (up):",t.yytext),"DIR";case 90:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (down):",t.yytext),"DIR";case 91:return t.yytext="]>",e.getLogger().debug("Lex (ARROW_DIR end):",t.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 93:case 94:case 95:return e.getLogger().debug("Lex: LINK",t.yytext),15;case 96:case 97:case 98:return e.getLogger().debug("Lex: START_LINK",t.yytext),this.pushState("LLABEL"),16;case 100:return e.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 102:case 103:return this.popState(),e.getLogger().debug("Lex: LINK",t.yytext),15;case 104:return e.getLogger().debug("Lex: COLON",t.yytext),t.yytext=t.yytext.slice(1),27}},"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}}}}();function m(){this.yy={}}return b.lexer=f,D(m,"Parser"),m.prototype=b,b.Parser=m,new m}();Z.parser=Z;var Q=Z,ee=new Map,te=[],se=new Map,ne="color",ie="fill",re=new Map,ae="",oe=D(e=>K.sanitizeText(e,F()),"sanitizeText"),ce=D(function(e,t=""){let s=re.get(e);s||(s={id:e,styles:[],textStyles:[]},re.set(e,s)),null!=t&&t.split(",").forEach(e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(RegExp(ne).exec(e)){const e=t.replace(ie,"bgFill").replace(ne,ie);s.textStyles.push(e)}s.styles.push(t)})},"addStyleClass"),le=D(function(e,t=""){const s=ee.get(e);null!=t&&(s.styles=t.split(","))},"addStyle2Node"),he=D(function(e,t){e.split(",").forEach(function(e){let s=ee.get(e);if(void 0===s){const t=e.trim();s={id:t,type:"na",children:[]},ee.set(t,s)}s.classes||(s.classes=[]),s.classes.push(t)})},"setCssClass"),ge=0,de=D((e,t)=>{const s=e.flat(),n=[],i=s.find(e=>"column-setting"===e?.type),r=i?.columns??-1;for(const e of s)if("number"==typeof r&&r>0&&"column-setting"!==e.type&&"number"==typeof e.widthInColumns&&e.widthInColumns>r&&C.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${r}`),e.label&&(e.label=oe(e.label)),"classDef"!==e.type)if("applyClass"!==e.type)if("applyStyles"!==e.type)if("column-setting"===e.type)t.columns=e.columns??-1;else if("edge"===e.type){const t=(se.get(e.id)??0)+1;se.set(e.id,t),e.id=t+"-"+e.id,te.push(e)}else{e.label||("composite"===e.type?e.label="":e.label=e.id);const t=ee.get(e.id);if(void 0===t?("composite"===e.type&&(e.colorIndex=ge++),ee.set(e.id,e)):("na"!==e.type&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&de(e.children,e),"space"===e.type){const t=e.width??1;for(let s=0;s<t;s++){const t=q(e);t.id=t.id+"-"+s,ee.set(t.id,t),n.push(t)}}else void 0===t&&n.push(e)}else e?.stylesStr&&le(e.id,e?.stylesStr);else he(e.id,e?.styleClass??"");else ce(e.id,e.css);t.children=n},"populateBlockDatabase"),ue=[],ye={id:"root",type:"composite",children:[],columns:-1},pe=D(()=>{C.debug("Clear called"),z(),ye={id:"root",type:"composite",children:[],columns:-1},ee=new Map([["root",ye]]),ue=[],re=new Map,te=[],se=new Map,ae="",ge=0},"clear");function be(e){switch(C.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return C.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"}}function fe(e){return C.debug("typeStr2Type",e),"=="===e?"thick":"normal"}function me(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}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"}}function Se(e){return e.includes("==")?"thick":"normal"}function Le(e){return e.includes(".-")?"dotted":"solid"}D(be,"typeStr2Type"),D(fe,"edgeTypeStr2Type"),D(me,"edgeStrToEdgeData"),D(xe,"edgeStrToEdgeStartData"),D(Se,"edgeStrToThickness"),D(Le,"edgeStrToPattern");var ke=0,_e=D(()=>(ke++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ke),"generateId"),we=D(e=>{ye.children=e,de(e,ye),ue=ye.children},"setHierarchy"),Ee=D(e=>{const t=ee.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),De=D(()=>[...ee.values()],"getBlocksFlat"),Ie=D(()=>ue||[],"getBlocks"),$e=D(()=>te,"getEdges"),Te=D(e=>ee.get(e),"getBlock"),Ne=D(e=>{ee.set(e.id,e)},"setBlock"),Oe=D(e=>{ae=e},"setDiagramId"),Ce=D(()=>ae,"getDiagramId"),ze=D(()=>C,"getLogger"),Ae=D(function(){return re},"getClasses"),Re={getConfig:D(()=>I().block,"getConfig"),typeStr2Type:be,edgeTypeStr2Type:fe,edgeStrToEdgeData:me,edgeStrToEdgeStartData:xe,edgeStrToThickness:Se,edgeStrToPattern:Le,getLogger:ze,getBlocksFlat:De,getBlocks:Ie,getEdges:$e,setHierarchy:we,getBlock:Te,setBlock:Ne,getColumns:Ee,getClasses:Ae,clear:pe,generateId:_e,setDiagramId:Oe,getDiagramId:Ce},ve=D(e=>{const{theme:t,bkgColorArray:s,borderColorArray:n}=e;if(!A(t,n))return"";const i=R(e.look),r=v(s);let a="";for(let t=0;t<B(e.THEME_COLOR_LIMIT,n);t++){a+=`\n\n ${`[data-look="${i}"][data-color-id="color-${t}"]`}.node rect.composite {\n stroke: ${n[t%n.length]};\n ${r?`fill: ${s[t%s.length]};`:""}\n }\n`}return a},"genColor"),Be=D((e,t)=>{const s=V,n=s(e,"r"),i=s(e,"g"),r=s(e,"b");return P(n,i,r,t)},"fade"),Pe=D(t=>`${ve(t)}\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n /* From the theme, as every other diagram does. Pinned at 1px here, so block drew a\n thinner border than an identical flowchart node under any theme asking for more --\n the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke\n and filter, never stroke-width. */\n stroke-width: ${t.strokeWidth??1}px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n /*\n * This is for backward compatibility with existing code that didn't\n * add a \`<p>\` around edge labels.\n *\n * TODO: We should probably remove this in a future release.\n */\n p {\n margin: 0;\n padding: 0;\n display: inline;\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${t.edgeLabelBackground};\n }\n\n .node .cluster {\n // fill: ${Be(t.mainBkg,.5)};\n fill: ${Be(t.clusterBkg,.5)};\n stroke: ${Be(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n ${e()}\n`,"getStyles");function Fe(e,t){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(1===e)return{px:0,py:t};return{px:t%e,py:Math.floor(t/e)}}D(Fe,"calculateBlockPosition");var Me=D(e=>{let t=0,s=0;for(const n of e.children){const{width:e,height:i,x:r,y:a}=n.size??{width:0,height:0,x:0,y:0};if(C.debug("getMaxChildSize abc95 child:",n.id,"width:",e,"height:",i,"x:",r,"y:",a,n.type),"space"===n.type)continue;const o=e/(n.widthInColumns??1);o>t&&(t=o),i>s&&(s=i)}return{width:t,height:s}},"getMaxChildSize");function Ye(e,t,s=0,n=0,i=8){C.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",s),e?.size?.width||(e.size={width:s,height:n,x:0,y:0});let r=0,a=0;if(e.children?.length>0){for(const s of e.children)Ye(s,t,0,0,i);const o=Me(e);r=o.width,a=o.height,C.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",r,a);for(const t of e.children)t.size&&(C.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${r} ${a} ${JSON.stringify(t.size)}`),t.size.width=r*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=a,t.size.x=0,t.size.y=0,C.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${r} maxHeight:${a}`));for(const s of e.children)Ye(s,t,r,a,i);const c=e.columns??-1;let l=0;for(const t of e.children)l+=t.widthInColumns??1;let h=e.children.length;c>0&&c<l&&(h=c);const g=Math.ceil(l/h);let d=h*(r+i)+i,u=g*(a+i)+i;if(d<s){C.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${s} siblingHeight ${n} width ${d}`),d=s,u=n;const t=(s-h*i-i)/h,o=(n-g*i-i)/g;C.debug("Size indata abc88",e.id,"childWidth",t,"maxWidth",r),C.debug("Size indata abc88",e.id,"childHeight",o,"maxHeight",a),C.debug("Size indata abc88 xSize",h,"padding",i);for(const s of e.children)s.size&&(s.size.width=t,s.size.height=o,s.size.x=0,s.size.y=0)}if(C.debug(`abc95 (finale calc) ${e.id} xSize ${h} ySize ${g} columns ${c}${e.children.length} width=${Math.max(d,e.size?.width||0)}`),d<(e?.size?.width||0)){d=e?.size?.width||0;const t=c>0?Math.min(e.children.length,c):e.children.length;if(t>0){const s=(d-t*i-i)/t;C.debug("abc95 (growing to fit) width",e.id,d,e.size?.width,s);for(const t of e.children)t.size&&(t.size.width=s)}}e.size={width:d,height:u,x:0,y:0}}C.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function je(e,t,s=8){C.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const n=e.columns??-1;if(C.debug("layoutBlocks columns abc95",e.id,"=>",n,e),e.children&&e.children.length>0){const i=e?.children[0]?.size?.width??0,r=e.children.length*i+(e.children.length-1)*s;C.debug("widthOfChildren 88",r,"posX");const a=new Map;{let t=0;for(const s of e.children){if(!s.size)continue;const{py:e}=Fe(n,t),i=a.get(e)??0;s.size.height>i&&a.set(e,s.size.height);let r=s?.widthInColumns??1;n>0&&(r=Math.min(r,n-t%n)),t+=r}}const o=new Map;{let e=0;const t=[...a.keys()].sort((e,t)=>e-t);for(const n of t)o.set(n,e),e+=(a.get(n)??0)+s}let c=0;C.debug("abc91 block?.size?.x",e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-s,h=0;for(const i of e.children){const r=e;if(!i.size)continue;const{width:g,height:d}=i.size,{px:u,py:y}=Fe(n,c);if(y!=h&&(h=y,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-s,C.debug("New row in layout for block",e.id," and child ",i.id,h)),C.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${u},${y} (${r?.size?.x},${r?.size?.y}) parent: ${r.id} width: ${g}${s}`),r.size){const e=g/2;i.size.x=l+s+e,C.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${s} width=${g} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${g*(i?.widthInColumns??1)/2}`),l=i.size.x+e;const t=o.get(y)??0,n=a.get(y)??d;i.size.y=r.size.y-r.size.height/2+t+n/2+s,C.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${s}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${g*(i?.widthInColumns??1)/2}`)}i.children&&je(i,t,s);let p=i?.widthInColumns??1;n>0&&(p=Math.min(p,n-c%n)),c+=p,C.debug("abc88 columnsPos",i,c)}}C.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Ke(e,{minX:t,minY:s,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){const{x:r,y:a,width:o,height:c}=e.size;r-o/2<t&&(t=r-o/2),a-c/2<s&&(s=a-c/2),r+o/2>n&&(n=r+o/2),a+c/2>i&&(i=a+c/2)}if(e.children)for(const r of e.children)({minX:t,minY:s,maxX:n,maxY:i}=Ke(r,{minX:t,minY:s,maxX:n,maxY:i}));return{minX:t,minY:s,maxX:n,maxY:i}}function Xe(e){const t=e.getBlock("root");if(!t)return;const s=F()?.block?.padding??8;Ye(t,e,0,0,s),je(t,e,s),C.debug("getBlocks",JSON.stringify(t,null,2));const{minX:n,minY:i,maxX:r,maxY:a}=Ke(t);return{x:n,y:i,width:r-n,height:a-i}}function We(e,t,s=!1){const n=e;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i+=" flowchart-label";const r=(n?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]);let a,o=0,c="rect";switch(n.type){case"round":o=5,c="rect";break;case"composite":o=0,c="composite",a=0;break;case"square":case"group":default:c="rect";break;case"diamond":c="question";break;case"hexagon":c="hexagon";break;case"block_arrow":c="block_arrow";break;case"odd":case"rect_left_inv_arrow":c="rect_left_inv_arrow";break;case"lean_right":c="lean_right";break;case"lean_left":c="lean_left";break;case"trapezoid":c="trapezoid";break;case"inv_trapezoid":c="inv_trapezoid";break;case"circle":c="circle";break;case"ellipse":c="ellipse";break;case"stadium":c="stadium";break;case"subroutine":c="subroutine";break;case"cylinder":c="cylinder";break;case"doublecircle":c="doublecircle"}const l=X(n?.styles??[]),h=n.label,g=n.size??{width:0,height:0,x:0,y:0},d=t.getDiagramId();return{labelStyle:l.labelStyle,shape:c,label:h,labelText:h,rx:o,ry:o,class:i,cssClasses:i,cssStyles:n?.styles??[],cssCompiledStyles:r,style:l.style,id:n.id,domId:d?`${d}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:g.width||void 0,height:g.height||void 0,wrappingWidth:g.width||Number.POSITIVE_INFINITY,x:g.x,y:g.y,positioned:s,intersect:void 0,padding:a??I()?.block?.padding??0,widthInColumns:n.widthInColumns??1,colorIndex:n.colorIndex,look:I().look}}async function Ue(e,t,s){const n=We(t,s,!1);if("group"===t.type)return;const i=I(),r=await W(e,n,{config:i}),a=r.node()?.getBBox()??{width:0,height:0},o=s.getBlock(n.id);o.size={width:a.width,height:a.height,x:0,y:0,node:r},s.setBlock(o),r.remove()}async function He(e,t,s){const n=We(t,s,!0);if("space"!==s.getBlock(n.id).type){const s=I(),i=await W(e,n,{config:s});void 0!==n.colorIndex&&U(i,n.colorIndex,s.theme,s.themeVariables?.borderColorArray),t.intersect=n?.intersect,H(n)}}async function Ge(e,t,s,n){for(const i of t)await n(e,i,s),i.children&&await Ge(e,i.children,s,n)}async function Ve(e,t,s){await Ge(e,t,s,Ue)}async function qe(e,t,s){await Ge(e,t,s,He)}async function Je(e,t,s,n,i){const r=new G({multigraph:!0,compound:!0});r.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const e of s)e.size&&r.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(const s of t)if(s.start&&s.end){const t=n.getBlock(s.start),a=n.getBlock(s.end);if(t?.size&&a?.size){const n=t.size,o=a.size,c=[{x:n.x,y:n.y},{x:n.x+(o.x-n.x)/2,y:n.y+(o.y-n.y)/2},{x:o.x,y:o.y}],l=i?`${i}-${s.id}`:s.id,h=`${"thick"===s.thickness?"edge-thickness-thick":"edge-thickness-normal"} ${"dotted"===s.pattern?"edge-pattern-dotted":"edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;M(e,{...s,id:l,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:c,classes:h},{},"block",r.node(s.start),r.node(s.end),i),s.label&&(await Y(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:c,classes:h}),j({...s,x:c[1].x,y:c[1].y},{originalPath:c}))}}}D(Ye,"setBlockSizes"),D(je,"layoutBlocks"),D(Ke,"findBounds"),D(Xe,"layout"),D(We,"getNodeFromBlock"),D(Ue,"calculateBlockSize"),D(He,"insertBlockPositioned"),D(Ge,"performOperations"),D(Ve,"calculateBlockSizes"),D(qe,"insertBlocks"),D(Je,"insertEdges");var Ze=D(function(e,t){return t.db.getClasses()},"getClasses"),Qe={parser:Q,db:Re,renderer:{draw:D(async function(e,t,s,n){const{securityLevel:i,block:r}=I(),a=n.db;let o;a.setDiagramId(t),"sandbox"===i&&(o=$("#i"+t));const c=$("sandbox"===i?o.nodes()[0].contentDocument.body:"body"),l="sandbox"===i?c.select(`[id="${t}"]`):$(`[id="${t}"]`);T(l,I());N(l,["point","circle","cross"],n.type,t);const h=a.getBlocks(),g=a.getBlocksFlat(),d=a.getEdges(),u=l.insert("g").attr("class","block");await Ve(u,h,a);const y=Xe(a);await qe(u,h,a),await Je(u,d,g,a,t);const p=u.node()?.getBBox(),b=p&&Number.isFinite(p.width)&&Number.isFinite(p.height)?p:y;if(b){const e=Math.max(1,Math.round(b.width/b.height*.125)),t=b.height+e+10,s=b.width+10,{useMaxWidth:n}=r;O(l,t,s,!!n),C.debug("Here Bounds",y,b),l.attr("viewBox",`${b.x-5} ${b.y-5} ${b.width+10} ${b.height+10}`)}},"draw"),getClasses:Ze},styles:Pe};export{Qe as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t}from"./chunk-55XCU76K-B9fq0Aas.js";import{s as e,g as n,a as s,b as a,_ as r,c as i,l as o,d as l,e as h,i as u,f as d,h as p,j as y,k as b,w as _,m as f,n as m}from"./mermaid.core-QEjDbduh.js";import"./index-w_leOmyv.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-Bam9oxAR.js";import"./settings-Cd8fftVp.js";import"./constants.js";import"./LoaderLayer-aKmuHFys.js";import"./websocket-BppBoZUJ.js";import"./index-c3o5xJQl.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var g=function(){var t=r(function(t,e,n,s){for(n=n||{},s=t.length;s--;n[t[s]]=e);return n},"o"),e=[1,24],n=[1,25],s=[1,26],a=[1,27],i=[1,28],o=[1,63],l=[1,64],h=[1,65],u=[1,66],d=[1,67],p=[1,68],y=[1,69],b=[1,29],_=[1,30],f=[1,31],m=[1,32],g=[1,33],x=[1,34],E=[1,35],S=[1,36],C=[1,37],T=[1,38],k=[1,39],w=[1,40],O=[1,41],R=[1,42],v=[1,43],P=[1,44],N=[1,45],D=[1,46],A=[1,47],L=[1,48],I=[1,50],M=[1,51],$=[1,52],B=[1,53],j=[1,54],Y=[1,55],U=[1,56],F=[1,57],z=[1,58],X=[1,59],W=[1,60],q=[14,42],Q=[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],H=[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],V=[1,82],K=[1,83],G=[1,84],Z=[1,85],J=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],nt=[12,33],st=[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],at={trace:r(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:r(function(t,e,n,s,a,r,i){var o=r.length-1;switch(a){case 3:s.setDirection("TB");break;case 4:s.setDirection("BT");break;case 5:s.setDirection("RL");break;case 6:s.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:s.setC4Type(r[o-3]);break;case 19:s.setTitle(r[o].substring(6)),this.$=r[o].substring(6);break;case 20:s.setAccDescription(r[o].substring(15)),this.$=r[o].substring(15);break;case 21:this.$=r[o].trim(),s.setTitle(this.$);break;case 22:case 23:this.$=r[o].trim(),s.setAccDescription(this.$);break;case 28:r[o].splice(2,0,"ENTERPRISE"),s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 29:r[o].splice(2,0,"SYSTEM"),s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 30:s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 31:r[o].splice(2,0,"CONTAINER"),s.addContainerBoundary(...r[o]),this.$=r[o];break;case 32:s.addDeploymentNode("node",...r[o]),this.$=r[o];break;case 33:s.addDeploymentNode("nodeL",...r[o]),this.$=r[o];break;case 34:s.addDeploymentNode("nodeR",...r[o]),this.$=r[o];break;case 35:s.popBoundaryParseStack();break;case 39:s.addPersonOrSystem("person",...r[o]),this.$=r[o];break;case 40:s.addPersonOrSystem("external_person",...r[o]),this.$=r[o];break;case 41:s.addPersonOrSystem("system",...r[o]),this.$=r[o];break;case 42:s.addPersonOrSystem("system_db",...r[o]),this.$=r[o];break;case 43:s.addPersonOrSystem("system_queue",...r[o]),this.$=r[o];break;case 44:s.addPersonOrSystem("external_system",...r[o]),this.$=r[o];break;case 45:s.addPersonOrSystem("external_system_db",...r[o]),this.$=r[o];break;case 46:s.addPersonOrSystem("external_system_queue",...r[o]),this.$=r[o];break;case 47:s.addContainer("container",...r[o]),this.$=r[o];break;case 48:s.addContainer("container_db",...r[o]),this.$=r[o];break;case 49:s.addContainer("container_queue",...r[o]),this.$=r[o];break;case 50:s.addContainer("external_container",...r[o]),this.$=r[o];break;case 51:s.addContainer("external_container_db",...r[o]),this.$=r[o];break;case 52:s.addContainer("external_container_queue",...r[o]),this.$=r[o];break;case 53:s.addComponent("component",...r[o]),this.$=r[o];break;case 54:s.addComponent("component_db",...r[o]),this.$=r[o];break;case 55:s.addComponent("component_queue",...r[o]),this.$=r[o];break;case 56:s.addComponent("external_component",...r[o]),this.$=r[o];break;case 57:s.addComponent("external_component_db",...r[o]),this.$=r[o];break;case 58:s.addComponent("external_component_queue",...r[o]),this.$=r[o];break;case 60:s.addRel("rel",...r[o]),this.$=r[o];break;case 61:s.addRel("birel",...r[o]),this.$=r[o];break;case 62:s.addRel("rel_u",...r[o]),this.$=r[o];break;case 63:s.addRel("rel_d",...r[o]),this.$=r[o];break;case 64:s.addRel("rel_l",...r[o]),this.$=r[o];break;case 65:s.addRel("rel_r",...r[o]),this.$=r[o];break;case 66:s.addRel("rel_b",...r[o]),this.$=r[o];break;case 67:r[o].splice(0,1),s.addRel("rel",...r[o]),this.$=r[o];break;case 68:s.updateElStyle("update_el_style",...r[o]),this.$=r[o];break;case 69:s.updateRelStyle("update_rel_style",...r[o]),this.$=r[o];break;case 70:s.updateLayoutConfig("update_layout_config",...r[o]),this.$=r[o];break;case 71:this.$=[r[o]];break;case 72:r[o].unshift(r[o-1]),this.$=r[o];break;case 73:case 75:this.$=r[o].trim();break;case 74:let t={};t[r[o-1].trim()]=r[o].trim(),this.$=t;break;case 76:this.$=""}},"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:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:70,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:71,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:72,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:73,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{14:[1,74]},t(q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:h,38:u,39:d,40:p,41:y,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W}),t(q,[2,14]),t(Q,[2,16],{12:[1,76]}),t(q,[2,36],{12:[1,77]}),t(H,[2,19]),t(H,[2,20]),{25:[1,78]},{27:[1,79]},t(H,[2,23]),{35:80,75:81,76:V,77:K,79:G,80:Z},{35:86,75:81,76:V,77:K,79:G,80:Z},{35:87,75:81,76:V,77:K,79:G,80:Z},{35:88,75:81,76:V,77:K,79:G,80:Z},{35:89,75:81,76:V,77:K,79:G,80:Z},{35:90,75:81,76:V,77:K,79:G,80:Z},{35:91,75:81,76:V,77:K,79:G,80:Z},{35:92,75:81,76:V,77:K,79:G,80:Z},{35:93,75:81,76:V,77:K,79:G,80:Z},{35:94,75:81,76:V,77:K,79:G,80:Z},{35:95,75:81,76:V,77:K,79:G,80:Z},{35:96,75:81,76:V,77:K,79:G,80:Z},{35:97,75:81,76:V,77:K,79:G,80:Z},{35:98,75:81,76:V,77:K,79:G,80:Z},{35:99,75:81,76:V,77:K,79:G,80:Z},{35:100,75:81,76:V,77:K,79:G,80:Z},{35:101,75:81,76:V,77:K,79:G,80:Z},{35:102,75:81,76:V,77:K,79:G,80:Z},{35:103,75:81,76:V,77:K,79:G,80:Z},{35:104,75:81,76:V,77:K,79:G,80:Z},t(J,[2,59]),{35:105,75:81,76:V,77:K,79:G,80:Z},{35:106,75:81,76:V,77:K,79:G,80:Z},{35:107,75:81,76:V,77:K,79:G,80:Z},{35:108,75:81,76:V,77:K,79:G,80:Z},{35:109,75:81,76:V,77:K,79:G,80:Z},{35:110,75:81,76:V,77:K,79:G,80:Z},{35:111,75:81,76:V,77:K,79:G,80:Z},{35:112,75:81,76:V,77:K,79:G,80:Z},{35:113,75:81,76:V,77:K,79:G,80:Z},{35:114,75:81,76:V,77:K,79:G,80:Z},{35:115,75:81,76:V,77:K,79:G,80:Z},{20:116,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{12:[1,118],33:[1,117]},{35:119,75:81,76:V,77:K,79:G,80:Z},{35:120,75:81,76:V,77:K,79:G,80:Z},{35:121,75:81,76:V,77:K,79:G,80:Z},{35:122,75:81,76:V,77:K,79:G,80:Z},{35:123,75:81,76:V,77:K,79:G,80:Z},{35:124,75:81,76:V,77:K,79:G,80:Z},{35:125,75:81,76:V,77:K,79:G,80:Z},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(q,[2,15]),t(Q,[2,17],{21:22,19:130,22:e,23:n,24:s,26:a,28:i}),t(q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:n,24:s,26:a,28:i,34:o,36:l,37:h,38:u,39:d,40:p,41:y,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W}),t(H,[2,21]),t(H,[2,22]),t(J,[2,39]),t(tt,[2,71],{75:81,35:132,76:V,77:K,79:G,80:Z}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(J,[2,40]),t(J,[2,41]),t(J,[2,42]),t(J,[2,43]),t(J,[2,44]),t(J,[2,45]),t(J,[2,46]),t(J,[2,47]),t(J,[2,48]),t(J,[2,49]),t(J,[2,50]),t(J,[2,51]),t(J,[2,52]),t(J,[2,53]),t(J,[2,54]),t(J,[2,55]),t(J,[2,56]),t(J,[2,57]),t(J,[2,58]),t(J,[2,60]),t(J,[2,61]),t(J,[2,62]),t(J,[2,63]),t(J,[2,64]),t(J,[2,65]),t(J,[2,66]),t(J,[2,67]),t(J,[2,68]),t(J,[2,69]),t(J,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(nt,[2,28]),t(nt,[2,29]),t(nt,[2,30]),t(nt,[2,31]),t(nt,[2,32]),t(nt,[2,33]),t(nt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Q,[2,18]),t(q,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(J,[2,24]),t(J,[2,35]),t(st,[2,25]),t(st,[2,26],{12:[1,138]}),t(st,[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:r(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:r(function(t){var e=this,n=[0],s=[],a=[null],i=[],o=this.table,l="",c=0,h=0,u=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var b=d.yylloc;i.push(b);var _=d.options&&d.options.ranges;function f(){var t;return"number"!=typeof(t=s.pop()||d.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(t){n.length=n.length-2*t,a.length=a.length-t,i.length=i.length-t},"popStack"),r(f,"lex");for(var m,g,x,E,S,C,T,k,w={};;){if(g=n[n.length-1],this.defaultActions[g]?x=this.defaultActions[g]:(null==m&&(m=f()),x=o[g]&&o[g][m]),void 0===x||!x.length||!x[0]){var O="";for(S in k=[],o[g])this.terminals_[S]&&S>2&&k.push("'"+this.terminals_[S]+"'");O=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(O,{text:d.match,token:this.terminals_[m]||m,line:d.yylineno,loc:b,expected:k})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(x[0]){case 1:n.push(m),a.push(d.yytext),i.push(d.yylloc),n.push(x[1]),m=null,h=d.yyleng,l=d.yytext,c=d.yylineno,b=d.yylloc;break;case 2:if(C=this.productions_[x[1]][1],w.$=a[a.length-C],w._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},_&&(w._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),void 0!==(E=this.performAction.apply(w,[l,h,c,p.yy,x[1],a,i].concat(u))))return E;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(w.$),i.push(w._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0},"parse")},rt=function(){return{EOF:1,parseError:r(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:r(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:r(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:r(function(t){this.unput(this.match.slice(t))},"less"),pastInput:r(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:r(function(t,e){var n,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in a)this[r]=a[r];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;var t,e,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if((n=this._input.match(this.rules[a[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r(function(){var t=this.next();return t||this.lex()},"lex"),begin:r(function(t){this.conditionStack.push(t)},"begin"),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(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:r(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r(function(t){this.begin(t)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:r(function(t,e,n,s){switch(n){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;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;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;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";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}}}}();function it(){this.yy={}}return at.lexer=rt,r(it,"Parser"),it.prototype=at,at.Parser=it,new it}();g.parser=g;var x,E=g,S=r(t=>i()[t],"getRequiredConfig"),C=new Set(["label","descr","techn","type"]),T=r((t,e)=>{for(const[n,s]of Object.entries(e))if(void 0!==s)if("object"==typeof s){const[e,n]=Object.entries(s)[0];t[e]=C.has(e)?{text:n}:n}else t[n]=s},"assignAttributes"),k=r(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),w=[],O=[""],R="global",v="",P=[k()],N=[],D="",A=!1,L=4,I=2,M=r(function(){return x},"getC4Type"),$=r(function(t){const e=y(t,i());x=e},"setC4Type"),B=r(function(t,e,n,s,a,r,i,o,l){if(null==t||null==e||null==n||null==s)return;let c={};const h=N.find(t=>t.from===e&&t.to===n);if(h?c=h:N.push(c),c.type=t,c.from=e,c.to=n,c.label={text:s},null==a)c.techn??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];c[t]=C.has(t)?{text:e}:e}else c.techn={text:a};if(null==r)c.descr??={text:""};else if("object"==typeof r){const[t,e]=Object.entries(r)[0];c[t]=C.has(t)?{text:e}:e}else c.descr={text:r};T(c,{sprite:i,tags:o,link:l}),c.wrap=ot()},"addRel"),j=r(function(t,e,n,s,a,r,i){if(null===e||null===n)return;let o={};const l=w.find(t=>t.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,w.push(o)),o.label=null==n?{text:""}:{text:n},null==s)o.descr??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];o[t]=C.has(t)?{text:e}:e}else o.descr={text:s};T(o,{sprite:a,tags:r,link:i}),o.typeC4Shape={text:t},o.parentBoundary=R,o.wrap=ot()},"addPersonOrSystem"),Y=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=w.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,w.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.techn??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.techn={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{sprite:r,tags:i,link:o}),l.wrap=ot(),l.typeC4Shape={text:t},l.parentBoundary=R},"addContainer"),U=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=w.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,w.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.techn??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.techn={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{sprite:r,tags:i,link:o}),l.wrap=ot(),l.typeC4Shape={text:t},l.parentBoundary=R},"addComponent"),F=r(function(t,e,n,s,a){if(null===t||null===e)return;let r={};const i=P.find(e=>e.alias===t);if(i&&t===i.alias?r=i:(r.alias=t,P.push(r)),r.label=null==e?{text:""}:{text:e},null==n)r.type={text:"system"};else if("object"==typeof n){const[t,e]=Object.entries(n)[0];r[t]=C.has(t)?{text:e}:e}else r.type={text:n};T(r,{tags:s,link:a}),r.parentBoundary=R,r.wrap=ot(),v=R,R=t,O.push(v)},"addPersonOrSystemBoundary"),z=r(function(t,e,n,s,a){if(null===t||null===e)return;let r={};const i=P.find(e=>e.alias===t);if(i&&t===i.alias?r=i:(r.alias=t,P.push(r)),r.label=null==e?{text:""}:{text:e},null==n)r.type={text:"container"};else if("object"==typeof n){const[t,e]=Object.entries(n)[0];r[t]=C.has(t)?{text:e}:e}else r.type={text:n};T(r,{tags:s,link:a}),r.parentBoundary=R,r.wrap=ot(),v=R,R=t,O.push(v)},"addContainerBoundary"),X=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=P.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,P.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.type={text:"node"};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.type={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{tags:i,link:o}),l.nodeType=t,l.parentBoundary=R,l.wrap=ot(),v=R,R=e,O.push(v)},"addDeploymentNode"),W=r(function(){R=v,O.pop(),v=O.pop(),O.push(v)},"popBoundaryParseStack"),q=r(function(t,e,n,s,a,r,i,o,l,c,h){let u=w.find(t=>t.alias===e);if(void 0!==u||(u=P.find(t=>t.alias===e),void 0!==u)){if(null!=n)if("object"==typeof n){const[t,e]=Object.entries(n)[0];u[t]=e}else u.bgColor=n;if(null!=s)if("object"==typeof s){const[t,e]=Object.entries(s)[0];u[t]=e}else u.fontColor=s;if(null!=a)if("object"==typeof a){const[t,e]=Object.entries(a)[0];u[t]=e}else u.borderColor=a;if(null!=r)if("object"==typeof r){const[t,e]=Object.entries(r)[0];u[t]=e}else u.shadowing=r;if(null!=i)if("object"==typeof i){const[t,e]=Object.entries(i)[0];u[t]=e}else u.shape=i;if(null!=o)if("object"==typeof o){const[t,e]=Object.entries(o)[0];u[t]=e}else u.sprite=o;if(null!=l)if("object"==typeof l){const[t,e]=Object.entries(l)[0];u[t]=e}else u.techn=l;if(null!=c)if("object"==typeof c){const[t,e]=Object.entries(c)[0];u[t]=e}else u.legendText=c;if(null!=h)if("object"==typeof h){const[t,e]=Object.entries(h)[0];u[t]=e}else u.legendSprite=h}},"updateElStyle"),Q=r(function(t,e,n,s,a,r,i){const o=N.find(t=>t.from===e&&t.to===n);if(void 0!==o){if(null!=s)if("object"==typeof s){const[t,e]=Object.entries(s)[0];o[t]=e}else o.textColor=s;if(null!=a)if("object"==typeof a){const[t,e]=Object.entries(a)[0];o[t]=e}else o.lineColor=a;if(null!=r)if("object"==typeof r){const[t,e]=Object.entries(r)[0];o[t]=parseInt(e)}else o.offsetX=parseInt(r);if(null!=i)if("object"==typeof i){const[t,e]=Object.entries(i)[0];o[t]=parseInt(e)}else o.offsetY=parseInt(i)}},"updateRelStyle"),H=r(function(t,e,n){let s=L,a=I;if("object"==typeof e){const t=Object.values(e)[0];s=parseInt(t)}else s=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];a=parseInt(t)}else a=parseInt(n);s>=1&&(L=s),a>=1&&(I=a)},"updateLayoutConfig"),V=r(function(){return L},"getC4ShapeInRow"),K=r(function(){return I},"getC4BoundaryInRow"),G=r(function(){return R},"getCurrentBoundaryParse"),Z=r(function(){return v},"getParentBoundaryParse"),J=r(function(t){return null==t?w:w.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),tt=r(function(t){return w.find(e=>e.alias===t)??P.find(e=>e.alias===t)},"getC4Shape"),et=r(function(t){return Object.keys(J(t))},"getC4ShapeKeys"),nt=r(function(t){return null==t?P:P.filter(e=>e.parentBoundary===t)},"getBoundaries"),st=nt,at=r(function(){return N},"getRels"),rt=r(function(){return D},"getTitle"),it=r(function(t){A=t},"setWrap"),ot=r(function(){return A},"autoWrap"),lt=r(function(){w=[],P=[k()],v="",R="global",O=[""],N=[],O=[""],D="",A=!1,L=4,I=2},"clear"),ct=r(function(t){const e=y(t,i());D=e},"setTitle"),ht={addPersonOrSystem:j,addPersonOrSystemBoundary:F,addContainer:Y,addContainerBoundary:z,addComponent:U,addDeploymentNode:X,popBoundaryParseStack:W,addRel:B,updateElStyle:q,updateRelStyle:Q,updateLayoutConfig:H,autoWrap:ot,setWrap:it,getC4ShapeArray:J,getC4Shape:tt,getC4ShapeKeys:et,getBoundaries:nt,getBoundarys:st,getCurrentBoundaryParse:G,getParentBoundaryParse:Z,getRels:at,getTitle:rt,getC4Type:M,getC4ShapeInRow:V,getC4BoundaryInRow:K,setAccTitle:a,getAccTitle:s,getAccDescription:n,setAccDescription:e,getConfig:r(()=>S("c4"),"getConfig"),clear:lt,LINETYPE:{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},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:ct,setC4Type:$},ut=r(function(e,n){return t(e,n)},"drawRect"),dt=r((t,e,n,s)=>{const a=t.append("g");let r=0;for(const t of e){const e=t.textColor?t.textColor:"#444444",i=t.lineColor?t.lineColor:"#444444",o=t.offsetX?parseInt(String(t.offsetX)):0,l=t.offsetY?parseInt(String(t.offsetY)):0,c="";if(0===r){const e=a.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",i),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#"+s+"-arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+c+"#"+s+"-arrowend)"),r=-1}else{const e=a.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",i).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#"+s+"-arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+c+"#"+s+"-arrowend)")}const h=t.label.width;let u=n.messageFont();Et(n)(t.label.text,a,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+l,h,t.label.height,{fill:e},u),t.techn&&""!==t.techn.text&&(u=n.messageFont(),Et(n)("["+t.techn.text+"]",a,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+l,Math.max(h,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},u))}},"drawRels"),pt=r(function(t,e,n){const s=t.append("g"),a=e.bgColor?e.bgColor:"none",r=e.borderColor?e.borderColor:"#444444",i=e.fontColor?e.fontColor:"black";let o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});const l={x:e.x,y:e.y,fill:a,stroke:r,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};ut(s,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=i,Et(n)(e.label.text,s,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=n.boundaryFont(),c.fontColor=i,Et(n)(e.type.text,s,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=i,Et(n)(e.descr.text,s,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))},"drawBoundary"),yt=r(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"),bt=r(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"),_t=r(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"),ft=r(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"),mt=r(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"),gt=r(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"),xt=r(function(t,e){const n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.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"),n.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"),Et=function(){function t(t,e,n,a,r,i,o){s(e.append("text").attr("x",n+r/2).attr("y",a+i/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,n,a,r,i,o,l){const{fontSize:c,fontFamily:h,fontWeight:u}=l,d=t.split(f.lineBreakRegex);for(let t=0;t<d.length;t++){const i=t*c-c*(d.length-1)/2,l=e.append("text").attr("x",n+r/2).attr("y",a).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",u).style("font-family",h);l.append("tspan").attr("dy",i).text(d[t]).attr("alignment-baseline","mathematical"),s(l,o)}}function n(t,n,a,r,i,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",a).attr("y",r).attr("width",i).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,a,r,i,0,l,c),s(u,l)}function s(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return r(t,"byText"),r(e,"byTspan"),r(n,"byFo"),r(s,"_setTextAttrs"),function(s){return"fo"===s.textPlacement?n:"old"===s.textPlacement?t:e}}(),St={drawRect:ut,drawBoundary:pt,drawRels:dt,insertArrowHead:ft,insertArrowEnd:mt,insertArrowFilledHead:gt,insertArrowCrossHead:xt,insertDatabaseIcon:yt,insertComputerIcon:bt,insertClockIcon:_t},Ct=r((t,e)=>{if("sandbox"===e){const e=b("#i"+t),n=e.node()?.contentDocument;if(!n)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:b(n.body),doc:n}}return{root:b("body"),doc:document}},"getDiagramRoot"),Tt=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),kt=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),wt={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},Ot=r(t=>t?wt[t.toLowerCase()]:void 0,"keywordShape"),Rt=r(t=>{const e=Ot(t.shape)??Ot(t.sprite);if(e)return e;if(t.tags)for(const e of t.tags.split(",")){const t=Ot(e.trim());if(t)return t}const n=t.typeC4Shape.text;return"person"===n||"external_person"===n?"person":kt.has(n)?"cylinder":Tt.has(n)?"h-cyl":"rounded"},"resolveNodeShape"),vt={person:"Person",system:"Software System",container:"Container",component:"Component"},Pt=r(t=>{const e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return vt[e]??e.replace(/_/g," ")},"stereotypeLabel"),Nt=r(t=>t.startsWith("external_"),"isExternal"),Dt=r(t=>{const e=Pt(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),At=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),Lt=new Set(At),It=r(t=>Lt.has(t),"isC4ElementType"),Mt=r((t,e)=>{const n=t.typeC4Shape.text,s=t.bgColor??(It(n)&&e[`${n}_bg_color`]),a=t.borderColor??(It(n)&&e[`${n}_border_color`]),r=[];return s&&r.push(`fill:${s}`),a&&r.push(`stroke:${a}`),r.push(`color:${t.fontColor??"#FFFFFF"}`),r},"elementCssStyles"),$t=r((t,e,n,s,a)=>{const r=t.typeC4Shape.text,i=["c4-shape",`c4-${r}`];Nt(r)&&i.push("c4-external");const o=Rt(t),l=Mt(t,e);return"rounded"!==o&&"fr-rect"!==o||l.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:Dt(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:o,cssClasses:i.join(" "),cssStyles:l,padding:n,look:s,useHtmlLabels:!1,width:a}},"buildC4Node"),Bt=0,jt=0,Yt=4,Ut=2;g.yy=ht;var Ft={},zt=class{static{r(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,Xt(t.db.getConfig())}setData(t,e,n,s){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=s}updateVal(t,e,n,s){void 0===t[e]?t[e]=n:t[e]=s(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;const e=this.nextData.stopx,n=this.data.widthLimit;let s=this.nextData.startx===this.nextData.stopx?e+t.margin:e+2*t.margin,a=s+t.width,r=this.nextData.starty+2*t.margin,i=r+t.height;(s>=n||a>=n||this.nextData.cnt>Yt)&&(s=this.nextData.startx+t.margin+Ft.nextLinePaddingX,r=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=s+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+t.height,this.nextData.cnt=1),t.x=s,t.y=r,this.updateVal(this.data,"startx",s,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",s,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,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},Xt(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Xt=r(function(t){h(Ft,t),t?.fontFamily&&(Ft.personFontFamily=Ft.systemFontFamily=Ft.messageFontFamily=t.fontFamily),t?.fontSize&&(Ft.personFontSize=Ft.systemFontSize=Ft.messageFontSize=t.fontSize),t?.fontWeight&&(Ft.personFontWeight=Ft.systemFontWeight=Ft.messageFontWeight=t.fontWeight)},"setConf"),Wt=r(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),qt=r(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function Qt(t,e,n,s,a){const r=e[t];if(!r.width)if(n)r.text=_(r.text,a,s),r.textLines=r.text.split(f.lineBreakRegex).length,r.width=a,r.height=m(r.text,s);else{const t=r.text.split(f.lineBreakRegex);r.textLines=t.length;let e=0;r.height=0,r.width=0;for(const n of t)r.width=Math.max(d(n,s),r.width),e=m(n,s),r.height=r.height+e}return r}r(Qt,"calcC4ShapeTextWH");var Ht=r(function(t,e,n){const s=n.data.startx,a=n.data.starty;e.x=s,e.y=a,e.width=n.data.stopx-s,e.height=n.data.stopy-a,e.intersect=t=>u.rect({x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height},t),e.label.y=Ft.c4ShapeMargin-35;const r=e.wrap&&Ft.wrap,i=Wt(Ft);i.fontSize=i.fontSize+2,i.fontWeight="bold";const o=d(e.label.text,i);Qt("label",e,r,i,o),St.drawBoundary(t,e,Ft)},"drawBoundary"),Vt=r(async function(t,e,n,s){const a=i(),o=a.look??"classic",l={config:a},c=e.attr("id")??"",h=s.map(t=>n[Number(t)]),u=r(t=>{const e=t.shape?p[t.shape]:void 0;if(!e)throw new Error(`C4: no shape handler for "${t.shape}"`);return e},"shapeHandlerFor");await Promise.all(h.map(async t=>{const n=$t(t,Ft,Ft.c4ShapePadding,o,Ft.width);n.domId=`${c}-${n.id}`;const s=await u(n)(e,n,l);t.width=n.width??Ft.width,t.height=n.height??Ft.height,t.margin=Ft.c4ShapeMargin,s.remove()}));for(const e of h)t.insert(e);await Promise.all(h.map(async t=>{const n=$t(t,Ft,Ft.c4ShapePadding,o,Ft.width);n.domId=`${c}-${n.id}`,n.x=t.x+t.width/2,n.y=t.y+t.height/2;const s=e.append("g").attr("transform",`translate(${t.x+t.width/2}, ${t.y+t.height/2})`);await u(n)(s,n,l),t.intersect=n.intersect})),t.bumpLastMargin(Ft.c4ShapeMargin)},"drawC4ShapeArray"),Kt=class{static{r(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Gt=r(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`);const{x:n,y:s}=t.intersect(e);return new Kt(n,s)},"getIntersectPoint"),Zt=r(function(t,e){const n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;const s=Gt(t,n);n.x=t.x+t.width/2,n.y=t.y+t.height/2;return{startPoint:s,endPoint:Gt(e,n)}},"getIntersectPoints"),Jt=r(function(t,e,n,s,a){const r=s.db.getC4Type();let i=0;for(const t of e){i+=1;const e=t.wrap&&Ft.wrap,s=qt(Ft);"C4Dynamic"===r&&(t.label.text=i+": "+t.label.text);let a=d(t.label.text,s);Qt("label",t,e,s,a),t.techn&&""!==t.techn.text&&(a=d(t.techn.text,s),Qt("techn",t,e,s,a)),t.descr&&""!==t.descr.text&&(a=d(t.descr.text,s),Qt("descr",t,e,s,a));const o=n(t.from),l=n(t.to);if(!o||!l)throw new Error(`C4 rel "${t.from}" -> "${t.to}" references an unknown shape or boundary`);const c=Zt(o,l);if(!c.startPoint||!c.endPoint)throw new Error(`Could not calculate intersection points for rel "${t.from}" -> "${t.to}"`);t.startPoint=c.startPoint,t.endPoint=c.endPoint}St.drawRels(t,e,Ft,a)},"drawRels");async function te(t,e,n,s,a){const r=a.db,i=new zt(a);i.data.widthLimit=n.data.widthLimit/Math.min(Ut,s.length);for(const[o,l]of s.entries()){let s=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=s,s=l.image.Y+l.image.height);const c=l.wrap&&Ft.wrap,h=Wt(Ft);h.fontSize=h.fontSize+2,h.fontWeight="bold";const u=Qt("label",l,c,h,i.data.widthLimit);if(u.Y=s+8,s=u.Y+u.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]";const t=Qt("type",l,c,Wt(Ft),i.data.widthLimit);t.Y=s+5,s=t.Y+t.height}if(l.descr&&""!==l.descr.text){const t=Wt(Ft);t.fontSize=t.fontSize-2;const e=Qt("descr",l,c,t,i.data.widthLimit);e.Y=s+20,s=e.Y+e.height}if(0==o||o%Ut===0){const t=n.data.startx+Ft.diagramMarginX,e=n.data.stopy+Ft.diagramMarginY+s;i.setData(t,t,e,e)}else{const t=i.data.stopx!==i.data.startx?i.data.stopx+Ft.diagramMarginX:i.data.startx,e=i.data.starty;i.setData(t,t,e,e)}i.name=l.alias;const d=r.getC4ShapeArray(l.alias),p=r.getC4ShapeKeys(l.alias);p.length>0&&await Vt(i,t,d,p),e=l.alias;const y=r.getBoundaries(e);y.length>0&&await te(t,e,i,y,a),"global"!==l.alias&&Ht(t,l,i),n.data.stopy=Math.max(i.data.stopy+Ft.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(i.data.stopx+Ft.c4ShapeMargin,n.data.stopx),Bt=Math.max(Bt,n.data.stopx),jt=Math.max(jt,n.data.stopy)}}r(te,"drawInsideBoundary");var ee={drawPersonOrSystemArray:Vt,drawBoundary:Ht,setConf:Xt,draw:r(async function(t,e,n,s){Ft=S("c4");const a=i().securityLevel,{root:r}=Ct(e,a),c=s.db;c.setWrap(Ft.wrap),Yt=c.getC4ShapeInRow(),Ut=c.getC4BoundaryInRow(),o.debug(`C:${JSON.stringify(Ft,null,2)}`);const h=r.select(`[id="${e}"]`);St.insertComputerIcon(h,e),St.insertDatabaseIcon(h,e),St.insertClockIcon(h,e);const u=new zt(s);u.setData(Ft.diagramMarginX,Ft.diagramMarginX,Ft.diagramMarginY,Ft.diagramMarginY),u.data.widthLimit=screen.availWidth,Bt=Ft.diagramMarginX,jt=Ft.diagramMarginY;const d=c.getTitle(),p=c.getBoundaries("");await te(h,"",u,p,s),St.insertArrowHead(h,e),St.insertArrowEnd(h,e),St.insertArrowCrossHead(h,e),St.insertArrowFilledHead(h,e),Jt(h,c.getRels(),c.getC4Shape,s,e),u.data.stopx=Bt,u.data.stopy=jt;const y=u.data,b=y.startx,_=y.starty,f=jt-_+2*Ft.diagramMarginY,m=Bt-b,g=m+2*Ft.diagramMarginX;d&&h.append("text").text(d).attr("x",m/2-4*Ft.diagramMarginX).attr("y",_+Ft.diagramMarginY),l(h,f,g,Ft.useMaxWidth);const x=d?60:0;h.attr("viewBox",b-Ft.diagramMarginX+" -"+(Ft.diagramMarginY+x)+" "+g+" "+(f+x)),o.debug("models:",y)},"draw")},ne=r(()=>{const t=i().c4??{},e=new CSSStyleSheet;for(const n of At){const s=e.cssRules[e.insertRule(`.c4-shape.c4-${n} .label {}`,e.cssRules.length)],a=t[`${n}FontFamily`],r=t[`${n}FontSize`],i=t[`${n}FontWeight`];a&&s.style.setProperty("font-family",a),r&&s.style.setProperty("font-size","number"==typeof r?`${r}px`:r),i&&s.style.setProperty("font-weight",String(i))}return[...e.cssRules].filter(t=>t.style.length>0).map(t=>` ${t.cssText}`).join("\n")},"elementFontStyles"),se={parser:E,db:ht,renderer:ee,styles:r(t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n${ne()}\n\n /* The element font colour is set inline per element (default white); the\n label text takes it via currentColor. */\n .c4-shape .label,\n .c4-shape .label text {\n color: inherit;\n fill: currentColor;\n }\n /* Structurizr typography: bold name, smaller stereotype/type and description lines. */\n .c4-shape .label .c4-name {\n font-weight: bold;\n }\n .c4-shape .label .c4-type {\n font-size: 0.75em;\n }\n .c4-shape .label .c4-descr {\n font-size: 0.82em;\n }\n .c4-shape .basic,\n .c4-shape rect,\n .c4-shape path,\n .c4-shape circle,\n .c4-shape ellipse,\n .c4-shape line {\n stroke-width: 2px;\n }\n`,"getStyles"),init:r(({c4:t,wrap:e})=>{ee.setConf(t),ht.setWrap(e)},"init")};export{se as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as r,K as a}from"./mermaid.core-QEjDbduh.js";const o=(o,s)=>r.lang.round(a.parse(o)[s]);export{o as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./chunk-5VM5RSS4-BiSpRiw9.js";import{g as e}from"./chunk-XXDRQBXY-DJJHL2aw.js";import{s}from"./chunk-VQ5W62QI-k74sEYFL.js";import{_ as i,l as n,c as a,r,t as u,u as l,k as o,B as c,b as h,a as p,s as d,g as A,v as m,x as y,m as g,C as b,A as C,E as k,F as E,G as f,H as T,j as F,af as D}from"./mermaid.core-QEjDbduh.js";import{c as B}from"./chunk-55XCU76K-B9fq0Aas.js";import"./index-w_leOmyv.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-Bam9oxAR.js";import"./settings-Cd8fftVp.js";import"./constants.js";import"./LoaderLayer-aKmuHFys.js";import"./websocket-BppBoZUJ.js";import"./index-c3o5xJQl.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var _=function(){var t=i(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],n=[1,20],a=[1,41],r=[1,26],u=[1,42],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],m=[1,36],y=[1,37],g=[1,38],b=[1,27],C=[1,28],k=[1,29],E=[1,30],f=[1,31],T=[1,44],F=[1,46],D=[1,43],B=[1,47],_=[1,9],$=[1,8,9],S=[1,58],N=[1,59],L=[1,60],x=[1,61],I=[1,62],v=[1,63],O=[1,64],w=[1,8,9,41],R=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],j=[13,60,68,69,70,71,72,86,100,102,103],z=[1,103],K=[1,121],Y=[1,117],Q=[1,113],W=[1,119],X=[1,114],H=[1,115],q=[1,116],V=[1,118],J=[1,120],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],et=[12,39],st=[1,8,9,39,41,44,46],it=[1,8,9,22],nt=[1,153],at=[1,8,9,61],rt=[1,8,9,22,50,60,61,82,86,87,88,89,90],ut={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:i(function(t,e,s,i,n,a,r){var u=a.length-1;switch(n){case 8:this.$=a[u-1];break;case 9:case 10:case 13:case 15:case 46:this.$=a[u];break;case 11:case 14:this.$=a[u-2]+"."+a[u];break;case 12:case 16:case 110:this.$=a[u-1]+a[u];break;case 17:case 18:this.$=a[u-1]+"~"+a[u]+"~";break;case 19:i.addRelation(a[u]);break;case 20:a[u-1].title=i.cleanupLabel(a[u]),i.addRelation(a[u-1]);break;case 31:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[u-3],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(a[u-4],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(a[u]);break;case 37:this.$=i.addNamespace(a[u-1],a[u]);break;case 38:this.$=[[a[u]],[]];break;case 39:this.$=[[a[u-1]],[]];break;case 40:a[u][0].unshift(a[u-2]),this.$=a[u];break;case 41:this.$=[[],[a[u]]];break;case 42:this.$=[[],[a[u-1]]];break;case 43:a[u][1].unshift(a[u-2]),this.$=a[u];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(a[u-2],a[u]);break;case 49:i.addMembers(a[u-3],a[u-1]);break;case 51:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 52:i.addAnnotation(a[u-3],a[u-1]);break;case 53:i.addAnnotation(a[u-6],a[u-4]),i.addMembers(a[u-6],a[u-1]);break;case 54:i.addAnnotation(a[u-5],a[u-3]);break;case 55:this.$=a[u],i.addClass(a[u]);break;case 56:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 60:i.addAnnotation(a[u],a[u-2]);break;case 61:case 74:case 107:this.$=[a[u]];break;case 62:a[u].push(a[u-1]),this.$=a[u];break;case 63:case 65:case 66:break;case 64:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 67:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 69:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 70:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 71:this.$=i.addNote(a[u],a[u-1]);break;case 72:this.$=i.addNote(a[u]);break;case 73:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 75:this.$=a[u-2].concat([a[u]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 81:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 82:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 83:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 92:case 98:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 93:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 94:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 95:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 96:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 99:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 100:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 101:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 102:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 103:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 104:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 105:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 106:i.setCssClass(a[u-1],a[u]);break;case 108:a[u-2].push(a[u]),this.$=a[u-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t($,[2,19],{22:[1,50]}),t($,[2,21]),t($,[2,22]),t($,[2,23]),t($,[2,24]),t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),{34:[1,51]},{36:[1,52]},t($,[2,33]),t($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:S,69:N,70:L,71:x,72:I,73:v,74:O}),{39:[1,65]},t(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t($,[2,65]),t($,[2,66]),{16:69,60:d,86:T,100:F,102:D},{16:39,17:40,19:70,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:71,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:72,60:d,86:T,100:F,102:D,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:d,86:T,100:F,102:D,103:B},{13:R,55:76},{58:78,60:[1,79]},t($,[2,76]),t($,[2,77]),t($,[2,78]),t($,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:d,86:T,100:F,102:D,103:B}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:87,60:d,86:T,100:F,102:D,103:B},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:s,37:n,42:a,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B},t($,[2,20]),t($,[2,31]),t($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:d,86:T,100:F,102:D,103:B},{53:92,66:56,67:57,68:S,69:N,70:L,71:x,72:I,73:v,74:O},t($,[2,64]),{67:93,73:v,74:O},t(G,[2,83],{66:94,68:S,69:N,70:L,71:x,72:I}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(j,[2,89]),t(j,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:u,54:c,56:h},{16:100,60:d,86:T,100:F,102:D},{41:[1,102],45:101,51:z},{16:104,60:d,86:T,100:F,102:D},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:K,50:Y,59:110,60:Q,82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},{60:[1,122]},{13:R,55:123},t(w,[2,72]),t(w,[2,138]),{22:K,50:Y,59:124,60:Q,61:[1,125],82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},t(Z,[2,74]),{16:39,17:40,19:126,60:d,86:T,100:F,102:D,103:B},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:tt,39:[2,36]},t(et,[2,9],{16:85,17:86,15:130,18:[1,129],60:d,86:T,100:F,102:D,103:B}),t(et,[2,10]),t(st,[2,55],{11:131,12:tt}),t(_,[2,7]),{9:[1,132]},t(it,[2,67]),{16:39,17:40,19:133,60:d,86:T,100:F,102:D,103:B},{13:[1,135],16:39,17:40,19:134,60:d,86:T,100:F,102:D,103:B},t(G,[2,82],{66:136,68:S,69:N,70:L,71:x,72:I}),t(G,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:u,54:c,56:h},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(w,[2,48],{39:[1,142]}),{41:[1,143]},t(w,[2,50]),{41:[2,61],45:144,51:z},{47:[1,145]},{16:39,17:40,19:146,60:d,86:T,100:F,102:D,103:B},t($,[2,91],{13:[1,147]}),t($,[2,93],{13:[1,149],77:[1,148]}),t($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t($,[2,105],{61:nt}),t(at,[2,107],{85:154,22:K,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(rt,[2,109]),t(rt,[2,111]),t(rt,[2,112]),t(rt,[2,113]),t(rt,[2,114]),t(rt,[2,115]),t(rt,[2,116]),t(rt,[2,117]),t(rt,[2,118]),t(rt,[2,119]),t($,[2,106]),t(w,[2,71]),t($,[2,73],{61:nt}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:d,86:T,100:F,102:D,103:B},t(et,[2,12]),t(st,[2,56]),{1:[2,4]},t(it,[2,69]),t(it,[2,68]),{16:39,17:40,19:158,60:d,86:T,100:F,102:D,103:B},t(G,[2,80]),t(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:u,54:c,56:h},{45:163,51:z},t(w,[2,49]),{41:[2,62]},t(w,[2,52],{39:[1,164]}),t($,[2,60]),t($,[2,92]),t($,[2,94]),t($,[2,95],{77:[1,165]}),t($,[2,98]),t($,[2,99],{13:[1,166]}),t($,[2,101],{13:[1,168],77:[1,167]}),{22:K,50:Y,60:Q,82:W,84:169,85:112,86:X,87:H,88:q,89:V,90:J},t(rt,[2,110]),t(Z,[2,75]),{14:[1,170]},t(et,[2,11]),t(it,[2,70]),t(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:z},t($,[2,96]),t($,[2,100]),t($,[2,102]),t($,[2,103],{77:[1,174]}),t(at,[2,108],{85:154,22:K,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(st,[2,8]),t(w,[2,51]),{41:[1,175]},t(w,[2,54]),t($,[2,104]),t(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:i(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i(function(t){var e=this,s=[0],n=[],a=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(d.yy[A]=this.yy[A]);p.setInput(t,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;r.push(m);var y=p.options&&p.options.ranges;function g(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),i(g,"lex");for(var b,C,k,E,f,T,F,D,B={};;){if(C=s[s.length-1],this.defaultActions[C]?k=this.defaultActions[C]:(null==b&&(b=g()),k=u[C]&&u[C][b]),void 0===k||!k.length||!k[0]){var _="";for(f in D=[],u[C])this.terminals_[f]&&f>2&&D.push("'"+this.terminals_[f]+"'");_=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(_,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(k[0]){case 1:s.push(b),a.push(p.yytext),r.push(p.yylloc),s.push(k[1]),b=null,c=p.yyleng,l=p.yytext,o=p.yylineno,m=p.yylloc;break;case 2:if(T=this.productions_[k[1]][1],B.$=a[a.length-T],B._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},y&&(B._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(B,[l,c,o,d.yy,k[1],a,r].concat(h))))return E;T&&(s=s.slice(0,-1*T*2),a=a.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[k[1]][0]),a.push(B.$),r.push(B._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},lt=function(){return{EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(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:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}}();function ot(){this.yy={}}return ut.lexer=lt,i(ot,"Parser"),ot.prototype=ut,ut.Parser=ot,new ot}();_.parser=_;var $=_,S=["#","+","~","-",""],N=class{static{i(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=F(t,a());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+D(this.id);"method"===this.memberType&&(t+=`(${D(this.parameters.trim())})`,this.returnType&&(t+=" : "+D(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(S.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,i=t.substring(0,1),n=t.substring(s-1);S.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(e=n),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${D(this.id)}${"method"===this.memberType?`(${D(this.parameters)})${this.returnType?" : "+D(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},L="classId-",x=0,I=i(t=>g.sanitizeText(t,a()),"sanitizeText"),v=class t{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=i(t=>{const e=B();o(t).select("svg").selectAll("g").filter(function(){return null!==o(this).attr("title")}).on("mouseover",t=>{const s=o(t.currentTarget),i=s.attr("title");if(!i)return;const n=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(c.sanitize(i)).style("left",`${window.scrollX+n.left+n.width/2}px`).style("top",`${window.scrollY+n.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),o(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=h,this.getAccTitle=p,this.setAccDescription=d,this.getAccDescription=A,this.setDiagramTitle=m,this.getDiagramTitle=y,this.getConfig=i(()=>a().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{i(this,"ClassDB")}splitClassNameAndType(t){const e=g.sanitizeText(t,a());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=I(t[0]),s=I(t[1])}return{className:i,type:s}}setClassLabel(t,e){const s=g.sanitizeText(t,a());e&&(e=I(e));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const e=g.sanitizeText(t,a()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;const n=g.sanitizeText(s,a());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:L+n+"-"+x}),x++}addInterface(t,e){const s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){const e=g.sanitizeText(t,a());if(this.classes.has(e)){const t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw new Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",b()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){const e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){n.debug("Adding relation: "+JSON.stringify(t));const e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=g.sanitizeText(t.relationTitle1.trim(),a()),t.relationTitle2=g.sanitizeText(t.relationTitle2.trim(),a()),this.relations.push(t)}addAnnotation(t,e){const s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(I(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new N(t,"method")):t&&i.members.push(new N(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){const s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),I(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=L+s),s=this.splitClassNameAndType(s).className;const i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(const s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{if(void 0!==e){const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);i&&(i.tooltip=I(e))}})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){const i=a();t.split(",").forEach(t=>{let n=t;/\d/.exec(t[0])&&(n=L+n),n=this.splitClassNameAndType(n).className;const a=this.classes.get(n);a&&(a.link=l.formatUrl(e,i),"sandbox"===i.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?I(s):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s);const i=this.splitClassNameAndType(t).className,n=this.classes.get(i);n&&(n.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){const i=g.sanitizeText(t,a());if("loose"!==a().securityLevel)return;if(void 0===e)return;const n=this.splitClassNameAndType(i).className;if(this.classes.has(n)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(n),this.functions.push(()=>{const s=this.lookUpDomId(n),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{l.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,e){const s=e.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){const e=t.split("."),s=new Array(e.length);s[0]=e[0];for(let t=1;t<e.length;t++)s[t]=`${s[t-1]}.${e[t]}`;return s}createNamespaceNode(t,e,s,i=!1){return{id:t,label:e,classes:new Map,notes:new Map,children:new Map,domId:L+t+"-"+this.namespaceCounter++,parent:s,explicit:i}}linkParentChild(t,e){const s=this.namespaces.get(t),i=this.namespaces.get(e);s&&i&&(s.children.has(e)||s.children.set(e,i),i.parent??=t)}addNamespace(e,s){const i=t.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){const t=this.namespaces.get(i);return t.explicit=!0,s&&(t.label=s),i}const n=i.split("."),a=t.getAncestorIds(i);for(let t=0;t<a.length;t++){const e=a[t],i=t>0?a[t-1]:void 0,r=t===a.length-1,u=r&&s?s:n[t];this.namespaces.has(e)?r&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,u,i,r)),i&&this.linkParentChild(i,e)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(const s of e){const{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(const e of s){const s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){const s=this.classes.get(t);if(e&&s)for(const t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}resolveExplicitAncestor(t){let e=t;for(;e;){const t=this.namespaces.get(e);if(!t)return;if(t.explicit)return e;e=t.parent}}getData(){const t=[],e=[],s=a(),i=s.class?.hierarchicalNamespaces??!0;for(const e of this.namespaces.values()){if(!i&&!e.explicit)continue;const n={id:e.id,label:i?e.label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:i?e.parent:void 0};t.push(n)}let n=0;for(const e of this.classes.values()){const a=i?e.parent:this.resolveExplicitAncestor(e.parent),r={...e,type:void 0,isGroup:!1,parentId:a,look:s.look,colorIndex:n++};t.push(r)}for(const n of this.notes.values()){const a=i?n.parent:this.resolveExplicitAncestor(n.parent),r={id:n.id,label:n.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:a,labelType:"markdown"};t.push(r);const u=this.classes.get(n.class)?.id;if(u){const t={id:`edgeNote${n.index}`,start:n.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const e of this.interfaces){const i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let r=0;for(const t of this.relations){r++;const i={id:C(t.id1,t.id2,{prefix:"id",counter:r}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},O=i(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!k(e,i))return"";const n=E(t.look),a=f(s);let r="";for(let e=0;e<T(t.THEME_COLOR_LIMIT,i);e++){const t=i[e%i.length];r+=`\n\n [data-look="${n}"][data-color-id="color-${e}"].node .outer-path path {\n stroke: ${t};\n ${a?`fill: ${s[e%s.length]};`:""}\n }\n\n [data-look="${n}"][data-color-id="color-${e}"].node .divider path {\n stroke: ${t};\n }\n `}return r},"genColor"),w=i(e=>`${O(e)}\n g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth};\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth};\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${t()}\n`,"getStyles"),R=i((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),M={getClasses:i(function(t,e){return e.db.getClasses()},"getClasses"),draw:i(async function(t,i,o,c){n.info("REF0:"),n.info("Drawing class diagram (v3)",i);const{securityLevel:h,state:p,layout:d}=a();c.db.setDiagramId(i);const A=c.db.getData(),m=e(i,h);A.type=c.type,A.layoutAlgorithm=r(d),A.nodeSpacing=p?.nodeSpacing||50,A.rankSpacing=p?.rankSpacing||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=i,await u(A,m);l.insertTitle(m,"classDiagramTitleText",p?.titleTopMargin??25,c.db.getDiagramTitle()),s(m,8,"classDiagram",p?.useMaxWidth??!0)},"draw"),getDir:R},P={parser:$,get db(){return new v},renderer:M,styles:w,init:i(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{P as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e,s as t,N as n}from"./settings-Cd8fftVp.js";import{isValidElement as o,Children as s,cloneElement as r}from"react";let c=null;const i=async()=>(c||(e("loading XLSX..."),c=await(import("./xlsx-BVrgZ1Ou.js"))),c),a=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return e+"";if(Array.isArray(e))return e.map(a).join("");if(o(e)&&e.props.children){const t=e.props.children;return Array.isArray(t)?t.map(a).join(""):a(t)}return""};function l(){return"undefined"!=typeof window}const f=(e,t)=>{if("undefined"!=typeof document&&l()){const n=document.createElement("a");n.style.display="none",n.setAttribute("href",e),n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>{l()&&window.URL.revokeObjectURL(e)},100)}};function p(e,t="file"){if(l()){const n=new Blob([e],{type:e.type||"application/octet-stream"}),o=window.URL.createObjectURL(n);f(o,t)}}async function u(e,t){if("undefined"!=typeof document){const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);const o=await n.blob(),s=URL.createObjectURL(o),r=document.createElement("a");r.href=s,r.download=t,r.dispatchEvent(new MouseEvent("click")),URL.revokeObjectURL(s)}}const y=(e,t="file.csv")=>{p(new Blob([e.map(e=>e.join(",")).join("\n")],{type:"text/csv"}),t)},d=async(e,t="file.xlsx")=>{const{utils:n}=await i(),o=n.book_new();o.Props={Title:t,Subject:t,Author:"Juki",CreatedDate:new Date};for(const{name:t,autofilter:s,cols:r,rows:c,styles:i}of e){const e={s:{c:1e7,r:1e7},e:{c:0,r:0}};o.SheetNames.push(t),o.Sheets[t]={},o.Sheets[t]["!rows"]=[],Object.entries(c).forEach(([s,r])=>{const c=+s;r.height&&(o.Sheets[t]["!rows"][c]={hpx:r.height}),Object.entries(r.cells).forEach(([s,r])=>{const a=+s;e.s.r>c&&(e.s.r=c),e.s.c>a&&(e.s.c=a),e.e.r<c&&(e.e.r=c),e.e.c<a&&(e.e.c=a);const l={v:r.text,t:"s"};if(null==l.v)return;const f=n.encode_cell({c:a,r:c});if("number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":(l.v,Date),l.s={},"string"==typeof l.v&&l.v.includes("\n")&&(l.s.alignment={wrapText:!0}),"number"==typeof r.style&&i?.[r.style]){const e=i[r.style].bgcolor;"string"==typeof e&&(l.s.fill={fgColor:{rgb:e.replace("#","")}});const t=i[r.style].color;"string"==typeof t&&(l.s.font||(l.s.font={}),l.s.font.color={rgb:t.replace("#","")}),i[r.style].font?.bold&&(l.s.font||(l.s.font={}),l.s.font.bold=!0);const n=i[r.style].align;"string"==typeof n&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.horizontal=n);const o=i[r.style].valign;"string"==typeof o&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.vertical=o)}o.Sheets[t][f]=l})}),e.s.c<1e7&&(o.Sheets[t]["!ref"]=n.encode_range(e)),s?.ref&&(o.Sheets[t]["!autofilter"]={ref:s?.ref}),o.Sheets[t]["!cols"]||(o.Sheets[t]["!cols"]=[]),Object.entries(r||{}).forEach(([e,n])=>{const s=+e;o.Sheets[t]["!cols"][s]||(o.Sheets[t]["!cols"][s]={}),n.width&&(o.Sheets[t]["!cols"][s].wpx=n.width)})}return o},h=async(e,n="file.xlsx")=>{const o=await d(e,n),{write:s}=await i(),r=s(o,{bookType:"xlsx",type:"binary"});p(new Blob([t(r)],{type:"application/octet-stream"}),n)},b=(e,t)=>"function"==typeof e?e(t):s.map(e,e=>e?r(e,t):e),m=(e,t,n,o,s,r,c,i,a,l,f,p,u,y,d)=>{let h="";return[e,t,n,o,s,r,c,i,a,l,f,p,u,y,d].forEach(e=>{if(e)if("string"==typeof e)h+=(h?" ":"")+e;else for(const t in e)e[t]&&(h+=(h?" ":"")+t)}),h},w=(e,t)=>e===t||Array.isArray(e)&&e.includes(t);function g(e){return new Promise(t=>{e.toBlob(t)})}const j=e=>e.current?.scrollWidth>e.current?.clientWidth;function v(){return"production"!==n}const S=e=>{if(l()){const t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}},x=e=>e.trim().replace(/\/+/g,"/").replace(/^\/+/,"").replace(/\/+$/,"");export{y as a,f as b,m as c,p as d,h as e,u as f,a as g,i as h,l as i,v as j,j as k,w as l,x as n,S as o,b as r,d as s,g as t};
|