@axiom-lattice/gateway 10.3.0 → 11.0.0
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/{A2AAuthService-UKN53ZGP.mjs → A2AAuthService-UYWSDE5L.mjs} +2 -2
- package/dist/{a2a-YLKZE5JG.mjs → a2a-OCCSVNWB.mjs} +3 -3
- package/dist/{a2a-standard-ELY7MTJB.mjs → a2a-standard-2IJP4JG5.mjs} +2 -2
- package/dist/{chunk-BIMO2ILH.mjs → chunk-5EXTBV2Z.mjs} +6 -3
- package/dist/chunk-5EXTBV2Z.mjs.map +1 -0
- package/dist/{chunk-JGQURU44.mjs → chunk-6DTR3CPW.mjs} +2 -2
- package/dist/chunk-6DTR3CPW.mjs.map +1 -0
- package/dist/{chunk-BOPNXTMO.mjs → chunk-7XTRBDCF.mjs} +2 -2
- package/dist/{chunk-MFWTGNQR.mjs → chunk-HBDRSIPK.mjs} +1 -1
- package/dist/chunk-HBDRSIPK.mjs.map +1 -0
- package/dist/{chunk-YR32MWEJ.mjs → chunk-JQWIJDZN.mjs} +2 -2
- package/dist/{chunk-LCM4OQTI.mjs → chunk-NQS3U4KP.mjs} +23 -1
- package/dist/chunk-NQS3U4KP.mjs.map +1 -0
- package/dist/{chunk-NYYSBNDG.mjs → chunk-Q5ADRJ3T.mjs} +2 -2
- package/dist/{chunk-7CG57LEF.mjs → chunk-WKHTSTB6.mjs} +2 -2
- package/dist/chunk-WKHTSTB6.mjs.map +1 -0
- package/dist/embed/agent-chat-loader.js +1 -1
- package/dist/embed/embed-page-AgentDetailSideApp-CQEMTLCM.js +1 -0
- package/dist/embed/embed-page-AgentGovernanceWorkbench-MFE7A3HX.js +1 -0
- package/dist/embed/{embed-page-LangfuseDashboard-C5ZHCYOD.js → embed-page-LangfuseDashboard-FXNWREGX.js} +1 -1
- package/dist/embed/embed-page-MessageGraph-2KRSGTMR.js +6 -0
- package/dist/embed/embed-page-ReactChart-BFMFGXXT.js +1 -0
- package/dist/embed/{embed-page-SkillFlow-4WN6SBBR.js → embed-page-SkillFlow-F24RIIPR.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-JWXHAGJ3.js → embed-page-TasksSideApp-EKOC6GR5.js} +1 -1
- package/dist/embed/{embed-page-ThreadMaintenancePanel-BIPYRPG7.js → embed-page-ThreadMaintenancePanel-25HFF6LC.js} +1 -1
- package/dist/embed/embed-page-TopologyRuntimeView-AZ56RJ3H.js +6 -0
- package/dist/embed/{embed-page-WorkflowAutomationView-5Z5LIL2H.js → embed-page-WorkflowAutomationView-TZR47MHE.js} +1 -1
- package/dist/embed/{embed-page-abnfDiagram-N423BO3Z-G35TGDL3.js → embed-page-abnfDiagram-N423BO3Z-4HBLZWO7.js} +1 -1
- package/dist/embed/{embed-page-architectureDiagram-T3A2C74G-3BPO7RRI.js → embed-page-architectureDiagram-T3A2C74G-ZMH2RUZR.js} +1 -1
- package/dist/embed/{embed-page-blockDiagram-VBNYF7ZC-4IOAZLE3.js → embed-page-blockDiagram-VBNYF7ZC-DOS6CKB7.js} +1 -1
- package/dist/embed/{embed-page-c4Diagram-5PPSVZJV-7FVWUUL4.js → embed-page-c4Diagram-5PPSVZJV-GCQQWQJ4.js} +1 -1
- package/dist/embed/{embed-page-chunk-OJORJR7X.js → embed-page-chunk-43ZJCYNA.js} +1 -1
- package/dist/embed/{embed-page-chunk-B4EAWKYT.js → embed-page-chunk-5VJZ7DJM.js} +1 -1
- package/dist/embed/{embed-page-chunk-Z4KLLEUH.js → embed-page-chunk-5ZRWN6T7.js} +1 -1
- package/dist/embed/{embed-page-chunk-D4ICPD5X.js → embed-page-chunk-7IPWMDQ3.js} +1 -1
- package/dist/embed/embed-page-chunk-CWVHIM56.js +69 -0
- package/dist/embed/embed-page-chunk-DLSQ2OWQ.js +1 -0
- package/dist/embed/{embed-page-chunk-3MT44IAN.js → embed-page-chunk-FPA5BD6K.js} +1 -1
- package/dist/embed/{embed-page-chunk-EP6TRRST.js → embed-page-chunk-FUNZXEPN.js} +1 -1
- package/dist/embed/{embed-page-chunk-KOCOGP7G.js → embed-page-chunk-GA5A7NLC.js} +1 -1
- package/dist/embed/{embed-page-chunk-EZBBN23V.js → embed-page-chunk-GWB56NNU.js} +1 -1
- package/dist/embed/{embed-page-chunk-DVOV6TZI.js → embed-page-chunk-I7EMCZI6.js} +1 -1
- package/dist/embed/{embed-page-chunk-X2ALKNHQ.js → embed-page-chunk-JAZH5PLN.js} +1 -1
- package/dist/embed/{embed-page-chunk-IK542MPZ.js → embed-page-chunk-ME637LUU.js} +1 -1
- package/dist/embed/{embed-page-chunk-I7ESIG2O.js → embed-page-chunk-MM3IA4HE.js} +1 -1
- package/dist/embed/{embed-page-chunk-YUWPQRVF.js → embed-page-chunk-NY2J2ZAX.js} +1 -1
- package/dist/embed/{embed-page-chunk-PNJ7DZ5V.js → embed-page-chunk-QQZUP2A4.js} +1 -1
- package/dist/embed/{embed-page-chunk-XWR7WUUN.js → embed-page-chunk-RPGUOUD3.js} +1 -1
- package/dist/embed/embed-page-chunk-S2G53SSD.js +217 -0
- package/dist/embed/{embed-page-chunk-NUKT6SH3.js → embed-page-chunk-S2XGVDY7.js} +1 -1
- package/dist/embed/{embed-page-chunk-JRORGMGI.js → embed-page-chunk-TJMEWCV7.js} +147 -147
- package/dist/embed/{embed-page-chunk-7E2Z7TAR.js → embed-page-chunk-U6PURUXV.js} +1 -1
- package/dist/embed/{embed-page-chunk-LKNA7XLR.js → embed-page-chunk-UAXOXJ4N.js} +1 -1
- package/dist/embed/{embed-page-chunk-CV2LFQZA.js → embed-page-chunk-UWC5QL3B.js} +1 -1
- package/dist/embed/{embed-page-chunk-CJYKMTD7.js → embed-page-chunk-V3HPWIF4.js} +1 -1
- package/dist/embed/{embed-page-chunk-JAHIW5IQ.js → embed-page-chunk-W4W6GR5T.js} +1 -1
- package/dist/embed/{embed-page-chunk-JAMKPUN7.js → embed-page-chunk-X2TOGOMH.js} +1 -1
- package/dist/embed/{embed-page-chunk-BL44I3VR.js → embed-page-chunk-XP37R2JT.js} +6 -6
- package/dist/embed/{embed-page-chunk-UVNC53TL.js → embed-page-chunk-YGBGMNRQ.js} +1 -1
- package/dist/embed/{embed-page-chunk-2EHKMAOV.js → embed-page-chunk-YI3NKQSA.js} +1 -1
- package/dist/embed/embed-page-classDiagram-JCYQIIEL-QS7YU54N.js +1 -0
- package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-EMQVQCCM.js +1 -0
- package/dist/embed/{embed-page-cynefinDiagram-MW4NZA55-3QBH5TCJ.js → embed-page-cynefinDiagram-MW4NZA55-PAQOPJV2.js} +1 -1
- package/dist/embed/{embed-page-dagre-VZM6K2ZE-JB3F5OD3.js → embed-page-dagre-VZM6K2ZE-35URH6ZO.js} +1 -1
- package/dist/embed/{embed-page-diagram-7IWD3JNH-33KTKPAG.js → embed-page-diagram-7IWD3JNH-CYEWFX2M.js} +1 -1
- package/dist/embed/{embed-page-diagram-B4RE2ZJO-HURI4UTY.js → embed-page-diagram-B4RE2ZJO-YQLA7HKI.js} +1 -1
- package/dist/embed/{embed-page-diagram-LBJQPF4R-XDFU7A3K.js → embed-page-diagram-LBJQPF4R-R5X23WLT.js} +1 -1
- package/dist/embed/{embed-page-diagram-Q27KOJAE-WCF3Y7MH.js → embed-page-diagram-Q27KOJAE-CSOUXGQI.js} +1 -1
- package/dist/embed/{embed-page-diagram-UB23O5K3-A4XJCZZ2.js → embed-page-diagram-UB23O5K3-ZYKI7DKR.js} +1 -1
- package/dist/embed/{embed-page-ebnfDiagram-BXEA7PRR-XZ65TQZ5.js → embed-page-ebnfDiagram-BXEA7PRR-AXHHSO6J.js} +1 -1
- package/dist/embed/embed-page-echarts-AD736F33.js +1 -0
- package/dist/embed/{embed-page-en-PPUKY32O.js → embed-page-en-BRZZWMIP.js} +1 -1
- package/dist/embed/{embed-page-en-3DNM36A2.js → embed-page-en-RKPA6NPQ.js} +3 -1
- package/dist/embed/{embed-page-erDiagram-JOGREHBK-HAMRJORU.js → embed-page-erDiagram-JOGREHBK-TIWNY54V.js} +1 -1
- package/dist/embed/embed-page-flowDiagram-UKHOOZJN-YZBV5FD5.js +1 -0
- package/dist/embed/{embed-page-ganttDiagram-PKOTCBZU-K5INERM6.js → embed-page-ganttDiagram-PKOTCBZU-LQ65QV2D.js} +1 -1
- package/dist/embed/{embed-page-gitGraphDiagram-DS77QQ5N-GZ5MSQH3.js → embed-page-gitGraphDiagram-DS77QQ5N-JXOCEBS4.js} +1 -1
- package/dist/embed/{embed-page-infoDiagram-6WML65LV-U6G3NNSP.js → embed-page-infoDiagram-6WML65LV-JXXYLFOE.js} +1 -1
- package/dist/embed/{embed-page-ishikawaDiagram-WSZJBQD7-EYGGRQN3.js → embed-page-ishikawaDiagram-WSZJBQD7-AXPRA54P.js} +1 -1
- package/dist/embed/{embed-page-journeyDiagram-NVQOT4AX-XS4LDJC3.js → embed-page-journeyDiagram-NVQOT4AX-FLTEDSGP.js} +1 -1
- package/dist/embed/{embed-page-jspdf.es.min-XOYWIBVE.js → embed-page-jspdf.es.min-Y4RIBUHC.js} +17 -17
- package/dist/embed/{embed-page-kanban-definition-27J2QSJJ-FW7UGXYI.js → embed-page-kanban-definition-27J2QSJJ-GLES277J.js} +1 -1
- package/dist/embed/embed-page-katex-JBKN2BFH.js +257 -0
- package/dist/embed/{embed-page-mermaid-AQNL2ZVI.js → embed-page-mermaid-TRGRXQWI.js} +2 -2
- package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-IK7SJKOY.js +96 -0
- package/dist/embed/{embed-page-pegDiagram-VL7TDLO6-KNUT3CIR.js → embed-page-pegDiagram-VL7TDLO6-WTW3QO5Z.js} +1 -1
- package/dist/embed/{embed-page-pieDiagram-7S7Q4E2Y-NA5D6ASE.js → embed-page-pieDiagram-7S7Q4E2Y-IO7RF3AF.js} +1 -1
- package/dist/embed/{embed-page-quadrantDiagram-CIZ2JOQS-ZP6CLE62.js → embed-page-quadrantDiagram-CIZ2JOQS-77SBD3YG.js} +1 -1
- package/dist/embed/{embed-page-railroadDiagram-AXF67PYL-2IW2UZXA.js → embed-page-railroadDiagram-AXF67PYL-OW3L5JI4.js} +1 -1
- package/dist/embed/{embed-page-requirementDiagram-LRYGKXZP-CXPDAY5Y.js → embed-page-requirementDiagram-LRYGKXZP-APMTCGOA.js} +1 -1
- package/dist/embed/{embed-page-sankeyDiagram-W5VNT64P-F2LGR2H3.js → embed-page-sankeyDiagram-W5VNT64P-FZX3QVUX.js} +1 -1
- package/dist/embed/{embed-page-sequenceDiagram-SI44F4Z6-GJMWRLXS.js → embed-page-sequenceDiagram-SI44F4Z6-HGLMDT4H.js} +1 -1
- package/dist/embed/{embed-page-stateDiagram-OKZ733FA-2C3LJEVN.js → embed-page-stateDiagram-OKZ733FA-DYGG6K57.js} +1 -1
- package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-BZIFN7WW.js +1 -0
- package/dist/embed/{embed-page-swimlanes-SLNWSIFB-FVZEOHUB.js → embed-page-swimlanes-SLNWSIFB-OKHSRANK.js} +1 -1
- package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-CTOAIWO4.js +8 -0
- package/dist/embed/{embed-page-timeline-definition-Z64GVDOM-G7N7WGUT.js → embed-page-timeline-definition-Z64GVDOM-F6LUVHOK.js} +1 -1
- package/dist/embed/{embed-page-vennDiagram-T6HMQDX7-F7T3NLBE.js → embed-page-vennDiagram-T6HMQDX7-QA2TWRL4.js} +1 -1
- package/dist/embed/{embed-page-wardleyDiagram-T6FBY63Y-KQ66EZSM.js → embed-page-wardleyDiagram-T6FBY63Y-DL57P2VA.js} +1 -1
- package/dist/embed/{embed-page-xychartDiagram-ELKLHX3M-22WT4PGT.js → embed-page-xychartDiagram-ELKLHX3M-V2Q7NF4U.js} +1 -1
- package/dist/embed/{embed-page-zh-4SFTLL5M.js → embed-page-zh-D4S5EDEI.js} +1 -1
- package/dist/embed/{embed-page-zh-OA54TF5G.js → embed-page-zh-LQCDXDUF.js} +3 -1
- package/dist/embed/embed-page.js +3 -3
- package/dist/embed/mcp-app-page.js +19 -19
- package/dist/index.js +2130 -1445
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1195 -318
- package/dist/index.mjs.map +1 -1
- package/dist/{mcp-apps-MZECSNN2.mjs → mcp-apps-MKHHUJE4.mjs} +2 -2
- package/dist/{open-Y7PAA2VJ.mjs → open-TJLQARLV.mjs} +8 -8
- package/dist/open-TJLQARLV.mjs.map +1 -0
- package/dist/{open-catalog-NVGP6SQP.mjs → open-catalog-LLTMSZGH.mjs} +2 -2
- package/dist/{open-exposure-HGYT5VFC.mjs → open-exposure-2CSXJTM3.mjs} +3 -3
- package/dist/{open-files-WK4SQHE3.mjs → open-files-QIMOTHSN.mjs} +2 -2
- package/dist/{open-session-CLZT3HVG.mjs → open-session-F5H6PFSN.mjs} +3 -3
- package/dist/open-session-F5H6PFSN.mjs.map +1 -0
- package/dist/{openLattice-D5YTSZBY.mjs → openLattice-KFUREFWM.mjs} +2 -2
- package/dist/{registerExposedPlugins-2JGXSMAL.mjs → registerExposedPlugins-N6ENBBKN.mjs} +3 -3
- package/dist/{resources-YD5DOPGD.mjs → resources-53PXMFQI.mjs} +37 -12
- package/dist/resources-53PXMFQI.mjs.map +1 -0
- package/dist/{sandboxOpenCredentialProvider-RTYOYRCT.mjs → sandboxOpenCredentialProvider-3CUISBEL.mjs} +4 -4
- package/dist/sandboxOpenCredentialProvider-3CUISBEL.mjs.map +1 -0
- package/package.json +10 -11
- package/dist/chunk-7CG57LEF.mjs.map +0 -1
- package/dist/chunk-BIMO2ILH.mjs.map +0 -1
- package/dist/chunk-JGQURU44.mjs.map +0 -1
- package/dist/chunk-LCM4OQTI.mjs.map +0 -1
- package/dist/chunk-MFWTGNQR.mjs.map +0 -1
- package/dist/chunk-PWHUWFXL.mjs +0 -173
- package/dist/chunk-PWHUWFXL.mjs.map +0 -1
- package/dist/collection_service-RTRJEQFL.mjs +0 -8
- package/dist/embed/embed-page-AgentDetailSideApp-7KV3SLDR.js +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-SVXBIDD2.js +0 -1
- package/dist/embed/embed-page-MessageGraph-YU76I7TO.js +0 -6
- package/dist/embed/embed-page-ReactChart-KN2C7M65.js +0 -1
- package/dist/embed/embed-page-TopologyRuntimeView-FPLRJ3NO.js +0 -6
- package/dist/embed/embed-page-chunk-NXYALHX3.js +0 -69
- package/dist/embed/embed-page-chunk-YJQVMCUN.js +0 -217
- package/dist/embed/embed-page-classDiagram-JCYQIIEL-F3ZGV5RH.js +0 -1
- package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-WK33F7MR.js +0 -1
- package/dist/embed/embed-page-echarts-EYVCOS2L.js +0 -1
- package/dist/embed/embed-page-flowDiagram-UKHOOZJN-FCTARXK6.js +0 -1
- package/dist/embed/embed-page-katex-W5DMKJAE.js +0 -257
- package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-LS6BVRC5.js +0 -96
- package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-QI633DEL.js +0 -1
- package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-7W6HH2PU.js +0 -8
- package/dist/kbProvider-2D6DZ34N.mjs +0 -50
- package/dist/kbProvider-2D6DZ34N.mjs.map +0 -1
- package/dist/open-Y7PAA2VJ.mjs.map +0 -1
- package/dist/open-session-CLZT3HVG.mjs.map +0 -1
- package/dist/registerExposedPlugins-2JGXSMAL.mjs.map +0 -1
- package/dist/resources-YD5DOPGD.mjs.map +0 -1
- package/dist/sandboxOpenCredentialProvider-RTYOYRCT.mjs.map +0 -1
- /package/dist/{A2AAuthService-UKN53ZGP.mjs.map → A2AAuthService-UYWSDE5L.mjs.map} +0 -0
- /package/dist/{a2a-YLKZE5JG.mjs.map → a2a-OCCSVNWB.mjs.map} +0 -0
- /package/dist/{a2a-standard-ELY7MTJB.mjs.map → a2a-standard-2IJP4JG5.mjs.map} +0 -0
- /package/dist/{chunk-BOPNXTMO.mjs.map → chunk-7XTRBDCF.mjs.map} +0 -0
- /package/dist/{chunk-YR32MWEJ.mjs.map → chunk-JQWIJDZN.mjs.map} +0 -0
- /package/dist/{chunk-NYYSBNDG.mjs.map → chunk-Q5ADRJ3T.mjs.map} +0 -0
- /package/dist/{collection_service-RTRJEQFL.mjs.map → mcp-apps-MKHHUJE4.mjs.map} +0 -0
- /package/dist/{open-catalog-NVGP6SQP.mjs.map → open-catalog-LLTMSZGH.mjs.map} +0 -0
- /package/dist/{open-exposure-HGYT5VFC.mjs.map → open-exposure-2CSXJTM3.mjs.map} +0 -0
- /package/dist/{open-files-WK4SQHE3.mjs.map → open-files-QIMOTHSN.mjs.map} +0 -0
- /package/dist/{mcp-apps-MZECSNN2.mjs.map → openLattice-KFUREFWM.mjs.map} +0 -0
- /package/dist/{openLattice-D5YTSZBY.mjs.map → registerExposedPlugins-N6ENBBKN.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as Ut}from"./embed-page-chunk-
|
|
1
|
+
import{h as Ut}from"./embed-page-chunk-V3HPWIF4.js";import{a as Wt}from"./embed-page-chunk-62HLTSNB.js";import{a as jt}from"./embed-page-chunk-MM3IA4HE.js";import{b as Mt}from"./embed-page-chunk-NY2J2ZAX.js";import{g as Gt,p as Vt}from"./embed-page-chunk-UAXOXJ4N.js";import{M,S as Nt,T as Rt,U as $t,V as Ft,W as Pt,X as Bt,Y as Yt,Z as $}from"./embed-page-chunk-FPA5BD6K.js";import{b as E}from"./embed-page-chunk-2BOYLGSX.js";import{b as pt}from"./embed-page-chunk-S4XZPBRM.js";import{a as f}from"./embed-page-chunk-444E5YR2.js";import{a as Ot}from"./embed-page-chunk-U2CG7PH5.js";var Ct=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],l=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],o=[1,17],T=[1,18],m=[1,19],N=[1,33],x=[1,20],_=[1,21],u=[1,22],L=[1,23],I=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,b,i,K){var n=i.length-1;switch(b){case 3:return g.setRootDoc(i[n]),i[n];break;case 4:this.$=[];break;case 5:i[n]!="nl"&&(i[n-1].push(i[n]),this.$=i[n-1]);break;case 6:case 7:this.$=i[n];break;case 8:this.$="nl";break;case 12:this.$=i[n];break;case 13:let ht=i[n-1];ht.description=g.trimColon(i[n]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:i[n-2],state2:i[n]};break;case 15:let ut=g.trimColon(i[n]);this.$={stmt:"relation",state1:i[n-3],state2:i[n-1],description:ut};break;case 19:this.$={stmt:"state",id:i[n-3],type:"default",description:"",doc:i[n-1]};break;case 20:var B=i[n],Y=i[n-2].trim();if(i[n].match(":")){var Q=i[n].split(":");B=Q[0],Y=[Y,Q[1]]}this.$={stmt:"state",id:B,type:"default",description:Y};break;case 21:this.$={stmt:"state",id:i[n-3],type:"default",description:i[n-5],doc:i[n-1]};break;case 22:this.$={stmt:"state",id:i[n],type:"fork"};break;case 23:this.$={stmt:"state",id:i[n],type:"join"};break;case 24:this.$={stmt:"state",id:i[n],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[n-1].trim(),note:{position:i[n-2].trim(),text:i[n].trim()}};break;case 29:this.$=i[n].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[n].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[n-3],url:i[n-2],tooltip:i[n-1]};break;case 33:this.$={stmt:"click",id:i[n-3],url:i[n-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[n-1].trim(),classes:i[n].trim()};break;case 36:this.$={stmt:"style",id:i[n-1].trim(),styleClass:i[n].trim()};break;case 37:this.$={stmt:"applyClass",id:i[n-1].trim(),styleClass:i[n].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[n].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[n-2].trim(),classes:[i[n].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[n-2].trim(),classes:[i[n].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:l,6:s},{1:[3]},{3:5,4:e,5:l,6:s},{3:6,4:e,5:l,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:o,19:T,22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:N,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:N,57:z},t(S,[2,17]),t(Lt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,21:[1,72],22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(Lt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,21:[1,81],22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],b=[null],i=[],K=this.table,n="",B=0,Y=0,Q=0,ht=2,ut=1,fe=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&(W.yy[bt]=this.yy[bt]);k.setInput(a,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Et=k.yylloc;i.push(Et);var pe=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(O){r.length=r.length-2*O,b.length=b.length-O,i.length=i.length-O}f(Se,"popStack");function It(){var O;return O=g.pop()||k.lex()||ut,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=d.symbols_[O]||O),O}f(It,"lex");for(var D,mt,j,R,Ve,kt,X={},dt,G,wt,ft;;){if(j=r[r.length-1],this.defaultActions[j]?R=this.defaultActions[j]:((D===null||typeof D>"u")&&(D=It()),R=K[j]&&K[j][D]),typeof R>"u"||!R.length||!R[0]){var _t="";ft=[];for(dt in K[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?_t="Parse error on line "+(B+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[D]||D)+"'":_t="Parse error on line "+(B+1)+": Unexpected "+(D==ut?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(_t,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:Et,expected:ft})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+D);switch(R[0]){case 1:r.push(D),b.push(k.yytext),i.push(k.yylloc),r.push(R[1]),D=null,mt?(D=mt,mt=null):(Y=k.yyleng,n=k.yytext,B=k.yylineno,Et=k.yylloc,Q>0&&Q--);break;case 2:if(G=this.productions_[R[1]][1],X.$=b[b.length-G],X._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},pe&&(X._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(X,[n,Y,B,W.yy,R[1],b,i].concat(fe)),typeof kt<"u")return kt;G&&(r=r.slice(0,-1*G*2),b=b.slice(0,-1*G),i=i.slice(0,-1*G)),r.push(this.productions_[R[1]][0]),b.push(X.$),i.push(X._$),wt=K[r[r.length-2]][r[r.length-1]],r.push(wt);break;case 3:return!0}}return!0},"parse")},de=(function(){var V={EOF:1,parseError:f(function(d,r){if(this.yy.parser)this.yy.parser.parseError(d,r);else throw new Error(d)},"parseError"),setInput:f(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var d=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var b=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:r?(r.length===g.length?this.yylloc.first_column:0)+g[g.length-r.length].length-r[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as M,E as N,F as S,I as z,J as w}from"./embed-page-chunk-
|
|
1
|
+
import{C as M,E as N,F as S,I as z,J as w}from"./embed-page-chunk-TJMEWCV7.js";import{g as D}from"./embed-page-chunk-S2G53SSD.js";import{v as $,w as L}from"./embed-page-chunk-BNA3NXXX.js";import{l as v}from"./embed-page-chunk-QQZUP2A4.js";import{a as B}from"./embed-page-chunk-L2PNY33P.js";import{Qa as O,Za as P,ia as C,ib as R}from"./embed-page-chunk-TWJOR2LG.js";import{a as Y}from"./embed-page-chunk-MPQBYKDM.js";import{e as I}from"./embed-page-chunk-45A47GH2.js";var f=I(Y());function q(t,o){if(t.parentId&&t.parentId!==t.id&&o.has(t.parentId))return t.parentId;for(let c of t.dependencies??[])if(c!==t.id&&o.has(c))return c}function A(t,o){let u=o?.hideCompleted??!1?t.filter(e=>!w(e.status)):t,g=new Map(u.map(e=>[e.id,e])),p=new Map;for(let e of u)p.set(e.id,q(e,g));let l=new Set;for(let e of p.keys()){if(l.has(e))continue;let n=new Map,d=e,y=0;for(;d!==void 0&&!l.has(d)&&!n.has(d);)n.set(d,y),y+=1,d=p.get(d);if(d!==void 0&&n.has(d)){let h=n.get(d);for(let[x,s]of n)s>=h&&l.add(x)}}for(let e of l)p.set(e,void 0);let m=new Map;for(let e of u)m.set(e.id,[]);for(let e of u){let n=p.get(e.id);n!==void 0&&m.get(n).push(e.id)}let r=e=>({task:g.get(e),children:(m.get(e)??[]).map(r)});return u.filter(e=>p.get(e.id)===void 0).map(e=>r(e.id))}var i=I(B()),{Text:E}=R,J=16,K=3,Q=D(({css:t,token:o})=>({root:t`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
height: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,b as o,c as e,d as m}from"./embed-page-chunk-W4W6GR5T.js";import"./embed-page-chunk-AWMMPAX5.js";import"./embed-page-chunk-V3HPWIF4.js";import"./embed-page-chunk-62HLTSNB.js";import"./embed-page-chunk-MM3IA4HE.js";import"./embed-page-chunk-NY2J2ZAX.js";import"./embed-page-chunk-RPGUOUD3.js";import"./embed-page-chunk-7AXKFOLH.js";import"./embed-page-chunk-7IPWMDQ3.js";import"./embed-page-chunk-ME637LUU.js";import"./embed-page-chunk-X2TOGOMH.js";import"./embed-page-chunk-7TH7FFVA.js";import"./embed-page-chunk-I7EMCZI6.js";import"./embed-page-chunk-5ZRWN6T7.js";import"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import"./embed-page-chunk-FPA5BD6K.js";import"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as t}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var D={parser:i,get db(){return new o},renderer:m,styles:e,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{D as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,b as o,c as e,d as m}from"./embed-page-chunk-W4W6GR5T.js";import"./embed-page-chunk-AWMMPAX5.js";import"./embed-page-chunk-V3HPWIF4.js";import"./embed-page-chunk-62HLTSNB.js";import"./embed-page-chunk-MM3IA4HE.js";import"./embed-page-chunk-NY2J2ZAX.js";import"./embed-page-chunk-RPGUOUD3.js";import"./embed-page-chunk-7AXKFOLH.js";import"./embed-page-chunk-7IPWMDQ3.js";import"./embed-page-chunk-ME637LUU.js";import"./embed-page-chunk-X2TOGOMH.js";import"./embed-page-chunk-7TH7FFVA.js";import"./embed-page-chunk-I7EMCZI6.js";import"./embed-page-chunk-5ZRWN6T7.js";import"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import"./embed-page-chunk-FPA5BD6K.js";import"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as t}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var D={parser:i,get db(){return new o},renderer:m,styles:e,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{D as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as pt}from"./embed-page-chunk-
|
|
1
|
+
import{a as pt}from"./embed-page-chunk-GA5A7NLC.js";import{a as yt}from"./embed-page-chunk-W2KSSDKP.js";import{a as ut}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{o as X}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{N as rt,S as it,T as st,U as ct,V as lt,W as dt,X as ft,Y as mt,h as Q,j as at,t as O}from"./embed-page-chunk-FPA5BD6K.js";import{b as E}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as r}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var xt=r(()=>({domains:new Map,transitions:[]}),"createDefaultData"),G=xt(),St=r(()=>G.domains,"getDomains"),Mt=r(()=>G.transitions,"getTransitions"),zt=r(t=>{if(t)for(let e of t){let n=e.domain,o=(e.items??[]).map(c=>({label:c.label}));G.domains.set(n,{name:n,items:o})}},"setDomains"),Lt=r(t=>{t&&(G.transitions=t.filter(e=>e.from===e.to?(E.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=r(()=>X({...at.cynefin,...O().cynefin}),"getConfig"),Pt=r(()=>{it(),G=xt()},"clear"),j={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:st,getAccTitle:ct,setDiagramTitle:ft,getDiagramTitle:mt,getAccDescription:dt,setAccDescription:lt},It=r(t=>{yt(t,j),j.setDomains(t.domains),j.setTransitions(t.transitions)},"populate"),Wt={parse:r(async t=>{let e=await ut("cynefin",t);E.debug(e),It(e)},"parse")};function H(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}r(H,"seededRandom");function gt(t){let e=0;for(let n=0;n<t.length;n++){let o=t.charCodeAt(n);e=(e<<5)-e+o,e|=0}return e}r(gt,"hashString");function $t(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:gt(e)}r($t,"resolveSeed");function bt(t,e,n,o){let c=t/2,m=o??t*.015,v=7,W=e/v,d=[];for(let a=0;a<=v;a++){let p=H(n+a*17)*m*2-m;d.push({x:c+p,y:a*W})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){let p=d[a],s=d[a+1],f=(p.y+s.y)/2,b=a%2===0?1:-1,h=m*1.5*b*H(n+a*31+7),R=p.x+h,F=f,V=s.x-h;D+=` C${R},${F} ${V},${f} ${s.x},${s.y}`}return D}r(bt,"generateFoldPath");function wt(t,e,n,o){let c=e/2,m=o??e*.015,v=7,W=t/v,d=[];for(let a=0;a<=v;a++){let p=H(n+a*23)*m*2-m;d.push({x:a*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let a=0;a<d.length-1;a++){let p=d[a],s=d[a+1],f=(p.x+s.x)/2,b=a%2===0?1:-1,h=m*1.5*b*H(n+a*37+11),R=f,F=p.y+h,V=f,z=s.y-h;D+=` C${R},${F} ${V},${z} ${s.x},${s.y}`}return D}r(wt,"generateHorizontalBoundary");function Ct(t,e){let n=t/2,o=e*.5,c=e,m=t*.03;return[`M${n},${o}`,`C${n+m},${o+(c-o)*.2}`,`${n-m*1.5},${o+(c-o)*.55}`,`${n+m*.5},${o+(c-o)*.75}`,`C${n-m},${o+(c-o)*.85}`,`${n+m*.3},${o+(c-o)*.95}`,`${n},${c}`].join(" ")}r(Ct,"generateCliffPath");function vt(t,e,n,o){return[`M${t-n},${e}`,`A${n},${o} 0 1,1 ${t+n},${e}`,`A${n},${o} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}r(vt,"generateConfusionPath");var ht={complex:{model:"Probe \u2192 Sense \u2192 Respond",practice:"Emergent Practices"},complicated:{model:"Sense \u2192 Analyse \u2192 Respond",practice:"Good Practices"},clear:{model:"Sense \u2192 Categorise \u2192 Respond",practice:"Best Practices"},chaotic:{model:"Act \u2192 Sense \u2192 Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=r((t,e)=>{let n=t/2,o=e/2;return{complex:{cx:n/2,cy:o/2,x:0,y:0,w:n,h:o},complicated:{cx:n+n/2,cy:o/2,x:n,y:0,w:n,h:o},chaotic:{cx:n/2,cy:o+o/2,x:0,y:o,w:n,h:o},clear:{cx:n+n/2,cy:o+o/2,x:n,y:o,w:n,h:o},confusion:{cx:n,cy:o,x:n*.7,y:o*.7,w:n*.6,h:o*.6}}},"getDomainLayouts"),Ft=r(()=>{let t=Q(),e=O();return X(t,e.themeVariables).cynefin},"getCynefinDomainColors"),Z=3,Vt=r((t,e,n,o)=>{let c=o.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),a=c.getConfig(),p=Ft();E.debug("Rendering Cynefin diagram");let s=a.width,f=a.height,b=a.padding,h=a.showDomainDescriptions,R=a.boundaryAmplitude,F=s+b*2,V=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=pt(e);rt(k,V,F,a.useMaxWidth??!0),k.attr("viewBox",`0 0 ${F} ${V}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);let T=k.append("g").attr("transform",`translate(${b}, ${b})`),_=Rt(s,f),J=$t(a.seed,e),Dt=T.append("g").attr("class","cynefin-backgrounds"),q=["complex","complicated","chaotic","clear"];for(let l of q){let i=_[l];Dt.append("rect").attr("class","cynefinDomain").attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}let U=T.append("g").attr("class","cynefin-boundaries");U.append("path").attr("class","cynefinBoundary").attr("d",bt(s,f,J,R)).attr("fill","none"),U.append("path").attr("class","cynefinBoundary").attr("d",wt(s,f,J+100,R)).attr("fill","none"),U.append("path").attr("class","cynefinCliff").attr("d",Ct(s,f)).attr("fill","none");let kt=s*.15,Tt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",vt(s/2,f/2,kt,Tt)).attr("fill",z.confusion).attr("fill-opacity",.5);let K=T.append("g").attr("class","cynefin-labels");for(let l of q){let i=_[l];K.append("text").attr("class","cynefinDomainLabel").attr("x",i.cx).attr("y",h?i.cy-30:i.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(K.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let l=T.append("g").attr("class","cynefin-subtitles");for(let i of q){let u=_[i],y=ht[i];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ht.confusion.practice)}let tt=T.append("g").attr("class","cynefin-items"),A=26,et=10,At=["complex","complicated","chaotic","clear","confusion"];for(let l of At){let i=m.get(l);if(!i||i.items.length===0)continue;let u=_[l],y=l==="confusion",L=i.items,N=0;y&&i.items.length>Z&&(N=i.items.length-Z,L=i.items.slice(0,Z));let B;if(y){let g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{let w=B+S*(A+4),M=tt.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label),$=g.label.length*7,x=P.node();if(x&&typeof x.getBBox=="function"){let Y=x.getBBox();Y.width>0&&($=Y.width)}let C=$+et*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){let g=B+L.length*(A+4),S=`+${N} more`,w=tt.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S),P=S.length*7,$=M.node();if($&&typeof $.getBBox=="function"){let I=$.getBBox();I.width>0&&(P=I.width)}let x=P+et*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){let l=k.select("defs").empty()?k.append("defs"):k.select("defs"),i=`cynefin-arrow-${e}`;l.append("marker").attr("id",i).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{let L=_[y.from],N=_[y.to];if(!L||!N)return;if(y.from===y.to){E.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}let B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,Y=-x/C,Bt=$/C,nt=M+Y*I,ot=P+Bt*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${nt},${ot} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${i})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",nt).attr("y",ot-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&T.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),_t={draw:Vt},Et=r(()=>{let t=Q(),e=O();return X(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=r(()=>{let t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
package/dist/embed/{embed-page-dagre-VZM6K2ZE-JB3F5OD3.js → embed-page-dagre-VZM6K2ZE-35URH6ZO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as z}from"./embed-page-chunk-MZ7T7V2Q.js";import{a as I,b as S,c as j,d as J,e as F,f as q}from"./embed-page-chunk-JTJTYIGA.js";import{a as W}from"./embed-page-chunk-4C57ERO3.js";import"./embed-page-chunk-5IWMQWTZ.js";import{c as D,d as R,e as H,f as Y,g as _}from"./embed-page-chunk-
|
|
1
|
+
import{a as z}from"./embed-page-chunk-MZ7T7V2Q.js";import{a as I,b as S,c as j,d as J,e as F,f as q}from"./embed-page-chunk-JTJTYIGA.js";import{a as W}from"./embed-page-chunk-4C57ERO3.js";import"./embed-page-chunk-5IWMQWTZ.js";import{c as D,d as R,e as H,f as Y,g as _}from"./embed-page-chunk-RPGUOUD3.js";import"./embed-page-chunk-7AXKFOLH.js";import{b as B,d as T,e as k,g as O,h as A,i as v,j as P}from"./embed-page-chunk-7IPWMDQ3.js";import"./embed-page-chunk-ME637LUU.js";import{a as G}from"./embed-page-chunk-X2TOGOMH.js";import"./embed-page-chunk-7TH7FFVA.js";import"./embed-page-chunk-I7EMCZI6.js";import"./embed-page-chunk-5ZRWN6T7.js";import"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{Z as C}from"./embed-page-chunk-FPA5BD6K.js";import{b as l}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as w}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var K=w((n,t,g)=>Math.max(t,Math.min(g,n)),"clamp"),Q=w((n="TB")=>{switch(n){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),Z=w(n=>n==="flowchart"||n==="flowchart-v2"||n==="stateDiagram","shouldMergeSelfLoopSegments"),$=w((n,t,g,m,c)=>{let i=[],s=new Set;if(g.forEach(({start:r,end:o})=>{r!==m&&s.add(r),o!==m&&s.add(o)}),s.forEach(r=>{let o=n.node(r);typeof o?.x=="number"&&typeof o?.y=="number"&&i.push(o)}),i.length===0&&g.forEach(({edge:r})=>{(r.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&i.push(o)})}),i.length===0)return Q(c);let f=i.reduce((r,o)=>({x:r.x+o.x/i.length,y:r.y+o.y/i.length}),{x:0,y:0}),h=f.x-t.x,a=f.y-t.y;return Math.abs(h)>Math.abs(a)?h>0?"right":"left":Math.abs(a)>0?a>0?"bottom":"top":Q(c)},"getSelfLoopSide"),ee=w((n,t="top",g=0,m=0)=>{let c=n.x,i=n.y-g,s=n.width/2,f=n.height/2,h=Math.max(36,Math.min(100,n.width*.8)),a=K(Math.max(m,n.width*.35),36,h),r=K(Math.min(n.width,n.height)*.45,24,48);switch(t){case"bottom":{let o=i+f;return[{x:c-a/2,y:o},{x:c-a/2,y:o+r},{x:c+a/2,y:o+r},{x:c+a/2,y:o}]}case"right":{let o=c+s;return[{x:o,y:i-a/2},{x:o+r,y:i-a/2},{x:o+r,y:i+a/2},{x:o,y:i+a/2}]}case"left":{let o=c-s;return[{x:o,y:i-a/2},{x:o-r,y:i-a/2},{x:o-r,y:i+a/2},{x:o,y:i+a/2}]}case"top":default:{let o=i-f;return[{x:c-a/2,y:o},{x:c-a/2,y:o-r},{x:c+a/2,y:o-r},{x:c+a/2,y:o}]}}},"getSelfLoopPoints"),te=w((n,t,g="top",m=0,c={})=>{let s=n.x,f=n.y-m,h=c.width??0,a=c.height??0;switch(g){case"bottom":return{x:s,y:Math.max(...t.map(r=>r.y))+a/2+4};case"right":return{x:Math.max(...t.map(r=>r.x))+h/2+4,y:f};case"left":return{x:Math.min(...t.map(r=>r.x))-h/2-4,y:f};case"top":default:return{x:s,y:Math.min(...t.map(r=>r.y))-a/2-4}}},"getSelfLoopLabelPosition"),oe=w((n,t=0,{mergeSelfLoops:g=!0}={})=>{let m=new Map,c=[],i=n.graph()?.rankdir;return n.edges().forEach(s=>{let f=n.edge(s);if(g&&f.selfLoop){let h=f.selfLoop.id;m.has(h)||m.set(h,[]),m.get(h).push({edge:f,start:s.v,end:s.w})}else c.push({edge:f,start:s.v,end:s.w})}),m.forEach(s=>{if(s.length!==3){s.forEach(L=>c.push(L));return}s.sort((L,d)=>L.edge.selfLoop.order-d.edge.selfLoop.order);let[f,h,a]=s,r=f.edge.originalEdge??h.edge.originalEdge??a.edge.originalEdge??h.edge,o=n.node(r.start);if(!o){s.forEach(L=>c.push(L));return}let u={width:h.edge.width,height:h.edge.height},y=$(n,o,s,r.start,i),X=ee(o,y,t,u.width??0),E=te(o,X,y,t,u),b={...h.edge,...r,id:r.id,points:X,start:r.start,end:r.end,x:E.x,y:E.y,width:u.width,height:u.height,labelStyle:h.edge.labelStyle,fromCluster:f.edge.fromCluster??h.edge.fromCluster??a.edge.fromCluster,toCluster:f.edge.toCluster??h.edge.toCluster??a.edge.toCluster};delete b.selfLoop,delete b.originalEdge,c.push({edge:b,start:b.start,end:b.end})}),c},"getEdgesToRender"),U=w(async(n,t,g,m,c,i)=>{l.warn("Graph in recursive render:XAX",I(t),c);let s=t.graph().rankdir;l.trace("Dir in recursive render - dir:",s);let f=n.insert("g").attr("class","root");t.nodes()?l.info("Recursive render XXX",t.nodes()):l.info("No nodes found for",t),t.edges().length>0&&l.info("Recursive edges",t.edge(t.edges()[0]));let h=f.insert("g").attr("class","clusters"),a=f.insert("g").attr("class","edgePaths"),r=f.insert("g").attr("class","edgeLabels"),o=f.insert("g").attr("class","nodes"),u=Z(g);await Promise.all(t.nodes().map(async function(d){let e=t.node(d);if(c!==void 0){let p=JSON.parse(JSON.stringify(c.clusterData));l.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,d,`
|
|
3
3
|
data=`,p.height,`
|
|
4
4
|
Parent cluster`,c.height),t.setNode(c.id,p),t.parent(d)||(l.trace("Setting parent",d,c.id),t.setParent(d,c.id,p))}if(l.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),e?.clusterNode){l.info("Cluster identified XBX",d,e.width,t.node(d));let{ranksep:p,nodesep:x}=t.graph();e.graph.setGraph({...e.graph.graph(),ranksep:p+25,nodesep:x});let N=await U(o,e.graph,g,m,t.node(d),i),M=N.elem;B(e,M),e.diff=N.diff||0,l.info("New compound node after recursive render XAX",d,"width",e.width,"height",e.height),A(M,e)}else t.children(d).length>0?(l.trace("Cluster - the non recursive path XBX",d,e.id,e,e.width,"Graph:",t),l.trace(J(e.id,t)),S.set(e.id,{id:J(e.id,t),node:e})):(l.trace("Node - the non recursive path XAX",d,o,t.node(d),s),await O(o,t.node(d),{config:i,dir:s}))})),await w(async()=>{let d=t.edges().map(async function(e){let p=t.edge(e.v,e.w,e.name);if(l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),l.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),l.info("Fix",S,"ids:",e.v,e.w,"Translating: ",S.get(e.v),S.get(e.w)),u&&p.selfLoop){if(p.selfLoop.order!==1)return;let x=p.id;p.id=p.selfLoop.id,await R(r,p),p.id=x;return}await R(r,p)});await Promise.all(d)},"processEdges")(),l.info("Graph before layout:",JSON.stringify(I(t))),l.info("############################################# XXX"),l.info("### Layout ### XXX"),l.info("############################################# XXX"),z(t),l.info("Graph after layout:",JSON.stringify(I(t)));let X=0,{subGraphTitleTotalMargin:E}=G(i);await Promise.all(q(t).map(async function(d){let e=t.node(d);if(l.info("Position XBX => "+d+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e?.clusterNode)e.y+=E,l.info("A tainted cluster node XBX1",d,e.id,e.width,e.height,e.x,e.y,t.parent(d)),S.get(e.id).node=e,P(e);else if(t.children(d).length>0){l.info("A pure cluster node XBX1",d,e.id,e.x,e.y,e.width,e.height,t.parent(d)),e.height+=E,t.node(e.parentId);let p=e?.padding/2||0,x=e?.labelBBox?.height||0,N=x-p||0;l.debug("OffsetY",N,"labelHeight",x,"halfPadding",p),await T(h,e),S.get(e.id).node=e}else{let p=t.node(e.parentId);e.y+=E/2,l.info("A regular node XBX1 - using the padding",e.id,"parent",e.parentId,e.width,e.height,e.x,e.y,"offsetY",e.offsetY,"parent",p,p?.offsetY,e),P(e)}}));let b=E/2;return oe(t,b,{mergeSelfLoops:u}).forEach(function({edge:d,start:e,end:p}){l.info("Edge "+e+" -> "+p+": "+JSON.stringify(d),d),d.points.forEach(V=>V.y+=b);let x=t.node(e),N=t.node(p),M=Y(a,d,S,g,x,N,m);H(d,M)}),t.nodes().forEach(function(d){let e=t.node(d);l.info(d,e.type,e.diff),e.isGroup&&(X=e.diff)}),l.warn("Returning from recursive render XAX",f,X),{elem:f,diff:X}},"recursiveRender"),we=w(async(n,t)=>{let g=new W({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:n.config?.nodeSpacing||n.config?.flowchart?.nodeSpacing||n.nodeSpacing,ranksep:n.config?.rankSpacing||n.config?.flowchart?.rankSpacing||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),m=t.select("g");_(m,n.markers,n.type,n.diagramId),v(),D(),k(),j(),n.nodes.forEach(i=>{g.setNode(i.id,{...i}),i.parentId&&g.setParent(i.id,i.parentId)}),l.debug("Edges:",n.edges),n.edges.forEach(i=>{if(i.start===i.end){let s=i.start,f=s+"---"+s+"---1",h=s+"---"+s+"---2",a=g.node(s);g.setNode(f,{domId:f,id:f,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),g.setParent(f,a.parentId),g.setNode(h,{domId:h,id:h,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),g.setParent(h,a.parentId);let r=structuredClone(i),o=structuredClone(i),u=structuredClone(i),y=structuredClone(i);o.originalEdge=r,o.selfLoop={id:r.id,order:0},u.originalEdge=r,u.selfLoop={id:r.id,order:1},y.originalEdge=r,y.selfLoop={id:r.id,order:2},o.label="",o.arrowTypeEnd="none",o.endLabelLeft="",o.endLabelRight="",o.startLabelLeft="",o.id=s+"-cyclic-special-1",u.startLabelRight="",u.startLabelLeft="",u.endLabelLeft="",u.endLabelRight="",u.arrowTypeStart="none",u.arrowTypeEnd="none",u.id=s+"-cyclic-special-mid",y.label="",y.startLabelRight="",y.startLabelLeft="",y.arrowTypeStart="none",a.isGroup&&(o.fromCluster=s,y.toCluster=s),y.id=s+"-cyclic-special-2",y.arrowTypeStart="none",g.setEdge(s,f,o,s+"-cyclic-special-0"),g.setEdge(f,h,u,s+"-cyclic-special-1"),g.setEdge(h,s,y,s+"-cyclic-special-2")}else g.setEdge(i.start,i.end,{...i},i.id)}),l.warn("Graph at first:",JSON.stringify(I(g))),F(g),l.warn("Graph after XAX:",JSON.stringify(I(g)));let c=C();await U(m,g,n.type,n.diagramId,void 0,c)},"render");export{oe as getEdgesToRender,we as render};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as H}from"./embed-page-chunk-
|
|
1
|
+
import{a as H}from"./embed-page-chunk-GA5A7NLC.js";import{a as O}from"./embed-page-chunk-W2KSSDKP.js";import{a as G}from"./embed-page-chunk-XRN4MSDO.js";import{a as X}from"./embed-page-chunk-X3MWV772.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{b as z,d as W}from"./embed-page-chunk-5ZRWN6T7.js";import{o as y}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{G as A,N,S as D,T as E,U as S,V as L,W as _,X as M,Y as R,j as T,t as C}from"./embed-page-chunk-FPA5BD6K.js";import{b as I}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as p}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var Z=/[─━│┃└┗├┣]/,q=/[└┗├┣]/,re=/[─━]/,Y=/^[\s│┃]+$/,P=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,F=/^\s*%%/,ie=" ";function U(n){return n.some(e=>Z.test(e))}p(U,"isBoxDrawingFormat");function J(n){for(let e of n){let t=q.exec(e);if(t?.index&&t.index>0)return t.index}return 4}p(J,"inferSegmentWidth");function K(n,e){return n.replace(/\bline\s+(\d+)\b/gi,(t,r)=>{let i=parseInt(r,10),a=e.get(i);return a?`line ${a}`:t})}p(K,"remapErrorLines");function Q(n){let e=n.split(`
|
|
2
2
|
`),t=new Map,r=-1;for(let[s,o]of e.entries())if(o.trim()==="treeView-beta"){r=s;break}if(r===-1)return{text:n,lineMap:t};let i=[];for(let s=r+1;s<e.length;s++){let o=e[s];o.trim()===""||F.test(o)||P.test(o)||Y.test(o)||i.push(o.replace(/\t/g," "))}if(!U(i))return{text:n,lineMap:t};let a=J(i),c=[],l=0;for(let s=0;s<=r;s++)c.push(e[s]),l++,t.set(l,s+1);for(let s=r+1;s<e.length;s++){let o=e[s],h=o.trim(),f=s+1;if(h===""){c.push(o),l++,t.set(l,f);continue}if(F.test(o)){c.push(o),l++,t.set(l,f);continue}if(P.test(o)){c.push(o),l++,t.set(l,f);continue}if(Y.test(o))continue;let d=o.replace(/\t/g," "),m=q.exec(d);if(m?.index!==void 0){let g=m.index,w=Math.round(g/a)+1,u=g+1;for(;u<d.length&&re.test(d[u]);)u++;for(;u<d.length&&d[u]===" ";)u++;let v=d.slice(u).trimEnd();if(!v)throw new Error(`Line ${f}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let ne=ie.repeat(w);c.push(ne+v),l++,t.set(l,f)}else{if(/^[\s─━│┃└┗├┣]+$/.test(d))continue;if(Z.test(d))c.push(o),l++,t.set(l,f);else{if(/^\s+/.test(d))throw new Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);c.push(o),l++,t.set(l,f)}}}return{text:c.join(`
|
|
3
3
|
`),lineMap:t}}p(Q,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=p(()=>{x.reset(),D()},"clear"),se=p(()=>x.records.stack[0],"getRoot"),ae=p(()=>x.records.cnt,"getCount"),ce=T.treeView,le=p(()=>y(ce,C().treeView),"getConfig"),de=p((n,e,t,r,i,a)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();let c={id:x.records.cnt++,level:n,name:e,nodeType:t,icon:i,cssClass:r,description:a,children:[]};x.records.stack[x.records.stack.length-1].children.push(c),x.records.stack.push(c)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:S,getAccDescription:_,getDiagramTitle:R,setAccDescription:L,setAccTitle:E,setDiagramTitle:M},B=he,pe=p(n=>{O(n,B);for(let e of n.nodes){let t=typeof e.indent=="number"?e.indent:0,r=e.name,i=r.endsWith("/");i&&(r=r.slice(0,-1));let a=i?"directory":"file",c=e.classAnnotation||void 0,l=e.iconAnnotation,s=l!==void 0?l||"none":void 0,o=e.descAnnotation||void 0,h=o?A(o,C()):void 0;B.addNode(t,r,a,c,s,h)}},"populate"),fe={parse:p(async n=>{let{text:e,lineMap:t}=Q(n);try{let r=await G("treeView",e);I.debug(r),pe(r)}catch(r){throw t.size>0&&r instanceof Error&&(r.message=K(r.message,t)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function ee(n,e){let t=e?.filenameIcons?.[n];if(t)return t;let r=n.lastIndexOf(".");if(r>0){let i=n.substring(r).toLowerCase(),a=e?.extensionIcons;return a?.[i]??a?.[i.slice(1)]}}p(ee,"detectIcon");function V(n,e){return n.includes(":")?n:n in b.icons||!e?`${b.prefix}:${n}`:`${e}:${n}`}p(V,"qualifyIcon");function k(n,e){if(n.icon!=="none"){if(n.icon)return V(n.icon,e.defaultIconPack);if(e.showIcons){if(n.nodeType==="file"){let t=ee(n.name,e);if(t==="none")return;if(t)return V(t,e.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}p(k,"getNodeIcon");z([{name:b.prefix,icons:b}]);var $=14,ge=4,ue=16,te=p((n,e)=>`tv-icon-${n}-${e.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),me=p(async(n,e,t,r)=>{let i=new Set,a=p(s=>{let o=k(s,t);o&&i.add(o),s.children.forEach(a)},"collect");if(a(e),i.size===0)return;let c=await Promise.all([...i].map(async s=>({icon:s,svg:await W(s,{height:$,width:$})}))),l=n.append("defs");for(let{icon:s,svg:o}of c)l.append("g").attr("id",te(r,s)).html(o)},"injectIconDefs"),we=p((n,e,t,r,i,a)=>{let c=r.append("g"),l="treeView-node-label";t.nodeType==="directory"&&(l+=" treeView-node-dir"),t.cssClass&&(l+=` ${t.cssClass}`);let s=$+ge,o=k(t,i),h=o!==void 0;o&&c.append("use").attr("xlink:href",`#${te(a,o)}`).attr("x",n+i.paddingX).attr("y",e+i.paddingY).attr("class","treeView-node-icon");let f=c.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:m}=f.node().getBBox(),g=d+i.paddingY*2,w=n+i.paddingX+(h?s:0);f.attr("x",w),f.attr("y",e+g/2);let u=w+m,v=m+i.paddingX*2+(h?s:0);return t.BBox={x:n,y:e,width:v,height:g},t.cssClass?.split(/\s+/).includes("highlight")&&c.insert("rect",":first-child").attr("x",n).attr("y",e+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:t,nodeGroup:c,labelRightEdge:u,centerY:e+g/2}},"positionLabel"),j=p((n,e,t,r,i,a)=>n.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),xe=p((n,e,t,r)=>{let i=0,a=0,c=[],l=p((h,f,d,m)=>{let g=m*(d.rowIndent+d.paddingX),w=we(g,i,f,h,d,r);c.push(w);let{height:u,width:v}=f.BBox;j(h,g-d.rowIndent,i+u/2,g,i+u/2,d.lineThickness),a=Math.max(a,g+v),i+=u},"drawNode"),s=p((h,f=0)=>{l(n,h,t,f),h.children.forEach(w=>{s(w,f+1)});let{x:d,y:m,height:g}=h.BBox;if(h.children.length){let{y:w,height:u}=h.children[h.children.length-1].BBox;j(n,d+t.paddingX,m+g,d+t.paddingX,w+u/2+t.lineThickness/2,t.lineThickness)}},"processNode");s(e);let o=c.filter(h=>h.node.description);if(o.length>0){let f=Math.max(...c.map(d=>d.labelRightEdge))+ue;for(let d of o){let g=d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",d.centerY).node().getBBox();a=Math.max(a,f+g.width+t.paddingX)}}for(let h of c)if(h.node.cssClass?.split(/\s+/).includes("highlight")){let f=h.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let d=a-h.node.BBox.x+8;f.attr("width",d),a=Math.max(a,h.node.BBox.x+d+2)}}return{totalHeight:i,totalWidth:a}},"drawTree"),ve=p(async(n,e,t,r)=>{I.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);let i=r.db,a=i.getRoot(),c=i.getConfig(),l=H(e);await me(l,a,c,e);let s=l.append("g");s.attr("class","tree-view");let{totalHeight:o,totalWidth:h}=xe(s,a,c,e);l.attr("viewBox",`-${c.lineThickness/2} 0 ${h} ${o}`),N(l,o,h,c.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=p(({treeView:n})=>{let{labelFontSize:e,labelColor:t,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:c,highlightStroke:l}=y(Ce,n);return`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as V}from"./embed-page-chunk-W2KSSDKP.js";import{a as j}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import{f as X}from"./embed-page-chunk-YO55GEK3.js";import{i as w,l as G,o as L}from"./embed-page-chunk-
|
|
1
|
+
import{a as V}from"./embed-page-chunk-W2KSSDKP.js";import{a as j}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import{f as X}from"./embed-page-chunk-YO55GEK3.js";import{i as w,l as G,o as L}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{G as v,S as D,T as N,U as C,V as O,W as I,X as W,Y as H,Z as M,ba as U,j as $,t as b}from"./embed-page-chunk-FPA5BD6K.js";import{b as f}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import{b as _}from"./embed-page-chunk-S4XZPBRM.js";import{a as o}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var Y="position frame",z="frame positioned",k="position relation",K="relation positioned",we=o(function(e){f.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){q(),D()},"clear");function q(){E={}}o(q,"reset");var Se=$.eventmodeling,Me=o(()=>L({...Se,...b().eventmodeling}),"getConfig"),E={};function J(){let e=ke,{ast:n}=E,t=A();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,r)=>{let a=re(i,n.dataEntities,t);e=P(e,{$kind:Y,index:r,frame:i,textProps:a});let d;ce(i)?(f.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=P(e,{$kind:k,index:r,frame:i,sourceFrame:l})})):e=P(e,{$kind:k,index:r,frame:i})}),e={...e,sortedSwimlanesArray:R(e.swimlanes)},e}o(J,"getState");function Q(e){E.ast=e}o(Q,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function A(){return s}o(A,"getDiagramProps");var ke={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Z(e){let n=e.split(".");if(n.length===2)return n[0]}o(Z,"extractNamespace");function ee(e){let n=e.split(".");return n.length===2?n[1]:e}o(ee,"extractName");function te(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(te,"findSwimlaneByNamespace");function y(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{let r=Number.parseInt(i);return r>n&&r<t}).map(i=>Number.parseInt(i)))+1}o(y,"findNextAvailableIndex");function ne(e,n){let t=Z(e.entityIdentifier),i=te(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:y(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:y(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:y(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(ne,"calculateSwimlaneProps");function ie(e){let{themeVariables:n}=b();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(ie,"calculateEntityVisualProps");function re(e,n,t){let i=b(),r=v(ee(e.entityIdentifier)??"",i),a,d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},c=`<b>${w(r,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=v(a,i),a=w(a,t.textMaxWidth,d),a=a.replaceAll(" "," ")),e.dataReference){let p=n.find(S=>S.name===e.dataReference?.$refText);p&&(a=p.dataBlockValue,a=a.substring(a.indexOf(`{
|
|
2
2
|
`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=v(a,i),a=w(a,t.textMaxWidth,d),a=a.replaceAll(" "," "),a+="<br/>")}let m=a!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${a}</code>`);let x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=G(c,x),h=m?u.width/3:u.width,g={content:c,width:h,height:u.height};return f.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}o(re,"calculateTextProps");function ae(e,n){let t=n,i=ie(t.frame),r={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:z,frame:t.frame,index:t.index,visual:i,dimension:r,textProps:t.textProps}]}o(ae,"decidePositionFrame");function oe(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(oe,"calculateX");function se(e,n){let t=[...e.map(i=>i.r),n];return Math.max(...t)}o(se,"calculateMaxRight");function R(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(R,"sortedSwimlanesArray");function de(e,n){let t=n,i=ne(t.frame,e.swimlanes),r;i.index in e.swimlanes?r=e.swimlanes[i.index]:r={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=oe(r,d,a),m=c+l.width+s.boxPadding,x=se(Object.values(e.swimlanes),m);r.r=c+l.width,r.maxHeight=Math.max(r.maxHeight,l.height),r.height=Math.max(s.swimlaneMinHeight,r.maxHeight)+2*s.swimlanePadding;let u={x:c,y:s.swimlanePadding+r.y,r:m,dimension:l,leftSibling:!1,swimlane:r,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${r.index}`]:r},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},g=R(h.swimlanes);g.length>0&&(g[0].y=0);for(let p=1;p<g.length;p++){let S=g[p],T=g[p-1];S.y=T.y+T.height+s.swimlaneGap}return h}o(de,"evolveFramePositioned");function le(e,n){return e===0&&n.sourceFrames.length===0}o(le,"isFirstFrame");function ce(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(ce,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function me(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){let r=e[i];if(r.swimlane.index!==n)return r}}o(me,"findBoxByLineIndex");function ue(e,n){let t=n;if(X(t.frame)||le(t.index,t.frame))return[];let i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let r;return t.sourceFrame?r=F(e.boxes,t.sourceFrame):r=me(e.boxes,i.swimlane.index,t.index-1),r===void 0?[]:[{$kind:K,frame:t.frame,index:t.index,sourceBox:r,targetBox:i}]}o(ue,"decidePositionRelation");function xe(e,n){let t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(xe,"evolveRelationPositioned");var Fe={[Y]:ae,[k]:ue},Be={[z]:de,[K]:xe};function fe(e,n){let t=Fe[n.$kind];if(t==null)return[];let i=t(e,n);return f.debug("decided events",i),i}o(fe,"decide");function ge(e,n){let t=n.reduce((i,r)=>{let a=Be[r.$kind];return a==null?i:a(i,r)},e);return f.debug("evolve events",{state:e,newState:t,events:n}),t}o(ge,"evolve");function P(e,n){let t=fe(e,n);return ge(e,t)}o(P,"dispatch");var B={getConfig:Me,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:N,getAccTitle:C,getAccDescription:I,setAccDescription:O,setDiagramTitle:W,getDiagramTitle:H,setAst:Q,getDiagramProps:A,getState:J},Ee={parse:o(async e=>{let n=await j("eventmodeling",e);f.debug(n),B.setAst(n),V(n,B)},"parse")},Ae=M(),Re=Ae?.eventmodeling;function he(e,n){return t=>{let i=t.swimlane.y+n.swimlanePadding,r=e.append("g").attr("class","em-box");r.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),r.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(he,"renderD3Box");function pe(e,n){return e>n}o(pe,"dirUpwards");function be(e,n,t,i){return r=>{let a=r.sourceBox.swimlane.y+n.swimlanePadding,d=r.targetBox.swimlane.y+n.swimlanePadding,l=pe(a,d),c=r.sourceBox.x+r.sourceBox.dimension.width*2/3,m=r.targetBox.x+r.targetBox.dimension.width/3,x,u;f.debug(`rendering relation up=${l} for `,{sourceBox:r.sourceBox,targetBox:r.targetBox}),l?(x=a,u=d+r.targetBox.dimension.height):(x=a+r.sourceBox.dimension.height,u=d);let h=i.emRelationStroke??r.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",r.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(be,"renderD3Relation");function ve(e,n,t,i){return r=>{let a=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",r.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",r.height).attr("fill",d).attr("stroke",l),a.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",r.y+30).text(r.label)}}o(ve,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(f.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!Re)throw new Error("EventModeling config not found");let r=i.db,{themeVariables:a,eventmodeling:d}=M(),l=_(`[id="${n}"]`),c=r.getDiagramProps(),m=r.getState(),x=`em-arrowhead-${n}`,u=a.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ve(l,m.maxR,c,a)),m.boxes.forEach(he(l,c)),m.relations.forEach(be(l,c,x,a)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),U(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Le={parser:Ee,db:B,renderer:$e,styles:Ne};export{Le as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./embed-page-chunk-
|
|
1
|
+
import{a as P}from"./embed-page-chunk-GA5A7NLC.js";import{a as z}from"./embed-page-chunk-W2KSSDKP.js";import{a as E}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{o as u}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{N as x,S as y,T as $,U as B,V as C,W as S,X as D,Y as T,j as w,t as v}from"./embed-page-chunk-FPA5BD6K.js";import{b}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var N=w.packet,F=class{constructor(){this.packet=[],this.setAccTitle=$,this.getAccTitle=B,this.setDiagramTitle=D,this.getDiagramTitle=T,this.getAccDescription=S,this.setAccDescription=C}static{h(this,"PacketDB")}getConfig(){let t=u({...N,...v().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){y(),this.packet=[]}},L=1e4,M=h((t,e)=>{z(t,e);let a=-1,o=[],n=1,{bitsPerRow:l}=e.getConfig();for(let{start:r,end:s,bits:d,label:c}of t.blocks){if(r!==void 0&&s!==void 0&&s<r)throw new Error(`Packet block ${r} - ${s} is invalid. End must be greater than start.`);if(r??=a+1,r!==a+1)throw new Error(`Packet block ${r} - ${s??r} is not contiguous. It should start from ${a+1}.`);if(d===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(s??=r+(d??1)-1,d??=s-r+1,a=s,b.debug(`Packet block ${r} - ${a} with label ${c}`);o.length<=l+1&&e.getPacket().length<L;){let[p,i]=Y({start:r,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!i)break;({start:r,end:s,bits:d,label:c}=i)}}e.pushWord(o)},"populate"),Y=h((t,e,a)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let o=e*a-1,n=e*a;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),A={parser:{yy:void 0},parse:h(async t=>{let e=await E("packet",t),a=A.parser?.yy;if(!(a instanceof F))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");b.debug(e),M(e,a)},"parse")},I=h((t,e,a,o)=>{let n=o.db,l=n.getConfig(),{rowHeight:r,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),f=r+s,g=f*(p.length+1)-(i?0:r),k=d*c+2,m=P(e);m.attr("viewBox",`0 0 ${k} ${g}`),x(m,g,k,l.useMaxWidth);for(let[W,_]of p.entries())O(m,_,W,l);m.append("text").text(i).attr("x",k/2).attr("y",g-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=h((t,e,a,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:r,bitsPerRow:s,showBits:d})=>{let c=t.append("g"),p=a*(o+l)+l;for(let i of e){let f=i.start%s*r+1,g=(i.end-i.start+1)*r-n;if(c.append("rect").attr("x",f).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",f+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;let k=i.end===i.start,m=p-2;c.append("text").attr("x",f+(k?g/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",f+g).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=h(({packet:t}={})=>{let e=u(G,t);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${e.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as he}from"./embed-page-chunk-KOCOGP7G.js";import{a as ue}from"./embed-page-chunk-W2KSSDKP.js";import{a as ye}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{a as fe}from"./embed-page-chunk-I7ESIG2O.js";import{c as me,d as $}from"./embed-page-chunk-IK542MPZ.js";import{o as I}from"./embed-page-chunk-LKNA7XLR.js";import"./embed-page-chunk-72UJHRYJ.js";import{N as ae,S as le,T as se,U as re,V as ne,W as oe,X as ie,Y as ce,h as ee,j as te,t as R}from"./embed-page-chunk-3MT44IAN.js";import{b as H}from"./embed-page-chunk-2BOYLGSX.js";import{e as N,f as pe,h as de,i as B}from"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import{b as V}from"./embed-page-chunk-S4XZPBRM.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var ge=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=se,this.getAccTitle=re,this.setDiagramTitle=ie,this.getDiagramTitle=ce,this.getAccDescription=oe,this.setAccDescription=ne}static{h(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let r=te,s=R();return I({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){let i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{me(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){le(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function Se(r){if(!r.length)return[];let s=[],i=[];return r.forEach(c=>{let l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{let n=i[i.length-1].node;n.children?n.children.push(l):n.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}h(Se,"buildHierarchy");var Fe=h((r,s)=>{ue(r,s);let i=[];for(let n of r.TreemapRows??[])n.$type==="ClassDefStatement"&&s.addClass(n.className??"",n.styleText??"");for(let n of r.TreemapRows??[]){let d=n.item;if(!d)continue;let m=n.indent?parseInt(n.indent):0,k=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],A=a.length>0?a:void 0,b={level:m,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:A};i.push(b)}let c=Se(i),l=h((n,d)=>{for(let m of n)s.addNode(m,d),m.children&&m.children.length>0&&l(m.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=h(r=>r.name?String(r.name):"","getItemName"),xe={parser:{yy:void 0},parse:h(async r=>{try{let i=await ye("treemap",r);H.debug("Treemap AST:",i);let c=xe.parser?.yy;if(!(c instanceof ge))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Fe(i,c)}catch(s){throw H.error("Error parsing treemap:",s),s}},"parse")},ze=10,z=10,M=25,Ae=h((r,s,i,c)=>{let l=c.db,n=l.getConfig(),d=n.padding??ze,m=l.getDiagramTitle(),k=l.getRoot(),{themeVariables:a}=R();if(!k)return;let A=m?30:0,b=he(s),Y=n.nodeWidth?n.nodeWidth*z:960,j=n.nodeHeight?n.nodeHeight*z:500,O=Y,U=j+A;b.attr("viewBox",`0 0 ${O} ${U}`),ae(b,U,O,n.useMaxWidth);let v;try{let e=n.valueFormat||",";if(e==="$0,0")v=h(t=>"$"+N(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),o=t?t[0]:"";v=h(f=>"$"+N(","+o)(f),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);v=h(o=>"$"+N(t||"")(o),"valueFormat")}else v=N(e)}catch(e){H.error("Error creating format function:",e),v=N(",")}let P=B().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),be=B().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=B().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);m&&b.append("text").attr("x",O/2).attr("y",A/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(m);let q=b.append("g").attr("transform",`translate(0, ${A})`).attr("class","treemapContainer"),ve=pe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=de().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?M+z:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?z:0).paddingRight(e=>e.children&&e.children.length>0?z:0).paddingBottom(e=>e.children&&e.children.length>0?z:0).round(!0)(ve),Ce=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(Ce).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>P(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>be(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=$({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;let t=V(this),o=e.data.name;t.text(o);let f=e.x1-e.x0,y=6,u;n.showValues!==!1&&e.value?u=f-10-30-10-y:u=f-y-6;let p=Math.max(15,u),w=t.node();if(w.getComputedTextLength()>p){let T=o;for(;T.length>0;){if(T=o.substring(0,T.length-1),T.length===0){t.text("..."),w.getComputedTextLength()>p&&t.text("");break}if(t.text(T+"..."),w.getComputedTextLength()<=p)break}}}),n.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?v(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});let K=J.leaves(),S=K.length>20,we=S?16:38,E=S?14:28,L=S?4:8,F=S?4:6,G=S?2:4,Q=S?8:10,X=S?1:2,_=q.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("style",e=>$({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t=`text-anchor: middle; dominant-baseline: middle; font-size: ${we}px;fill:`+W(e.data.name)+";",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let t=V(this),o=e.x1-e.x0,f=e.y1-e.y0,y=t.node(),u=o-2*G,C=f-2*G;if(u<Q||C<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10),w=.6;for(;y.getComputedTextLength()>u&&p>L;)p--,t.style("font-size",`${p}px`);let g=Math.max(F,Math.min(E,Math.round(p*w))),x=p+X+g;for(;x>C&&p>L&&(p--,g=Math.max(F,Math.min(E,Math.round(p*w))),!(g<F&&p===L));)t.style("font-size",`${p}px`),x=p+X+g,g<=F&&x>C;t.style("font-size",`${p}px`),S?(p<L||C<L)&&t.style("display","none"):(y.getComputedTextLength()>u||p<L||C<p)&&t.style("display","none")}),n.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{let o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",f=$({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${s}-${o})`).text(t=>t.value?v(t.value):"").each(function(t){let o=V(this),f=this.parentNode;if(!f){o.style("display","none");return}let y=V(f).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}let u=parseFloat(y.style("font-size")),p=Math.max(F,Math.min(E,Math.round(u*.6)));o.style("font-size",`${p}px`);let g=(t.y1-t.y0)/2+u/2+X;o.attr("y",g);let x=t.x1-t.x0,Z=t.y1-t.y0-4,Le=x-2*G;o.node().getComputedTextLength()>Le||g+p>Z||p<F?o.style("display","none"):o.style("display",null)});let Te=n.diagramPadding??8;fe(b,Te,"flowchart",n?.useMaxWidth||!1)},"draw"),Pe=h(function(r,s){return s.db.getClasses()},"getClasses"),De={draw:Ae,getClasses:Pe},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=h(({treemap:r}={})=>{let s=ee(),i=R(),c=I(s,i.themeVariables),l=I(Ve,r),n=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,m=l.valueColor??c.textColor;return`
|
|
1
|
+
import{a as he}from"./embed-page-chunk-GA5A7NLC.js";import{a as ue}from"./embed-page-chunk-W2KSSDKP.js";import{a as ye}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{a as fe}from"./embed-page-chunk-MM3IA4HE.js";import{c as me,d as $}from"./embed-page-chunk-ME637LUU.js";import{o as I}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{N as ae,S as le,T as se,U as re,V as ne,W as oe,X as ie,Y as ce,h as ee,j as te,t as R}from"./embed-page-chunk-FPA5BD6K.js";import{b as H}from"./embed-page-chunk-2BOYLGSX.js";import{e as N,f as pe,h as de,i as B}from"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import{b as V}from"./embed-page-chunk-S4XZPBRM.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var ge=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=se,this.getAccTitle=re,this.setDiagramTitle=ie,this.getDiagramTitle=ce,this.getAccDescription=oe,this.setAccDescription=ne}static{h(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let r=te,s=R();return I({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){let i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{me(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){le(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function Se(r){if(!r.length)return[];let s=[],i=[];return r.forEach(c=>{let l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{let n=i[i.length-1].node;n.children?n.children.push(l):n.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}h(Se,"buildHierarchy");var Fe=h((r,s)=>{ue(r,s);let i=[];for(let n of r.TreemapRows??[])n.$type==="ClassDefStatement"&&s.addClass(n.className??"",n.styleText??"");for(let n of r.TreemapRows??[]){let d=n.item;if(!d)continue;let m=n.indent?parseInt(n.indent):0,k=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],A=a.length>0?a:void 0,b={level:m,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:A};i.push(b)}let c=Se(i),l=h((n,d)=>{for(let m of n)s.addNode(m,d),m.children&&m.children.length>0&&l(m.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=h(r=>r.name?String(r.name):"","getItemName"),xe={parser:{yy:void 0},parse:h(async r=>{try{let i=await ye("treemap",r);H.debug("Treemap AST:",i);let c=xe.parser?.yy;if(!(c instanceof ge))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Fe(i,c)}catch(s){throw H.error("Error parsing treemap:",s),s}},"parse")},ze=10,z=10,M=25,Ae=h((r,s,i,c)=>{let l=c.db,n=l.getConfig(),d=n.padding??ze,m=l.getDiagramTitle(),k=l.getRoot(),{themeVariables:a}=R();if(!k)return;let A=m?30:0,b=he(s),Y=n.nodeWidth?n.nodeWidth*z:960,j=n.nodeHeight?n.nodeHeight*z:500,O=Y,U=j+A;b.attr("viewBox",`0 0 ${O} ${U}`),ae(b,U,O,n.useMaxWidth);let v;try{let e=n.valueFormat||",";if(e==="$0,0")v=h(t=>"$"+N(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),o=t?t[0]:"";v=h(f=>"$"+N(","+o)(f),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);v=h(o=>"$"+N(t||"")(o),"valueFormat")}else v=N(e)}catch(e){H.error("Error creating format function:",e),v=N(",")}let P=B().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),be=B().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=B().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);m&&b.append("text").attr("x",O/2).attr("y",A/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(m);let q=b.append("g").attr("transform",`translate(0, ${A})`).attr("class","treemapContainer"),ve=pe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=de().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?M+z:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?z:0).paddingRight(e=>e.children&&e.children.length>0?z:0).paddingBottom(e=>e.children&&e.children.length>0?z:0).round(!0)(ve),Ce=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(Ce).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>P(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>be(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=$({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;let t=V(this),o=e.data.name;t.text(o);let f=e.x1-e.x0,y=6,u;n.showValues!==!1&&e.value?u=f-10-30-10-y:u=f-y-6;let p=Math.max(15,u),w=t.node();if(w.getComputedTextLength()>p){let T=o;for(;T.length>0;){if(T=o.substring(0,T.length-1),T.length===0){t.text("..."),w.getComputedTextLength()>p&&t.text("");break}if(t.text(T+"..."),w.getComputedTextLength()<=p)break}}}),n.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?v(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});let K=J.leaves(),S=K.length>20,we=S?16:38,E=S?14:28,L=S?4:8,F=S?4:6,G=S?2:4,Q=S?8:10,X=S?1:2,_=q.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("style",e=>$({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t=`text-anchor: middle; dominant-baseline: middle; font-size: ${we}px;fill:`+W(e.data.name)+";",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let t=V(this),o=e.x1-e.x0,f=e.y1-e.y0,y=t.node(),u=o-2*G,C=f-2*G;if(u<Q||C<Q){t.style("display","none");return}let p=parseInt(t.style("font-size"),10),w=.6;for(;y.getComputedTextLength()>u&&p>L;)p--,t.style("font-size",`${p}px`);let g=Math.max(F,Math.min(E,Math.round(p*w))),x=p+X+g;for(;x>C&&p>L&&(p--,g=Math.max(F,Math.min(E,Math.round(p*w))),!(g<F&&p===L));)t.style("font-size",`${p}px`),x=p+X+g,g<=F&&x>C;t.style("font-size",`${p}px`),S?(p<L||C<L)&&t.style("display","none"):(y.getComputedTextLength()>u||p<L||C<p)&&t.style("display","none")}),n.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{let o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",f=$({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${s}-${o})`).text(t=>t.value?v(t.value):"").each(function(t){let o=V(this),f=this.parentNode;if(!f){o.style("display","none");return}let y=V(f).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}let u=parseFloat(y.style("font-size")),p=Math.max(F,Math.min(E,Math.round(u*.6)));o.style("font-size",`${p}px`);let g=(t.y1-t.y0)/2+u/2+X;o.attr("y",g);let x=t.x1-t.x0,Z=t.y1-t.y0-4,Le=x-2*G;o.node().getComputedTextLength()>Le||g+p>Z||p<F?o.style("display","none"):o.style("display",null)});let Te=n.diagramPadding??8;fe(b,Te,"flowchart",n?.useMaxWidth||!1)},"draw"),Pe=h(function(r,s){return s.db.getClasses()},"getClasses"),De={draw:Ae,getClasses:Pe},Ve={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Me=h(({treemap:r}={})=>{let s=ee(),i=R(),c=I(s,i.themeVariables),l=I(Ve,r),n=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,m=l.valueColor??c.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${l.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${l.sectionStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as E}from"./embed-page-chunk-
|
|
1
|
+
import{a as E}from"./embed-page-chunk-GA5A7NLC.js";import{a as F}from"./embed-page-chunk-W2KSSDKP.js";import{a as D}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import{o as y}from"./embed-page-chunk-UAXOXJ4N.js";import"./embed-page-chunk-72UJHRYJ.js";import{N as L,S as T,T as S,U as k,V as O,W as R,X as I,Y as _,h as A,j as M,t as b}from"./embed-page-chunk-FPA5BD6K.js";import{b as C}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as i}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w=32,P={axes:[],curves:[],options:x},g=structuredClone(P),U=M.radar,X=i(()=>y({...U,...b().radar}),"getConfig"),z=i(()=>g.axes,"getAxes"),K=i(()=>g.curves,"getCurves"),N=i(()=>g.options,"getOptions"),Y=i(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=i(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:q(t.entries)}))},"setCurves"),q=i(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=z();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(n=>n.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=i(a=>{let t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>w&&(C.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${w}). Using ${w} instead.`),g.options.ticks=w)},"setOptions"),Q=i(()=>{T(),g=structuredClone(P)},"clear"),$={getAxes:z,getCurves:K,getOptions:N,setAxes:Y,setCurves:Z,setOptions:J,getConfig:X,clear:Q,setAccTitle:S,getAccTitle:k,setDiagramTitle:I,getDiagramTitle:_,getAccDescription:R,setAccDescription:O},tt=i(a=>{F(a,$);let{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:i(async a=>{let t=await D("radar",a);C.debug(t),tt(t)},"parse")},at=i((a,t,e,r)=>{let n=r.db,l=n.getAxes(),c=n.getCurves(),s=n.getOptions(),o=n.getConfig(),d=n.getDiagramTitle(),p=E(t),u=rt(p,o),m=s.max??Math.max(...c.map(f=>Math.max(...f.entries))),h=s.min,v=Math.min(o.width,o.height)/2;nt(u,l,v,s.ticks,s.graticule),st(u,l,v,o),G(u,l,c,h,m,s.graticule,o),V(u,c,s.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=i((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return L(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),nt=i((a,t,e,r,n)=>{if(n==="circle")for(let l=0;l<r;l++){let c=e*(l+1)/r;a.append("circle").attr("r",c).attr("class","radarGraticule")}else if(n==="polygon"){let l=t.length;for(let c=0;c<r;c++){let s=e*(c+1)/r,o=t.map((d,p)=>{let u=2*p*Math.PI/l-Math.PI/2,m=s*Math.cos(u),h=s*Math.sin(u);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=i((a,t,e,r)=>{let n=t.length;for(let l=0;l<n;l++){let c=t[l].label,s=2*l*Math.PI/n-Math.PI/2,o=Math.cos(s),d=Math.sin(s);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");let p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(c).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function G(a,t,e,r,n,l,c){let s=t.length,o=Math.min(c.width,c.height)/2;e.forEach((d,p)=>{if(d.entries.length!==s)return;let u=d.entries.map((m,h)=>{let v=2*Math.PI*h/s-Math.PI/2,f=B(m,r,n,o),H=f*Math.cos(v),j=f*Math.sin(v);return{x:H,y:j}});l==="circle"?a.append("path").attr("d",W(u,c.curveTension)).attr("class",`radarCurve-${p}`):l==="polygon"&&a.append("polygon").attr("points",u.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}i(G,"drawCurves");function B(a,t,e,r){let n=Math.min(Math.max(a,t),e);return r*(n-t)/(e-t)}i(B,"relativeRadius");function W(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let n=0;n<e;n++){let l=a[(n-1+e)%e],c=a[n],s=a[(n+1)%e],o=a[(n+2)%e],d={x:c.x+(s.x-l.x)*t,y:c.y+(s.y-l.y)*t},p={x:s.x-(o.x-c.x)*t,y:s.y-(o.y-c.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${s.x},${s.y}`}return`${r} Z`}i(W,"closedRoundCurve");function V(a,t,e,r){if(!e)return;let n=(r.width/2+r.marginRight)*3/4,l=-(r.height/2+r.marginTop)*3/4,c=20;t.forEach((s,o)=>{let d=a.append("g").attr("transform",`translate(${n}, ${l+o*c})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(s.label)})}i(V,"drawLegend");var ot={draw:at},it=i((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){let n=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${n};
|
|
4
4
|
fill: ${n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n,b as p,c as f}from"./embed-page-chunk-
|
|
1
|
+
import{a as n,b as p,c as f}from"./embed-page-chunk-S2XGVDY7.js";import"./embed-page-chunk-GA5A7NLC.js";import{a as i}from"./embed-page-chunk-W2KSSDKP.js";import{b as l}from"./embed-page-chunk-XRN4MSDO.js";import"./embed-page-chunk-SN26GUFN.js";import{b as m}from"./embed-page-chunk-4XOTFVZI.js";import"./embed-page-chunk-OA75S54S.js";import"./embed-page-chunk-UWPUXGYU.js";import"./embed-page-chunk-ULUQTYZ6.js";import"./embed-page-chunk-HRLDTFOW.js";import"./embed-page-chunk-2RWSBPM5.js";import"./embed-page-chunk-ZDVDBZSS.js";import"./embed-page-chunk-7AWGM2AG.js";import"./embed-page-chunk-KQ4YWZMQ.js";import"./embed-page-chunk-2A6GYGUX.js";import"./embed-page-chunk-Q4EFCGVD.js";import"./embed-page-chunk-4WSBJAJ5.js";import"./embed-page-chunk-SOZBIUVL.js";import"./embed-page-chunk-QYZHHDW5.js";import"./embed-page-chunk-YO55GEK3.js";import"./embed-page-chunk-FPA5BD6K.js";import{b as o}from"./embed-page-chunk-2BOYLGSX.js";import"./embed-page-chunk-DM5ESF6C.js";import"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{a as t}from"./embed-page-chunk-444E5YR2.js";import"./embed-page-chunk-U2CG7PH5.js";import"./embed-page-chunk-45A47GH2.js";var c=m().RailroadEbnf.parser.LangiumParser,s=t(e=>{let r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{let r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),u=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},u(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),u(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{i(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),P={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");let r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},$={parser:P,db:n,renderer:f,styles:p};export{$ as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./embed-page-chunk-CWVHIM56.js";import"./embed-page-chunk-45A47GH2.js";export{_ as Axis,m as ChartView,j as ComponentModel,l as ComponentView,S as List,h as Model,r as PRIORITY,k as SeriesModel,f as color,t as connect,Q as dataTool,q as dependencies,v as disConnect,u as disconnect,w as dispose,a as env,ca as extendChartView,$ as extendComponentModel,aa as extendComponentView,ba as extendSeriesModel,Y as format,H as getCoordinateSystemDimensions,x as getInstanceByDom,y as getInstanceById,O as getMap,X as graphic,T as helper,s as init,o as innerDrawElementOnCanvas,e as matrix,V as number,U as parseGeoJSON,U as parseGeoJson,F as registerAction,G as registerCoordinateSystem,I as registerCustomSeries,J as registerLayout,L as registerLoading,i as registerLocale,N as registerMap,C as registerPostInit,D as registerPostUpdate,A as registerPreprocessor,B as registerProcessor,z as registerTheme,P as registerTransform,E as registerUpdateLifecycle,K as registerVisual,M as setCanvasCreator,b as setPlatformAPI,n as throttle,W as time,R as use,Z as util,d as vector,p as version,c as zrUtil,g as zrender};
|