@bkm016/basalt 0.1.1 → 0.1.2
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 +16 -22
- package/chunk-06hdzq5n.js +2 -0
- package/chunk-09rj27b2.js +2 -0
- package/{chunk-qnr1f5pj.js → chunk-0y7ne3d0.js} +2 -2
- package/{chunk-vgvq3q12.js → chunk-10xzzn07.js} +2 -2
- package/{chunk-6qertm2t.js → chunk-1qpces5a.js} +1 -1
- package/{chunk-nt2gntad.js → chunk-1zdwrgd4.js} +1 -1
- package/{chunk-sh74qzvt.js → chunk-27gntzs5.js} +4 -4
- package/{chunk-1v7st27a.js → chunk-2esbgxps.js} +14 -14
- package/{chunk-exnn1867.js → chunk-362g64pd.js} +1 -1
- package/{chunk-1aspj1hn.js → chunk-3cjsd292.js} +2 -2
- package/chunk-5c9j8qe4.js +478 -0
- package/{chunk-8dxzqwq3.js → chunk-5j1krv9v.js} +1 -1
- package/{chunk-vkkj4awb.js → chunk-6hssbcgj.js} +1 -1
- package/{chunk-1b7gbe8g.js → chunk-75m78j7x.js} +2 -2
- package/{chunk-kfq8wyd3.js → chunk-8296hw9m.js} +1 -1
- package/{chunk-szat3vp4.js → chunk-8d46jtbj.js} +2 -2
- package/{chunk-qczbfccb.js → chunk-8tjad3r0.js} +4 -4
- package/{chunk-agntrqs9.js → chunk-97rzj7f6.js} +1 -1
- package/{chunk-k7w7ac9q.js → chunk-981f9dw8.js} +8 -8
- package/{chunk-xysny0ve.js → chunk-aefadsy6.js} +2 -2
- package/{chunk-jhd54p1b.js → chunk-bannb9xm.js} +1 -1
- package/{chunk-a3tqx584.js → chunk-c7x1zq39.js} +1 -1
- package/{chunk-rv06x0kn.js → chunk-cjc90f84.js} +1 -1
- package/{chunk-x3dnb9sz.js → chunk-d2j735sd.js} +2 -2
- package/{chunk-yskm0hsy.js → chunk-d8gtbw9g.js} +1 -1
- package/{chunk-rm3kcxq9.js → chunk-fjtvjrkg.js} +13 -13
- package/{chunk-h6sw8fbt.js → chunk-fm0k0qtz.js} +1 -1
- package/{chunk-1yzt0qm0.js → chunk-fw2bpqmw.js} +1 -1
- package/{chunk-45cz26ap.js → chunk-gp7y0fja.js} +13 -13
- package/{chunk-2bb01ddq.js → chunk-gzxnene8.js} +1 -1
- package/{chunk-a8nyk4k9.js → chunk-hwr56pfj.js} +1 -1
- package/{chunk-0hbjv3y6.js → chunk-jwdb0ccj.js} +3 -3
- package/{chunk-kf8hq21a.js → chunk-k23t7vhs.js} +5 -5
- package/{chunk-bhqyxyap.js → chunk-k506w58v.js} +1 -1
- package/{chunk-44ek81ad.js → chunk-k6w6y71k.js} +2 -2
- package/chunk-m40gxwq4.js +5 -0
- package/chunk-m8vkwdgr.js +5 -0
- package/{chunk-f7egr55n.js → chunk-mvfsxdx6.js} +13 -13
- package/{chunk-pvncysbb.js → chunk-nbb9trwz.js} +1 -1
- package/{chunk-0szjy61m.js → chunk-pbcy6zdt.js} +1 -1
- package/chunk-pmqtkqsf.js +2 -0
- package/{chunk-hat3s3pr.js → chunk-pxsrqrd0.js} +1 -1
- package/{chunk-xsbxykr4.js → chunk-qe0teyn1.js} +1 -1
- package/{chunk-2zqny2sy.js → chunk-r7fpkb49.js} +1 -1
- package/{chunk-3m7qwfm3.js → chunk-rtzqqngy.js} +3 -3
- package/{chunk-6e49xsf5.js → chunk-shadcb9z.js} +2 -2
- package/{chunk-0qqb6v41.js → chunk-shhrr741.js} +120 -120
- package/{chunk-cv5wsd9m.js → chunk-t6zs4kw0.js} +2 -2
- package/{chunk-hcn9cf6v.js → chunk-v258nxcz.js} +1 -1
- package/{chunk-a6r4z44b.js → chunk-vk1gxk1t.js} +1 -1
- package/{chunk-s37s3k24.js → chunk-x1xss1d7.js} +2 -2
- package/{chunk-dakrpbe6.js → chunk-x4874m8e.js} +2 -2
- package/{chunk-wx7kdf0b.js → chunk-xfvvh1s5.js} +1 -1
- package/{chunk-0yytz0r1.js → chunk-y0m980k3.js} +5 -5
- package/{chunk-dhm42y04.js → chunk-y58ygzn9.js} +3 -3
- package/{chunk-2wkaw73s.js → chunk-y648fzx0.js} +5 -5
- package/{chunk-32at88hc.js → chunk-y7nma9rk.js} +1 -1
- package/{chunk-pmc3y1z8.js → chunk-ykens1hy.js} +1 -1
- package/{chunk-q8zx3kt6.js → chunk-z55bmysw.js} +1 -1
- package/{chunk-qx0m82rw.js → chunk-zmsgwr3s.js} +1 -1
- package/{chunk-501zkf9b.js → chunk-ztsjgssj.js} +1 -1
- package/compiled.js +5 -5
- package/package.json +1 -1
- package/ui-test-worker.js +63 -63
- package/web/chunk-0sewdyz1.js +1 -0
- package/web/{chunk-xbty0rv7.js → chunk-1z5p7a1h.js} +1 -1
- package/web/chunk-21ke27j6.js +1 -0
- package/web/{chunk-2msj52w6.js → chunk-24k0r5aq.js} +1 -1
- package/web/{chunk-a5x2zveg.js → chunk-284a17k8.js} +1 -1
- package/web/{chunk-ca682sm6.js → chunk-2pjdtesn.js} +14 -14
- package/web/{chunk-z7dcbxws.js → chunk-3mvr2gwh.js} +1 -1
- package/web/chunk-3t3zwx9j.js +1 -0
- package/web/{chunk-e6jxqbv7.js → chunk-3z93efr4.js} +1 -1
- package/web/{chunk-05w4fyzc.js → chunk-43jqvsrg.js} +1 -1
- package/web/{chunk-jwzd9tzk.js → chunk-4bry4xds.js} +2 -2
- package/web/{chunk-4ks96e4r.js → chunk-5e7ygjdn.js} +1 -1
- package/web/{chunk-qefasa1j.js → chunk-5jbf7n5q.js} +1 -1
- package/web/{chunk-e32y85kx.js → chunk-5rx8rtsa.js} +1 -1
- package/web/chunk-5xc9d5ft.js +1 -0
- package/web/{chunk-a1z5qx1r.js → chunk-693m9kt7.js} +3 -3
- package/web/{chunk-70qwwwak.js → chunk-6qejm5s2.js} +1 -1
- package/web/{chunk-kdyjnwdx.js → chunk-8ah6ce1b.js} +2 -2
- package/web/{chunk-5vw9rs4r.js → chunk-8e43yaq3.js} +3 -3
- package/web/{chunk-qnaqf0cr.js → chunk-8wye0wbb.js} +1 -1
- package/web/{chunk-45fzdcgz.js → chunk-986z0p48.js} +5 -5
- package/web/{chunk-y0m8hrwz.js → chunk-9dd1c37b.js} +77 -77
- package/web/{chunk-9yakxvjb.js → chunk-9re6yttj.js} +2 -2
- package/web/{chunk-2scce33n.js → chunk-abbvjt4e.js} +1 -1
- package/web/{chunk-b4wbk7vc.js → chunk-agmkx996.js} +3 -3
- package/web/{chunk-hev4hq89.js → chunk-anbn2ttv.js} +2 -2
- package/web/chunk-aqm3spxt.js +1139 -0
- package/web/{chunk-fk0dh93x.js → chunk-avwpjsxw.js} +5 -5
- package/web/chunk-b470hvpk.js +1 -0
- package/web/{chunk-9dxjafp2.js → chunk-bt1m87ck.js} +2 -2
- package/web/chunk-cqp1d4p0.js +1 -0
- package/web/{chunk-ss1bcb0n.js → chunk-ctcrk3qn.js} +2 -2
- package/web/{chunk-pf2ab8p8.js → chunk-ctd8bfg2.js} +1 -1
- package/web/{chunk-q5ke7a33.js → chunk-cwvtraca.js} +1 -1
- package/web/{chunk-yd46jhqv.js → chunk-dk90px7g.js} +1 -1
- package/web/{chunk-0mrkjnte.js → chunk-ds7srg4p.js} +1 -1
- package/web/{chunk-fscafg24.js → chunk-dt8ss97f.js} +5 -5
- package/web/{chunk-9p12mgs6.js → chunk-ezkqa7we.js} +1 -1
- package/web/{chunk-f26smjjf.js → chunk-f078k1ej.js} +1 -1
- package/web/chunk-fekjj24p.css +1 -0
- package/web/{chunk-a3verqw9.js → chunk-fqj9kry9.js} +5 -5
- package/web/chunk-frjfamx7.js +8 -0
- package/web/{chunk-g4azyef7.js → chunk-fy8ey195.js} +1 -1
- package/web/{chunk-wptv8atc.js → chunk-g8ee1csm.js} +1 -1
- package/web/{chunk-w880psmw.js → chunk-h31p43qa.js} +1 -1
- package/web/chunk-h5p5jsrw.js +1 -0
- package/web/chunk-h9fmr6ch.js +1 -0
- package/web/{chunk-qh7265qw.js → chunk-jf2ehmvp.js} +2 -2
- package/web/{chunk-fz06t6km.js → chunk-jmnaq7c1.js} +1 -1
- package/web/chunk-jq0pw0k2.js +1 -0
- package/web/{chunk-p3b9crsa.js → chunk-jvj66qhs.js} +2 -2
- package/web/{chunk-xjxv8dg8.js → chunk-jzmzhj8z.js} +4 -4
- package/web/chunk-k4cfnvyq.js +1 -0
- package/web/{chunk-dt462hk9.js → chunk-kgerjbn4.js} +1 -1
- package/web/{chunk-bc78qf1m.js → chunk-kww4azv5.js} +5 -5
- package/web/chunk-m29dhjkh.js +1 -0
- package/web/chunk-mj6tee5h.js +1 -0
- package/web/{chunk-jrcyc9s9.js → chunk-mjpjkyd1.js} +1 -1
- package/web/{chunk-20q90epj.js → chunk-n8sky2q6.js} +1 -1
- package/web/{chunk-fm2ybfj5.js → chunk-pk3ap3wh.js} +4 -4
- package/web/{chunk-bgnnrpna.js → chunk-q1pkntc6.js} +4 -4
- package/web/{chunk-taynqrgq.js → chunk-qryrg2pq.js} +2 -2
- package/web/{chunk-gqw3f02j.js → chunk-r92sbgwv.js} +5 -5
- package/web/{chunk-0vt9fg48.js → chunk-raqqscwa.js} +2 -2
- package/web/{chunk-3jhyzmnf.js → chunk-rc2vq9wz.js} +3 -3
- package/web/{chunk-2ps6mepk.js → chunk-rkj743fg.js} +3 -3
- package/web/{chunk-e53wfgb8.js → chunk-rrws61wf.js} +1 -1
- package/web/{chunk-9an7cjd9.js → chunk-s3hwejnr.js} +2 -2
- package/web/{chunk-dzwxgqgm.js → chunk-s3rdx28k.js} +2 -2
- package/web/{chunk-2m12wyrb.js → chunk-shbw6wg8.js} +1 -1
- package/web/chunk-szcy5z56.js +1 -0
- package/web/{chunk-tmvakq7n.js → chunk-t1xk6hca.js} +4 -4
- package/web/chunk-t2hhdg9r.js +1 -0
- package/web/chunk-tj4cmkwe.js +1 -0
- package/web/{chunk-bjkc94mv.js → chunk-tn1xzmgx.js} +1 -1
- package/web/{chunk-4v8en1yw.js → chunk-tnv7z83q.js} +1 -1
- package/web/chunk-v2b5q0n5.js +1 -0
- package/web/{chunk-3ee04tmm.js → chunk-vj6kstpp.js} +5 -5
- package/web/{chunk-b1pe46zz.js → chunk-vjqmnkh2.js} +1 -1
- package/web/{chunk-qd8bxxdj.js → chunk-vkc149rb.js} +1 -1
- package/web/{chunk-v28fx2nd.js → chunk-vny496ba.js} +1 -1
- package/web/{chunk-rpmpttbk.js → chunk-vz5ck6x9.js} +1 -1
- package/web/{chunk-y49fhfda.js → chunk-xa88zgkr.js} +1 -1
- package/web/{chunk-q0p5xqe1.js → chunk-xdcs8qz3.js} +4 -4
- package/web/chunk-y5x74t89.js +1 -0
- package/web/{chunk-xrxne80b.js → chunk-yen2kkn2.js} +1 -1
- package/web/{chunk-bj90t5gh.js → chunk-yjv2c45j.js} +4 -4
- package/web/chunk-yx3dh5hg.js +1 -0
- package/web/chunk-yz4fmtk2.js +1 -0
- package/web/{chunk-8p4tc9f4.js → chunk-z24vs8q9.js} +3 -3
- package/web/chunk-z5j6x6j8.js +2 -0
- package/web/chunk-z5stjrhc.js +1 -0
- package/web/{chunk-90kp4pnz.js → chunk-z760wagr.js} +1 -1
- package/web/{chunk-tqmwd9qp.js → chunk-znvnb9dh.js} +1 -1
- package/web/{chunk-22a4ety5.js → chunk-zrzq29e6.js} +1 -1
- package/web/{icon-yx2p2pye.svg → icon-1wgy7kzy.svg} +13 -13
- package/web/icon.svg +13 -13
- package/web/index.html +2 -2
- package/web/install.sh +0 -0
- package/web/sw.js +9 -0
- package/worker.js +1 -1
- package/chunk-09vr609h.js +0 -2
- package/chunk-58vz2qsq.js +0 -2
- package/chunk-c25s4w6a.js +0 -5
- package/chunk-t057xfrt.js +0 -5
- package/chunk-wjd9fr23.js +0 -2
- package/chunk-zef13k3h.js +0 -471
- package/web/chunk-2pver6r4.js +0 -1
- package/web/chunk-37ajk6zg.js +0 -2
- package/web/chunk-4wkm9fda.js +0 -1
- package/web/chunk-amzgyy1k.js +0 -1
- package/web/chunk-cff5hcm8.js +0 -8
- package/web/chunk-esp1mmgr.js +0 -1
- package/web/chunk-ew3cgdtd.js +0 -1
- package/web/chunk-gjq1pxw3.js +0 -1
- package/web/chunk-h5ejbf6e.js +0 -1
- package/web/chunk-jjh5jvva.js +0 -1
- package/web/chunk-k5btcvbg.js +0 -1
- package/web/chunk-kpvgecwy.js +0 -1
- package/web/chunk-kq40ss39.js +0 -1
- package/web/chunk-q7dsnvpf.js +0 -1
- package/web/chunk-rg426vkf.js +0 -1
- package/web/chunk-ry9256r7.js +0 -1
- package/web/chunk-scpwc9ev.js +0 -1
- package/web/chunk-ssy07dd2.js +0 -1
- package/web/chunk-tgpbhzn9.js +0 -1
- package/web/chunk-vt40e1kp.js +0 -1136
- package/web/chunk-w53rba6g.js +0 -1
- package/web/chunk-w86n42dy.js +0 -1
- package/web/chunk-wtawdeej.css +0 -1
- package/web/chunk-zde7mj43.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{At,x}from"./chunk-vt40e1kp.js";var un={};At(un,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>vi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>hr,AbnfRule:()=>$i,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:()=>Ri,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>Ai,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>yr,EmFrame:()=>Wt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Xt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>sn,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>Rr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>Ar,PacketBlock:()=>Er,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ei,PegPrimary:()=>rn,PegRule:()=>Pi,PegSequence:()=>qo,PegSuffix:()=>Ii,Pie:()=>Jt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>ea,Radar:()=>qt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>Cr,RailroadAbnf:()=>br,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>_r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>Sr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ni,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>gr,Transition:()=>on,TreeNode:()=>vr,TreeView:()=>nn,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>wr,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:()=>$r,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{At,x}from"./chunk-aqm3spxt.js";var un={};At(un,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>vi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>hr,AbnfRule:()=>$i,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:()=>Ri,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>Ai,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>yr,EmFrame:()=>Wt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Xt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>sn,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>Rr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>Ar,PacketBlock:()=>Er,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ei,PegPrimary:()=>rn,PegRule:()=>Pi,PegSequence:()=>qo,PegSuffix:()=>Ii,Pie:()=>Jt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>ea,Radar:()=>qt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>Cr,RailroadAbnf:()=>br,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>_r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>Sr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ni,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>gr,Transition:()=>on,TreeNode:()=>vr,TreeView:()=>nn,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>wr,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:()=>$r,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 hi(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(hi,"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 rr(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(rr,"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 ar(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(ar,"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 ir(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(ir,"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 or(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(or,"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 gi(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(gi,"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 yi(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(yi,"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 bi(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(bi,"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 xi(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(xi,"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 _i(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(_i,"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 wi(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(wi,"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 ki(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(ki,"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 Ci(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(Ci,"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 Si(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(Si,"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 Ti(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(Ti,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (x("q7dsnvpf"),import("./chunk-q7dsnvpf.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (x("k5btcvbg"),import("./chunk-k5btcvbg.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (x("zde7mj43"),import("./chunk-zde7mj43.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (x("kq40ss39"),import("./chunk-kq40ss39.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (x("scpwc9ev"),import("./chunk-scpwc9ev.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (x("tgpbhzn9"),import("./chunk-tgpbhzn9.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (x("jjh5jvva"),import("./chunk-jjh5jvva.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (x("ew3cgdtd"),import("./chunk-ew3cgdtd.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (x("esp1mmgr"),import("./chunk-esp1mmgr.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (x("w53rba6g"),import("./chunk-w53rba6g.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (x("kpvgecwy"),import("./chunk-kpvgecwy.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (x("w86n42dy"),import("./chunk-w86n42dy.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (x("rg426vkf"),import("./chunk-rg426vkf.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (x("gjq1pxw3"),import("./chunk-gjq1pxw3.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (x("ssy07dd2"),import("./chunk-ssy07dd2.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 _t(a);return a.value}i(X,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),_t=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 or(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(or,"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 gi(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(gi,"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 yi(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(yi,"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 bi(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(bi,"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 xi(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(xi,"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 _i(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(_i,"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 wi(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(wi,"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 ki(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(ki,"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 Ci(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(Ci,"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 Si(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(Si,"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 Ti(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(Ti,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (x("m29dhjkh"),import("./chunk-m29dhjkh.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (x("mj6tee5h"),import("./chunk-mj6tee5h.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (x("szcy5z56"),import("./chunk-szcy5z56.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (x("v2b5q0n5"),import("./chunk-v2b5q0n5.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (x("tj4cmkwe"),import("./chunk-tj4cmkwe.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (x("z5stjrhc"),import("./chunk-z5stjrhc.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (x("t2hhdg9r"),import("./chunk-t2hhdg9r.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (x("h9fmr6ch"),import("./chunk-h9fmr6ch.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (x("k4cfnvyq"),import("./chunk-k4cfnvyq.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (x("h5p5jsrw"),import("./chunk-h5p5jsrw.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (x("21ke27j6"),import("./chunk-21ke27j6.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (x("y5x74t89"),import("./chunk-y5x74t89.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (x("b470hvpk"),import("./chunk-b470hvpk.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (x("yx3dh5hg"),import("./chunk-yx3dh5hg.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (x("yz4fmtk2"),import("./chunk-yz4fmtk2.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 _t(a);return a.value}i(X,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),_t=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{$r,hi,rr,ar,ir,or,gi,yi,bi,xi,_i,wi,ki,Ci,Si,Ti,X,_t};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{e,r,
|
|
1
|
+
import{e,r,le,b,y,B,C,s,p,Da,Rn,sn,Na,Er,Ar,Lr,Ir,Ma,Pa,Oa,$a,Ba,Fa,za,Ua,ja,qa,Va,Ga,Wa,Ha,Ya,Za,Xa,ln,Qa,ce,ae,ie,Ye,Ze,St,ht,Tt,Hn,Jt,Yn}from"./chunk-9dd1c37b.js";import{Q}from"./chunk-8ah6ce1b.js";import{je}from"./chunk-shbw6wg8.js";import{Ot}from"./chunk-z5j6x6j8.js";function Te(t){return Array.isArray(t)}function Ne(t){if(Rn(t))return t;let l=sn(t);if(!Qe(t))return{};if(Te(t)){let n=Array.from(t);if(t.length>0&&typeof t[0]==="string"&&Object.hasOwn(t,"index"))n.index=t.index,n.input=t.input;return n}if(ln(t)){let n=t;return new n.constructor(n.buffer,n.byteOffset,n.length)}if(l==="[object ArrayBuffer]")return new ArrayBuffer(t.byteLength);if(l==="[object DataView]"){let n=t,{buffer:g,byteOffset:f,byteLength:i}=n,d=new ArrayBuffer(i),w=new Uint8Array(g,f,i);return new Uint8Array(d).set(w),new DataView(d)}if(l==="[object Boolean]"||l==="[object Number]"||l==="[object String]"){let g=new t.constructor(t.valueOf());if(l==="[object String]")et(g,t);else pe(g,t);return g}if(l==="[object Date]")return new Date(Number(t));if(l==="[object RegExp]"){let n=t,g=new RegExp(n.source,n.flags);return g.lastIndex=n.lastIndex,g}if(l==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(t));if(l==="[object Map]"){let n=t,g=new Map;return n.forEach((f,i)=>{g.set(i,f)}),g}if(l==="[object Set]"){let n=t,g=new Set;return n.forEach((f)=>{g.add(f)}),g}if(l==="[object Arguments]"){let n=t,g={};return pe(g,n),g.length=n.length,g[Symbol.iterator]=n[Symbol.iterator],g}let u={};return tt(u,t),pe(u,t),$e(u,t),u}function Qe(t){switch(sn(t)){case Ir:case Ba:case Fa:case Ua:case Lr:case Pa:case Za:case Xa:case Wa:case Ha:case Ya:case Oa:case Ar:case za:case Na:case $a:case Er:case Ma:case ja:case qa:case Va:case Ga:return!0;default:return!1}}function pe(t,l){for(let u in l)if(Object.hasOwn(l,u))t[u]=l[u]}function $e(t,l){let u=Object.getOwnPropertySymbols(l);for(let n=0;n<u.length;n++){let g=u[n];if(Object.prototype.propertyIsEnumerable.call(l,g))t[g]=l[g]}}function et(t,l){let u=l.valueOf().length;for(let n in l)if(Object.hasOwn(l,n)&&(Number.isNaN(Number(n))||Number(n)>=u))t[n]=l[n]}function tt(t,l){let u=Object.getPrototypeOf(l);if(u!==null){if(typeof l.constructor==="function")Object.setPrototypeOf(t,u)}}var be=function(){var t=e(function(R,S,o,h){for(o=o||{},h=R.length;h--;o[R[h]]=S);return o},"o"),l=[1,15],u=[1,7],n=[1,13],g=[1,14],f=[1,19],i=[1,16],d=[1,17],w=[1,18],E=[8,30],L=[8,10,21,28,29,30,31,39,43,46],m=[1,23],_=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],k=[8,10,15,16,21,27,28,29,30,31,39,43,46],I=[1,49],N={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e(function(S,o,h,x,D,a,H){var c=a.length-1;switch(D){case 4:x.getLogger().debug("Rule: separator (NL) ");break;case 5:x.getLogger().debug("Rule: separator (Space) ");break;case 6:x.getLogger().debug("Rule: separator (EOF) ");break;case 7:x.getLogger().debug("Rule: hierarchy: ",a[c-1]),x.setHierarchy(a[c-1]);break;case 8:x.getLogger().debug("Stop NL ");break;case 9:x.getLogger().debug("Stop EOF ");break;case 10:x.getLogger().debug("Stop NL2 ");break;case 11:x.getLogger().debug("Stop EOF2 ");break;case 12:x.getLogger().debug("Rule: statement: ",a[c]),typeof a[c].length==="number"?this.$=a[c]:this.$=[a[c]];break;case 13:x.getLogger().debug("Rule: statement #2: ",a[c-1]),this.$=[a[c-1]].concat(a[c]);break;case 14:x.getLogger().debug("Rule: link: ",a[c],S),this.$={edgeTypeStr:a[c],label:""};break;case 15:x.getLogger().debug("Rule: LABEL link: ",a[c-3],a[c-1],a[c]),this.$={edgeTypeStr:a[c],label:a[c-1]};break;case 18:let V=parseInt(a[c]),j=x.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:x.getLogger().debug("Rule: (nodeStatement link node) ",a[c-2],a[c-1],a[c]," typestr: ",a[c-1].edgeTypeStr);let G=x.edgeStrToEdgeData(a[c-1].edgeTypeStr),se=x.edgeStrToEdgeStartData(a[c-1].edgeTypeStr),q=x.edgeStrToThickness(a[c-1].edgeTypeStr),ne=x.edgeStrToPattern(a[c-1].edgeTypeStr);this.$=[{id:a[c-2].id,label:a[c-2].label,type:a[c-2].type,directions:a[c-2].directions},{id:a[c-2].id+"-"+a[c].id,start:a[c-2].id,end:a[c].id,label:a[c-1].label,type:"edge",thickness:q,pattern:ne,directions:a[c].directions,arrowTypeEnd:G,arrowTypeStart:se},{id:a[c].id,label:a[c].label,type:x.typeStr2Type(a[c].typeStr),directions:a[c].directions}];break;case 24:x.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[c-1],a[c]),this.$={id:a[c-1].id,label:a[c-1].label,type:x.typeStr2Type(a[c-1].typeStr),directions:a[c-1].directions,widthInColumns:parseInt(a[c],10)};break;case 25:x.getLogger().debug("Rule: nodeStatement (node) ",a[c]),this.$={id:a[c].id,label:a[c].label,type:x.typeStr2Type(a[c].typeStr),directions:a[c].directions,widthInColumns:1};break;case 26:x.getLogger().debug("APA123",this?this:"na"),x.getLogger().debug("COLUMNS: ",a[c]),this.$={type:"column-setting",columns:a[c]==="auto"?-1:parseInt(a[c])};break;case 27:x.getLogger().debug("Rule: id-block statement : ",a[c-2],a[c-1]);let O=x.generateId();this.$={...a[c-2],type:"composite",children:a[c-1]};break;case 28:x.getLogger().debug("Rule: blockStatement : ",a[c-2],a[c-1],a[c]);let K=x.generateId();this.$={id:K,type:"composite",label:"",children:a[c-1]};break;case 29:x.getLogger().debug("Rule: node (NODE_ID separator): ",a[c]),this.$={id:a[c]};break;case 30:x.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[c-1],a[c]),this.$={id:a[c-1],label:a[c].label,typeStr:a[c].typeStr,directions:a[c].directions};break;case 31:x.getLogger().debug("Rule: dirList: ",a[c]),this.$=[a[c]];break;case 32:x.getLogger().debug("Rule: dirList: ",a[c-1],a[c]),this.$=[a[c-1]].concat(a[c]);break;case 33:x.getLogger().debug("Rule: nodeShapeNLabel: ",a[c-2],a[c-1],a[c]),this.$={typeStr:a[c-2]+a[c],label:a[c-1]};break;case 34:x.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[c-3],a[c-2]," #3:",a[c-1],a[c]),this.$={typeStr:a[c-3]+a[c],label:a[c-2],directions:a[c-1]};break;case 35:case 36:this.$={type:"classDef",id:a[c-1].trim(),css:a[c].trim()};break;case 37:this.$={type:"applyClass",id:a[c-1].trim(),styleClass:a[c].trim()};break;case 38:this.$={type:"applyStyles",id:a[c-1].trim(),stylesStr:a[c].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:l,11:3,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{8:[1,20]},t(E,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:l,21:u,28:n,29:g,31:f,39:i,43:d,46:w}),t(L,[2,16],{14:22,15:m,16:_}),t(L,[2,17]),t(L,[2,18]),t(L,[2,19]),t(L,[2,20]),t(L,[2,21]),t(L,[2,22]),t(T,[2,25],{27:[1,25]}),t(L,[2,26]),{19:26,26:12,31:f},{10:l,11:27,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(k,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(E,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},t(T,[2,24]),{10:l,11:37,13:4,14:22,15:m,16:_,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:n,29:g,31:f,39:i,43:d,46:w},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(k,[2,30]),{18:[1,43]},{18:[1,44]},t(T,[2,23]),{18:[1,45]},{30:[1,46]},t(L,[2,28]),t(L,[2,35]),t(L,[2,36]),t(L,[2,37]),t(L,[2,38]),{36:[1,47]},{33:48,34:I},{15:[1,50]},t(L,[2,27]),t(k,[2,33]),{38:[1,51]},{33:52,34:I,38:[2,31]},{31:[2,15]},t(k,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e(function(S,o){if(o.recoverable)this.trace(S);else{var h=Error(S);throw h.hash=o,h}},"parseError"),parse:e(function(S){var o=this,h=[0],x=[],D=[null],a=[],H=this.table,c="",V=0,j=0,G=0,se=2,q=1,ne=a.slice.call(arguments,1),O=Object.create(this.lexer),K={yy:{}};for(var oe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,oe))K.yy[oe]=this.yy[oe];if(O.setInput(S,K.yy),K.yy.lexer=O,K.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var ue=O.yylloc;a.push(ue);var qe=O.options&&O.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Je(F){h.length=h.length-2*F,D.length=D.length-F,a.length=a.length-F}e(Je,"popStack");function _e(){var F=x.pop()||O.lex()||q;if(typeof F!=="number"){if(F instanceof Array)x=F,F=x.pop();F=o.symbols_[F]||F}return F}e(_e,"lex");var A,he,W,P,zt,ge,U={},J,Y,De,Z;while(!0){if(W=h[h.length-1],this.defaultActions[W])P=this.defaultActions[W];else{if(A===null||typeof A>"u")A=_e();P=H[W]&&H[W][A]}if(typeof P>"u"||!P.length||!P[0]){var de="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>se)Z.push("'"+this.terminals_[J]+"'");if(O.showPosition)de="Parse error on line "+(V+1)+`:
|
|
2
2
|
`+O.showPosition()+`
|
|
3
|
-
Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else de="Parse error on line "+(V+1)+": Unexpected "+(A==q?"end of input":"'"+(this.terminals_[A]||A)+"'");this.parseError(de,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:ue,expected:Z})}if(P[0]instanceof Array&&P.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(P[0]){case 1:if(h.push(A),D.push(O.yytext),a.push(O.yylloc),h.push(P[1]),A=null,!he){if(j=O.yyleng,c=O.yytext,V=O.yylineno,ue=O.yylloc,G>0)G--}else A=he,he=null;break;case 2:if(Y=this.productions_[P[1]][1],U.$=D[D.length-Y],U._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},qe)U._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]];if(ge=this.performAction.apply(U,[c,j,V,K.yy,P[1],D,a].concat(
|
|
3
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else de="Parse error on line "+(V+1)+": Unexpected "+(A==q?"end of input":"'"+(this.terminals_[A]||A)+"'");this.parseError(de,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:ue,expected:Z})}if(P[0]instanceof Array&&P.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(P[0]){case 1:if(h.push(A),D.push(O.yytext),a.push(O.yylloc),h.push(P[1]),A=null,!he){if(j=O.yyleng,c=O.yytext,V=O.yylineno,ue=O.yylloc,G>0)G--}else A=he,he=null;break;case 2:if(Y=this.productions_[P[1]][1],U.$=D[D.length-Y],U._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},qe)U._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]];if(ge=this.performAction.apply(U,[c,j,V,K.yy,P[1],D,a].concat(ne)),typeof ge<"u")return ge;if(Y)h=h.slice(0,-1*Y*2),D=D.slice(0,-1*Y),a=a.slice(0,-1*Y);h.push(this.productions_[P[1]][0]),D.push(U.$),a.push(U._$),De=H[h[h.length-2]][h[h.length-1]],h.push(De);break;case 3:return!0}}return!0},"parse")},v=function(){var R={EOF:1,parseError:e(function(o,h){if(this.yy.parser)this.yy.parser.parseError(o,h);else throw Error(o)},"parseError"),setInput:e(function(S,o){if(this.yy=o||this.yy||{},this._input=S,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 S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var o=S.match(/(?:\r\n?|\n).*/g);if(o)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),S},"input"),unput:e(function(S){var o=S.length,h=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=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),h.length-1)this.yylineno-=h.length-1;var D=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:h?(h.length===x.length?this.yylloc.first_column:0)+x[x.length-h.length].length-h[0].length:this.yylloc.first_column-o},this.options.ranges)this.yylloc.range=[D[0],D[0]+this.yyleng-o];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(S){this.unput(this.match.slice(S))},"less"),pastInput:e(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var S=this.match;if(S.length<20)S+=this._input.substr(0,20-S.length);return(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var S=this.pastInput(),o=Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
5
5
|
`+o+"^"},"showPosition"),test_match:e(function(S,o){var h,x,D;if(this.options.backtrack_lexer){if(D={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)D.yylloc.range=this.yylloc.range.slice(0)}if(x=S[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[0],h=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(h)return h;else if(this._backtrack){for(var a in D)this[a]=D[a];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var S,o,h,x;if(!this._more)this.yytext="",this.match="";var D=this._currentRules();for(var a=0;a<D.length;a++)if(h=this._input.match(this.rules[D[a]]),h&&(!o||h[0].length>o[0].length)){if(o=h,x=a,this.options.backtrack_lexer)if(S=this.test_match(h,D[a]),S!==!1)return S;else if(this._backtrack){o=!1;continue}else return!1;else if(!this.options.flex)break}if(o){if(S=this.test_match(o,D[x]),S!==!1)return S;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 o=this.next();if(o)return o;else return this.lex()},"lex"),begin:e(function(o){this.conditionStack.push(o)},"begin"),popState:e(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:e(function(o){this.begin(o)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(o,h,x,D){var a=D;switch(x){case 0:return o.getLogger().debug("Found block-beta"),10;break;case 1:return o.getLogger().debug("Found id-block"),29;break;case 2:return o.getLogger().debug("Found block"),10;break;case 3:o.getLogger().debug(".",h.yytext);break;case 4:o.getLogger().debug("_",h.yytext);break;case 5:return 5;case 6:return h.yytext=-1,28;break;case 7:return h.yytext=h.yytext.replace(/columns\s+/,""),o.getLogger().debug("COLUMNS (LEX)",h.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:o.getLogger().debug("LEX: POPPING STR:",h.yytext),this.popState();break;case 13:return o.getLogger().debug("LEX: STR end:",h.yytext),"STR";break;case 14:return h.yytext=h.yytext.replace(/space\:/,""),o.getLogger().debug("SPACE NUM (LEX)",h.yytext),21;break;case 15:return h.yytext="1",o.getLogger().debug("COLUMNS (LEX)",h.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),o.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),o.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),o.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),o.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),o.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),o.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),o.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),o.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),o.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),o.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return o.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return o.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return o.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return o.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return o.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return o.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return o.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),o.getLogger().debug("LEX ARR START"),37;break;case 74:return o.getLogger().debug("Lex: NODE_ID",h.yytext),31;break;case 75:return o.getLogger().debug("Lex: EOF",h.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:o.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:o.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return o.getLogger().debug("LEX: NODE_DESCR:",h.yytext),"NODE_DESCR";break;case 83:o.getLogger().debug("LEX POPPING"),this.popState();break;case 84:o.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (right): dir:",h.yytext),"DIR";break;case 86:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (left):",h.yytext),"DIR";break;case 87:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (x):",h.yytext),"DIR";break;case 88:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (y):",h.yytext),"DIR";break;case 89:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (up):",h.yytext),"DIR";break;case 90:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (down):",h.yytext),"DIR";break;case 91:return h.yytext="]>",o.getLogger().debug("Lex (ARROW_DIR end):",h.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 93:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 94:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 95:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 96:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 97:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 98:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return o.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 102:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 103:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 104:return o.getLogger().debug("Lex: COLON",h.yytext),h.yytext=h.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return R}();N.lexer=v;function z(){this.yy={}}return e(z,"Parser"),z.prototype=N,N.Parser=z,new z}();be.parser=be;var rt=be,M=new Map,me=[],Se=new Map,Ie="color",Oe="fill",st="bgFill",ve=",",ee=new Map,Le="",it=e((t)=>y.sanitizeText(t,s()),"sanitizeText"),at=e(function(t,l=""){let u=ee.get(t);if(!u)u={id:t,styles:[],textStyles:[]},ee.set(t,u);if(l!==void 0&&l!==null)l.split(ve).forEach((n)=>{let g=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Ie).exec(n)){let i=g.replace(Oe,st).replace(Ie,Oe);u.textStyles.push(i)}u.styles.push(g)})},"addStyleClass"),nt=e(function(t,l=""){let u=M.get(t);if(l!==void 0&&l!==null)u.styles=l.split(ve)},"addStyle2Node"),ot=e(function(t,l){t.split(",").forEach(function(u){let n=M.get(u);if(n===void 0){let g=u.trim();n={id:g,type:"na",children:[]},M.set(g,n)}if(!n.classes)n.classes=[];n.classes.push(l)})},"setCssClass"),Ae=0,ze=e((t,l)=>{let u=t.flat(),n=[],f=u.find((i)=>i?.type==="column-setting")?.columns??-1;for(let i of u){if(typeof f==="number"&&f>0&&i.type!=="column-setting"&&typeof i.widthInColumns==="number"&&i.widthInColumns>f)r.warn(`Block ${i.id} width ${i.widthInColumns} exceeds configured column width ${f}`);if(i.label)i.label=it(i.label);if(i.type==="classDef"){at(i.id,i.css);continue}if(i.type==="applyClass"){ot(i.id,i?.styleClass??"");continue}if(i.type==="applyStyles"){if(i?.stylesStr)nt(i.id,i?.stylesStr);continue}if(i.type==="column-setting")l.columns=i.columns??-1;else if(i.type==="edge"){let d=(Se.get(i.id)??0)+1;Se.set(i.id,d),i.id=d+"-"+i.id,me.push(i)}else{if(!i.label)if(i.type==="composite")i.label="";else i.label=i.id;let d=M.get(i.id);if(d===void 0){if(i.type==="composite")i.colorIndex=Ae++;M.set(i.id,i)}else{if(i.type!=="na")d.type=i.type;if(i.label!==i.id)d.label=i.label}if(i.children)ze(i.children,i);if(i.type==="space"){let w=i.width??1;for(let E=0;E<w;E++){let L=Ne(i);L.id=L.id+"-"+E,M.set(L.id,L),n.push(L)}}else if(d===void 0)n.push(i)}}l.children=n},"populateBlockDatabase"),ke=[],X={id:"root",type:"composite",children:[],columns:-1},lt=e(()=>{r.debug("Clear called"),C(),X={id:"root",type:"composite",children:[],columns:-1},M=new Map([["root",X]]),ke=[],ee=new Map,me=[],Se=new Map,Le="",Ae=0},"clear");function Be(t){switch(r.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return r.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}e(Be,"typeStr2Type");function Re(t){switch(r.debug("typeStr2Type",t),t){case"==":return"thick";default:return"normal"}}e(Re,"edgeTypeStr2Type");function Pe(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}e(Pe,"edgeStrToEdgeData");function Fe(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}e(Fe,"edgeStrToEdgeStartData");function Me(t){return t.includes("==")?"thick":"normal"}e(Me,"edgeStrToThickness");function Ke(t){if(t.includes(".-"))return"dotted";return"solid"}e(Ke,"edgeStrToPattern");var Ce=0,ct=e(()=>(Ce++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ce),"generateId"),ut=e((t)=>{X.children=t,ze(t,X),ke=X.children},"setHierarchy"),gt=e((t)=>{let l=M.get(t);if(!l)return-1;if(l.columns)return l.columns;if(!l.children)return-1;return l.children.length},"getColumns"),dt=e(()=>[...M.values()],"getBlocksFlat"),pt=e(()=>ke||[],"getBlocks"),ft=e(()=>me,"getEdges"),bt=e((t)=>M.get(t),"getBlock"),xt=e((t)=>{M.set(t.id,t)},"setBlock"),mt=e((t)=>{Le=t},"setDiagramId"),Lt=e(()=>Le,"getDiagramId"),kt=e(()=>r,"getLogger"),yt=e(function(){return ee},"getClasses"),wt={getConfig:e(()=>b().block,"getConfig"),typeStr2Type:Be,edgeTypeStr2Type:Re,edgeStrToEdgeData:Pe,edgeStrToEdgeStartData:Fe,edgeStrToThickness:Me,edgeStrToPattern:Ke,getLogger:kt,getBlocksFlat:dt,getBlocks:pt,getEdges:ft,setHierarchy:ut,getBlock:bt,setBlock:xt,getColumns:gt,getClasses:yt,clear:lt,generateId:ct,setDiagramId:mt,getDiagramId:Lt},Et=wt,_t=e((t)=>{let{theme:l,bkgColorArray:u,borderColorArray:n}=t;if(!ae(l,n))return"";let g=ie(t.look),f=le(u),i="";for(let d=0;d<Ye(t.THEME_COLOR_LIMIT,n);d++){let w=n[d%n.length],E=f?`fill: ${u[d%u.length]};`:"",L=`[data-look="${g}"][data-color-id="color-${d}"]`;i+=`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var o=this.next();if(o)return o;else return this.lex()},"lex"),begin:e(function(o){this.conditionStack.push(o)},"begin"),popState:e(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:e(function(o){this.begin(o)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(o,h,x,D){var a=D;switch(x){case 0:return o.getLogger().debug("Found block-beta"),10;break;case 1:return o.getLogger().debug("Found id-block"),29;break;case 2:return o.getLogger().debug("Found block"),10;break;case 3:o.getLogger().debug(".",h.yytext);break;case 4:o.getLogger().debug("_",h.yytext);break;case 5:return 5;case 6:return h.yytext=-1,28;break;case 7:return h.yytext=h.yytext.replace(/columns\s+/,""),o.getLogger().debug("COLUMNS (LEX)",h.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:o.getLogger().debug("LEX: POPPING STR:",h.yytext),this.popState();break;case 13:return o.getLogger().debug("LEX: STR end:",h.yytext),"STR";break;case 14:return h.yytext=h.yytext.replace(/space\:/,""),o.getLogger().debug("SPACE NUM (LEX)",h.yytext),21;break;case 15:return h.yytext="1",o.getLogger().debug("COLUMNS (LEX)",h.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),o.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),o.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),o.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),o.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),o.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),o.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),o.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),o.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),o.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),o.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return o.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return o.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return o.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return o.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return o.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return o.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return o.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),o.getLogger().debug("LEX ARR START"),37;break;case 74:return o.getLogger().debug("Lex: NODE_ID",h.yytext),31;break;case 75:return o.getLogger().debug("Lex: EOF",h.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:o.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:o.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return o.getLogger().debug("LEX: NODE_DESCR:",h.yytext),"NODE_DESCR";break;case 83:o.getLogger().debug("LEX POPPING"),this.popState();break;case 84:o.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (right): dir:",h.yytext),"DIR";break;case 86:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (left):",h.yytext),"DIR";break;case 87:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (x):",h.yytext),"DIR";break;case 88:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (y):",h.yytext),"DIR";break;case 89:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (up):",h.yytext),"DIR";break;case 90:return h.yytext=h.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (down):",h.yytext),"DIR";break;case 91:return h.yytext="]>",o.getLogger().debug("Lex (ARROW_DIR end):",h.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 93:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 94:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 95:return o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 96:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 97:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 98:return o.getLogger().debug("Lex: START_LINK",h.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return o.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),o.getLogger().debug("Lex: LINK","#"+h.yytext+"#"),15;break;case 102:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 103:return this.popState(),o.getLogger().debug("Lex: LINK",h.yytext),15;break;case 104:return o.getLogger().debug("Lex: COLON",h.yytext),h.yytext=h.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return R}();N.lexer=v;function z(){this.yy={}}return e(z,"Parser"),z.prototype=N,N.Parser=z,new z}();be.parser=be;var rt=be,M=new Map,me=[],Se=new Map,Ie="color",Oe="fill",st="bgFill",ve=",",ee=new Map,Le="",it=e((t)=>y.sanitizeText(t,s()),"sanitizeText"),at=e(function(t,l=""){let u=ee.get(t);if(!u)u={id:t,styles:[],textStyles:[]},ee.set(t,u);if(l!==void 0&&l!==null)l.split(ve).forEach((n)=>{let g=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Ie).exec(n)){let i=g.replace(Oe,st).replace(Ie,Oe);u.textStyles.push(i)}u.styles.push(g)})},"addStyleClass"),nt=e(function(t,l=""){let u=M.get(t);if(l!==void 0&&l!==null)u.styles=l.split(ve)},"addStyle2Node"),ot=e(function(t,l){t.split(",").forEach(function(u){let n=M.get(u);if(n===void 0){let g=u.trim();n={id:g,type:"na",children:[]},M.set(g,n)}if(!n.classes)n.classes=[];n.classes.push(l)})},"setCssClass"),Ae=0,ze=e((t,l)=>{let u=t.flat(),n=[],f=u.find((i)=>i?.type==="column-setting")?.columns??-1;for(let i of u){if(typeof f==="number"&&f>0&&i.type!=="column-setting"&&typeof i.widthInColumns==="number"&&i.widthInColumns>f)r.warn(`Block ${i.id} width ${i.widthInColumns} exceeds configured column width ${f}`);if(i.label)i.label=it(i.label);if(i.type==="classDef"){at(i.id,i.css);continue}if(i.type==="applyClass"){ot(i.id,i?.styleClass??"");continue}if(i.type==="applyStyles"){if(i?.stylesStr)nt(i.id,i?.stylesStr);continue}if(i.type==="column-setting")l.columns=i.columns??-1;else if(i.type==="edge"){let d=(Se.get(i.id)??0)+1;Se.set(i.id,d),i.id=d+"-"+i.id,me.push(i)}else{if(!i.label)if(i.type==="composite")i.label="";else i.label=i.id;let d=M.get(i.id);if(d===void 0){if(i.type==="composite")i.colorIndex=Ae++;M.set(i.id,i)}else{if(i.type!=="na")d.type=i.type;if(i.label!==i.id)d.label=i.label}if(i.children)ze(i.children,i);if(i.type==="space"){let w=i.width??1;for(let E=0;E<w;E++){let L=Ne(i);L.id=L.id+"-"+E,M.set(L.id,L),n.push(L)}}else if(d===void 0)n.push(i)}}l.children=n},"populateBlockDatabase"),ke=[],X={id:"root",type:"composite",children:[],columns:-1},lt=e(()=>{r.debug("Clear called"),C(),X={id:"root",type:"composite",children:[],columns:-1},M=new Map([["root",X]]),ke=[],ee=new Map,me=[],Se=new Map,Le="",Ae=0},"clear");function Be(t){switch(r.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return r.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}e(Be,"typeStr2Type");function Re(t){switch(r.debug("typeStr2Type",t),t){case"==":return"thick";default:return"normal"}}e(Re,"edgeTypeStr2Type");function Pe(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}e(Pe,"edgeStrToEdgeData");function Fe(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}e(Fe,"edgeStrToEdgeStartData");function Me(t){return t.includes("==")?"thick":"normal"}e(Me,"edgeStrToThickness");function Ke(t){if(t.includes(".-"))return"dotted";return"solid"}e(Ke,"edgeStrToPattern");var Ce=0,ct=e(()=>(Ce++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ce),"generateId"),ut=e((t)=>{X.children=t,ze(t,X),ke=X.children},"setHierarchy"),gt=e((t)=>{let l=M.get(t);if(!l)return-1;if(l.columns)return l.columns;if(!l.children)return-1;return l.children.length},"getColumns"),dt=e(()=>[...M.values()],"getBlocksFlat"),pt=e(()=>ke||[],"getBlocks"),ft=e(()=>me,"getEdges"),bt=e((t)=>M.get(t),"getBlock"),xt=e((t)=>{M.set(t.id,t)},"setBlock"),mt=e((t)=>{Le=t},"setDiagramId"),Lt=e(()=>Le,"getDiagramId"),kt=e(()=>r,"getLogger"),yt=e(function(){return ee},"getClasses"),wt={getConfig:e(()=>b().block,"getConfig"),typeStr2Type:Be,edgeTypeStr2Type:Re,edgeStrToEdgeData:Pe,edgeStrToEdgeStartData:Fe,edgeStrToThickness:Me,edgeStrToPattern:Ke,getLogger:kt,getBlocksFlat:dt,getBlocks:pt,getEdges:ft,setHierarchy:ut,getBlock:bt,setBlock:xt,getColumns:gt,getClasses:yt,clear:lt,generateId:ct,setDiagramId:mt,getDiagramId:Lt},Et=wt,_t=e((t)=>{let{theme:l,bkgColorArray:u,borderColorArray:n}=t;if(!ae(l,n))return"";let g=ie(t.look),f=ce(u),i="";for(let d=0;d<Ye(t.THEME_COLOR_LIMIT,n);d++){let w=n[d%n.length],E=f?`fill: ${u[d%u.length]};`:"",L=`[data-look="${g}"][data-color-id="color-${d}"]`;i+=`
|
|
7
7
|
|
|
8
8
|
${L}.node rect.composite {
|
|
9
9
|
stroke: ${w};
|
|
10
10
|
${E}
|
|
11
11
|
}
|
|
12
|
-
`}return i},"genColor"),fe=e((t,l)=>{let u=
|
|
12
|
+
`}return i},"genColor"),fe=e((t,l)=>{let u=Ot,n=u(t,"r"),g=u(t,"g"),f=u(t,"b");return le(n,g,f,l)},"fade"),Dt=e((t)=>`${_t(t)}
|
|
13
13
|
.label {
|
|
14
14
|
font-family: ${t.fontFamily};
|
|
15
15
|
color: ${t.nodeTextColor||t.textColor};
|
|
@@ -137,4 +137,4 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else de="Parse er
|
|
|
137
137
|
fill: ${t.textColor};
|
|
138
138
|
}
|
|
139
139
|
${je()}
|
|
140
|
-
`,"getStyles"),Nt=Dt;function xe(t,l){if(t===0||!Number.isInteger(t))throw Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw Error("Position must be a non-negative integer."+l);if(t<0)return{px:l,py:0};if(t===1)return{px:0,py:l};let u=l%t,n=Math.floor(l/t);return{px:u,py:n}}e(xe,"calculateBlockPosition");var It=e((t)=>{let l=0,u=0;for(let n of t.children){let{width:g,height:f,x:i,y:d}=n.size??{width:0,height:0,x:0,y:0};if(r.debug("getMaxChildSize abc95 child:",n.id,"width:",g,"height:",f,"x:",i,"y:",d,n.type),n.type==="space")continue;let w=g/(n.widthInColumns??1);if(w>l)l=w;if(f>u)u=f}return{width:l,height:u}},"getMaxChildSize");function te(t,l,u=0,n=0,g=8){if(r.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",u),!t?.size?.width)t.size={width:u,height:n,x:0,y:0};let f=0,i=0;if(t.children?.length>0){for(let k of t.children)te(k,l,0,0,g);let d=It(t);f=d.width,i=d.height,r.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",f,i);for(let k of t.children)if(k.size)r.debug(`abc95 Setting size of children of ${t.id} id=${k.id} ${f} ${i} ${JSON.stringify(k.size)}`),k.size.width=f*(k.widthInColumns??1)+g*((k.widthInColumns??1)-1),k.size.height=i,k.size.x=0,k.size.y=0,r.debug(`abc95 updating size of ${t.id} children child:${k.id} maxWidth:${f} maxHeight:${i}`);for(let k of t.children)te(k,l,f,i,g);let w=t.columns??-1,E=0;for(let k of t.children)E+=k.widthInColumns??1;let L=t.children.length;if(w>0&&w<E)L=w;let m=Math.ceil(E/L),_=L*(f+g)+g,T=m*(i+g)+g;if(_<u){r.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${u} siblingHeight ${n} width ${_}`),_=u,T=n;let k=(u-L*g-g)/L,I=(n-m*g-g)/m;r.debug("Size indata abc88",t.id,"childWidth",k,"maxWidth",f),r.debug("Size indata abc88",t.id,"childHeight",I,"maxHeight",i),r.debug("Size indata abc88 xSize",L,"padding",g);for(let N of t.children)if(N.size)N.size.width=k,N.size.height=I,N.size.x=0,N.size.y=0}if(r.debug(`abc95 (finale calc) ${t.id} xSize ${L} ySize ${m} columns ${w}${t.children.length} width=${Math.max(_,t.size?.width||0)}`),_<(t?.size?.width||0)){_=t?.size?.width||0;let k=w>0?Math.min(t.children.length,w):t.children.length;if(k>0){let I=(_-k*g-g)/k;r.debug("abc95 (growing to fit) width",t.id,_,t.size?.width,I);for(let N of t.children)if(N.size)N.size.width=I}}t.size={width:_,height:T,x:0,y:0}}r.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}e(te,"setBlockSizes");function ye(t,l,u=8){r.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let n=t.columns??-1;if(r.debug("layoutBlocks columns abc95",t.id,"=>",n,t),t.children&&t.children.length>0){let g=t?.children[0]?.size?.width??0,f=t.children.length*g+(t.children.length-1)*u;r.debug("widthOfChildren 88",f,"posX");let i=new Map;{let m=0;for(let _ of t.children){if(!_.size)continue;let{py:T}=xe(n,m),k=i.get(T)??0;if(_.size.height>k)i.set(T,_.size.height);let I=_?.widthInColumns??1;if(n>0)I=Math.min(I,n-m%n);m+=I}}let d=new Map;{let m=0,_=[...i.keys()].sort((T,k)=>T-k);for(let T of _)d.set(T,m),m+=(i.get(T)??0)+u}let w=0;r.debug("abc91 block?.size?.x",t.id,t?.size?.x);let E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,L=0;for(let m of t.children){let _=t;if(!m.size)continue;let{width:T,height:k}=m.size,{px:I,py:N}=xe(n,w);if(N!=L)L=N,E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,r.debug("New row in layout for block",t.id," and child ",m.id,L);if(r.debug(`abc89 layout blocks (child) id: ${m.id} Pos: ${w} (px, py) ${I},${N} (${_?.size?.x},${_?.size?.y}) parent: ${_.id} width: ${T}${u}`),_.size){let z=T/2;m.size.x=E+u+z,r.debug(`abc91 layout blocks (calc) px, pyid:${m.id} startingPos=X${E} new startingPosX${m.size.x} ${z} padding=${u} width=${T} halfWidth=${z} => x:${m.size.x} y:${m.size.y} ${m.widthInColumns} (width * (child?.w || 1)) / 2 ${T*(m?.widthInColumns??1)/2}`),E=m.size.x+z;let R=d.get(N)??0,S=i.get(N)??k;m.size.y=_.size.y-_.size.height/2+R+S/2+u,r.debug(`abc88 layout blocks (calc) px, pyid:${m.id}startingPosX${E}${u}${z}=>x:${m.size.x}y:${m.size.y}${m.widthInColumns}(width * (child?.w || 1)) / 2${T*(m?.widthInColumns??1)/2}`)}if(m.children)ye(m,l,u);let v=m?.widthInColumns??1;if(n>0)v=Math.min(v,n-w%n);w+=v,r.debug("abc88 columnsPos",m,w)}}r.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}e(ye,"layoutBlocks");function we(t,{minX:l,minY:u,maxX:n,maxY:g}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){let{x:f,y:i,width:d,height:w}=t.size;if(f-d/2<l)l=f-d/2;if(i-w/2<u)u=i-w/2;if(f+d/2>n)n=f+d/2;if(i+w/2>g)g=i+w/2}if(t.children)for(let f of t.children)({minX:l,minY:u,maxX:n,maxY:g}=we(f,{minX:l,minY:u,maxX:n,maxY:g}));return{minX:l,minY:u,maxX:n,maxY:g}}e(we,"findBounds");function We(t){let l=t.getBlock("root");if(!l)return;let u=s()?.block?.padding??8;te(l,t,0,0,u),ye(l,t,u),r.debug("getBlocks",JSON.stringify(l,null,2));let{minX:n,minY:g,maxX:f,maxY:i}=we(l),d=i-g,w=f-n;return{x:n,y:g,width:w,height:d}}e(We,"layout");function Ee(t,l,u=!1){let n=t,g="default";if((n?.classes?.length||0)>0)g=(n?.classes??[]).join(" ");g=g+" flowchart-label";let f=(n?.classes??[]).flatMap((k)=>l.getClasses().get(k)?.styles??[]),i=0,d="rect",w;switch(n.type){case"round":i=5,d="rect";break;case"composite":i=0,d="composite",w=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let E=Qa(n?.styles??[]),L=n.label,m=n.size??{width:0,height:0,x:0,y:0},_=l.getDiagramId();return{labelStyle:E.labelStyle,shape:d,label:L,labelText:L,rx:i,ry:i,class:g,cssClasses:g,cssStyles:n?.styles??[],cssCompiledStyles:f,style:E.style,id:n.id,domId:_?`${_}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:m.width||void 0,height:m.height||void 0,wrappingWidth:m.width||Number.POSITIVE_INFINITY,x:m.x,y:m.y,positioned:u,intersect:void 0,padding:w??b()?.block?.padding??0,widthInColumns:n.widthInColumns??1,colorIndex:n.colorIndex,look:b().look}}e(Ee,"getNodeFromBlock");async function Ve(t,l,u){let n=Ee(l,u,!1);if(l.type==="group")return;let g=b(),f=await St(t,n,{config:g}),i=f.node()?.getBBox()??{width:0,height:0},d=u.getBlock(n.id);d.size={width:i.width,height:i.height,x:0,y:0,node:f},u.setBlock(d),f.remove()}e(Ve,"calculateBlockSize");async function Ue(t,l,u){let n=Ee(l,u,!0);if(u.getBlock(n.id).type!=="space"){let f=b(),i=await St(t,n,{config:f});if(n.colorIndex!==void 0)Ze(i,n.colorIndex,f.theme,f.themeVariables?.borderColorArray);l.intersect=n?.intersect,ht(n)}}e(Ue,"insertBlockPositioned");async function re(t,l,u,n){for(let g of l)if(await n(t,g,u),g.children)await re(t,g.children,u,n)}e(re,"performOperations");async function He(t,l,u){await re(t,l,u,Ve)}e(He,"calculateBlockSizes");async function Xe(t,l,u){await re(t,l,u,Ue)}e(Xe,"insertBlocks");async function Ge(t,l,u,n,g){let f=new Q({multigraph:!0,compound:!0});f.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let i of u)if(i.size)f.setNode(i.id,{width:i.size.width,height:i.size.height,intersect:i.intersect});for(let i of l)if(i.start&&i.end){let d=n.getBlock(i.start),w=n.getBlock(i.end);if(d?.size&&w?.size){let E=d.size,L=w.size,m=[{x:E.x,y:E.y},{x:E.x+(L.x-E.x)/2,y:E.y+(L.y-E.y)/2},{x:L.x,y:L.y}],_=g?`${g}-${i.id}`:i.id,T=i.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",k=i.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",I=`${T} ${k} flowchart-link LS-a1 LE-b1`;if(
|
|
140
|
+
`,"getStyles"),Nt=Dt;function xe(t,l){if(t===0||!Number.isInteger(t))throw Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw Error("Position must be a non-negative integer."+l);if(t<0)return{px:l,py:0};if(t===1)return{px:0,py:l};let u=l%t,n=Math.floor(l/t);return{px:u,py:n}}e(xe,"calculateBlockPosition");var It=e((t)=>{let l=0,u=0;for(let n of t.children){let{width:g,height:f,x:i,y:d}=n.size??{width:0,height:0,x:0,y:0};if(r.debug("getMaxChildSize abc95 child:",n.id,"width:",g,"height:",f,"x:",i,"y:",d,n.type),n.type==="space")continue;let w=g/(n.widthInColumns??1);if(w>l)l=w;if(f>u)u=f}return{width:l,height:u}},"getMaxChildSize");function te(t,l,u=0,n=0,g=8){if(r.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",u),!t?.size?.width)t.size={width:u,height:n,x:0,y:0};let f=0,i=0;if(t.children?.length>0){for(let k of t.children)te(k,l,0,0,g);let d=It(t);f=d.width,i=d.height,r.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",f,i);for(let k of t.children)if(k.size)r.debug(`abc95 Setting size of children of ${t.id} id=${k.id} ${f} ${i} ${JSON.stringify(k.size)}`),k.size.width=f*(k.widthInColumns??1)+g*((k.widthInColumns??1)-1),k.size.height=i,k.size.x=0,k.size.y=0,r.debug(`abc95 updating size of ${t.id} children child:${k.id} maxWidth:${f} maxHeight:${i}`);for(let k of t.children)te(k,l,f,i,g);let w=t.columns??-1,E=0;for(let k of t.children)E+=k.widthInColumns??1;let L=t.children.length;if(w>0&&w<E)L=w;let m=Math.ceil(E/L),_=L*(f+g)+g,T=m*(i+g)+g;if(_<u){r.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${u} siblingHeight ${n} width ${_}`),_=u,T=n;let k=(u-L*g-g)/L,I=(n-m*g-g)/m;r.debug("Size indata abc88",t.id,"childWidth",k,"maxWidth",f),r.debug("Size indata abc88",t.id,"childHeight",I,"maxHeight",i),r.debug("Size indata abc88 xSize",L,"padding",g);for(let N of t.children)if(N.size)N.size.width=k,N.size.height=I,N.size.x=0,N.size.y=0}if(r.debug(`abc95 (finale calc) ${t.id} xSize ${L} ySize ${m} columns ${w}${t.children.length} width=${Math.max(_,t.size?.width||0)}`),_<(t?.size?.width||0)){_=t?.size?.width||0;let k=w>0?Math.min(t.children.length,w):t.children.length;if(k>0){let I=(_-k*g-g)/k;r.debug("abc95 (growing to fit) width",t.id,_,t.size?.width,I);for(let N of t.children)if(N.size)N.size.width=I}}t.size={width:_,height:T,x:0,y:0}}r.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}e(te,"setBlockSizes");function ye(t,l,u=8){r.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let n=t.columns??-1;if(r.debug("layoutBlocks columns abc95",t.id,"=>",n,t),t.children&&t.children.length>0){let g=t?.children[0]?.size?.width??0,f=t.children.length*g+(t.children.length-1)*u;r.debug("widthOfChildren 88",f,"posX");let i=new Map;{let m=0;for(let _ of t.children){if(!_.size)continue;let{py:T}=xe(n,m),k=i.get(T)??0;if(_.size.height>k)i.set(T,_.size.height);let I=_?.widthInColumns??1;if(n>0)I=Math.min(I,n-m%n);m+=I}}let d=new Map;{let m=0,_=[...i.keys()].sort((T,k)=>T-k);for(let T of _)d.set(T,m),m+=(i.get(T)??0)+u}let w=0;r.debug("abc91 block?.size?.x",t.id,t?.size?.x);let E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,L=0;for(let m of t.children){let _=t;if(!m.size)continue;let{width:T,height:k}=m.size,{px:I,py:N}=xe(n,w);if(N!=L)L=N,E=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-u,r.debug("New row in layout for block",t.id," and child ",m.id,L);if(r.debug(`abc89 layout blocks (child) id: ${m.id} Pos: ${w} (px, py) ${I},${N} (${_?.size?.x},${_?.size?.y}) parent: ${_.id} width: ${T}${u}`),_.size){let z=T/2;m.size.x=E+u+z,r.debug(`abc91 layout blocks (calc) px, pyid:${m.id} startingPos=X${E} new startingPosX${m.size.x} ${z} padding=${u} width=${T} halfWidth=${z} => x:${m.size.x} y:${m.size.y} ${m.widthInColumns} (width * (child?.w || 1)) / 2 ${T*(m?.widthInColumns??1)/2}`),E=m.size.x+z;let R=d.get(N)??0,S=i.get(N)??k;m.size.y=_.size.y-_.size.height/2+R+S/2+u,r.debug(`abc88 layout blocks (calc) px, pyid:${m.id}startingPosX${E}${u}${z}=>x:${m.size.x}y:${m.size.y}${m.widthInColumns}(width * (child?.w || 1)) / 2${T*(m?.widthInColumns??1)/2}`)}if(m.children)ye(m,l,u);let v=m?.widthInColumns??1;if(n>0)v=Math.min(v,n-w%n);w+=v,r.debug("abc88 columnsPos",m,w)}}r.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}e(ye,"layoutBlocks");function we(t,{minX:l,minY:u,maxX:n,maxY:g}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){let{x:f,y:i,width:d,height:w}=t.size;if(f-d/2<l)l=f-d/2;if(i-w/2<u)u=i-w/2;if(f+d/2>n)n=f+d/2;if(i+w/2>g)g=i+w/2}if(t.children)for(let f of t.children)({minX:l,minY:u,maxX:n,maxY:g}=we(f,{minX:l,minY:u,maxX:n,maxY:g}));return{minX:l,minY:u,maxX:n,maxY:g}}e(we,"findBounds");function We(t){let l=t.getBlock("root");if(!l)return;let u=s()?.block?.padding??8;te(l,t,0,0,u),ye(l,t,u),r.debug("getBlocks",JSON.stringify(l,null,2));let{minX:n,minY:g,maxX:f,maxY:i}=we(l),d=i-g,w=f-n;return{x:n,y:g,width:w,height:d}}e(We,"layout");function Ee(t,l,u=!1){let n=t,g="default";if((n?.classes?.length||0)>0)g=(n?.classes??[]).join(" ");g=g+" flowchart-label";let f=(n?.classes??[]).flatMap((k)=>l.getClasses().get(k)?.styles??[]),i=0,d="rect",w;switch(n.type){case"round":i=5,d="rect";break;case"composite":i=0,d="composite",w=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let E=Qa(n?.styles??[]),L=n.label,m=n.size??{width:0,height:0,x:0,y:0},_=l.getDiagramId();return{labelStyle:E.labelStyle,shape:d,label:L,labelText:L,rx:i,ry:i,class:g,cssClasses:g,cssStyles:n?.styles??[],cssCompiledStyles:f,style:E.style,id:n.id,domId:_?`${_}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:m.width||void 0,height:m.height||void 0,wrappingWidth:m.width||Number.POSITIVE_INFINITY,x:m.x,y:m.y,positioned:u,intersect:void 0,padding:w??b()?.block?.padding??0,widthInColumns:n.widthInColumns??1,colorIndex:n.colorIndex,look:b().look}}e(Ee,"getNodeFromBlock");async function Ve(t,l,u){let n=Ee(l,u,!1);if(l.type==="group")return;let g=b(),f=await St(t,n,{config:g}),i=f.node()?.getBBox()??{width:0,height:0},d=u.getBlock(n.id);d.size={width:i.width,height:i.height,x:0,y:0,node:f},u.setBlock(d),f.remove()}e(Ve,"calculateBlockSize");async function Ue(t,l,u){let n=Ee(l,u,!0);if(u.getBlock(n.id).type!=="space"){let f=b(),i=await St(t,n,{config:f});if(n.colorIndex!==void 0)Ze(i,n.colorIndex,f.theme,f.themeVariables?.borderColorArray);l.intersect=n?.intersect,ht(n)}}e(Ue,"insertBlockPositioned");async function re(t,l,u,n){for(let g of l)if(await n(t,g,u),g.children)await re(t,g.children,u,n)}e(re,"performOperations");async function He(t,l,u){await re(t,l,u,Ve)}e(He,"calculateBlockSizes");async function Xe(t,l,u){await re(t,l,u,Ue)}e(Xe,"insertBlocks");async function Ge(t,l,u,n,g){let f=new Q({multigraph:!0,compound:!0});f.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let i of u)if(i.size)f.setNode(i.id,{width:i.size.width,height:i.size.height,intersect:i.intersect});for(let i of l)if(i.start&&i.end){let d=n.getBlock(i.start),w=n.getBlock(i.end);if(d?.size&&w?.size){let E=d.size,L=w.size,m=[{x:E.x,y:E.y},{x:E.x+(L.x-E.x)/2,y:E.y+(L.y-E.y)/2},{x:L.x,y:L.y}],_=g?`${g}-${i.id}`:i.id,T=i.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",k=i.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",I=`${T} ${k} flowchart-link LS-a1 LE-b1`;if(Jt(t,{...i,id:_,arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:m,classes:I},{},"block",f.node(i.start),f.node(i.end),g),i.label)await Tt(t,{...i,label:i.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:m,classes:I}),Hn({...i,x:m[1].x,y:m[1].y},{originalPath:m})}}}e(Ge,"insertEdges");var Ct=e(function(t,l){return l.db.getClasses()},"getClasses"),vt=e(async function(t,l,u,n){let{securityLevel:g,block:f}=b(),i=n.db;i.setDiagramId(l);let d;if(g==="sandbox")d=p("#i"+l);let w=g==="sandbox"?p(d.nodes()[0].contentDocument.body):p("body"),E=g==="sandbox"?w.select(`[id="${l}"]`):p(`[id="${l}"]`);Da(E,b()),Yn(E,["point","circle","cross"],n.type,l);let m=i.getBlocks(),_=i.getBlocksFlat(),T=i.getEdges(),k=E.insert("g").attr("class","block");await He(k,m,i);let I=We(i);await Xe(k,m,i),await Ge(k,T,_,i,l);let N=k.node()?.getBBox(),v=N&&Number.isFinite(N.width)&&Number.isFinite(N.height)?N:I;if(v){let z=Math.max(1,Math.round(0.125*(v.width/v.height))),R=v.height+z+10,S=v.width+10,{useMaxWidth:o}=f;B(E,R,S,!!o),r.debug("Here Bounds",I,v),E.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),At={draw:vt,getClasses:Ct},nr={parser:rt,db:Et,renderer:At,styles:Nt};export{nr as diagram};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o,a,v,t,n,_,
|
|
2
|
-
`).length>8,f=[s&&u&&s.lastTool&&`最近 ${s.lastTool}`,s&&j(s.elapsedMs),s&&`输入 ${y(s.usage.input)}`,s&&`输出 ${y(s.usage.output)}`,s&&s.usage.cacheRead>0&&`缓存 ${y(s.usage.cacheRead)}`,s&&s.usage.cost>0&&`$${s.usage.cost.toFixed(4)}`].filter(Boolean),F=Boolean(r||e.state==="waiting"||h),C=e.model||s?.session.model;return t(S,{className:"my-2 animate-fade",header:n(v,{children:[C?t(T,{modelID:C,className:"size-3.5 shrink-0",size:14}):t(Ae,{className:c("size-3.5 shrink-0",u?"text-warning":"text-faint")}),t("h4",{className:"truncate font-medium text-ink",title:e.description,children:e.description}),f.length>0&&n("span",{className:"min-w-0 truncate text-faint tabular-nums",title:f.join(" · "),children:["· ",f.join(" · ")]})]}),actions:n(v,{children:[t(D,{tone:A[e.state]??"neutral",pulse:e.state==="running",children:O[e.state]??e.state}),u&&t(w,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:N,onClick:()=>{E()},children:"取消"}),n(w,{size:"sm",variant:"ghost",className:"h-6 gap-1 rounded-md px-2 text-xs text-faint hover:text-ink",onClick:()=>U(e.childSessionID),children:["进入子会话",t(Qn,{className:"size-3.5"})]})]}),children:F&&n(v,{children:[e.state==="waiting"&&n("div",{className:c("px-4 py-3",r&&"border-b border-line"),children:[n("p",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[t(
|
|
1
|
+
import{o,a,v,t,n,_,en,Qn,pe,Ae}from"./chunk-aqm3spxt.js";var O={running:"运行中",waiting:"等待回答",context_exhausted:"上下文耗尽",done:"完成",error:"失败",failed:"失败",aborted:"已取消",cancelled:"已取消",interrupted:"已中断"},A={running:"warning",waiting:"warning",context_exhausted:"warning",done:"success",error:"danger",failed:"danger",aborted:"neutral",cancelled:"neutral",interrupted:"warning"},y=(i)=>i>=1000?`${(i/1000).toFixed(i>=1e4?0:1)}k`:String(i),j=(i)=>i>=60000?`${Math.floor(i/60000)} 分 ${Math.round(i%60000/1000)} 秒`:`${Math.round(i/1000)} 秒`;function J(i){let{Button:w,Panel:S,StatusChip:D,Markdown:R,ModelIcon:T,cn:c,style:z,useTheme:M}=_();M();let{connection:m,sessionID:g,payload:B,onOpen:U}=i,e=B,[s,Q]=a(),[h,b]=a(),[N,I]=a(!1),[d,q]=a(!1),u=e.state==="running"||e.state==="waiting";o(()=>{let l,k=!1,P=()=>{m.request(`/api/sessions/${encodeURIComponent(g)}/tasks/${encodeURIComponent(e.childSessionID)}`).then((p)=>{if(!k)Q(p),b(void 0)}).catch((p)=>{if(!k)b(p instanceof Error?p.message:"任务详情加载失败")})};if(P(),u)l=setInterval(P,1500);return()=>{if(k=!0,l)clearInterval(l)}},[m,g,e.childSessionID,u]);let E=async()=>{if(N)return;I(!0);try{await m.request(`/api/sessions/${encodeURIComponent(g)}/tasks/${encodeURIComponent(e.childSessionID)}/kill`,{method:"POST"})}finally{I(!1)}},r=e.summary?.trim()||e.handoff?.conclusion.trim()||"",x=r.length>360||r.split(`
|
|
2
|
+
`).length>8,f=[s&&u&&s.lastTool&&`最近 ${s.lastTool}`,s&&j(s.elapsedMs),s&&`输入 ${y(s.usage.input)}`,s&&`输出 ${y(s.usage.output)}`,s&&s.usage.cacheRead>0&&`缓存 ${y(s.usage.cacheRead)}`,s&&s.usage.cost>0&&`$${s.usage.cost.toFixed(4)}`].filter(Boolean),F=Boolean(r||e.state==="waiting"||h),C=e.model||s?.session.model;return t(S,{className:"my-2 animate-fade",header:n(v,{children:[C?t(T,{modelID:C,className:"size-3.5 shrink-0",size:14}):t(Ae,{className:c("size-3.5 shrink-0",u?"text-warning":"text-faint")}),t("h4",{className:"truncate font-medium text-ink",title:e.description,children:e.description}),f.length>0&&n("span",{className:"min-w-0 truncate text-faint tabular-nums",title:f.join(" · "),children:["· ",f.join(" · ")]})]}),actions:n(v,{children:[t(D,{tone:A[e.state]??"neutral",pulse:e.state==="running",children:O[e.state]??e.state}),u&&t(w,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:N,onClick:()=>{E()},children:"取消"}),n(w,{size:"sm",variant:"ghost",className:"h-6 gap-1 rounded-md px-2 text-xs text-faint hover:text-ink",onClick:()=>U(e.childSessionID),children:["进入子会话",t(Qn,{className:"size-3.5"})]})]}),children:F&&n(v,{children:[e.state==="waiting"&&n("div",{className:c("px-4 py-3",r&&"border-b border-line"),children:[n("p",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[t(en,{className:"size-3.5"}),"子任务向主代理提问,等待回答"]}),e.pendingQuestions&&e.pendingQuestions.length>0&&t("ul",{className:"mt-1.5 flex flex-col gap-1 text-[13px] leading-relaxed text-ink",children:e.pendingQuestions.map((l)=>t("li",{className:"break-words",children:l.text},l.askedAt))})]}),r&&n("div",{className:"px-4 py-3",children:[n("div",{className:c("relative text-[13.5px] leading-[1.65] break-words text-ink/90 overflow-hidden transition-[max-height] duration-300 ease-out-quint [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",x&&!d?"max-h-40":"max-h-[1800px]"),children:[t(R,{text:r}),x&&t("div",{className:c("pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t from-panel via-panel/70 to-transparent transition-opacity duration-300",d?"opacity-0":"opacity-100")})]}),x&&n("button",{type:"button",className:z("chat.timelineRow","cursor-pointer select-none"),onClick:()=>q(!d),children:[t("span",{children:d?"收起":"展开全部"}),t(pe,{className:c("size-3.5 transition-transform duration-300 ease-out-quint",d&&"rotate-180")})]})]}),h&&t("p",{role:"status",className:"px-4 py-2.5 text-xs text-danger",children:h})]})})}export{J as TaskCard};
|