@bkm016/basalt 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/{chunk-gw05p4g3.js → chunk-053vb71h.js} +1 -1
- package/{chunk-3c330qna.js → chunk-063vbmtp.js} +2 -2
- package/{chunk-bgkegf0k.js → chunk-0javrjcm.js} +4 -4
- package/{chunk-pjr91g6k.js → chunk-10p3mb40.js} +1 -1
- package/{chunk-mkp28k1x.js → chunk-39vwrg8n.js} +2 -2
- package/{chunk-8xb636vr.js → chunk-6kdgk70p.js} +2 -2
- package/{chunk-9z7sdh5e.js → chunk-6ptv4g5e.js} +1 -1
- package/{chunk-zzwjt7fp.js → chunk-75434aay.js} +1 -1
- package/{chunk-ar3dbfp9.js → chunk-7hr6zw2m.js} +1 -1
- package/{chunk-h1rypb99.js → chunk-8gw5bvh3.js} +4 -4
- package/{chunk-a4b75ekk.js → chunk-8saewt61.js} +2 -2
- package/{chunk-sqaam5ak.js → chunk-8wj32837.js} +1 -1
- package/{chunk-539ekagy.js → chunk-8wv5t0w6.js} +5 -5
- package/{chunk-aw65h276.js → chunk-8x21n7y9.js} +1 -1
- package/{chunk-0n99m9m4.js → chunk-a0c989ky.js} +1 -1
- package/{chunk-srjgvdvs.js → chunk-a5apjjcn.js} +6 -6
- package/chunk-a81p46j7.js +2 -0
- package/chunk-agsfy9w7.js +2 -0
- package/{chunk-2qcpq99g.js → chunk-arcqjt91.js} +1 -1
- package/{chunk-rxj6tct8.js → chunk-bdy4jksd.js} +1 -1
- package/{chunk-zrkh5dw7.js → chunk-benrzwea.js} +1 -1
- package/chunk-bpw6q7g0.js +3 -0
- package/{chunk-36cqq0ga.js → chunk-c7rcw9fb.js} +5 -5
- package/{chunk-x89em726.js → chunk-ca982n62.js} +1 -1
- package/chunk-d20p02ny.js +2 -0
- package/{chunk-5v4g21rw.js → chunk-d6p2hgxh.js} +1 -1
- package/{chunk-t7sc0wwc.js → chunk-dnx91jrd.js} +2 -2
- package/{chunk-mat08ab1.js → chunk-dpz4hwqb.js} +2 -2
- package/{chunk-zn0g0859.js → chunk-ebpyvs1d.js} +2 -2
- package/{chunk-00gwse5r.js → chunk-ecf896fz.js} +1 -1
- package/{chunk-0stvywr8.js → chunk-ejsneb6f.js} +1 -1
- package/{chunk-7as47pcw.js → chunk-ey15ye2h.js} +1 -1
- package/{chunk-v4k3qmdm.js → chunk-f156y565.js} +1 -1
- package/{chunk-7tgqhveh.js → chunk-f544p9rh.js} +1 -1
- package/chunk-fmq3zwzk.js +2 -0
- package/{chunk-ebzkckyw.js → chunk-fx7f4m3c.js} +1 -1
- package/{chunk-3k7ejpkc.js → chunk-g0t9c3gv.js} +1 -1
- package/{chunk-7w0mefgk.js → chunk-gv7wqkey.js} +2 -2
- package/{chunk-2nkfxhef.js → chunk-hksqjts3.js} +252 -236
- package/{chunk-1xa7d5mh.js → chunk-j7yvh0ae.js} +1 -1
- package/{chunk-0j0qggej.js → chunk-n85qs7cs.js} +1 -1
- package/{chunk-7qq99360.js → chunk-n981vx1t.js} +4 -4
- package/{chunk-0fwdxd45.js → chunk-peja51xv.js} +1 -1
- package/{chunk-6dsq0fns.js → chunk-pg5nkf1y.js} +1 -1
- package/{chunk-jyrwk08p.js → chunk-prgm07j4.js} +1 -1
- package/{chunk-jvwg4rn1.js → chunk-q9dd6fhj.js} +4 -4
- package/{chunk-nxkmd29x.js → chunk-r8vvcp6c.js} +1 -1
- package/{chunk-stj493dn.js → chunk-r9aatvwm.js} +2 -2
- package/chunk-rfb85nj7.js +2 -0
- package/{chunk-980drajf.js → chunk-rfdt992v.js} +12 -12
- package/{chunk-e63c1186.js → chunk-s6dejhfj.js} +1 -1
- package/{chunk-wfyrfvfn.js → chunk-s7skpgm2.js} +1 -1
- package/{chunk-dddsrff6.js → chunk-tgfbtehh.js} +123 -121
- package/{chunk-r0jc8e7t.js → chunk-w67dvqtb.js} +2 -2
- package/{chunk-b9fqretv.js → chunk-whj87h4r.js} +2 -2
- package/{chunk-vt1anydc.js → chunk-y8dkfpmj.js} +3 -3
- package/{chunk-nx3jnbv8.js → chunk-z02sj1je.js} +2 -2
- package/{chunk-hq5ke1yp.js → chunk-zxkq9m8e.js} +1 -1
- package/compiled.js +3 -3
- package/package.json +1 -1
- package/ui-test-worker.js +27 -27
- package/web/{chunk-56krfj3b.js → chunk-03dmzvaq.js} +1 -1
- package/web/{chunk-affear07.js → chunk-0fgaepwm.js} +1 -1
- package/web/{chunk-vhzys0rr.js → chunk-0gg00f86.js} +1 -1
- package/web/chunk-0pecj6d7.js +1 -0
- package/web/chunk-0wt1dgny.js +1 -0
- package/web/{chunk-gxqaa4sv.js → chunk-12xxh71x.js} +5 -5
- package/web/chunk-1ves7sq5.js +1 -0
- package/web/chunk-1yj79b48.js +1 -0
- package/web/{chunk-x7sb3bwf.js → chunk-296hgy6k.js} +22 -22
- package/web/{chunk-jcdw85mv.js → chunk-2bmq1whf.js} +1 -1
- package/web/{chunk-1s2hp6h1.js → chunk-2wqxhqr9.js} +1 -1
- package/web/{chunk-y7jq61nv.js → chunk-30b33r2w.js} +2 -2
- package/web/{chunk-g8kkc6vz.js → chunk-30zfw7zg.js} +1 -1
- package/web/chunk-39ng8zwx.css +1 -0
- package/web/{chunk-0qr891eq.js → chunk-3de552rg.js} +1 -1
- package/web/{chunk-3hkgdw6f.js → chunk-3nbzj48p.js} +3 -3
- package/web/{chunk-12z7d0hp.js → chunk-3zebd9fq.js} +1 -1
- package/web/chunk-4r1n98zx.js +2 -0
- package/web/chunk-59678wmg.js +1 -0
- package/web/{chunk-pyg1mr80.js → chunk-5v44qv67.js} +20 -20
- package/web/chunk-5wdk97mk.js +4 -0
- package/web/{chunk-fnnrrzqa.js → chunk-64rafq66.js} +1 -1
- package/web/{chunk-qrdh9j62.js → chunk-6kkw9ptc.js} +1 -1
- package/web/{chunk-01hcjafh.js → chunk-718mr5gc.js} +1 -1
- package/web/chunk-7hs57qdr.js +1 -0
- package/web/{chunk-aqt7kc3s.js → chunk-7kp237t3.js} +1 -1
- package/web/chunk-86p42kym.js +1 -0
- package/web/chunk-8n79cqyd.js +1 -0
- package/web/{chunk-paywgcf7.js → chunk-96v2avmw.js} +2 -2
- package/web/{chunk-4a4j030b.js → chunk-9an6wcnr.js} +1 -1
- package/web/{chunk-dzg1pv80.js → chunk-9c1yt2ex.js} +3 -3
- package/web/{chunk-d60dpf69.js → chunk-a7gtb4kg.js} +1 -1
- package/web/chunk-b985y17w.js +2 -0
- package/web/{chunk-j34q5jn6.js → chunk-bz2v64xe.js} +1 -1
- package/web/{chunk-g9sqbafw.js → chunk-cb2rxtq9.js} +1 -1
- package/web/{chunk-g5jxwkdh.js → chunk-ck8rr0sr.js} +1 -1
- package/web/{chunk-zc1mk10n.js → chunk-cktmyc13.js} +2 -2
- package/web/{chunk-tcp77cp2.js → chunk-cm92fyr3.js} +1 -1
- package/web/chunk-cwtn2kdm.js +1 -0
- package/web/{chunk-ka7c5rhx.js → chunk-czq1yz51.js} +6 -6
- package/web/{chunk-qq5gh5zr.js → chunk-d4z2rgpx.js} +1 -1
- package/web/{chunk-0k9aec1s.js → chunk-d6tbw8br.js} +3 -3
- package/web/chunk-dpkyygej.js +1 -0
- package/web/{chunk-m8knte9z.js → chunk-dwajwrpk.js} +1 -1
- package/web/{chunk-7e47b1sn.js → chunk-et5ess72.js} +1 -1
- package/web/chunk-ez8b6neq.js +1 -0
- package/web/{chunk-9xgspn75.js → chunk-f5txt81n.js} +2 -2
- package/web/chunk-fd1kqwe3.js +1 -0
- package/web/chunk-fmthkpff.js +1 -0
- package/web/{chunk-h2ag4kvz.js → chunk-fp48zz2e.js} +1 -1
- package/web/{chunk-1pasbxwh.js → chunk-fx0n2g22.js} +1 -1
- package/web/{chunk-bnb9xhgw.js → chunk-fxs4nb93.js} +6 -6
- package/web/{chunk-sd22cnjy.js → chunk-g6k9z8zt.js} +1 -1
- package/web/{chunk-5shygfgb.js → chunk-g81h1e6n.js} +2 -2
- package/web/{chunk-zz397b0v.js → chunk-gsh80797.js} +1 -1
- package/web/chunk-hs5x78fb.js +1 -0
- package/web/{chunk-abhad4zj.js → chunk-ht1dzftc.js} +4 -4
- package/web/{chunk-zqht0jzx.js → chunk-hy4m34qp.js} +1 -1
- package/web/chunk-hyd5hzpa.js +1 -0
- package/web/chunk-hyt1nkaw.js +1 -0
- package/web/chunk-j6a4z530.js +1139 -0
- package/web/{chunk-h6gh63xj.js → chunk-jve1zc80.js} +1 -1
- package/web/{chunk-vttgyb5v.js → chunk-kegv14sg.js} +1 -1
- package/web/chunk-kw9emsqw.js +1 -0
- package/web/{chunk-kza0t0gj.js → chunk-kyawkpv2.js} +1 -1
- package/web/{chunk-xsrvw7dt.js → chunk-m2prjwk3.js} +1 -1
- package/web/{chunk-s24qs1bn.js → chunk-m9bzz9m0.js} +6 -6
- package/web/{chunk-c53xmf48.js → chunk-mqsyzzgt.js} +1 -1
- package/web/{chunk-26bwh1sb.js → chunk-n1jpg57t.js} +6 -6
- package/web/{chunk-yvgs6bm3.js → chunk-nyn9tghz.js} +1 -1
- package/web/{chunk-ybw6vgf6.js → chunk-nywdeb4m.js} +1 -1
- package/web/{chunk-1cfh0e2e.js → chunk-prvh9syp.js} +7 -7
- package/web/chunk-pxkhm40r.js +2 -0
- package/web/{chunk-d6ddkh6e.js → chunk-q9ekgjh6.js} +1 -1
- package/web/chunk-r3mj50zs.js +1 -0
- package/web/{chunk-2nht58dc.js → chunk-rf9dt6bg.js} +1 -1
- package/web/{chunk-4m3zdd41.js → chunk-s2920f21.js} +1 -1
- package/web/{chunk-crzseqbx.js → chunk-sc0ghp25.js} +1 -1
- package/web/{chunk-7a3c137d.js → chunk-sy7e4dmq.js} +1 -1
- package/web/{chunk-65nwc4cf.js → chunk-t74r2n8h.js} +1 -1
- package/web/{chunk-gcv91974.js → chunk-t851gdjh.js} +1 -1
- package/web/{chunk-mpfgr049.js → chunk-t9mvsgt9.js} +1 -1
- package/web/{chunk-mnzramhc.js → chunk-twdy2f67.js} +1 -1
- package/web/{chunk-advfpyb9.js → chunk-v4yqrx5y.js} +4 -4
- package/web/{chunk-z4aj066q.js → chunk-vf4vkcf9.js} +1 -1
- package/web/{chunk-6enn8p66.js → chunk-vtxw9rmr.js} +1 -1
- package/web/{chunk-k67v6dyg.js → chunk-vw1pbv1x.js} +2 -2
- package/web/chunk-x19v2sxv.js +1 -0
- package/web/{chunk-892nf39p.js → chunk-x5s7zr5f.js} +7 -7
- package/web/{chunk-f9k3xrwb.js → chunk-xc2sq3t5.js} +1 -1
- package/web/chunk-xvcfp1zh.js +2 -0
- package/web/chunk-y21zy3eh.js +1 -0
- package/web/{chunk-14bad871.js → chunk-ya3ghn3n.js} +1 -1
- package/web/chunk-yd74yxzt.js +8 -0
- package/web/{chunk-0p1nmj5n.js → chunk-z1geewdf.js} +1 -1
- package/web/chunk-z4ha8181.js +1 -0
- package/web/chunk-z8rarqe6.js +1 -0
- package/web/{chunk-xk1t58c4.js → chunk-zp3qrrkb.js} +4 -4
- package/web/{chunk-7znyd1mj.js → chunk-zsxw5fj7.js} +1 -1
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-2nb3d92s.js +0 -2
- package/chunk-2pa1z37c.js +0 -2
- package/chunk-4g5f43ea.js +0 -3
- package/chunk-eegztdzb.js +0 -2
- package/chunk-wd3z74av.js +0 -2
- package/chunk-yna8bwqc.js +0 -2
- package/web/chunk-0ytga215.js +0 -1
- package/web/chunk-1amzv4ha.js +0 -1
- package/web/chunk-2y0rc1fe.js +0 -1
- package/web/chunk-4w298aqs.js +0 -1
- package/web/chunk-6stt9d18.js +0 -1
- package/web/chunk-7pypx5h8.js +0 -2
- package/web/chunk-9dy7z3ej.js +0 -2
- package/web/chunk-9mq2cdtq.js +0 -1
- package/web/chunk-b5hah4mf.js +0 -1
- package/web/chunk-b8tfetd8.js +0 -1
- package/web/chunk-ckgpy4r4.js +0 -1
- package/web/chunk-dbnrfxt1.js +0 -8
- package/web/chunk-ddxf8e84.js +0 -1
- package/web/chunk-e8h45nyr.js +0 -1
- package/web/chunk-ej9vb61c.js +0 -1
- package/web/chunk-fjag6yg8.js +0 -2
- package/web/chunk-gxsb5tx3.js +0 -1
- package/web/chunk-jg6fmz2d.js +0 -1
- package/web/chunk-mz1dabxh.js +0 -1
- package/web/chunk-p53n0hwr.js +0 -1
- package/web/chunk-pfcnr9tw.js +0 -1
- package/web/chunk-q7xkscc5.js +0 -1
- package/web/chunk-qmbgb79a.js +0 -1139
- package/web/chunk-sfq6cw45.js +0 -2
- package/web/chunk-svqj4az8.js +0 -1
- package/web/chunk-t7jwyvvr.js +0 -1
- package/web/chunk-tf18d2dk.css +0 -1
- package/web/chunk-v0g4cqc1.js +0 -4
- package/web/chunk-vqfz99ff.js +0 -1
- package/web/chunk-zazs8p6c.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Rt,x}from"./chunk-qmbgb79a.js";var un={};Rt(un,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>hi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>hr,AbnfRule:()=>vi,AbnfRuleName:()=>wo,AbnfStringLiteral:()=>Po,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Zn,Commit:()=>Tr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Yt,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Qn,DomainItem:()=>Hi,EbnfChoice:()=>ko,EbnfExceptionPostfix:()=>Io,EbnfGroup:()=>No,EbnfNonTerminal:()=>Oo,EbnfOneOrMorePostfix:()=>Mo,EbnfOptional:()=>Do,EbnfOptionalPostfix:()=>Lo,EbnfPostfix:()=>tn,EbnfPrimary:()=>Kt,EbnfRepetition:()=>xo,EbnfRule:()=>$i,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>Ri,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>yr,EmFrame:()=>Wt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Xt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>sn,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>$r,MermaidGeneratedSharedModule:()=>ue,Packet:()=>Rr,PacketBlock:()=>Ar,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ai,PegPrimary:()=>rn,PegRule:()=>Pi,PegSequence:()=>qo,PegSuffix:()=>Ii,Pie:()=>Jt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>ea,Radar:()=>qt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>Er,RailroadAbnf:()=>Cr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>br,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>_r,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ni,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>gr,Transition:()=>on,TreeNode:()=>vr,TreeView:()=>nn,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Sr,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ae,createDefaultSharedCoreModule:()=>ie,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>Br,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Yi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Yi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},Z=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Yi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Yi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Yi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Yi({},"__esModule",{value:!0}),e),Xi=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,N){if(N===void 0)N=C;var S=Object.getOwnPropertyDescriptor(g,C);if(!S||("get"in S?!g.__esModule:S.writable||S.configurable))S={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,N,S)}:function(A,g,C,N){if(N===void 0)N=C;A[N]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var N=[];for(var S in C)if(Object.prototype.hasOwnProperty.call(C,S))N[N.length]=S;return N},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var N=A(g),S=0;S<N.length;S++)if(N[S]!=="default")t(C,g,N[S])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Xi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,N){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=N,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var w=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=w;var _=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=_;var M=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=M;var L=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=L;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var te=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=te;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Q=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Q;var P=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=P;var D=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=D;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var I;(function(A){function g(S){let O=S;return O&&a.string(O.method)&&(a.string(O.id)||a.number(O.id))}i(g,"isRequest"),A.isRequest=g;function C(S){let O=S;return O&&a.string(O.method)&&S.id===void 0}i(C,"isNotification"),A.isNotification=C;function N(S){let O=S;return O&&(O.result!==void 0||!!O.error)&&(a.string(O.id)||a.number(O.id)||O.id===null)}i(N,"isResponse"),A.isResponse=N})(I||(e.Message=I={}))}}),Mm=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),pn=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),Ji=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(pn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(pn()),o=n(Xi()),l=Ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(pn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(pn()),o=n(Xi()),l=Ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,w,_=new Map,M,L=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)w=T.contentDecoder,_.set(w.name,w);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)_.set(F.name,F);if(T.contentTypeDecoder!==void 0)M=T.contentTypeDecoder,L.set(M.name,M);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)L.set(F.name,F)}if(M===void 0)M=(0,s.default)().applicationJson.decoder,L.set(M.name,M);return{charset:v,contentDecoder:w,contentDecoders:_,contentTypeDecoder:M,contentTypeDecoders:L}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
|
|
1
|
+
import{Rt,x}from"./chunk-j6a4z530.js";var un={};Rt(un,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>hi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>hr,AbnfRule:()=>vi,AbnfRuleName:()=>wo,AbnfStringLiteral:()=>Po,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Zn,Commit:()=>Tr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Yt,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Qn,DomainItem:()=>Hi,EbnfChoice:()=>ko,EbnfExceptionPostfix:()=>Io,EbnfGroup:()=>No,EbnfNonTerminal:()=>Oo,EbnfOneOrMorePostfix:()=>Mo,EbnfOptional:()=>Do,EbnfOptionalPostfix:()=>Lo,EbnfPostfix:()=>tn,EbnfPrimary:()=>Kt,EbnfRepetition:()=>xo,EbnfRule:()=>$i,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>Ri,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>yr,EmFrame:()=>Wt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Xt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>sn,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>$r,MermaidGeneratedSharedModule:()=>ue,Packet:()=>Rr,PacketBlock:()=>Ar,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ai,PegPrimary:()=>rn,PegRule:()=>Pi,PegSequence:()=>qo,PegSuffix:()=>Ii,Pie:()=>Jt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>ea,Radar:()=>qt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>Er,RailroadAbnf:()=>Cr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>br,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>_r,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ni,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>gr,Transition:()=>on,TreeNode:()=>vr,TreeView:()=>nn,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Sr,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ae,createDefaultSharedCoreModule:()=>ie,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>Br,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Yi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Yi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},Z=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Yi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Yi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Yi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Yi({},"__esModule",{value:!0}),e),Xi=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,N){if(N===void 0)N=C;var S=Object.getOwnPropertyDescriptor(g,C);if(!S||("get"in S?!g.__esModule:S.writable||S.configurable))S={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,N,S)}:function(A,g,C,N){if(N===void 0)N=C;A[N]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var N=[];for(var S in C)if(Object.prototype.hasOwnProperty.call(C,S))N[N.length]=S;return N},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var N=A(g),S=0;S<N.length;S++)if(N[S]!=="default")t(C,g,N[S])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Xi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,N){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=N,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var w=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=w;var _=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=_;var M=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=M;var L=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=L;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var te=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=te;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Q=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Q;var P=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=P;var D=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=D;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var I;(function(A){function g(S){let O=S;return O&&a.string(O.method)&&(a.string(O.id)||a.number(O.id))}i(g,"isRequest"),A.isRequest=g;function C(S){let O=S;return O&&a.string(O.method)&&S.id===void 0}i(C,"isNotification"),A.isNotification=C;function N(S){let O=S;return O&&(O.result!==void 0||!!O.error)&&(a.string(O.id)||a.number(O.id)||O.id===null)}i(N,"isResponse"),A.isResponse=N})(I||(e.Message=I={}))}}),Mm=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),pn=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),Ji=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(pn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(pn()),o=n(Xi()),l=Ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(pn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(pn()),o=n(Xi()),l=Ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,w,_=new Map,M,L=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)w=T.contentDecoder,_.set(w.name,w);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)_.set(F.name,F);if(T.contentTypeDecoder!==void 0)M=T.contentTypeDecoder,L.set(M.name,M);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)L.set(F.name,F)}if(M===void 0)M=(0,s.default)().applicationJson.decoder,L.set(M.name,M);return{charset:v,contentDecoder:w,contentDecoders:_,contentTypeDecoder:M,contentTypeDecoders:L}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
|
|
2
2
|
${JSON.stringify(Object.fromEntries(T))}`));return}let R=parseInt(v);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${v}`));return}this.nextMessageLength=R}let E=this.buffer.tryReadBody(this.nextMessageLength);if(E===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let T=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(E):E,v=await this.options.contentTypeDecoder.decode(T,this.options);this.callback(v)}).catch((T)=>{this.fireError(T)})}}catch(E){this.fireError(E)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,s.default)().timer.setTimeout((d,E)=>{if(this.partialMessageTimer=void 0,d===this.messageToken)this.firePartialMessage({messageToken:d,waitingTime:E}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=y}}),fA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?function(T,v,R,w){if(w===void 0)w=R;var _=Object.getOwnPropertyDescriptor(v,R);if(!_||("get"in _?!v.__esModule:_.writable||_.configurable))_={enumerable:!0,get:i(function(){return v[R]},"get")};Object.defineProperty(T,w,_)}:function(T,v,R,w){if(w===void 0)w=R;T[w]=v[R]}),r=e&&e.__setModuleDefault||(Object.create?function(T,v){Object.defineProperty(T,"default",{enumerable:!0,value:v})}:function(T,v){T.default=v}),n=e&&e.__importStar||function(){var T=i(function(v){return T=Object.getOwnPropertyNames||function(R){var w=[];for(var _ in R)if(Object.prototype.hasOwnProperty.call(R,_))w[w.length]=_;return w},T(v)},"ownKeys");return function(v){if(v&&v.__esModule)return v;var R={};if(v!=null){for(var w=T(v),_=0;_<w.length;_++)if(w[_]!=="default")t(R,v,w[_])}return r(R,v),R}}(),a=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var s=a(pn()),o=n(Xi()),l=Dm(),u=Ji(),c="Content-Length: ",p=`\r
|
|
3
3
|
`,h;(function(T){function v(R){let w=R;return w&&o.func(w.dispose)&&o.func(w.onClose)&&o.func(w.onError)&&o.func(w.write)}i(v,"is"),T.is=v})(h||(e.MessageWriter=h={}));var y=class{static{i(this,"AbstractMessageWriter")}errorEmitter;closeEmitter;constructor(){this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(T,v,R){this.errorEmitter.fire([this.asError(T),v,R])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(T){if(T instanceof Error)return T;else return Error(`Writer received error. Reason: ${o.string(T.message)?T.message:"unknown"}`)}};e.AbstractMessageWriter=y;var d;(function(T){function v(R){if(R===void 0||typeof R==="string")return{charset:R??"utf-8",contentTypeEncoder:(0,s.default)().applicationJson.encoder};else return{charset:R.charset??"utf-8",contentEncoder:R.contentEncoder,contentTypeEncoder:R.contentTypeEncoder??(0,s.default)().applicationJson.encoder}}i(v,"fromOptions"),T.fromOptions=v})(d||(d={}));var E=class extends y{static{i(this,"WriteableStreamMessageWriter")}writable;options;errorCount;writeSemaphore;constructor(T,v){super();this.writable=T,this.options=d.fromOptions(v),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError((R)=>this.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(T){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(T,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let w=[];return w.push(c,R.byteLength.toString(),p),w.push(p),this.doWrite(T,w,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(T,v,R){try{return await this.writable.write(v.join(""),"ascii"),this.writable.write(R)}catch(w){return this.handleError(w,T),Promise.reject(w)}}handleError(T,v){this.errorCount++,this.fireError(T,v,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=E}}),pA=Z({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
|
|
4
4
|
`,a=class{static{i(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let o=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:while(l<this._chunks.length){let d=this._chunks[l];u=0;while(u<d.length){switch(d[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}c+=d.byteLength,l++}if(o!==4)return;let p=this._read(c+u),h=new Map,y=this.toString(p,"ascii").split(n);if(y.length<2)return h;for(let d=0;d<y.length-2;d++){let E=y[d],T=E.indexOf(":");if(T===-1)throw Error(`Message header must separate key and value using ':'
|
|
@@ -136,7 +136,7 @@ ${t}`;if(this.inline)return`{${n}}`;else return n}};function bR(e,t,r){if(e==="l
|
|
|
136
136
|
`);return}},Je=class extends Ie{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){return}},ce=class extends aR{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach((a)=>{if(this.keywords.has(a.name)&&a.PATTERN!==void 0)a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),n}},kR=class extends ce{static{i(this,"CommonTokenBuilder")}};var dP=class extends ce{static{i(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},IR={parser:{TokenBuilder:i(()=>new dP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function gi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),zl,IR);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}i(gi,"createRadarServices");var mP=class extends ce{static{i(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},NR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
|
|
137
137
|
`;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),hP=class extends Ie{static{i(this,"RailroadValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return NR(a)}return n}runCustomConverter(e,t,r){if(e.name==="RR_STRING")return NR(t);return}},OR={parser:{TokenBuilder:i(()=>new mP,"TokenBuilder"),ValueConverter:i(()=>new hP,"ValueConverter")}};function ar(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Vl,OR);return t.ServiceRegistry.register(r),{shared:t,Railroad:r}}i(ar,"createRailroadServices");var yP=class extends ce{static{i(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},MR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
|
|
138
138
|
`;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),gP=class extends Ie{static{i(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return MR(a)}return n}runCustomConverter(e,t,r){if(e.name==="EBNF_STRING")return MR(t);if(e.name==="EBNF_SPECIAL_SEQUENCE")return t.slice(1,-1).trim();return}},DR={parser:{TokenBuilder:i(()=>new yP,"TokenBuilder"),ValueConverter:i(()=>new gP,"ValueConverter")}};function ir(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Ul,DR);return t.ServiceRegistry.register(r),{shared:t,RailroadEbnf:r}}i(ir,"createRailroadEbnfServices");var vP=class extends ce{static{i(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},TP=class extends Ie{static{i(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return a.slice(1,-1)}return n}runCustomConverter(e,t,r){if(e.name==="ABNF_STRING")return t.slice(1,-1);return}},LR={parser:{TokenBuilder:i(()=>new vP,"TokenBuilder"),ValueConverter:i(()=>new TP,"ValueConverter")}};function or(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Bl,LR);return t.ServiceRegistry.register(r),{shared:t,RailroadAbnf:r}}i(or,"createRailroadAbnfServices");var $P=class extends ce{static{i(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},xR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
|
|
139
|
-
`;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function sr(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i(sr,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function yi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(yi,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function bi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(bi,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function xi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(xi,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function _i(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(_i,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function wi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(wi,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ki(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(ki,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function Ci(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(Ci,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function Si(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(Si,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function Ti(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(Ti,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function Ei(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(Ei,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (x("q7xkscc5"),import("./chunk-q7xkscc5.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (x("4w298aqs"),import("./chunk-4w298aqs.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (x("gxsb5tx3"),import("./chunk-gxsb5tx3.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (x("t7jwyvvr"),import("./chunk-t7jwyvvr.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (x("p53n0hwr"),import("./chunk-p53n0hwr.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (x("b8tfetd8"),import("./chunk-b8tfetd8.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (x("jg6fmz2d"),import("./chunk-jg6fmz2d.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (x("2y0rc1fe"),import("./chunk-2y0rc1fe.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (x("vqfz99ff"),import("./chunk-vqfz99ff.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (x("0ytga215"),import("./chunk-0ytga215.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (x("mz1dabxh"),import("./chunk-mz1dabxh.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (x("zazs8p6c"),import("./chunk-zazs8p6c.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (x("ej9vb61c"),import("./chunk-ej9vb61c.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (x("pfcnr9tw"),import("./chunk-pfcnr9tw.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (x("ckgpy4r4"),import("./chunk-ckgpy4r4.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function X(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new kt(a);return a.value}i(X,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),kt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
|
|
139
|
+
`;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function sr(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i(sr,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function yi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(yi,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function bi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(bi,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function xi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(xi,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function _i(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(_i,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function wi(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(wi,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ki(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(ki,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function Ci(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(Ci,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function Si(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(Si,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function Ti(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(Ti,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function Ei(e=le){let t=W(ie(e),ue),r=W(ae({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(Ei,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (x("hyd5hzpa"),import("./chunk-hyd5hzpa.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (x("0wt1dgny"),import("./chunk-0wt1dgny.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (x("dpkyygej"),import("./chunk-dpkyygej.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (x("ez8b6neq"),import("./chunk-ez8b6neq.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (x("fd1kqwe3"),import("./chunk-fd1kqwe3.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (x("cwtn2kdm"),import("./chunk-cwtn2kdm.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (x("8n79cqyd"),import("./chunk-8n79cqyd.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (x("z8rarqe6"),import("./chunk-z8rarqe6.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (x("1ves7sq5"),import("./chunk-1ves7sq5.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (x("y21zy3eh"),import("./chunk-y21zy3eh.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (x("1yj79b48"),import("./chunk-1yj79b48.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (x("0pecj6d7"),import("./chunk-0pecj6d7.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (x("z4ha8181"),import("./chunk-z4ha8181.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (x("kw9emsqw"),import("./chunk-kw9emsqw.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (x("x19v2sxv"),import("./chunk-x19v2sxv.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function X(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new kt(a);return a.value}i(X,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),kt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
|
|
140
140
|
`),r=e.parserErrors.map((n)=>{let a=Yl(n.token.startLine),s=Yl(n.token.startColumn);return`Parse error on line ${a}, column ${s}: ${n.message}`}).join(`
|
|
141
141
|
`);super(`Parsing failed: ${t} ${r}`);this.result=e}static{i(this,"MermaidParseError")}};
|
|
142
142
|
export{Br,gi,ar,ir,or,sr,yi,bi,xi,_i,wi,ki,Ci,Si,Ti,Ei,X,kt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e,zn,p,Hn}from"./chunk-
|
|
1
|
+
import{e,zn,p,Hn}from"./chunk-5v44qv67.js";import{Se}from"./chunk-j6a4z530.js";var o=Se(Hn(),1);var on=e((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name)r.attr("name",t.name);if(t.rx)r.attr("rx",t.rx);if(t.ry)r.attr("ry",t.ry);if(t.attrs!==void 0)for(let a in t.attrs)r.attr(a,t.attrs[a]);if(t.class)r.attr("class",t.class);return r},"drawRect"),Fr=e((s,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};on(s,r).lower()},"drawBackgroundRect"),Ki=e((s,t)=>{let r=t.text.replace(zn," "),a=s.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),a},"drawText"),ia=e((s,t,r,a)=>{let i=s.append("image");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),oa=e((s,t,r,a)=>{let i=s.append("use");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),Ke=e(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),sa=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),$t=e(()=>{let s=p(".mermaidTooltip");if(s.empty())s=p("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
|
|
2
2
|
export{on,Fr,Ki,ia,oa,Ke,sa,$t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_i}from"./chunk-cktmyc13.js";export{_i as createGitGraphServices};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{e,Qt,a,ce,v,C,S,E,T,A,R,L,l,p,M,ze,Kr,ue,oe,se,ht,ye,ve}from"./chunk-pyg1mr80.js";import{Bt}from"./chunk-9dy7z3ej.js";import{ge}from"./chunk-9xgspn75.js";import{le}from"./chunk-01hcjafh.js";var Ue=function(){var s=e(function(q,o,h,f){for(h=h||{},f=q.length;f--;h[q[f]]=o);return h},"o"),c=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],n=[1,7],u=[1,9],g=[1,10],N=[1,11],y=[1,12],x=[1,30],k=[1,23],_=[1,24],B=[1,25],W=[1,26],X=[1,27],I=[1,19],Y=[1,28],te=[1,29],G=[1,20],P=[1,18],z=[1,21],U=[1,22],Ke=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Ie=[1,36],Re=[1,37],De=[1,38],Le=[1,39],we=[1,40],ie=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],re=[1,57],ae=[43,51,53,54,55,74,75],ne=[1,70],he=[1,68],j=[1,65],de=[1,69],be=[1,71],ke=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],_e=[1,78],me=[1,77],Ee=[1,76],Ze=[69,70,71,72,73],je=[1,91],qe=[6,9,45,50],J=[6,9,12,44,45,50,51,52],Se=[1,101],Te=[1,100],Ce=[1,99],pe=[18,61],We=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(o,h,f,r,m,t,fe){var i=t.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=t[i-1].concat(t[i]);break;case 4:this.$=t[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(t[i-4]),r.addEntity(t[i-2]),r.addRelationship(t[i-4],t[i],t[i-2],t[i-3]),this.$=[t[i-4],t[i-2]];break;case 8:r.addEntity(t[i-8]),r.addEntity(t[i-4]),r.addRelationship(t[i-8],t[i],t[i-4],t[i-5]),r.setClass([t[i-8]],t[i-6]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-8],t[i-4]];break;case 9:r.addEntity(t[i-6]),r.addEntity(t[i-2]),r.addRelationship(t[i-6],t[i],t[i-2],t[i-3]),r.setClass([t[i-6]],t[i-4]),this.$=[t[i-6],t[i-2]];break;case 10:r.addEntity(t[i-6]),r.addEntity(t[i-4]),r.addRelationship(t[i-6],t[i],t[i-4],t[i-5]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-6],t[i-4]];break;case 11:r.addEntity(t[i-3]),r.addAttributes(t[i-3],t[i-1]),this.$=[t[i-3]];break;case 12:r.addEntity(t[i-5]),r.addAttributes(t[i-5],t[i-1]),r.setClass([t[i-5]],t[i-3]),this.$=[t[i-5]];break;case 13:r.addEntity(t[i-2]),this.$=[t[i-2]];break;case 14:r.addEntity(t[i-4]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-4]];break;case 15:r.addEntity(t[i]),this.$=[t[i]];break;case 16:r.addEntity(t[i-2]),r.setClass([t[i-2]],t[i]),this.$=[t[i-2]];break;case 17:r.addEntity(t[i-6],t[i-4]),r.addAttributes(t[i-6],t[i-1]),this.$=[t[i-6]];break;case 18:r.addEntity(t[i-8],t[i-6]),r.addAttributes(t[i-8],t[i-1]),r.setClass([t[i-8]],t[i-3]),this.$=[t[i-8]];break;case 19:r.addEntity(t[i-5],t[i-3]),this.$=[t[i-5]];break;case 20:r.addEntity(t[i-7],t[i-5]),r.setClass([t[i-7]],t[i-2]),this.$=[t[i-7]];break;case 21:r.addEntity(t[i-3],t[i-1]);break;case 22:r.addEntity(t[i-5],t[i-3]),r.setClass([t[i-5]],t[i]);break;case 23:case 24:this.$=t[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=t[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(t[i].value),this.$=[];else this.$=t[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:t[i-2].id},t[i-1],{text:t[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-1],text:t[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-4],text:t[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[i];break;case 35:this.$=t[i-1]+" "+t[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[i-3],r.addClass(t[i-2],t[i-1]);break;case 41:case 42:case 63:case 72:this.$=[t[i]];break;case 43:case 44:this.$=t[i-2].concat([t[i]]);break;case 45:this.$=t[i-2],r.setClass(t[i-1],t[i]);break;case 46:this.$=t[i-3],r.addCssStyles(t[i-2],t[i-1]);break;case 47:this.$=[t[i]];break;case 48:t[i-2].push(t[i]),this.$=t[i-2];break;case 50:this.$=t[i-1]+t[i];break;case 58:case 84:case 85:this.$=t[i].replace(/"/g,"");break;case 64:t[i].push(t[i-1]),this.$=t[i];break;case 65:this.$={type:t[i-1],name:t[i]};break;case 66:this.$={type:t[i-2],name:t[i-1],keys:t[i]};break;case 67:this.$={type:t[i-2],name:t[i-1],comment:t[i]};break;case 68:this.$={type:t[i-3],name:t[i-2],keys:t[i-1],comment:t[i]};break;case 69:case 71:case 74:this.$=t[i];break;case 70:this.$=t[i-1]+t[i];break;case 73:t[i-2].push(t[i]),this.$=t[i-2];break;case 75:this.$=t[i].replace(/"/g,"");break;case 76:this.$={cardA:t[i],relType:t[i-1],cardB:t[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(c,b,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:u,23:g,25:N,27:y,28:13,29:14,30:15,31:16,32:17,34:x,37:k,38:_,39:B,40:W,41:X,43:I,46:Y,47:te,51:G,53:P,54:z,55:U},s(c,Ke,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Ie,70:Re,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(ie,[2,58]),s(ie,[2,59]),s(ie,[2,60]),s(ie,[2,61]),s(ie,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:I,51:G,53:P,54:z,55:U},{10:51,43:I,51:G,53:P,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:re},{10:58,43:I,51:G,53:P,54:z,55:U},{68:59,74:[1,60],75:[1,61]},s(ae,[2,77]),s(ae,[2,78]),s(ae,[2,79]),s(ae,[2,80]),s(ae,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:u,23:g,25:N,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:x,37:k,38:_,39:B,40:W,41:X,43:I,46:Y,47:te,51:G,53:P,54:z,55:U},{12:ne,42:64,44:he,45:j,48:66,49:67,51:de,52:be},s(ke,[2,41]),s(ke,[2,42]),{15:72,43:K,44:Z,45:j},{12:ne,42:73,44:he,45:j,48:66,49:67,51:de,52:be},{6:_e,9:me,19:[1,75],35:74,50:Ee},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Ie,70:Re,71:De,72:Le,73:we}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:re},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Ie,70:Re,71:De,72:Le,73:we},s(Ze,[2,82]),s(Ze,[2,83]),s(d,[2,31]),s(d,Ke),{6:_e,9:me,35:90,45:je,50:Ee},{43:[1,92],44:[1,93]},s(qe,[2,47],{49:94,12:ne,44:he,51:de,52:be}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:_e,9:me,35:95,45:je,50:Ee},s(d,[2,32]),{10:97,36:96,43:I,51:G,53:P,54:z,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:Se,53:Te,76:Ce},{15:102,43:K,44:Z},{10:103,43:I,51:G,53:P,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:re},s(d,[2,11]),{18:[2,64]},s(pe,[2,65],{59:106,60:107,63:108,65:We,66:He}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ne,44:he,48:113,49:67,51:de,52:be},s(ke,[2,43]),s(ke,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:I,51:G,53:P,54:z,55:U},s(Qe,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(pe,[2,66],{60:120,64:[1,121],66:He}),s(pe,[2,67]),s(Ve,[2,72]),s(pe,[2,75]),s(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:re},{15:124,43:K,44:Z},s(qe,[2,48],{49:94,12:ne,44:he,51:de,52:be}),{6:_e,9:me,35:125,50:Ee},s(Qe,[2,35]),{13:126,43:Se,53:Te,76:Ce},{15:127,43:K,44:Z},{13:128,43:Se,53:Te,76:Ce},s(d,[2,12]),s(pe,[2,68]),{63:129,65:We},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(Ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:re},{13:135,43:Se,53:Te,76:Ce},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(o,h){if(h.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=h,f}},"parseError"),parse:e(function(o){var h=this,f=[0],r=[],m=[null],t=[],fe=this.table,i="",Ne=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),O=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(O.setInput(o,H.yy),H.yy.lexer=O,H.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var Ge=O.yylloc;t.push(Ge);var ot=O.options&&O.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(V){f.length=f.length-2*V,m.length=m.length-V,t.length=t.length-V}e(lt,"popStack");function et(){var V=r.pop()||O.lex()||$e;if(typeof V!=="number"){if(V instanceof Array)r=V,V=r.pop();V=h.symbols_[V]||V}return V}e(et,"lex");var D,Fe,Q,w,kt,Ye,ee={},xe,F,tt,Ae;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])w=this.defaultActions[Q];else{if(D===null||typeof D>"u")D=et();w=fe[Q]&&fe[Q][D]}if(typeof w>"u"||!w.length||!w[0]){var Pe="";Ae=[];for(xe in fe[Q])if(this.terminals_[xe]&&xe>at)Ae.push("'"+this.terminals_[xe]+"'");if(O.showPosition)Pe="Parse error on line "+(Ne+1)+`:
|
|
1
|
+
import{e,Qt,a,ce,v,C,S,E,T,A,R,L,l,p,M,ze,Kr,ue,oe,se,gt,ge,ye}from"./chunk-5v44qv67.js";import{Bt}from"./chunk-pxkhm40r.js";import{he}from"./chunk-f5txt81n.js";import{le}from"./chunk-718mr5gc.js";var Ue=function(){var s=e(function(q,o,h,f){for(h=h||{},f=q.length;f--;h[q[f]]=o);return h},"o"),c=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],n=[1,7],u=[1,9],g=[1,10],N=[1,11],y=[1,12],x=[1,30],k=[1,23],_=[1,24],B=[1,25],W=[1,26],X=[1,27],I=[1,19],Y=[1,28],te=[1,29],G=[1,20],P=[1,18],z=[1,21],U=[1,22],Ke=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Re=[1,36],ve=[1,37],De=[1,38],Le=[1,39],we=[1,40],ie=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],re=[1,57],ae=[43,51,53,54,55,74,75],ne=[1,70],de=[1,68],j=[1,65],be=[1,69],pe=[1,71],_e=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],me=[1,78],Ee=[1,77],Se=[1,76],Ze=[69,70,71,72,73],je=[1,91],qe=[6,9,45,50],J=[6,9,12,44,45,50,51,52],Te=[1,101],Ce=[1,100],Oe=[1,99],fe=[18,61],We=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(o,h,f,r,m,t,ke){var i=t.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=t[i-1].concat(t[i]);break;case 4:this.$=t[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(t[i-4]),r.addEntity(t[i-2]),r.addRelationship(t[i-4],t[i],t[i-2],t[i-3]),this.$=[t[i-4],t[i-2]];break;case 8:r.addEntity(t[i-8]),r.addEntity(t[i-4]),r.addRelationship(t[i-8],t[i],t[i-4],t[i-5]),r.setClass([t[i-8]],t[i-6]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-8],t[i-4]];break;case 9:r.addEntity(t[i-6]),r.addEntity(t[i-2]),r.addRelationship(t[i-6],t[i],t[i-2],t[i-3]),r.setClass([t[i-6]],t[i-4]),this.$=[t[i-6],t[i-2]];break;case 10:r.addEntity(t[i-6]),r.addEntity(t[i-4]),r.addRelationship(t[i-6],t[i],t[i-4],t[i-5]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-6],t[i-4]];break;case 11:r.addEntity(t[i-3]),r.addAttributes(t[i-3],t[i-1]),this.$=[t[i-3]];break;case 12:r.addEntity(t[i-5]),r.addAttributes(t[i-5],t[i-1]),r.setClass([t[i-5]],t[i-3]),this.$=[t[i-5]];break;case 13:r.addEntity(t[i-2]),this.$=[t[i-2]];break;case 14:r.addEntity(t[i-4]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-4]];break;case 15:r.addEntity(t[i]),this.$=[t[i]];break;case 16:r.addEntity(t[i-2]),r.setClass([t[i-2]],t[i]),this.$=[t[i-2]];break;case 17:r.addEntity(t[i-6],t[i-4]),r.addAttributes(t[i-6],t[i-1]),this.$=[t[i-6]];break;case 18:r.addEntity(t[i-8],t[i-6]),r.addAttributes(t[i-8],t[i-1]),r.setClass([t[i-8]],t[i-3]),this.$=[t[i-8]];break;case 19:r.addEntity(t[i-5],t[i-3]),this.$=[t[i-5]];break;case 20:r.addEntity(t[i-7],t[i-5]),r.setClass([t[i-7]],t[i-2]),this.$=[t[i-7]];break;case 21:r.addEntity(t[i-3],t[i-1]);break;case 22:r.addEntity(t[i-5],t[i-3]),r.setClass([t[i-5]],t[i]);break;case 23:case 24:this.$=t[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=t[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(t[i].value),this.$=[];else this.$=t[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:t[i-2].id},t[i-1],{text:t[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-1],text:t[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-4],text:t[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[i];break;case 35:this.$=t[i-1]+" "+t[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[i-3],r.addClass(t[i-2],t[i-1]);break;case 41:case 42:case 63:case 72:this.$=[t[i]];break;case 43:case 44:this.$=t[i-2].concat([t[i]]);break;case 45:this.$=t[i-2],r.setClass(t[i-1],t[i]);break;case 46:this.$=t[i-3],r.addCssStyles(t[i-2],t[i-1]);break;case 47:this.$=[t[i]];break;case 48:t[i-2].push(t[i]),this.$=t[i-2];break;case 50:this.$=t[i-1]+t[i];break;case 58:case 84:case 85:this.$=t[i].replace(/"/g,"");break;case 64:t[i].push(t[i-1]),this.$=t[i];break;case 65:this.$={type:t[i-1],name:t[i]};break;case 66:this.$={type:t[i-2],name:t[i-1],keys:t[i]};break;case 67:this.$={type:t[i-2],name:t[i-1],comment:t[i]};break;case 68:this.$={type:t[i-3],name:t[i-2],keys:t[i-1],comment:t[i]};break;case 69:case 71:case 74:this.$=t[i];break;case 70:this.$=t[i-1]+t[i];break;case 73:t[i-2].push(t[i]),this.$=t[i-2];break;case 75:this.$=t[i].replace(/"/g,"");break;case 76:this.$={cardA:t[i],relType:t[i-1],cardB:t[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(c,b,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:u,23:g,25:N,27:y,28:13,29:14,30:15,31:16,32:17,34:x,37:k,38:_,39:B,40:W,41:X,43:I,46:Y,47:te,51:G,53:P,54:z,55:U},s(c,Ke,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Re,70:ve,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(ie,[2,58]),s(ie,[2,59]),s(ie,[2,60]),s(ie,[2,61]),s(ie,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:I,51:G,53:P,54:z,55:U},{10:51,43:I,51:G,53:P,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:re},{10:58,43:I,51:G,53:P,54:z,55:U},{68:59,74:[1,60],75:[1,61]},s(ae,[2,77]),s(ae,[2,78]),s(ae,[2,79]),s(ae,[2,80]),s(ae,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:u,23:g,25:N,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:x,37:k,38:_,39:B,40:W,41:X,43:I,46:Y,47:te,51:G,53:P,54:z,55:U},{12:ne,42:64,44:de,45:j,48:66,49:67,51:be,52:pe},s(_e,[2,41]),s(_e,[2,42]),{15:72,43:K,44:Z,45:j},{12:ne,42:73,44:de,45:j,48:66,49:67,51:be,52:pe},{6:me,9:Ee,19:[1,75],35:74,50:Se},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Re,70:ve,71:De,72:Le,73:we}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:re},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Re,70:ve,71:De,72:Le,73:we},s(Ze,[2,82]),s(Ze,[2,83]),s(d,[2,31]),s(d,Ke),{6:me,9:Ee,35:90,45:je,50:Se},{43:[1,92],44:[1,93]},s(qe,[2,47],{49:94,12:ne,44:de,51:be,52:pe}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:me,9:Ee,35:95,45:je,50:Se},s(d,[2,32]),{10:97,36:96,43:I,51:G,53:P,54:z,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:Te,53:Ce,76:Oe},{15:102,43:K,44:Z},{10:103,43:I,51:G,53:P,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:re},s(d,[2,11]),{18:[2,64]},s(fe,[2,65],{59:106,60:107,63:108,65:We,66:He}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ne,44:de,48:113,49:67,51:be,52:pe},s(_e,[2,43]),s(_e,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:I,51:G,53:P,54:z,55:U},s(Qe,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(fe,[2,66],{60:120,64:[1,121],66:He}),s(fe,[2,67]),s(Ve,[2,72]),s(fe,[2,75]),s(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:re},{15:124,43:K,44:Z},s(qe,[2,48],{49:94,12:ne,44:de,51:be,52:pe}),{6:me,9:Ee,35:125,50:Se},s(Qe,[2,35]),{13:126,43:Te,53:Ce,76:Oe},{15:127,43:K,44:Z},{13:128,43:Te,53:Ce,76:Oe},s(d,[2,12]),s(fe,[2,68]),{63:129,65:We},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(Ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:re},{13:135,43:Te,53:Ce,76:Oe},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(o,h){if(h.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=h,f}},"parseError"),parse:e(function(o){var h=this,f=[0],r=[],m=[null],t=[],ke=this.table,i="",xe=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),O=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(O.setInput(o,H.yy),H.yy.lexer=O,H.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var Ge=O.yylloc;t.push(Ge);var ot=O.options&&O.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(V){f.length=f.length-2*V,m.length=m.length-V,t.length=t.length-V}e(lt,"popStack");function et(){var V=r.pop()||O.lex()||$e;if(typeof V!=="number"){if(V instanceof Array)r=V,V=r.pop();V=h.symbols_[V]||V}return V}e(et,"lex");var D,Fe,Q,w,ft,Ye,ee={},Ae,F,tt,Ie;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])w=this.defaultActions[Q];else{if(D===null||typeof D>"u")D=et();w=ke[Q]&&ke[Q][D]}if(typeof w>"u"||!w.length||!w[0]){var Pe="";Ie=[];for(Ae in ke[Q])if(this.terminals_[Ae]&&Ae>at)Ie.push("'"+this.terminals_[Ae]+"'");if(O.showPosition)Pe="Parse error on line "+(xe+1)+`:
|
|
2
2
|
`+O.showPosition()+`
|
|
3
|
-
Expecting `+
|
|
3
|
+
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else Pe="Parse error on line "+(xe+1)+": Unexpected "+(D==$e?"end of input":"'"+(this.terminals_[D]||D)+"'");this.parseError(Pe,{text:O.match,token:this.terminals_[D]||D,line:O.yylineno,loc:Ge,expected:Ie})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+D);switch(w[0]){case 1:if(f.push(D),m.push(O.yytext),t.push(O.yylloc),f.push(w[1]),D=null,!Fe){if(Xe=O.yyleng,i=O.yytext,xe=O.yylineno,Ge=O.yylloc,Je>0)Je--}else D=Fe,Fe=null;break;case 2:if(F=this.productions_[w[1]][1],ee.$=m[m.length-F],ee._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ot)ee._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]];if(Ye=this.performAction.apply(ee,[i,Xe,xe,H.yy,w[1],m,t].concat(nt)),typeof Ye<"u")return Ye;if(F)f=f.slice(0,-1*F*2),m=m.slice(0,-1*F),t=t.slice(0,-1*F);f.push(this.productions_[w[1]][0]),m.push(ee.$),t.push(ee._$),tt=ke[f[f.length-2]][f[f.length-1]],f.push(tt);break;case 3:return!0}}return!0},"parse")},rt=function(){var q={EOF:1,parseError:e(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw Error(h)},"parseError"),setInput:e(function(o,h){if(this.yy=h||this.yy||{},this._input=o,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];return this.offset=0,this},"setInput"),input:e(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);if(h)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:e(function(o){var h=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-h];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(o){this.unput(this.match.slice(o))},"less"),pastInput:e(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var o=this.pastInput(),h=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+h+"^"},"showPosition"),test_match:e(function(o,h){var f,r,m;if(this.options.backtrack_lexer){if(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)m.yylloc.range=this.yylloc.range.slice(0)}if(r=o[0].match(/(?:\r\n?|\n).*/g),r)this.yylineno+=r.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var t in m)this[t]=m[t];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,h,f,r;if(!this._more)this.yytext="",this.match="";var m=this._currentRules();for(var t=0;t<m.length;t++)if(f=this._input.match(this.rules[m[t]]),f&&(!h||f[0].length>h[0].length)){if(h=f,r=t,this.options.backtrack_lexer)if(o=this.test_match(f,m[t]),o!==!1)return o;else if(this._backtrack){h=!1;continue}else return!1;else if(!this.options.flex)break}if(h){if(o=this.test_match(h,m[r]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:e(function(h){this.conditionStack.push(h)},"begin"),popState:e(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:e(function(h){this.begin(h)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(h,f,r,m){var t=m;switch(r){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return f.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return f.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();Me.lexer=rt;function Oe(){this.yy={}}return e(Oe,"Parser"),Oe.prototype=Me,Me.Parser=Oe,new Oe}();Ue.parser=Ue;var ct=Ue,ut=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=R,this.getDiagramTitle=L,this.getConfig=e(()=>l().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{e(this,"ErDB")}addEntity(s,c=""){if(!this.entities.has(s))this.entities.set(s,{id:`entity-${s}-${this.entities.size}`,label:s,attributes:[],alias:c,shape:"erBox",look:l().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),a.info("Added new entity :",s);else if(!this.entities.get(s)?.alias&&c)this.entities.get(s).alias=c,a.info(`Add alias '${c}' to entity '${s}'`);return this.entities.get(s)}getEntity(s){return this.entities.get(s)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(s,c){let b=this.addEntity(s),n;for(n=c.length-1;n>=0;n--){if(!c[n].keys)c[n].keys=[];if(!c[n].comment)c[n].comment="";b.attributes.push(c[n]),a.debug("Added attribute ",c[n].name)}}addRelationship(s,c,b,n){let u;if(this.subGraphLookup.has(s))u=s;else{let y=this.addEntity(s);if(!y)return;u=y.id}let g;if(this.subGraphLookup.has(b))g=b;else{let y=this.addEntity(b);if(!y)return;g=y.id}let N={entityA:u,roleA:c,entityB:g,relSpec:n};this.relationships.push(N),a.debug("Added new relationship :",N)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(s){this.direction=s}getCompiledStyles(s){let c=[];for(let b of s){let n=this.classes.get(b);if(n?.styles)c=[...c,...n.styles??[]].map((u)=>u.trim());if(n?.textStyles)c=[...c,...n.textStyles??[]].map((u)=>u.trim())}return c}addCssStyles(s,c){for(let b of s){let n=this.entities.get(b),u=this.subGraphLookup.get(b);if(!c)continue;if(n)for(let g of c)n.cssStyles.push(g);if(u){if(!u.cssStyles)u.cssStyles=[];for(let g of c)u.cssStyles.push(g)}}}addClass(s,c){s.forEach((b)=>{let n=this.classes.get(b);if(n===void 0)n={id:b,styles:[],textStyles:[]},this.classes.set(b,n);if(c)c.forEach(function(u){if(/color/.exec(u)){let g=u.replace("fill","bgFill");n.textStyles.push(g)}n.styles.push(u)})})}addSubGraph(s,c,b){let n=s.text.trim(),u=b.text,N=e((_)=>{let B=new Set,W;return{nodeList:_.filter((I)=>{if(I?.stmt){if(I.stmt==="dir")W=I.value;return!1}if(typeof I!=="string")return!1;let Y=I.trim();if(!Y)return!1;if(B.has(Y))return!1;return B.add(Y),!0}),dir:W}},"uniq")(c.flat()),{nodeList:y,dir:x}=N;n=n??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let k={id:n,nodes:y,title:u.trim(),classes:[],cssStyles:[],dir:x,labelType:this.sanitizeNodeLabelType(b?.type)};return a.info("Adding",k.id,k.nodes,k.dir),k.nodes=this.makeUniq(k,this.subGraphs).nodes,this.subGraphs.push(k),this.subGraphLookup.set(n,k),n}getSubGraphs(){return this.subGraphs}setClass(s,c){for(let b of s){let n=this.entities.get(b);if(n)for(let g of c)n.cssClasses+=" "+g;let u=this.subGraphLookup.get(b);if(u)for(let g of c)u.classes.push(g)}}subgraphNodeCache(s){let c=new Set;for(let b of s)for(let n of b.nodes)c.add(n);return c}makeUniq(s,c){let b=this.subgraphNodeCache(c),n=[];return s.nodes.forEach((u,g)=>{if(b.has(u))a.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`);else n.push(s.nodes[g])}),{nodes:n}}sanitizeText(s){return v.sanitizeText(s,l())}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,C()}getData(){let s=[],c=[],b=l(),n=this.getSubGraphs(),u=new Map,g=new Map;for(let k=n.length-1;k>=0;k--){let _=n[k];if(_.nodes.length>0)g.set(_.id,!0);for(let B of _.nodes)u.set(B,_.id)}for(let k=n.length-1;k>=0;k--){let _=n[k];s.push({id:_.id,label:_.title,labelStyle:"",labelType:_.labelType,parentId:u.get(_.id),padding:8,cssCompiledStyles:this.getCompiledStyles(_.classes),cssStyles:_.cssStyles,cssClasses:_.classes.join(" "),shape:"rect",dir:_.dir,isGroup:!0,look:b.look})}let N=new Set(n.map((k)=>k.id)),y=0;for(let k of this.entities.keys()){if(N.has(k))continue;let _=this.entities.get(k);if(_)_.cssCompiledStyles=this.getCompiledStyles(_.cssClasses.split(" ")),_.colorIndex=y++,s.push({..._,parentId:u.get(k),isGroup:!1})}let x=0;for(let k of this.relationships){let _={id:ze(k.entityA,k.entityB,{prefix:"id",counter:x++}),type:"normal",curve:"basis",start:k.entityA,end:k.entityB,label:k.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:k.relSpec.cardB.toLowerCase(),arrowTypeEnd:k.relSpec.cardA.toLowerCase(),pattern:k.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};c.push(_)}return{nodes:s,edges:c,other:{},config:b,direction:this.direction}}},it={};Qt(it,{draw:()=>dt});var dt=e(async function(s,c,b,n){a.info("REF0:"),a.info("Drawing er diagram (unified)",c);let{securityLevel:u,er:g,layout:N}=l(),y=n.db.getData(),x=ge(c,u);y.type=n.type,y.layoutAlgorithm=ve(N),y.config.flowchart.nodeSpacing=g?.nodeSpacing||140,y.config.flowchart.rankSpacing=g?.rankSpacing||80,y.direction=n.db.getDirection();let{config:k}=y,{look:_}=k;if(_==="neo")y.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else y.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];y.diagramId=c,await ye(y,x);let B=x.selectAll('[id*="-background"]');if(Array.from(B).length>0)B.each(function(){let X=p(this),Y=X.attr("id").replace("-background",""),te=x.select(`#${CSS.escape(Y)}`);if(!te.empty()){let G=te.attr("transform");X.attr("transform",G)}});let W=8;M.insertTitle(x,"erDiagramTitleText",g?.titleTopMargin??25,n.db.getDiagramTitle()),le(x,W,"erDiagram",g?.useMaxWidth??!0)},"draw"),st=e((s,c)=>{let b=Bt,n=b(s,"r"),u=b(s,"g"),g=b(s,"b");return ce(n,u,g,c)},"fade"),bt=e((s)=>{let{theme:c,bkgColorArray:b,borderColorArray:n}=s;if(!oe(c,n))return"";let u=se(s.look),g=ue(b),N="";for(let y=0;y<ht(n);y++){let x=n[y],k=g?`fill: ${b[y%b.length]};`:"";N+=`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:e(function(h){this.conditionStack.push(h)},"begin"),popState:e(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:e(function(h){this.begin(h)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(h,f,r,m){var t=m;switch(r){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return f.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return f.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();Me.lexer=rt;function Ne(){this.yy={}}return e(Ne,"Parser"),Ne.prototype=Me,Me.Parser=Ne,new Ne}();Ue.parser=Ue;var ct=Ue,ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=R,this.getDiagramTitle=L,this.getConfig=e(()=>l().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{e(this,"ErDB")}addEntity(s,c=""){if(!this.entities.has(s))this.entities.set(s,{id:`entity-${s}-${this.entities.size}`,label:s,attributes:[],alias:c,shape:"erBox",look:l().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),a.info("Added new entity :",s);else if(!this.entities.get(s)?.alias&&c)this.entities.get(s).alias=c,a.info(`Add alias '${c}' to entity '${s}'`);return this.entities.get(s)}getEntity(s){return this.entities.get(s)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(s,c){let b=this.addEntity(s),n;for(n=c.length-1;n>=0;n--){if(!c[n].keys)c[n].keys=[];if(!c[n].comment)c[n].comment="";b.attributes.push(c[n]),a.debug("Added attribute ",c[n].name)}}addRelationship(s,c,b,n){let u;if(this.subGraphLookup.has(s))u=s;else{let y=this.addEntity(s);if(!y)return;u=y.id}let g;if(this.subGraphLookup.has(b))g=b;else{let y=this.addEntity(b);if(!y)return;g=y.id}let N={entityA:u,roleA:c,entityB:g,relSpec:n};this.relationships.push(N),a.debug("Added new relationship :",N)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(s){this.direction=s}getCompiledStyles(s){let c=[];for(let b of s){let n=this.classes.get(b);if(n?.styles)c=[...c,...n.styles??[]].map((u)=>u.trim());if(n?.textStyles)c=[...c,...n.textStyles??[]].map((u)=>u.trim())}return c}addCssStyles(s,c){for(let b of s){let n=this.entities.get(b),u=this.subGraphLookup.get(b);if(!c)continue;if(n)for(let g of c)n.cssStyles.push(g);if(u){if(!u.cssStyles)u.cssStyles=[];for(let g of c)u.cssStyles.push(g)}}}addClass(s,c){s.forEach((b)=>{let n=this.classes.get(b);if(n===void 0)n={id:b,styles:[],textStyles:[]},this.classes.set(b,n);if(c)c.forEach(function(u){if(/color/.exec(u)){let g=u.replace("fill","bgFill");n.textStyles.push(g)}n.styles.push(u)})})}addSubGraph(s,c,b){let n=s.text.trim(),u=b.text,N=e((_)=>{let B=new Set,W;return{nodeList:_.filter((I)=>{if(I?.stmt){if(I.stmt==="dir")W=I.value;return!1}if(typeof I!=="string")return!1;let Y=I.trim();if(!Y)return!1;if(B.has(Y))return!1;return B.add(Y),!0}),dir:W}},"uniq")(c.flat()),{nodeList:y,dir:x}=N;n=n??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let k={id:n,nodes:y,title:u.trim(),classes:[],cssStyles:[],dir:x,labelType:this.sanitizeNodeLabelType(b?.type)};return a.info("Adding",k.id,k.nodes,k.dir),k.nodes=this.makeUniq(k,this.subGraphs).nodes,this.subGraphs.push(k),this.subGraphLookup.set(n,k),n}getSubGraphs(){return this.subGraphs}setClass(s,c){for(let b of s){let n=this.entities.get(b);if(n)for(let g of c)n.cssClasses+=" "+g;let u=this.subGraphLookup.get(b);if(u)for(let g of c)u.classes.push(g)}}subgraphNodeCache(s){let c=new Set;for(let b of s)for(let n of b.nodes)c.add(n);return c}makeUniq(s,c){let b=this.subgraphNodeCache(c),n=[];return s.nodes.forEach((u,g)=>{if(b.has(u))a.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`);else n.push(s.nodes[g])}),{nodes:n}}sanitizeText(s){return v.sanitizeText(s,l())}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,C()}getData(){let s=[],c=[],b=l(),n=this.getSubGraphs(),u=new Map,g=new Map;for(let k=n.length-1;k>=0;k--){let _=n[k];if(_.nodes.length>0)g.set(_.id,!0);for(let B of _.nodes)u.set(B,_.id)}for(let k=n.length-1;k>=0;k--){let _=n[k];s.push({id:_.id,label:_.title,labelStyle:"",labelType:_.labelType,parentId:u.get(_.id),padding:8,cssCompiledStyles:this.getCompiledStyles(_.classes),cssStyles:_.cssStyles,cssClasses:_.classes.join(" "),shape:"rect",dir:_.dir,isGroup:!0,look:b.look})}let N=new Set(n.map((k)=>k.id)),y=0;for(let k of this.entities.keys()){if(N.has(k))continue;let _=this.entities.get(k);if(_)_.cssCompiledStyles=this.getCompiledStyles(_.cssClasses.split(" ")),_.colorIndex=y++,s.push({..._,parentId:u.get(k),isGroup:!1})}let x=0;for(let k of this.relationships){let _={id:ze(k.entityA,k.entityB,{prefix:"id",counter:x++}),type:"normal",curve:"basis",start:k.entityA,end:k.entityB,label:k.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:k.relSpec.cardB.toLowerCase(),arrowTypeEnd:k.relSpec.cardA.toLowerCase(),pattern:k.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};c.push(_)}return{nodes:s,edges:c,other:{},config:b,direction:this.direction}}},it={};Qt(it,{draw:()=>ut});var ut=e(async function(s,c,b,n){a.info("REF0:"),a.info("Drawing er diagram (unified)",c);let{securityLevel:u,er:g,layout:N}=l(),y=n.db.getData(),x=he(c,u);y.type=n.type,y.layoutAlgorithm=ye(N),y.config.flowchart.nodeSpacing=g?.nodeSpacing||140,y.config.flowchart.rankSpacing=g?.rankSpacing||80,y.direction=n.db.getDirection();let{config:k}=y,{look:_}=k;if(_==="neo")y.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else y.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];y.diagramId=c,await ge(y,x);let B=x.selectAll('[id*="-background"]');if(Array.from(B).length>0)B.each(function(){let X=p(this),Y=X.attr("id").replace("-background",""),te=x.select(`#${CSS.escape(Y)}`);if(!te.empty()){let G=te.attr("transform");X.attr("transform",G)}});let W=8;M.insertTitle(x,"erDiagramTitleText",g?.titleTopMargin??25,n.db.getDiagramTitle()),le(x,W,"erDiagram",g?.useMaxWidth??!0)},"draw"),st=e((s,c)=>{let b=Bt,n=b(s,"r"),u=b(s,"g"),g=b(s,"b");return ce(n,u,g,c)},"fade"),dt=e((s)=>{let{theme:c,bkgColorArray:b,borderColorArray:n}=s;if(!oe(c,n))return"";let u=se(s.look),g=ue(b),N="";for(let y=0;y<gt(n);y++){let x=n[y],k=g?`fill: ${b[y%b.length]};`:"";N+=`
|
|
7
7
|
|
|
8
8
|
[data-look="${u}"][data-color-id="color-${y}"].node path {
|
|
9
9
|
stroke: ${x};
|
|
@@ -14,8 +14,8 @@ Expecting `+Ae.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else Pe="Parse e
|
|
|
14
14
|
stroke: ${x};
|
|
15
15
|
${k}
|
|
16
16
|
}
|
|
17
|
-
`}return N},"genColor"),
|
|
18
|
-
${
|
|
17
|
+
`}return N},"genColor"),bt=e((s)=>{let{look:c,theme:b,erEdgeLabelBackground:n,strokeWidth:u}=s;return`
|
|
18
|
+
${dt(s)}
|
|
19
19
|
.entityBox {
|
|
20
20
|
fill: ${s.mainBkg};
|
|
21
21
|
stroke: ${s.nodeBorder};
|
|
@@ -96,4 +96,4 @@ Expecting `+Ae.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else Pe="Parse e
|
|
|
96
96
|
.cluster-label text {
|
|
97
97
|
fill: ${s.titleColor??s.textColor};
|
|
98
98
|
}
|
|
99
|
-
`},"getStyles"),
|
|
99
|
+
`},"getStyles"),pt=bt,Vt={parser:ct,get db(){return new ht},renderer:it,styles:pt};export{Vt as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./chunk-
|
|
1
|
+
import{e}from"./chunk-5v44qv67.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}e(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}e(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}e(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let t=r.node(),s=((t&&"ownerSVGElement"in t?t.ownerSVGElement:null)??t)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}e(d,"emitCapturedSizes");function m(n,r){let o=[];for(let t of r.nodes){if(t.isGroup)continue;o.push({id:t.id,width:t.width??0,height:t.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}e(m,"captureNodeSizes");export{m as captureNodeSizes};
|