@kabmo-labs/kabmo 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/static/js/{CsvGrid-1h3bcak7.js → CsvGrid-xb429wvb.js} +2 -2
- package/dist/client/static/js/{DocxView-ndca8jch.js → DocxView-g58e0bs7.js} +1 -1
- package/dist/client/static/js/{DrawioView-kpzd6y0b.js → DrawioView-1j66avvy.js} +2 -2
- package/dist/client/static/js/{ImageView-79prn3dg.js → ImageView-kraqkypn.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-v2wn2sb2.js → LayoutWrapper-85dhbn62.js} +2 -2
- package/dist/client/static/js/{Modal-99j0zz3z.js → Modal-f0nfya07.js} +4 -4
- package/dist/client/static/js/{PdfView-2rjd87ay.js → PdfView-nddkrky9.js} +1 -1
- package/dist/client/static/js/{SessionsView-t7f3s71b.js → SessionsView-a595m6g1.js} +1 -1
- package/dist/client/static/js/{SheetView-ehb976st.js → SheetView-s2p4sk6b.js} +4 -4
- package/dist/client/static/js/{SvgPreview-de2bbba6.js → SvgPreview-ppdx4yb9.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-nx9jzn7m.js → abnfDiagram-O67JEVCF-5cjzxcaq.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-7ewrw5vc.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-170v67rr.js → architectureDiagram-NJMV4G6O-62mygavm.js} +2 -2
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-16q285n1.js → blockDiagram-BEXU5L5S-s5yz9hcd.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rn3qt45h.js → c4Diagram-YGBWAQC7-rf9xkmrm.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-r26wg74e.js → classDiagram-v2-NBCMYWYE-zfm2cj2a.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-82kwe7ha.js → cose-bilkent-JH36ORCC-fmgpv55e.js} +1 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-yyyx3px0.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-tcxdn6pa.js → cynefinDiagram-VND7K2PF-468r5xc2.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-g833ata3.js → dagre-6A5THRUB-w370qmgj.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-f1fq8xec.js → diagram-22UHCM2B-sfvfjjsy.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-6j2w016f.js → diagram-3UASUU5V-3r2c8s14.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-6t2qxsk4.js → diagram-ATOU4E4O-yathy97a.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-7abar8s7.js → diagram-CDSNMT55-kk437kxq.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-s68rgy16.js → diagram-MLGK6HIB-qdxfjjhf.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-azgkm6w8.js → diagram-MPIPVDR6-dfqeqa1d.js} +1 -1
- package/dist/client/static/js/{dockerfile-47e33kqa.js → dockerfile-yxrt509r.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-esrjz750.js → ebnfDiagram-ZINNZB2B-s0b0vv4k.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-fhr4b4jj.js → elk-276RUBZZ-mtpw0spa.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-5r3fmdnz.js → erDiagram-OPXOYQCR-agjdsm1b.js} +1 -1
- package/dist/client/static/js/{erlang-bh5cbm8m.js → erlang-6m6tpt72.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-cx3ztxfz.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-267mw6sv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4pf6rdn.js → ganttDiagram-FUAMR5RP-z6ywqqc1.js} +1 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-eg9r85ak.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-x5epk0gr.js → gitGraphDiagram-X574FWY7-bvbmfw6h.js} +1 -1
- package/dist/client/static/js/graphql-skw5krjr.js +1 -0
- package/dist/client/static/js/{index-k1xt92h4.js → index-059qyaj0.js} +1 -1
- package/dist/client/static/js/{index-6xzfta4b.js → index-09gx6edj.js} +1 -1
- package/dist/client/static/js/{index-c09a5s1n.js → index-0mvcbbmy.js} +7 -7
- package/dist/client/static/js/{index-sar2ggde.js → index-0sqa91wb.js} +1 -1
- package/dist/client/static/js/{index-v8qd8ypc.js → index-15zn3sns.js} +2 -2
- package/dist/client/static/js/{index-7r1hw2gd.js → index-1tyvk778.js} +1 -1
- package/dist/client/static/js/{index-3vdmwpbh.js → index-21b3zyrd.js} +2 -2
- package/dist/client/static/js/{index-ctgefatv.js → index-302d35e5.js} +10 -10
- package/dist/client/static/js/{index-5rzk1226.js → index-49dhv8ry.js} +1 -1
- package/dist/client/static/js/{index-44qrckd2.js → index-5fn0agag.js} +1 -1
- package/dist/client/static/js/{index-zdtsvnpq.js → index-64mb65wx.js} +1 -1
- package/dist/client/static/js/{index-mm1rf116.js → index-6q80csr0.js} +1 -1
- package/dist/client/static/js/{index-zp73zexp.js → index-72t6kqjx.js} +2 -2
- package/dist/client/static/js/{index-8cy3x2y8.js → index-7fdp9c7m.js} +2 -2
- package/dist/client/static/js/{index-9gf8b73w.js → index-7sa2e8mn.js} +1 -1
- package/dist/client/static/js/{index-c1j0xb0w.js → index-83ts8zmk.js} +1 -1
- package/dist/client/static/js/{index-ye450a7z.js → index-8e0s9p45.js} +1 -1
- package/dist/client/static/js/{index-982jyfsb.js → index-a0bdavdr.js} +2 -2
- package/dist/client/static/js/{index-8e15fzax.js → index-actppd4z.js} +1 -1
- package/dist/client/static/js/{index-h1e1abpt.js → index-cx89yk15.js} +2 -2
- package/dist/client/static/js/{index-w3n97x4b.js → index-dt7e1328.js} +2 -2
- package/dist/client/static/js/{index-be6gevq8.js → index-es3pt29g.js} +1 -1
- package/dist/client/static/js/{index-af24nes6.js → index-gbfg0anm.js} +2 -2
- package/dist/client/static/js/{index-55pqvh82.js → index-h7pn9qw6.js} +2 -2
- package/dist/client/static/js/{index-5kjpacvd.js → index-hbtk0c12.js} +1 -1
- package/dist/client/static/js/{index-nws03exw.js → index-j7r414hf.js} +1 -1
- package/dist/client/static/js/{index-40ve7zzv.js → index-jpkj6vqp.js} +1 -1
- package/dist/client/static/js/{index-0b1kwsam.js → index-k06med7d.js} +28 -28
- package/dist/client/static/js/{index-3kgrcaq1.js → index-kzhtmrh0.js} +1 -1
- package/dist/client/static/js/{index-q5t4sy22.js → index-m3j5yx5f.js} +2 -2
- package/dist/client/static/js/{index-skm6k5w2.js → index-m87yykre.js} +2 -2
- package/dist/client/static/js/{index-63c6t75t.js → index-nmc30xaz.js} +1 -1
- package/dist/client/static/js/{index-ktvbsj6w.js → index-ntxm8pw3.js} +1 -1
- package/dist/client/static/js/{index-htt8qxm3.js → index-pd0140dx.js} +1 -1
- package/dist/client/static/js/{index-dmgawfhw.js → index-qkscve6n.js} +2 -2
- package/dist/client/static/js/{index-v5t761a1.js → index-qz8mbxm9.js} +1 -1
- package/dist/client/static/js/{index-75haaj8g.js → index-qznwd6g8.js} +157 -157
- package/dist/client/static/js/{index-63jbb4kf.js → index-sa9cp6km.js} +2 -2
- package/dist/client/static/js/{index-60ceydzn.js → index-sezz011q.js} +1 -1
- package/dist/client/static/js/{index-pyx8n25s.js → index-t07b31ny.js} +2 -2
- package/dist/client/static/js/index-tcegdd2t.js +1 -0
- package/dist/client/static/js/{index-d2km9egp.js → index-w9zxmev3.js} +4 -4
- package/dist/client/static/js/{index-b48p8d1j.js → index-we1rpftn.js} +2 -2
- package/dist/client/static/js/{index-ky0prc71.js → index-xearvz2z.js} +3 -3
- package/dist/client/static/js/{index-r8pckaqe.js → index-xya34x4v.js} +2 -2
- package/dist/client/static/js/{index-ydvfc9td.js → index-z0frtyje.js} +1 -1
- package/dist/client/static/js/{index-97t3mv1v.js → index-z7qnffwj.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-7qhah7fs.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-ktc8nb8g.js → infoDiagram-VRGFBTTK-58bv28d4.js} +1 -1
- package/dist/client/static/js/ini-cg0a5wm3.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-n3dk6227.js → ishikawaDiagram-OU5B5YK6-tz6b0caw.js} +1 -1
- package/dist/client/static/js/java-vcck089n.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-f0p1h8qn.js → journeyDiagram-ZHPQQLJL-ydamm17a.js} +2 -2
- package/dist/client/static/js/jsx-ht9zyzwa.js +1 -0
- package/dist/client/static/js/{julia-73zjh2w6.js → julia-v7j460gw.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-7jdt7dv1.js → kanban-definition-PNTS6WVX-7jxfsf17.js} +1 -1
- package/dist/client/static/js/lua-ke895s2q.js +1 -0
- package/dist/client/static/js/markdown-gwmsh53r.js +1 -0
- package/dist/client/static/js/{mermaid.core-e8rzrjt9.js → mermaid.core-vty0aq6f.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-7shv6ge0.js → mindmap-definition-NLK3R4M7-ra4wrts4.js} +2 -2
- package/dist/client/static/js/one-dark-pro-2pywnqrh.js +1 -0
- package/dist/client/static/js/one-light-vfgdt4wf.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-ag2g7tbk.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-17ak2zx3.js → pegDiagram-GJSIUBJH-ydjcfea9.js} +1 -1
- package/dist/client/static/js/{perl-8z46dmze.js → perl-gg4jdkcr.js} +1 -1
- package/dist/client/static/js/{php-6qvnp2t6.js → php-2q8fm6k8.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-nqcyj3x1.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-at4x1g4q.js → pieDiagram-5QR66LMP-wh04y7wp.js} +1 -1
- package/dist/client/static/js/properties-mzvvbqg5.js +1 -0
- package/dist/client/static/js/python-3w64wsyd.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-apzhwrn4.js → quadrantDiagram-O4NWA36T-4mhbag8n.js} +1 -1
- package/dist/client/static/js/r-32re2zwb.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-60gby7be.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-cnkmcjse.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-qgfdnazd.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-609h6cpx.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-xqnytjhg.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-rw8cj5f3.js → railroadDiagram-XR7U4H2S-pagmr4hc.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-qyrse7mb.js → requirementDiagram-PLB6GJNP-jhfhp4eq.js} +1 -1
- package/dist/client/static/js/{ruby-qy8mhstq.js → ruby-vag6a82m.js} +1 -1
- package/dist/client/static/js/{rust-fpshqnk0.js → rust-yntkm6hw.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-254qr59q.js → sankeyDiagram-IPEJSGJF-qrfxzvp3.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-y9xjxfc5.js → sequenceDiagram-PO4LG4MO-fpznwnva.js} +3 -3
- package/dist/client/static/js/{sizeCapture-INFHLROL-sc5e60t3.js → sizeCapture-INFHLROL-3hz930jg.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-r134s4xr.js → stateDiagram-v2-GCMORJYK-2m99syxm.js} +2 -2
- package/dist/client/static/js/{swimlanes-2SLR337P-xc7rbawt.js → swimlanes-2SLR337P-hmhd360r.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-a8b7z74e.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-cgjd8shk.js → timeline-definition-EJHVYXUP-765y3ssa.js} +1 -1
- package/dist/client/static/js/treeView-Q6P3EWNA-8djqab8k.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hdztnffk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-9qsmjhm6.js → usecaseDiagram-POWQR4AR-rex2j507.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-4grw9awx.js → vennDiagram-UO4OBE2U-wd51qq26.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-avby77vv.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-8gxy0wat.js → wardleyDiagram-VNRHLVJA-6jdqn8f7.js} +1 -1
- package/dist/client/static/js/xml-81hxjjt4.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-5sh7tdrx.js → xychartDiagram-PMCCYNJV-kcz8y04e.js} +2 -2
- package/dist/client/static/js/yaml-yssayv8a.js +1 -0
- package/package.json +1 -1
- package/src/client/components/settings/apply-side-effects.test.ts +5 -4
- package/src/client/hooks/ui/icon-style.ts +7 -4
- package/src/client/hooks/ui/style-attributes.test.ts +11 -11
- package/src/client/hooks/ui/surface-style.ts +8 -5
- package/src/server/lib/assets/shell-attributes.server.ts +12 -9
- package/src/server/lib/assets/shell-attributes.test.ts +18 -13
- package/src/shared/lib/icons/icon-paint-authority.ts +5 -3
- package/src/shared/lib/theme/icon-style.test.ts +8 -5
- package/src/shared/lib/theme/icon-style.ts +15 -7
- package/src/shared/lib/theme/surface-style.test.ts +8 -5
- package/src/shared/lib/theme/surface-style.ts +17 -7
- package/src/shared/lib/workspace/sidebar-style.test.ts +7 -8
- package/src/shared/lib/workspace/sidebar-style.ts +7 -8
- package/dist/client/static/js/architecture-7GRP2DOG-aqft2erp.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-v2sz60t6.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-8qbefe4m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-krsvgcq7.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-9bx1a38k.js +0 -1
- package/dist/client/static/js/graphql-xnpp5gn9.js +0 -1
- package/dist/client/static/js/index-dh1vd0d9.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-j51t7jhh.js +0 -1
- package/dist/client/static/js/ini-ygfyhprj.js +0 -1
- package/dist/client/static/js/java-gm49vw59.js +0 -1
- package/dist/client/static/js/jsx-ksxw1byz.js +0 -1
- package/dist/client/static/js/lua-53gzb9bx.js +0 -1
- package/dist/client/static/js/markdown-tk3cd3vs.js +0 -1
- package/dist/client/static/js/one-dark-pro-39bt34v9.js +0 -1
- package/dist/client/static/js/one-light-xec0sehr.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-n83gfj2g.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-5c5pctwz.js +0 -1
- package/dist/client/static/js/properties-2tcybqjk.js +0 -1
- package/dist/client/static/js/python-qph3dntq.js +0 -1
- package/dist/client/static/js/r-gd26x93y.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-52e5n99a.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-44nqxxpy.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-25jxgwg7.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-64pqpf2y.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-0p5sxzpx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-kdcdamkj.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-8j14nnd1.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-esf993kk.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-v4dxm2sb.js +0 -1
- package/dist/client/static/js/xml-0py2vkw7.js +0 -1
- package/dist/client/static/js/yaml-vghdz0f0.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,oa,sa,Bf,Ot,dp}from"./index-ctgefatv.js";import{Al}from"./index-v5t761a1.js";import"./index-zdtsvnpq.js";import{Pi,bd}from"./index-b48p8d1j.js";function X(){throw Error("elkjs is not bundled in this build; use the default dagre layout")}class pt{}var yt=new Proxy(pt,{construct:X,apply:X,get:X});var kt=t((e,r,{parentById:n})=>{let o=new Set,i=e;if(e===r)return n[e]||"root";while(i){if(o.add(i),i===r)return i;i=n[i]}i=r;while(i){if(o.has(i))return i;i=n[i]}return"root"},"findCommonAncestor"),pe=6;function bt(e,{measure:r}){let n=e.config?.elk?.lineHops;if(n===!1)return;let o=e.edges.filter((i)=>Array.isArray(i.points)&&i.points.length>=2).map((i)=>({id:i.id,points:i.points,curve:i.curve,arrowTypeStart:i.arrowTypeStart,arrowTypeEnd:i.arrowTypeEnd}));Al(r.groups.edgePaths,o,{enabled:!0,jumpRadius:pe,jumpStyle:n==="gap"?"gap":"arc"})}t(bt,"applyElkLineJumps");var ye={},Ee={},xe={},me={},R=1,ke=10,v=t((e,r,n=0.5)=>{let o=e.width/2,i=e.height/2,s=e.x-o,a=e.x+o,c=e.y-i,l=e.y+i,u=Math.abs(r.x-s)<=n&&r.y>=c-n&&r.y<=l+n,h=Math.abs(r.x-a)<=n&&r.y>=c-n&&r.y<=l+n,d=Math.abs(r.y-c)<=n&&r.x>=s-n&&r.x<=a+n,f=Math.abs(r.y-l)<=n&&r.x>=s-n&&r.x<=a+n;return u||h||d||f},"onBorder"),be=t((e,r,n)=>{let{x:o,y:i}=e,s=Math.abs(o-n.x),a=e.width/2,c=n.x<r.x?a-s:a+s,l=e.height/2,u=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(i-r.y)*a>Math.abs(o-r.x)*l){let d=n.y<r.y?r.y-l-i:i-l-r.y;c=h*d/u;let f={x:n.x<r.x?n.x+c:n.x-h+c,y:n.y<r.y?n.y+u-d:n.y-u+d};if(h===0)f.x=r.x;if(u===0)f.y=r.y;return f}else{if(n.x<r.x)c=r.x-a-o;else c=o-a-r.x;let d=u*c/h,f=n.x<r.x?n.x+h-c:n.x-h+c,g=n.y<r.y?n.y+d:n.y-d;if(h===0)f=r.x;if(u===0)g=r.y;return{x:f,y:g}}},"intersection"),T=t((e,r)=>{let{x:n,y:o}=e,i=Math.abs(r.x-n),s=Math.abs(r.y-o),a=e.width/2,c=e.height/2;return i>=a||s>=c},"outsideNode"),we=t((e,r,n=ke)=>{let o=Math.abs(r.x-e.x),i=Math.abs(r.y-e.y),s=e.width/2,a=e.height/2;if(Math.abs(o-s)<R||Math.abs(i-a)<R){let c=r.x-e.x,l=r.y-e.y,u=Math.sqrt(c*c+l*l);if(u>0)return{x:e.x+c/u*(u+n),y:e.y+l/u*(u+n)}}return r},"ensureTrulyOutside"),Ie=t((e,r,n)=>{let o=Math.abs(r.x-e.x)<R,i=Math.abs(r.y-e.y)<R;return{x:o?r.x:r.x<e.x?e.x-e.width/4:e.x+e.width/4,y:i?r.y:n.y}},"makeInsidePoint"),Oe=t((e,r,n)=>{if(!e?.intersect)return null;let o=e.intersect(n);if(!o)return null;if(n.x<r.x&&o.x>r.x||n.x>r.x&&o.x<r.x)return null;if(Math.hypot(n.x-o.x,n.y-o.y)<=R)return null;return o},"tryNodeIntersect"),Se=t((e,r,n)=>{let o=Ie(e,r,n);return be(e,r,o)},"fallbackIntersection"),Pe=20,Et=0.000001,W=t((e,r,n)=>{let o=e.intersect?.(n);if(!o)return!1;let i=Math.hypot(n.x-r.x,n.y-r.y),s=Math.hypot(o.x-r.x,o.y-r.y);return i<=s+0.000000001},"insideOutline"),Me=t((e,r,n,o)=>{if(!e?.intersect)return null;let i=o.x-n.x,s=o.y-n.y;if(i===0&&s===0)return null;if(Math.abs(i)>Et&&Math.abs(s)>Et)return null;let a={x:r.x,y:r.y},c=Math.abs(i)>Math.abs(s),l=t((d)=>c?{x:d,y:n.y}:{x:n.x,y:d},"along"),u=c?a.x:a.y,h=c?n.x:n.y;if(!W(e,a,l(u)))return null;if(W(e,a,l(h)))return{...n};for(let d=0;d<Pe;d++){let f=(u+h)/2;if(W(e,a,l(f)))u=f;else h=f}return l(u)},"outlineAttachPoint"),C=t((e,r,n,o)=>{let i=we(r,n);return Oe(e,r,i)??Se(r,i,o)},"computeNodeIntersection"),L=t((e,r,n,o=0.1)=>{if(!n||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-n.x)<o&&Math.abs(e[0].y-n.y)<o)e.shift();else e[0]=n;else{let i=e.length-1;if(e.length>0&&Math.abs(e[i].x-n.x)<o&&Math.abs(e[i].y-n.y)<o)e.pop();else e[i]=n}},"replaceEndpoint"),wt=8,It=t((e)=>{if(typeof e!=="string")return 0;return Math.max(Ot[e]??0,dp[e]??0)},"markerPathOffset"),xt={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},N=12,St=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,Pt=24,Mt=50,P=15,M=10,nt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},Ne=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(nt)];function Nt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=Pt,e["spacing.nodeNode"]=Mt}t(Nt,"clearContainerAlgorithmOptions");var mt=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function it(e,r){if(typeof e!=="string")return;if(!mt.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...mt].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}t(it,"resolveContainerAlgorithm");function ot(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}t(ot,"dir2ElkDirection");function F(e){if(!Bf(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!Bf(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function At(e,r,n,o){let i=e.labelData?.width??0,s=e.padding??0,a=i+2*s,c=e.labelData?.height??0,l=ct(r?.preset),u={...st(e),"spacing.baseValue":Pt,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Mt,"elk.padding":`[top=${O},left=${O},bottom=${O},right=${O}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??l.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??l.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??l.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":St},h=it(e.metadata?.algorithm,o);if(h){let d=c+P;if(u["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",u["nodeSize.minimum"]=`(${a}, ${d+P})`,u["elk.algorithm"]=h,u["elk.hierarchyHandling"]="SEPARATE_CHILDREN",u["elk.aspectRatio"]="2.0",u["elk.contentAlignment"]="H_CENTER V_TOP",u["elk.expandNodes"]="true",u["elk.padding"]=`[top=${d},left=${P},bottom=${P},right=${P}]`,h==="elk.rectpacking"){let f=c+M;Object.assign(u,nt,{"elk.padding":`[top=${f},left=${M},bottom=${M},right=${M}]`,"nodeSize.minimum":`(${a}, ${f+M})`})}}else if(e.dir)u["elk.algorithm"]=n,u["elk.direction"]=ot(e.dir),u["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(u,me),u}t(At,"buildSubgraphLayoutOptions");function _t(e,r){let n=new Set,o=new Map;for(let{id:i,parentId:s}of e){let a=o.get(s);if(a)a.push(i);else o.set(s,[i])}for(let i of o.values()){let s=new Set(i),a=new Map(i.map((p)=>[p,0])),c=new Map(i.map((p)=>[p,[]])),l=[];for(let p of r){let y=p.source==null?void 0:String(p.source),E=p.target==null?void 0:String(p.target);if(!y||!E||y===E)continue;if(!s.has(y)||!s.has(E))continue;a.set(E,(a.get(E)??0)+1),c.get(y).push(E),c.get(E).push(y),l.push([y,E])}let u=new Map,h=0;for(let p of i){if(u.has(p))continue;let y=[p];u.set(p,h);while(y.length>0){let E=y.pop();for(let b of c.get(E))if(!u.has(b))u.set(b,h),y.push(b)}h++}let d=Array(h).fill(!1);for(let p of i)if((a.get(p)??0)===0)d[u.get(p)]=!0;if(!d.includes(!1))continue;let f=new Map(i.map((p)=>[p,[]])),g=new Map(i.map((p)=>[p,0])),m=t((p,y)=>{let E=new Set([p]),b=[p];while(b.length>0){let w=b.pop();if(w===y)return!0;for(let x of f.get(w))if(!E.has(x))E.add(x),b.push(x)}return!1},"reaches");for(let[p,y]of l){if(m(y,p))continue;f.get(p).push(y),g.set(y,(g.get(y)??0)+1)}let k=Array(h).fill(!1);for(let p of i){let y=u.get(p);if(!d[y]&&!k[y]&&g.get(p)===0)n.add(p),k[y]=!0}}return n}t(_t,"findCyclicEntryNodes");function vt(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=_t(e.nodes,e.edges.map((o)=>({source:o.start,target:o.end})));for(let o of n){let i=r[o];if(i)i.layoutOptions={...i.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}t(vt,"applyCyclicEntryConstraint");function Rt(e,r){let n=at(r);return Ct(n),se(e,n),{algorithm:n.algorithm}}t(Rt,"prepareLayoutForElk");async function Tt(e,r){let n=at(r),o=Dt(e,n),i=new yt;n.log.info("Drawing flowchart using v4 renderer",i);let s=await Kt(i,o.elkGraph,n.log);return jt(e,s,o,n.log),Lt(e.nodes),s}t(Tt,"runElkLayoutCore");function Dt(e,r){let n={},o=Gt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Bt(e.nodes,r.log);return lt(e.nodes,o,n,r),Xt(e,o,n,r),$t(e,n,s,r),Yt(o,n,s,r.log),vt(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Dt,"buildElkGraphFromLayoutData");var Ve=Pi({afterPaint:bt,prepareLayout:Rt,measureLayout:t((e,r)=>bd(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Tt,paintOptions:{skipIntersect:!0}});function Ct(e){oa(e.getConfig())}t(Ct,"syncHostConfig");function Lt(e){let r=new Map(e.map((n)=>[n.id,n]));e.sort((n,o)=>{if(n.isGroup!==o.isGroup)return n.isGroup?-1:1;if(n.isGroup&&o.isGroup)return K(n,r)-K(o,r);return 0})}t(Lt,"orderNodesForElkPaint");function K(e,r){let n=0,o=new Set,i=e.parentId;while(i&&!o.has(i)){o.add(i);let s=r.get(i);if(!s?.isGroup)break;n++,i=s.parentId}return n}t(K,"getGroupDepth");function at(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}t(at,"getElkLayoutContext");var Y={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function ct(e){return e!==void 0&&Object.hasOwn(Y,e)?Y[e]:Y.default}t(ct,"resolveElkPreset");function Gt(e,r,n){let o=ct(e.config.elk?.preset),i={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??o.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??o.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??o.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":St},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(i.layoutOptions,nt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(n)Object.assign(i.layoutOptions,n);return Object.assign(i.layoutOptions,ye,Ee,xe),i}t(Gt,"createRootElkGraph");function Bt(e,r){let n={parentById:{},childrenById:{}},o=e.filter((i)=>i.isGroup);return r.info("Subgraphs - ",o),o.forEach((i)=>{e.filter((a)=>a.parentId===i.id).forEach((a)=>{n.parentById[a.id]=i.id,n.childrenById[i.id]??=[],n.childrenById[i.id].push(a.id)})}),n}t(Bt,"addSubGraphs");function lt(e,r,n,o,i){let s=e.filter((a)=>a?.parentId===i);return o.log.info("addVertices APA12",s,i),s.forEach((a)=>{Ft(r,e,a,n,o)}),r}t(lt,"addVertices");function Ft(e,r,n,o,i){let s=Ut(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ht(n,i.getConfig())}t(Ft,"addVertex");function Ut(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}t(Ut,"createElkNode");function Ht(e,r){let n=e.labelData;if(n)return n;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}t(Ht,"getMeasuredLabelData");function Xt(e,r,n,o){o.log.info("abc78 DAGA edges = ",e);let i={};return e.edges.forEach((s)=>{let a=s.id;i[a]=(i[a]??-1)+1;let c=a;s.id=c,o.log.info("abc78 new link id to be used is",a,c,i[a]);let{source:l,target:u,sourceId:h,targetId:d}=Wt(s,n);o.log.debug("abc78 source and target",l,u),r.edges.push({...s,sources:[l],targets:[u],sourceId:h,targetId:d,labels:[{width:s.width??0,height:s.height??0,orgWidth:s.width??0,orgHeight:s.height??0,text:s.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}]})}),r}t(Xt,"addEdgesToElkGraph");function Wt(e,r){let{start:n,end:o}=e,i=n,s=o,a=n?r[n]:void 0,c=o?r[o]:void 0;if(!a||!c)return{source:i,target:s};return{source:i,target:s,sourceId:n,targetId:o}}t(Wt,"getEdgeStartEndPoint");function $t(e,r,n,o){e.nodes.forEach((i)=>{let s=r[i.id];if(!s||n.childrenById[s.id]===void 0)return;s.labels=[{text:s.label,width:s?.labelData?.width??50,height:s?.labelData?.height??50}],o.log.debug("UIO node label",s?.labelData?.width,s.padding),s.layoutOptions=At(s,e.config.elk,o.algorithm,o.log),delete s.x,delete s.y,delete s.width,delete s.height})}t($t,"configureSubgraphNodes");function Yt(e,r,n,o){o.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((i,s)=>{o.debug("APA01 processing edge",s,":",i);let a=i.sources[0],c=i.targets[0];if(o.debug("APA01 source:",a,"target:",c),o.debug("APA01 nodeDb[source]:",r[a]),o.debug("APA01 nodeDb[target]:",r[c]),r[a]&&r[c]&&r[a].parentId!==r[c].parentId){let l=kt(a,c,n);G(r,a,l,o),G(r,c,l,o)}})}t(Yt,"configureCrossHierarchyEdges");function G(e,r,n,o){let i=e[r];if(!i)return;if(i.layoutOptions??={},i.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&it(i.metadata?.algorithm))o.debug("Dropping explicit algorithm for node",i.id,"due to cross-boundary edges"),Nt(i.layoutOptions),Object.assign(i.layoutOptions,st(i));if(i.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",i.id!==n&&i.parentId)G(e,i.parentId,n,o)}t(G,"setIncludeChildrenPolicy");async function Kt(e,r,n){let o=globalThis.__mermaidProfiler;try{o?.begin("layoutCore");let i;try{i=await e.layout(r)}finally{o?.end()}return n.debug("APA01 after - success"),n.debug("APA01 layout result:",i),i}catch(i){throw n.error("ELK layout error:",i),i}}t(Kt,"runElkLayout");function jt(e,r,n,o){let i=new Map(e.nodes.map((s)=>[s.id,s]));ht(r.children??[],n,i,0,0,0,o),ft(r.children??[],n,i,r),Qt(e,r,n,o)}t(jt,"applyElkLayoutResult");function ut(e,r=new Set){for(let n of e.children??[])r.add(n.id),ut(n,r);return r}t(ut,"collectDescendantIds");function Vt(e,r,n,o){let i=[];for(let s of e.edges??[]){let a=s.sources?.[0]??s.start,c=s.targets?.[0]??s.end,l=r.has(a)&&r.has(c),u=a===o,h=c===o;if(!l&&!u&&!h)continue;let d=B(a,c,n.parentLookupDb,n.nodeDb);for(let f of s.sections??[]){let g=l?[f.startPoint,...f.bendPoints??[],f.endPoint]:[u?f.startPoint:null,h?f.endPoint:null];for(let m of g)if(m)i.push({x:m.x+d.x,y:m.y+d.y})}}return i}t(Vt,"internalEdgePoints");function ft(e,r,n,o={}){for(let i of e){if(!i?.isGroup)continue;let s=i.children??[];ft(s,r,n,o);let a=r.nodeDb[i.id],c=s.map((x)=>r.nodeDb[x.id]).filter((x)=>x?.offset&&x.width&&x.height);if(!a?.offset||c.length===0)continue;let l=Vt(o,ut(i),r,i.id),u=[...c.map((x)=>x.offset.posX),...c.map((x)=>x.offset.posX+x.width),...l.map((x)=>x.x)],h=[...c.map((x)=>x.offset.posY),...c.map((x)=>x.offset.posY+x.height),...l.map((x)=>x.y)],d=a.offset,f=Math.max(d.posX,Math.min(...u)-O),g=Math.min(d.posX+a.width,Math.max(...u)+O),m=Math.min(d.posY+a.height,Math.max(...h)+O),k=d.posY,p=F(i),y=f,E=g-f;if(E<p){y-=(p-E)/2,E=p;let x=d.posX+a.width;y=Math.max(d.posX,Math.min(y,x-E)),E=Math.min(E,a.width)}let b=m-k;if(b<=0||E<=0)continue;a.elkOrigin??={posX:d.posX,posY:d.posY},a.offset.posX=y,a.offset.width=E,a.offset.height=b,a.width=E,a.height=b,a.x=y+E/2,a.y=k+b/2;let w=n.get(i.id);if(w)w.x=a.x,w.y=a.y,w.width=E,w.height=b}}t(ft,"evenGroupFrames");function ht(e,r,n,o,i,s,a){e.forEach((c)=>{if(!c)return;let l=r.nodeDb[c.id]??c,u=Math.max(c.width,c.labels?c.labels[0]?.width||0:0),h={posX:c.x+o,posY:c.y+i,x:o,y:i,depth:s,width:u,height:c.height};l.offset=h,l.x=h.posX+c.width/2,l.y=h.posY+c.height/2,l.width=c.width,l.height=c.height;let d=n.get(c.id);if(d){d.x=l.x,d.y=l.y,d.width=c.isGroup?Math.max(c.width,c.labelData?.width??0):c.width,d.height=c.height;let f=d;f.labelData=c.labelData,f.labels=c.labels}if(c.isGroup)a.debug("Id abc88 subgraph = ",c.id,c.x,c.y,c.labelData),ht(c.children??[],r,n,h.posX,h.posY,s+1,a);else a.info("Id NODE = ",c.id,c.x,c.y,o,i,`translate(${l.x}, ${l.y})`)})}t(ht,"applyElkNodePositions");var Ae=16,_e=30,A=0.01;function _(e,r){let n=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y);if(n>A&&o<=A)return"h";if(o>A&&n<=A)return"v";return}t(_,"axisOf");function zt(e){let r=j(e)??e,n=[...r].reverse(),o=j(n);if(o)r=o.reverse();return r}t(zt,"straightenTerminalJogs");function j(e){if(e.length<5)return null;let[r,n,o,i]=e,s=_(r,n);if(!s||_(o,i)!==s||_(n,o)!==(s==="h"?"v":"h"))return null;if(Math.hypot(n.x-r.x,n.y-r.y)>_e)return null;let a=s==="h"?Math.abs(o.y-n.y):Math.abs(o.x-n.x);if(a<A||a>Ae)return null;if(!(s==="h"?Math.sign(n.x-r.x)===Math.sign(i.x-o.x):Math.sign(n.y-r.y)===Math.sign(i.y-o.y)))return null;let l=3;while(l+1<e.length&&_(e[l],e[l+1])===s)l++;if(l===e.length-1)return null;let u=[...e];for(let h=2;h<=l;h++)u[h]=s==="h"?{x:e[h].x,y:r.y}:{x:r.x,y:e[h].y};return u.splice(1,2),u}t(j,"straightenFront");function Jt(e,r,n,o){let i=t((u,h,d)=>(h.x-u.x)*(d.y-u.y)-(h.y-u.y)*(d.x-u.x),"side"),s=i(n,o,e),a=i(n,o,r),c=i(e,r,n),l=i(e,r,o);return(s>0&&a<0||s<0&&a>0)&&(c>0&&l<0||c<0&&l>0)}t(Jt,"segmentsCrossStrict");function V(e,r){let n=0;for(let o=0;o<e.length-1;o++)for(let i=0;i<r.length-1;i++)if(Jt(e[o],e[o+1],r[i],r[i+1]))n++;return n}t(V,"crossingCount");function qt(e){let r=e.map((n)=>n.points??[]);for(let[n,o]of e.entries()){let i=r[n];if(i.length<5)continue;let s=zt(i);if(s===i)continue;let a=0,c=0;for(let[l,u]of r.entries()){if(l===n||u.length<2)continue;a+=V(i,u),c+=V(s,u)}if(c>a)continue;o.points=s,r[n]=s}}t(qt,"straightenEdgeTerminals");function Qt(e,r,n,o){let i=new Map(e.edges.map((l)=>[l.id,l])),s=e.config.elk?.straightenEdges!==!1,a=new Map(e.nodes.map((l)=>[l.id,l])),c=new Set;if(r.edges?.forEach((l)=>{if(!l.sections?.length)return;let u=n.nodeDb[l.sources?.[0]??l.start],h=n.nodeDb[l.targets?.[0]??l.end];if(!u||!h)return;let d=l.start??l.sourceId??l.sources?.[0],f=l.end??l.targetId??l.targets?.[0],g=B(d,f,n.parentLookupDb,n.nodeDb),m=l.sections[0];if(u.shape!=="rect33")z(u,{x:m.startPoint.x+g.x,y:m.startPoint.y+g.y},a,c);if(h.shape!=="rect33")z(h,{x:m.endPoint.x+g.x,y:m.endPoint.y+g.y},a,c)}),r.edges?.forEach((l)=>{let u=i.get(l.id);if(!u)return;let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,f=n.nodeDb[h],g=n.nodeDb[d];if(!f||!g)return;if(!l.sections?.length){let x=t((S)=>({x:(S.offset?.posX??S.x??0)+(S.width??0)/2,y:(S.offset?.posY??S.y??0)+(S.height??0)/2}),"centre"),U=x(f),H=x(g);f.x=U.x,f.y=U.y,g.x=H.x,g.y=H.y;let D=J([U,H],f,g,o);u.points=D,u.curve="linear";let dt=D[0],gt=D[D.length-1];u.x=(dt.x+gt.x)/2,u.y=(dt.y+gt.y)/2,o.debug("APA18 no edge sections, using a straight line",l.id,u.points);return}let m=l.start??l.sourceId??h,k=l.end??l.targetId??d,p=B(m,k,n.parentLookupDb,n.nodeDb);o.debug("APA18 offset",p,m," ==> ",k,"edge:",l,f);let y=l.sections[0],E=Zt(y,p);if(f.x=f.offset.posX+f.width/2,f.y=f.offset.posY+f.height/2,g.x=g.offset.posX+g.width/2,g.y=g.offset.posY+g.height/2,f.shape!=="rect33")E.unshift({x:f.x,y:f.y});if(g.shape!=="rect33")E.push({x:g.x,y:g.y});let b=J(E,f,g,o);u.points=ie(oe(b,I(g),re(u),o),I(f),ne(u),o),u.curve="rounded";let w=l.labels?.[0];if(w)u.x=w.x+p.x+w.width/2,u.y=w.y+p.y+w.height/2}),s)qt(e.edges)}t(Qt,"applyElkEdgeLayout");function z(e,r,n,o){let i=e.width??0,s=e.height??0,a=e.offset.posY,c=a+s,l=0.5,u=Math.abs(r.y-a)<=0.5||Math.abs(r.y-c)<=0.5;if((u?i:s)>=2*N)return;if(o.has(e.id))return;o.add(e.id);let h=u?r.x-(e.offset.posX+i/2):r.y-(e.offset.posY+s/2);if(Math.abs(h)<0.01)return;if(u)e.offset.posX+=h,e.x=e.offset.posX+i/2;else e.offset.posY+=h,e.y=e.offset.posY+s/2;let d=n.get(e.id);if(d)d.x=e.offset.posX+i/2,d.y=e.offset.posY+s/2}t(z,"alignDegenerateNodeToAnchor");function Zt(e,r){let{startPoint:n,endPoint:o}=e,s=(e.bendPoints?e.bendPoints:[]).map((a)=>({x:a.x+r.x,y:a.y+r.y}));return[{x:n.x+r.x,y:n.y+r.y},...s,{x:o.x+r.x,y:o.y+r.y}]}t(Zt,"createEdgePointsFromSection");function B(e,r,n,o){let i=kt(e,r,n);if(i===void 0||i==="root")return{x:0,y:0};let s=o[i],a=s?.elkOrigin??s?.offset;return{x:a?.posX??0,y:a?.posY??0}}t(B,"calcOffset");function J(e,r,n,o){let i=Array.isArray(e)?[...e]:[],s=I(n);o.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",s,v(s,e[e.length-1]));let a;{let c=I(r),l=I(n),u=!!r?.isGroup,h=!!n?.isGroup,{candidate:d,centerApprox:f}=Z(i,r,"start"),{candidate:g,centerApprox:m}=Z(i,n,"end"),k=u&&v(c,d),p=h&&v(l,g);if(tt(i,"start",k&&f),tt(i,"end",p&&m),u&&!k)k=et(i,c,"start");if(h&&!p)p=et(i,l,"end");if(k||p){if(!k)he(i,r,c,o);if(!p)de(i,n,l,o);o.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:p,startCenterApprox:f,endCenterApprox:m,startCandidate:d,endCandidate:g}),a=i}else a=ge(r,n,i,o)}if(o.debug("PPP cutter2: Points after cutter2:",JSON.stringify(a)),!Array.isArray(a)||a.length<2||te(a)){o.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",a);let c=i.filter((l)=>Number.isFinite(l?.x)&&Number.isFinite(l?.y));a=c.length>=2?c:i}return o.debug("UIO cutter2: Points after cutter2 (sanitized):",a),ee(a,o)}t(J,"sanitizeElkEdgePoints");function te(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}t(te,"hasInvalidPoint");function ee(e,r){let n=e.filter((o,i,s)=>{if(i===0)return!0;let a=s[i-1];return Math.abs(o.x-a.x)>0.000001||Math.abs(o.y-a.y)>0.000001});if(n.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:n});return n}t(ee,"dedupeConsecutivePoints");function re(e){return It(e.arrowTypeEnd)}t(re,"getEndMarkerPathOffset");function ne(e){return It(e.arrowTypeStart)}t(ne,"getStartMarkerPathOffset");function ie(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[0],s=e[1],a=Math.hypot(s.x-i.x,s.y-i.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[i,...e.slice(2)];return o.debug("UIO cutter2: removed short start marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(ie,"ensureStartMarkerSegmentLength");function oe(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[e.length-1],s=e[e.length-2],a=Math.hypot(i.x-s.x,i.y-s.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[...e.slice(0,-2),i];return o.debug("UIO cutter2: removed short end marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(oe,"ensureEndMarkerSegmentLength");function se(e,r){let n=e.edges.defaultInterpolate,o=e.edges.defaultStyle,i=r.getConfig();e.edges.forEach((s)=>{let a=ue(s,{defaultStyle:o,defaultInterpolate:n,confCurve:i.curve},r);Object.assign(s,a)})}t(se,"applyElkEdgeRenderData");function ae(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}t(ae,"buildFallbackEdgeClasses");function ce(e,r,n){let o="normal",i="solid",s=[],a=[];if(e==="dotted")i="dotted",s=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")o="thick",s=["stroke-width: 3.5px","fill:none"];else if(s=r??["fill:none"],n!==void 0)a=n;return{thickness:o,pattern:i,style:s,labelStyle:a}}t(ce,"computeStroke");function le(e,r,n){if(e!==void 0)return e;if(r!==void 0)return r;return n}t(le,"getCurve");function ue(e,r,n){let o={};o.minlen=e.minlen??e.length??1,o.text=e.text??e.label,o.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let i=xt[e.type??"arrow_open"]??xt.arrow_open;o.arrowTypeStart=e.arrowTypeStart??i[0],o.arrowTypeEnd=e.arrowTypeEnd??i[1],o.startLabelRight=e.startLabelRight,o.endLabelLeft=e.endLabelLeft;let s=ce(e.stroke,r.defaultStyle,r.defaultLabelStyle);o.thickness=e.thickness??s.thickness,o.pattern=e.pattern??s.pattern,o.style=e.style??s.style,o.labelStyle=e.labelStyle??s.labelStyle,o.classes=ae(e),o.curve=n.interpolateToCurve(le(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),sa);let a=(o.text??"")!=="";if(e.arrowheadStyle!==void 0)o.arrowheadStyle=e.arrowheadStyle;else if(a||e.style!==void 0)o.arrowheadStyle="fill: #333";return o.labelpos=e.labelpos??(a?"c":void 0),o.labelType=e.labelType,o.label=(e.label??o.text??"").replace(n.common.lineBreakRegex,`
|
|
1
|
+
import{t,oa,sa,Cf,Ot,dp}from"./index-302d35e5.js";import{Al}from"./index-qz8mbxm9.js";import"./index-64mb65wx.js";import{Pi,bd}from"./index-we1rpftn.js";function X(){throw Error("elkjs is not bundled in this build; use the default dagre layout")}class pt{}var yt=new Proxy(pt,{construct:X,apply:X,get:X});var kt=t((e,r,{parentById:n})=>{let o=new Set,i=e;if(e===r)return n[e]||"root";while(i){if(o.add(i),i===r)return i;i=n[i]}i=r;while(i){if(o.has(i))return i;i=n[i]}return"root"},"findCommonAncestor"),pe=6;function bt(e,{measure:r}){let n=e.config?.elk?.lineHops;if(n===!1)return;let o=e.edges.filter((i)=>Array.isArray(i.points)&&i.points.length>=2).map((i)=>({id:i.id,points:i.points,curve:i.curve,arrowTypeStart:i.arrowTypeStart,arrowTypeEnd:i.arrowTypeEnd}));Al(r.groups.edgePaths,o,{enabled:!0,jumpRadius:pe,jumpStyle:n==="gap"?"gap":"arc"})}t(bt,"applyElkLineJumps");var ye={},Ee={},xe={},me={},R=1,ke=10,v=t((e,r,n=0.5)=>{let o=e.width/2,i=e.height/2,s=e.x-o,a=e.x+o,c=e.y-i,l=e.y+i,u=Math.abs(r.x-s)<=n&&r.y>=c-n&&r.y<=l+n,h=Math.abs(r.x-a)<=n&&r.y>=c-n&&r.y<=l+n,d=Math.abs(r.y-c)<=n&&r.x>=s-n&&r.x<=a+n,f=Math.abs(r.y-l)<=n&&r.x>=s-n&&r.x<=a+n;return u||h||d||f},"onBorder"),be=t((e,r,n)=>{let{x:o,y:i}=e,s=Math.abs(o-n.x),a=e.width/2,c=n.x<r.x?a-s:a+s,l=e.height/2,u=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(i-r.y)*a>Math.abs(o-r.x)*l){let d=n.y<r.y?r.y-l-i:i-l-r.y;c=h*d/u;let f={x:n.x<r.x?n.x+c:n.x-h+c,y:n.y<r.y?n.y+u-d:n.y-u+d};if(h===0)f.x=r.x;if(u===0)f.y=r.y;return f}else{if(n.x<r.x)c=r.x-a-o;else c=o-a-r.x;let d=u*c/h,f=n.x<r.x?n.x+h-c:n.x-h+c,g=n.y<r.y?n.y+d:n.y-d;if(h===0)f=r.x;if(u===0)g=r.y;return{x:f,y:g}}},"intersection"),T=t((e,r)=>{let{x:n,y:o}=e,i=Math.abs(r.x-n),s=Math.abs(r.y-o),a=e.width/2,c=e.height/2;return i>=a||s>=c},"outsideNode"),we=t((e,r,n=ke)=>{let o=Math.abs(r.x-e.x),i=Math.abs(r.y-e.y),s=e.width/2,a=e.height/2;if(Math.abs(o-s)<R||Math.abs(i-a)<R){let c=r.x-e.x,l=r.y-e.y,u=Math.sqrt(c*c+l*l);if(u>0)return{x:e.x+c/u*(u+n),y:e.y+l/u*(u+n)}}return r},"ensureTrulyOutside"),Ie=t((e,r,n)=>{let o=Math.abs(r.x-e.x)<R,i=Math.abs(r.y-e.y)<R;return{x:o?r.x:r.x<e.x?e.x-e.width/4:e.x+e.width/4,y:i?r.y:n.y}},"makeInsidePoint"),Oe=t((e,r,n)=>{if(!e?.intersect)return null;let o=e.intersect(n);if(!o)return null;if(n.x<r.x&&o.x>r.x||n.x>r.x&&o.x<r.x)return null;if(Math.hypot(n.x-o.x,n.y-o.y)<=R)return null;return o},"tryNodeIntersect"),Se=t((e,r,n)=>{let o=Ie(e,r,n);return be(e,r,o)},"fallbackIntersection"),Pe=20,Et=0.000001,W=t((e,r,n)=>{let o=e.intersect?.(n);if(!o)return!1;let i=Math.hypot(n.x-r.x,n.y-r.y),s=Math.hypot(o.x-r.x,o.y-r.y);return i<=s+0.000000001},"insideOutline"),Me=t((e,r,n,o)=>{if(!e?.intersect)return null;let i=o.x-n.x,s=o.y-n.y;if(i===0&&s===0)return null;if(Math.abs(i)>Et&&Math.abs(s)>Et)return null;let a={x:r.x,y:r.y},c=Math.abs(i)>Math.abs(s),l=t((d)=>c?{x:d,y:n.y}:{x:n.x,y:d},"along"),u=c?a.x:a.y,h=c?n.x:n.y;if(!W(e,a,l(u)))return null;if(W(e,a,l(h)))return{...n};for(let d=0;d<Pe;d++){let f=(u+h)/2;if(W(e,a,l(f)))u=f;else h=f}return l(u)},"outlineAttachPoint"),C=t((e,r,n,o)=>{let i=we(r,n);return Oe(e,r,i)??Se(r,i,o)},"computeNodeIntersection"),L=t((e,r,n,o=0.1)=>{if(!n||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-n.x)<o&&Math.abs(e[0].y-n.y)<o)e.shift();else e[0]=n;else{let i=e.length-1;if(e.length>0&&Math.abs(e[i].x-n.x)<o&&Math.abs(e[i].y-n.y)<o)e.pop();else e[i]=n}},"replaceEndpoint"),wt=8,It=t((e)=>{if(typeof e!=="string")return 0;return Math.max(Ot[e]??0,dp[e]??0)},"markerPathOffset"),xt={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},N=12,St=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,Pt=24,Mt=50,P=15,M=10,nt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},Ne=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(nt)];function Nt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=Pt,e["spacing.nodeNode"]=Mt}t(Nt,"clearContainerAlgorithmOptions");var mt=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function it(e,r){if(typeof e!=="string")return;if(!mt.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...mt].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}t(it,"resolveContainerAlgorithm");function ot(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}t(ot,"dir2ElkDirection");function F(e){if(!Cf(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!Cf(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function At(e,r,n,o){let i=e.labelData?.width??0,s=e.padding??0,a=i+2*s,c=e.labelData?.height??0,l=ct(r?.preset),u={...st(e),"spacing.baseValue":Pt,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Mt,"elk.padding":`[top=${O},left=${O},bottom=${O},right=${O}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??l.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??l.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??l.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":St},h=it(e.metadata?.algorithm,o);if(h){let d=c+P;if(u["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",u["nodeSize.minimum"]=`(${a}, ${d+P})`,u["elk.algorithm"]=h,u["elk.hierarchyHandling"]="SEPARATE_CHILDREN",u["elk.aspectRatio"]="2.0",u["elk.contentAlignment"]="H_CENTER V_TOP",u["elk.expandNodes"]="true",u["elk.padding"]=`[top=${d},left=${P},bottom=${P},right=${P}]`,h==="elk.rectpacking"){let f=c+M;Object.assign(u,nt,{"elk.padding":`[top=${f},left=${M},bottom=${M},right=${M}]`,"nodeSize.minimum":`(${a}, ${f+M})`})}}else if(e.dir)u["elk.algorithm"]=n,u["elk.direction"]=ot(e.dir),u["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(u,me),u}t(At,"buildSubgraphLayoutOptions");function _t(e,r){let n=new Set,o=new Map;for(let{id:i,parentId:s}of e){let a=o.get(s);if(a)a.push(i);else o.set(s,[i])}for(let i of o.values()){let s=new Set(i),a=new Map(i.map((p)=>[p,0])),c=new Map(i.map((p)=>[p,[]])),l=[];for(let p of r){let y=p.source==null?void 0:String(p.source),E=p.target==null?void 0:String(p.target);if(!y||!E||y===E)continue;if(!s.has(y)||!s.has(E))continue;a.set(E,(a.get(E)??0)+1),c.get(y).push(E),c.get(E).push(y),l.push([y,E])}let u=new Map,h=0;for(let p of i){if(u.has(p))continue;let y=[p];u.set(p,h);while(y.length>0){let E=y.pop();for(let b of c.get(E))if(!u.has(b))u.set(b,h),y.push(b)}h++}let d=Array(h).fill(!1);for(let p of i)if((a.get(p)??0)===0)d[u.get(p)]=!0;if(!d.includes(!1))continue;let f=new Map(i.map((p)=>[p,[]])),g=new Map(i.map((p)=>[p,0])),m=t((p,y)=>{let E=new Set([p]),b=[p];while(b.length>0){let w=b.pop();if(w===y)return!0;for(let x of f.get(w))if(!E.has(x))E.add(x),b.push(x)}return!1},"reaches");for(let[p,y]of l){if(m(y,p))continue;f.get(p).push(y),g.set(y,(g.get(y)??0)+1)}let k=Array(h).fill(!1);for(let p of i){let y=u.get(p);if(!d[y]&&!k[y]&&g.get(p)===0)n.add(p),k[y]=!0}}return n}t(_t,"findCyclicEntryNodes");function vt(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=_t(e.nodes,e.edges.map((o)=>({source:o.start,target:o.end})));for(let o of n){let i=r[o];if(i)i.layoutOptions={...i.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}t(vt,"applyCyclicEntryConstraint");function Rt(e,r){let n=at(r);return Ct(n),se(e,n),{algorithm:n.algorithm}}t(Rt,"prepareLayoutForElk");async function Tt(e,r){let n=at(r),o=Dt(e,n),i=new yt;n.log.info("Drawing flowchart using v4 renderer",i);let s=await Kt(i,o.elkGraph,n.log);return jt(e,s,o,n.log),Lt(e.nodes),s}t(Tt,"runElkLayoutCore");function Dt(e,r){let n={},o=Gt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Bt(e.nodes,r.log);return lt(e.nodes,o,n,r),Xt(e,o,n,r),$t(e,n,s,r),Yt(o,n,s,r.log),vt(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Dt,"buildElkGraphFromLayoutData");var Ve=Pi({afterPaint:bt,prepareLayout:Rt,measureLayout:t((e,r)=>bd(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Tt,paintOptions:{skipIntersect:!0}});function Ct(e){oa(e.getConfig())}t(Ct,"syncHostConfig");function Lt(e){let r=new Map(e.map((n)=>[n.id,n]));e.sort((n,o)=>{if(n.isGroup!==o.isGroup)return n.isGroup?-1:1;if(n.isGroup&&o.isGroup)return K(n,r)-K(o,r);return 0})}t(Lt,"orderNodesForElkPaint");function K(e,r){let n=0,o=new Set,i=e.parentId;while(i&&!o.has(i)){o.add(i);let s=r.get(i);if(!s?.isGroup)break;n++,i=s.parentId}return n}t(K,"getGroupDepth");function at(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}t(at,"getElkLayoutContext");var Y={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function ct(e){return e!==void 0&&Object.hasOwn(Y,e)?Y[e]:Y.default}t(ct,"resolveElkPreset");function Gt(e,r,n){let o=ct(e.config.elk?.preset),i={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??o.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??o.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??o.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":St},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(i.layoutOptions,nt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(n)Object.assign(i.layoutOptions,n);return Object.assign(i.layoutOptions,ye,Ee,xe),i}t(Gt,"createRootElkGraph");function Bt(e,r){let n={parentById:{},childrenById:{}},o=e.filter((i)=>i.isGroup);return r.info("Subgraphs - ",o),o.forEach((i)=>{e.filter((a)=>a.parentId===i.id).forEach((a)=>{n.parentById[a.id]=i.id,n.childrenById[i.id]??=[],n.childrenById[i.id].push(a.id)})}),n}t(Bt,"addSubGraphs");function lt(e,r,n,o,i){let s=e.filter((a)=>a?.parentId===i);return o.log.info("addVertices APA12",s,i),s.forEach((a)=>{Ft(r,e,a,n,o)}),r}t(lt,"addVertices");function Ft(e,r,n,o,i){let s=Ut(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ht(n,i.getConfig())}t(Ft,"addVertex");function Ut(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}t(Ut,"createElkNode");function Ht(e,r){let n=e.labelData;if(n)return n;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}t(Ht,"getMeasuredLabelData");function Xt(e,r,n,o){o.log.info("abc78 DAGA edges = ",e);let i={};return e.edges.forEach((s)=>{let a=s.id;i[a]=(i[a]??-1)+1;let c=a;s.id=c,o.log.info("abc78 new link id to be used is",a,c,i[a]);let{source:l,target:u,sourceId:h,targetId:d}=Wt(s,n);o.log.debug("abc78 source and target",l,u),r.edges.push({...s,sources:[l],targets:[u],sourceId:h,targetId:d,labels:[{width:s.width??0,height:s.height??0,orgWidth:s.width??0,orgHeight:s.height??0,text:s.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}]})}),r}t(Xt,"addEdgesToElkGraph");function Wt(e,r){let{start:n,end:o}=e,i=n,s=o,a=n?r[n]:void 0,c=o?r[o]:void 0;if(!a||!c)return{source:i,target:s};return{source:i,target:s,sourceId:n,targetId:o}}t(Wt,"getEdgeStartEndPoint");function $t(e,r,n,o){e.nodes.forEach((i)=>{let s=r[i.id];if(!s||n.childrenById[s.id]===void 0)return;s.labels=[{text:s.label,width:s?.labelData?.width??50,height:s?.labelData?.height??50}],o.log.debug("UIO node label",s?.labelData?.width,s.padding),s.layoutOptions=At(s,e.config.elk,o.algorithm,o.log),delete s.x,delete s.y,delete s.width,delete s.height})}t($t,"configureSubgraphNodes");function Yt(e,r,n,o){o.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((i,s)=>{o.debug("APA01 processing edge",s,":",i);let a=i.sources[0],c=i.targets[0];if(o.debug("APA01 source:",a,"target:",c),o.debug("APA01 nodeDb[source]:",r[a]),o.debug("APA01 nodeDb[target]:",r[c]),r[a]&&r[c]&&r[a].parentId!==r[c].parentId){let l=kt(a,c,n);G(r,a,l,o),G(r,c,l,o)}})}t(Yt,"configureCrossHierarchyEdges");function G(e,r,n,o){let i=e[r];if(!i)return;if(i.layoutOptions??={},i.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&it(i.metadata?.algorithm))o.debug("Dropping explicit algorithm for node",i.id,"due to cross-boundary edges"),Nt(i.layoutOptions),Object.assign(i.layoutOptions,st(i));if(i.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",i.id!==n&&i.parentId)G(e,i.parentId,n,o)}t(G,"setIncludeChildrenPolicy");async function Kt(e,r,n){let o=globalThis.__mermaidProfiler;try{o?.begin("layoutCore");let i;try{i=await e.layout(r)}finally{o?.end()}return n.debug("APA01 after - success"),n.debug("APA01 layout result:",i),i}catch(i){throw n.error("ELK layout error:",i),i}}t(Kt,"runElkLayout");function jt(e,r,n,o){let i=new Map(e.nodes.map((s)=>[s.id,s]));ht(r.children??[],n,i,0,0,0,o),ft(r.children??[],n,i,r),Qt(e,r,n,o)}t(jt,"applyElkLayoutResult");function ut(e,r=new Set){for(let n of e.children??[])r.add(n.id),ut(n,r);return r}t(ut,"collectDescendantIds");function Vt(e,r,n,o){let i=[];for(let s of e.edges??[]){let a=s.sources?.[0]??s.start,c=s.targets?.[0]??s.end,l=r.has(a)&&r.has(c),u=a===o,h=c===o;if(!l&&!u&&!h)continue;let d=B(a,c,n.parentLookupDb,n.nodeDb);for(let f of s.sections??[]){let g=l?[f.startPoint,...f.bendPoints??[],f.endPoint]:[u?f.startPoint:null,h?f.endPoint:null];for(let m of g)if(m)i.push({x:m.x+d.x,y:m.y+d.y})}}return i}t(Vt,"internalEdgePoints");function ft(e,r,n,o={}){for(let i of e){if(!i?.isGroup)continue;let s=i.children??[];ft(s,r,n,o);let a=r.nodeDb[i.id],c=s.map((x)=>r.nodeDb[x.id]).filter((x)=>x?.offset&&x.width&&x.height);if(!a?.offset||c.length===0)continue;let l=Vt(o,ut(i),r,i.id),u=[...c.map((x)=>x.offset.posX),...c.map((x)=>x.offset.posX+x.width),...l.map((x)=>x.x)],h=[...c.map((x)=>x.offset.posY),...c.map((x)=>x.offset.posY+x.height),...l.map((x)=>x.y)],d=a.offset,f=Math.max(d.posX,Math.min(...u)-O),g=Math.min(d.posX+a.width,Math.max(...u)+O),m=Math.min(d.posY+a.height,Math.max(...h)+O),k=d.posY,p=F(i),y=f,E=g-f;if(E<p){y-=(p-E)/2,E=p;let x=d.posX+a.width;y=Math.max(d.posX,Math.min(y,x-E)),E=Math.min(E,a.width)}let b=m-k;if(b<=0||E<=0)continue;a.elkOrigin??={posX:d.posX,posY:d.posY},a.offset.posX=y,a.offset.width=E,a.offset.height=b,a.width=E,a.height=b,a.x=y+E/2,a.y=k+b/2;let w=n.get(i.id);if(w)w.x=a.x,w.y=a.y,w.width=E,w.height=b}}t(ft,"evenGroupFrames");function ht(e,r,n,o,i,s,a){e.forEach((c)=>{if(!c)return;let l=r.nodeDb[c.id]??c,u=Math.max(c.width,c.labels?c.labels[0]?.width||0:0),h={posX:c.x+o,posY:c.y+i,x:o,y:i,depth:s,width:u,height:c.height};l.offset=h,l.x=h.posX+c.width/2,l.y=h.posY+c.height/2,l.width=c.width,l.height=c.height;let d=n.get(c.id);if(d){d.x=l.x,d.y=l.y,d.width=c.isGroup?Math.max(c.width,c.labelData?.width??0):c.width,d.height=c.height;let f=d;f.labelData=c.labelData,f.labels=c.labels}if(c.isGroup)a.debug("Id abc88 subgraph = ",c.id,c.x,c.y,c.labelData),ht(c.children??[],r,n,h.posX,h.posY,s+1,a);else a.info("Id NODE = ",c.id,c.x,c.y,o,i,`translate(${l.x}, ${l.y})`)})}t(ht,"applyElkNodePositions");var Ae=16,_e=30,A=0.01;function _(e,r){let n=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y);if(n>A&&o<=A)return"h";if(o>A&&n<=A)return"v";return}t(_,"axisOf");function zt(e){let r=j(e)??e,n=[...r].reverse(),o=j(n);if(o)r=o.reverse();return r}t(zt,"straightenTerminalJogs");function j(e){if(e.length<5)return null;let[r,n,o,i]=e,s=_(r,n);if(!s||_(o,i)!==s||_(n,o)!==(s==="h"?"v":"h"))return null;if(Math.hypot(n.x-r.x,n.y-r.y)>_e)return null;let a=s==="h"?Math.abs(o.y-n.y):Math.abs(o.x-n.x);if(a<A||a>Ae)return null;if(!(s==="h"?Math.sign(n.x-r.x)===Math.sign(i.x-o.x):Math.sign(n.y-r.y)===Math.sign(i.y-o.y)))return null;let l=3;while(l+1<e.length&&_(e[l],e[l+1])===s)l++;if(l===e.length-1)return null;let u=[...e];for(let h=2;h<=l;h++)u[h]=s==="h"?{x:e[h].x,y:r.y}:{x:r.x,y:e[h].y};return u.splice(1,2),u}t(j,"straightenFront");function Jt(e,r,n,o){let i=t((u,h,d)=>(h.x-u.x)*(d.y-u.y)-(h.y-u.y)*(d.x-u.x),"side"),s=i(n,o,e),a=i(n,o,r),c=i(e,r,n),l=i(e,r,o);return(s>0&&a<0||s<0&&a>0)&&(c>0&&l<0||c<0&&l>0)}t(Jt,"segmentsCrossStrict");function V(e,r){let n=0;for(let o=0;o<e.length-1;o++)for(let i=0;i<r.length-1;i++)if(Jt(e[o],e[o+1],r[i],r[i+1]))n++;return n}t(V,"crossingCount");function qt(e){let r=e.map((n)=>n.points??[]);for(let[n,o]of e.entries()){let i=r[n];if(i.length<5)continue;let s=zt(i);if(s===i)continue;let a=0,c=0;for(let[l,u]of r.entries()){if(l===n||u.length<2)continue;a+=V(i,u),c+=V(s,u)}if(c>a)continue;o.points=s,r[n]=s}}t(qt,"straightenEdgeTerminals");function Qt(e,r,n,o){let i=new Map(e.edges.map((l)=>[l.id,l])),s=e.config.elk?.straightenEdges!==!1,a=new Map(e.nodes.map((l)=>[l.id,l])),c=new Set;if(r.edges?.forEach((l)=>{if(!l.sections?.length)return;let u=n.nodeDb[l.sources?.[0]??l.start],h=n.nodeDb[l.targets?.[0]??l.end];if(!u||!h)return;let d=l.start??l.sourceId??l.sources?.[0],f=l.end??l.targetId??l.targets?.[0],g=B(d,f,n.parentLookupDb,n.nodeDb),m=l.sections[0];if(u.shape!=="rect33")z(u,{x:m.startPoint.x+g.x,y:m.startPoint.y+g.y},a,c);if(h.shape!=="rect33")z(h,{x:m.endPoint.x+g.x,y:m.endPoint.y+g.y},a,c)}),r.edges?.forEach((l)=>{let u=i.get(l.id);if(!u)return;let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,f=n.nodeDb[h],g=n.nodeDb[d];if(!f||!g)return;if(!l.sections?.length){let x=t((S)=>({x:(S.offset?.posX??S.x??0)+(S.width??0)/2,y:(S.offset?.posY??S.y??0)+(S.height??0)/2}),"centre"),U=x(f),H=x(g);f.x=U.x,f.y=U.y,g.x=H.x,g.y=H.y;let D=J([U,H],f,g,o);u.points=D,u.curve="linear";let dt=D[0],gt=D[D.length-1];u.x=(dt.x+gt.x)/2,u.y=(dt.y+gt.y)/2,o.debug("APA18 no edge sections, using a straight line",l.id,u.points);return}let m=l.start??l.sourceId??h,k=l.end??l.targetId??d,p=B(m,k,n.parentLookupDb,n.nodeDb);o.debug("APA18 offset",p,m," ==> ",k,"edge:",l,f);let y=l.sections[0],E=Zt(y,p);if(f.x=f.offset.posX+f.width/2,f.y=f.offset.posY+f.height/2,g.x=g.offset.posX+g.width/2,g.y=g.offset.posY+g.height/2,f.shape!=="rect33")E.unshift({x:f.x,y:f.y});if(g.shape!=="rect33")E.push({x:g.x,y:g.y});let b=J(E,f,g,o);u.points=ie(oe(b,I(g),re(u),o),I(f),ne(u),o),u.curve="rounded";let w=l.labels?.[0];if(w)u.x=w.x+p.x+w.width/2,u.y=w.y+p.y+w.height/2}),s)qt(e.edges)}t(Qt,"applyElkEdgeLayout");function z(e,r,n,o){let i=e.width??0,s=e.height??0,a=e.offset.posY,c=a+s,l=0.5,u=Math.abs(r.y-a)<=0.5||Math.abs(r.y-c)<=0.5;if((u?i:s)>=2*N)return;if(o.has(e.id))return;o.add(e.id);let h=u?r.x-(e.offset.posX+i/2):r.y-(e.offset.posY+s/2);if(Math.abs(h)<0.01)return;if(u)e.offset.posX+=h,e.x=e.offset.posX+i/2;else e.offset.posY+=h,e.y=e.offset.posY+s/2;let d=n.get(e.id);if(d)d.x=e.offset.posX+i/2,d.y=e.offset.posY+s/2}t(z,"alignDegenerateNodeToAnchor");function Zt(e,r){let{startPoint:n,endPoint:o}=e,s=(e.bendPoints?e.bendPoints:[]).map((a)=>({x:a.x+r.x,y:a.y+r.y}));return[{x:n.x+r.x,y:n.y+r.y},...s,{x:o.x+r.x,y:o.y+r.y}]}t(Zt,"createEdgePointsFromSection");function B(e,r,n,o){let i=kt(e,r,n);if(i===void 0||i==="root")return{x:0,y:0};let s=o[i],a=s?.elkOrigin??s?.offset;return{x:a?.posX??0,y:a?.posY??0}}t(B,"calcOffset");function J(e,r,n,o){let i=Array.isArray(e)?[...e]:[],s=I(n);o.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",s,v(s,e[e.length-1]));let a;{let c=I(r),l=I(n),u=!!r?.isGroup,h=!!n?.isGroup,{candidate:d,centerApprox:f}=Z(i,r,"start"),{candidate:g,centerApprox:m}=Z(i,n,"end"),k=u&&v(c,d),p=h&&v(l,g);if(tt(i,"start",k&&f),tt(i,"end",p&&m),u&&!k)k=et(i,c,"start");if(h&&!p)p=et(i,l,"end");if(k||p){if(!k)he(i,r,c,o);if(!p)de(i,n,l,o);o.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:p,startCenterApprox:f,endCenterApprox:m,startCandidate:d,endCandidate:g}),a=i}else a=ge(r,n,i,o)}if(o.debug("PPP cutter2: Points after cutter2:",JSON.stringify(a)),!Array.isArray(a)||a.length<2||te(a)){o.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",a);let c=i.filter((l)=>Number.isFinite(l?.x)&&Number.isFinite(l?.y));a=c.length>=2?c:i}return o.debug("UIO cutter2: Points after cutter2 (sanitized):",a),ee(a,o)}t(J,"sanitizeElkEdgePoints");function te(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}t(te,"hasInvalidPoint");function ee(e,r){let n=e.filter((o,i,s)=>{if(i===0)return!0;let a=s[i-1];return Math.abs(o.x-a.x)>0.000001||Math.abs(o.y-a.y)>0.000001});if(n.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:n});return n}t(ee,"dedupeConsecutivePoints");function re(e){return It(e.arrowTypeEnd)}t(re,"getEndMarkerPathOffset");function ne(e){return It(e.arrowTypeStart)}t(ne,"getStartMarkerPathOffset");function ie(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[0],s=e[1],a=Math.hypot(s.x-i.x,s.y-i.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[i,...e.slice(2)];return o.debug("UIO cutter2: removed short start marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(ie,"ensureStartMarkerSegmentLength");function oe(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[e.length-1],s=e[e.length-2],a=Math.hypot(i.x-s.x,i.y-s.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[...e.slice(0,-2),i];return o.debug("UIO cutter2: removed short end marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(oe,"ensureEndMarkerSegmentLength");function se(e,r){let n=e.edges.defaultInterpolate,o=e.edges.defaultStyle,i=r.getConfig();e.edges.forEach((s)=>{let a=ue(s,{defaultStyle:o,defaultInterpolate:n,confCurve:i.curve},r);Object.assign(s,a)})}t(se,"applyElkEdgeRenderData");function ae(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}t(ae,"buildFallbackEdgeClasses");function ce(e,r,n){let o="normal",i="solid",s=[],a=[];if(e==="dotted")i="dotted",s=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")o="thick",s=["stroke-width: 3.5px","fill:none"];else if(s=r??["fill:none"],n!==void 0)a=n;return{thickness:o,pattern:i,style:s,labelStyle:a}}t(ce,"computeStroke");function le(e,r,n){if(e!==void 0)return e;if(r!==void 0)return r;return n}t(le,"getCurve");function ue(e,r,n){let o={};o.minlen=e.minlen??e.length??1,o.text=e.text??e.label,o.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let i=xt[e.type??"arrow_open"]??xt.arrow_open;o.arrowTypeStart=e.arrowTypeStart??i[0],o.arrowTypeEnd=e.arrowTypeEnd??i[1],o.startLabelRight=e.startLabelRight,o.endLabelLeft=e.endLabelLeft;let s=ce(e.stroke,r.defaultStyle,r.defaultLabelStyle);o.thickness=e.thickness??s.thickness,o.pattern=e.pattern??s.pattern,o.style=e.style??s.style,o.labelStyle=e.labelStyle??s.labelStyle,o.classes=ae(e),o.curve=n.interpolateToCurve(le(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),sa);let a=(o.text??"")!=="";if(e.arrowheadStyle!==void 0)o.arrowheadStyle=e.arrowheadStyle;else if(a||e.style!==void 0)o.arrowheadStyle="fill: #333";return o.labelpos=e.labelpos??(a?"c":void 0),o.labelType=e.labelType,o.label=(e.label??o.text??"").replace(n.common.lineBreakRegex,`
|
|
2
2
|
`),o}t(ue,"buildEdgeData");function fe(e){return Math.max(e.width??0,F(e))}t(fe,"getEffectiveGroupWidth");function I(e){let r=e?.isGroup?fe(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:r??0,height:e.height??0,padding:e.padding}}t(I,"boundsFor");function q(e,r,n=0.000001){return Math.abs(e-r)<n}t(q,"approxEq");function Q(e,r){return q(e.x,r.x??0)&&q(e.y,r.y??0)}t(Q,"isCenterApprox");function Z(e,r,n){if(!e?.length)return{candidate:{x:r.x??0,y:r.y??0},centerApprox:!0};if(n==="start"){let o=e[0],i=Q(o,r);return{candidate:i&&e.length>1?e[1]:o,centerApprox:i}}else{let o=e[e.length-1],i=Q(o,r);return{candidate:i&&e.length>1?e[e.length-2]:o,centerApprox:i}}}t(Z,"getCandidateBorderPoint");function tt(e,r,n){if(!n)return;if(r==="start"){if(e.length>0)e.shift()}else if(e.length>0)e.pop()}t(tt,"dropAutoCenterPoint");function et(e,r,n){let o=n==="start"?1:-1,i=n==="start"?0:e.length-1,s=i;while(i>=0&&i<e.length&&!T(r,e[i]))i+=o;if(i===s||i<0||i>=e.length)return!1;let a=e[i],c=e[i-o],l=a.x-c.x,u=a.y-c.y,h=l===0?1/0:(r.x+Math.sign(l)*r.width/2-c.x)/l,d=u===0?1/0:(r.y+Math.sign(u)*r.height/2-c.y)/u,f=Math.min(h,d),g={x:c.x+f*l,y:c.y+f*u};if(n==="start")e.splice(0,i,g);else e.splice(i+1,e.length-i-1,g);return!0}t(et,"clipGroupEndpoint");function he(e,r,n,o){let i=-1;for(let[s,a]of e.entries())if(T(n,a)){i=s;break}if(i!==-1){let s=e[i],a=e[0],c=C(r,n,s,a);L(e,"start",c),o.debug("UIO cutter2: start-only intersection applied",{startIntersection:c})}}t(he,"applyStartIntersectionIfNeeded");function de(e,r,n,o){let i=-1;for(let s=e.length-1;s>=0;s--)if(T(n,e[s])){i=s;break}if(i!==-1){let s=e[i],a=e[e.length-1],c=C(r,n,s,a);L(e,"end",c),o.debug("UIO cutter2: end-only intersection applied",{endIntersection:c})}}t(de,"applyEndIntersectionIfNeeded");function rt(e,r,n,o,i){if(e?.isGroup)return null;let s=n[o],a=n[o+i];if(!s||!a)return null;return Me(e,r,s,a)}t(rt,"attachAlongDepartureAxis");function ge(e,r,n,o){let i=I(e),s=I(r);if(n.length===0)return[];let a=[...n],c=a[0],l=a[a.length-1];o.debug("PPP cutter2: bounds",{startBounds:i,endBounds:s}),o.debug("PPP cutter2: original points",n);let u=-1;for(let[f,g]of a.entries())if(u===-1&&T(i,g))u=f;if(u!==-1){let f=a[u],g=rt(e,i,a,u,1)??C(e,i,f,c);o.debug("UIO cutter2: start intersection",g),L(a,"start",g)}let h=null,d=-1;for(let f=a.length-1;f>=0;f--)if(T(s,a[f])){h=a[f],d=f;break}if(!h&&a.length>1)h=a[a.length-2],d=a.length-2;if(h){let f=rt(r,s,a,d,-1)??C(r,s,h,l);o.debug("UIO cutter2: end intersection",{endIntersection:f,outsideIndexForEnd:d}),L(a,"end",f)}if(a.length>1){let f=a[a.length-1],g=a[a.length-2],m=Math.sqrt((f.x-g.x)**2+(f.y-g.y)**2);if(m<2)o.debug("UIO cutter2: trimming tail point (too close)",{distance:m,lastPoint:f,secondLastPoint:g}),a.pop()}return o.debug("UIO cutter2: final points",a),a}t(ge,"cutter2");export{Ve as render};
|
package/dist/client/static/js/{erDiagram-OPXOYQCR-5r3fmdnz.js → erDiagram-OPXOYQCR-agjdsm1b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,ti,l,ot,ia,x,R,L,z,O,U,j,G,p,h,W,gn,wu,st,Ye,Je,Mr,_t,St,Tt,lt}from"./index-ctgefatv.js";var we=function(){var s=t(function(Z,n,c,f){for(c=c||{},f=Z.length;f--;c[Z[f]]=n);return c},"o"),o=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],u=[1,9],g=[1,10],S=[1,11],y=[1,12],T=[1,30],k=[1,23],_=[1,24],v=[1,25],q=[1,26],X=[1,27],C=[1,19],V=[1,28],te=[1,29],D=[1,20],M=[1,18],B=[1,21],F=[1,22],Ve=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Se=[1,36],Te=[1,37],Ce=[1,38],Oe=[1,39],Ne=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],Y=[1,46],P=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],K=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Me=[69,70,71,72,73],Be=[1,91],Ge=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],Fe=[1,110],Pe=[1,109],ze=[20,43,51,53,54,55],xe=[18,61,64,66],Ae={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(n,c,f,r,m,e,he){var i=e.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(o,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},s(o,Ve,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:Y,44:P},{15:48,43:Y,44:P},{15:49,43:Y,44:P},{10:50,43:C,51:D,53:M,54:B,55:F},{10:51,43:C,51:D,53:M,54:B,55:F},{15:52,43:Y,44:P},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:C,51:D,53:M,54:B,55:F},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},{12:ae,42:64,44:ne,45:K,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:Y,44:P,45:K},{12:ae,42:73,44:ne,45:K,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:K,69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Se,70:Te,71:Ce,72:Oe,73:Ne},s(Me,[2,82]),s(Me,[2,83]),s(d,[2,31]),s(d,Ve),{6:de,9:be,35:90,45:Be,50:pe},{43:[1,92],44:[1,93]},s(Ge,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:K}),{6:de,9:be,35:95,45:Be,50:pe},s(d,[2,32]),{10:97,36:96,43:C,51:D,53:M,54:B,55:F},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:Y,44:P},{10:103,43:C,51:D,53:M,54:B,55:F},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:Fe,66:Pe}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:C,51:D,53:M,54:B,55:F},s(ze,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:Pe}),s(ce,[2,67]),s(xe,[2,72]),s(ce,[2,75]),s(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:Y,44:P},s(Ge,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(ze,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:Y,44:P},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:Fe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:K}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:K},s(d,[2,9]),s(xe,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(n,c){if(c.recoverable)this.trace(n);else{var f=Error(n);throw f.hash=c,f}},"parseError"),parse:t(function(n){var c=this,f=[0],r=[],m=[null],e=[],he=this.table,i="",_e=0,Ue=0,Ke=0,Xe=2,Ze=1,$e=e.slice.call(arguments,1),E=Object.create(this.lexer),H={yy:{}};for(var Ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ie))H.yy[Ie]=this.yy[Ie];if(E.setInput(n,H.yy),H.yy.lexer=E,H.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var Re=E.yylloc;e.push(Re);var et=E.options&&E.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(I){f.length=f.length-2*I,m.length=m.length-I,e.length=e.length-I}t(tt,"popStack");function je(){var I=r.pop()||E.lex()||Ze;if(typeof I!=="number"){if(I instanceof Array)r=I,I=r.pop();I=c.symbols_[I]||I}return I}t(je,"lex");var N,ve,Q,A,ut,De,ee={},me,w,qe,Ee;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])A=this.defaultActions[Q];else{if(N===null||typeof N>"u")N=je();A=he[Q]&&he[Q][N]}if(typeof A>"u"||!A.length||!A[0]){var Le="";Ee=[];for(me in he[Q])if(this.terminals_[me]&&me>Xe)Ee.push("'"+this.terminals_[me]+"'");if(E.showPosition)Le="Parse error on line "+(_e+1)+`:
|
|
1
|
+
import{t,ti,l,ot,ia,x,R,L,z,O,U,j,G,p,h,W,gn,wu,st,Ye,Je,Mr,_t,St,Tt,lt}from"./index-302d35e5.js";var we=function(){var s=t(function(Z,n,c,f){for(c=c||{},f=Z.length;f--;c[Z[f]]=n);return c},"o"),o=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],u=[1,9],g=[1,10],S=[1,11],y=[1,12],T=[1,30],k=[1,23],_=[1,24],v=[1,25],q=[1,26],X=[1,27],C=[1,19],V=[1,28],te=[1,29],D=[1,20],M=[1,18],B=[1,21],F=[1,22],Ve=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Se=[1,36],Te=[1,37],Ce=[1,38],Oe=[1,39],Ne=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],Y=[1,46],P=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],K=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Me=[69,70,71,72,73],Be=[1,91],Ge=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],Fe=[1,110],Pe=[1,109],ze=[20,43,51,53,54,55],xe=[18,61,64,66],Ae={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(n,c,f,r,m,e,he){var i=e.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(o,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},s(o,Ve,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:Y,44:P},{15:48,43:Y,44:P},{15:49,43:Y,44:P},{10:50,43:C,51:D,53:M,54:B,55:F},{10:51,43:C,51:D,53:M,54:B,55:F},{15:52,43:Y,44:P},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:C,51:D,53:M,54:B,55:F},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},{12:ae,42:64,44:ne,45:K,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:Y,44:P,45:K},{12:ae,42:73,44:ne,45:K,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:K,69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Se,70:Te,71:Ce,72:Oe,73:Ne},s(Me,[2,82]),s(Me,[2,83]),s(d,[2,31]),s(d,Ve),{6:de,9:be,35:90,45:Be,50:pe},{43:[1,92],44:[1,93]},s(Ge,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:K}),{6:de,9:be,35:95,45:Be,50:pe},s(d,[2,32]),{10:97,36:96,43:C,51:D,53:M,54:B,55:F},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:Y,44:P},{10:103,43:C,51:D,53:M,54:B,55:F},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:Fe,66:Pe}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:C,51:D,53:M,54:B,55:F},s(ze,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:Pe}),s(ce,[2,67]),s(xe,[2,72]),s(ce,[2,75]),s(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:Y,44:P},s(Ge,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(ze,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:Y,44:P},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:Fe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:K}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:K},s(d,[2,9]),s(xe,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(n,c){if(c.recoverable)this.trace(n);else{var f=Error(n);throw f.hash=c,f}},"parseError"),parse:t(function(n){var c=this,f=[0],r=[],m=[null],e=[],he=this.table,i="",_e=0,Ue=0,Ke=0,Xe=2,Ze=1,$e=e.slice.call(arguments,1),E=Object.create(this.lexer),H={yy:{}};for(var Ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ie))H.yy[Ie]=this.yy[Ie];if(E.setInput(n,H.yy),H.yy.lexer=E,H.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var Re=E.yylloc;e.push(Re);var et=E.options&&E.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(I){f.length=f.length-2*I,m.length=m.length-I,e.length=e.length-I}t(tt,"popStack");function je(){var I=r.pop()||E.lex()||Ze;if(typeof I!=="number"){if(I instanceof Array)r=I,I=r.pop();I=c.symbols_[I]||I}return I}t(je,"lex");var N,ve,Q,A,ut,De,ee={},me,w,qe,Ee;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])A=this.defaultActions[Q];else{if(N===null||typeof N>"u")N=je();A=he[Q]&&he[Q][N]}if(typeof A>"u"||!A.length||!A[0]){var Le="";Ee=[];for(me in he[Q])if(this.terminals_[me]&&me>Xe)Ee.push("'"+this.terminals_[me]+"'");if(E.showPosition)Le="Parse error on line "+(_e+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Le="Parse error on line "+(_e+1)+": Unexpected "+(N==Ze?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Le,{text:E.match,token:this.terminals_[N]||N,line:E.yylineno,loc:Re,expected:Ee})}if(A[0]instanceof Array&&A.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+N);switch(A[0]){case 1:if(f.push(N),m.push(E.yytext),e.push(E.yylloc),f.push(A[1]),N=null,!ve){if(Ue=E.yyleng,i=E.yytext,_e=E.yylineno,Re=E.yylloc,Ke>0)Ke--}else N=ve,ve=null;break;case 2:if(w=this.productions_[A[1]][1],ee.$=m[m.length-w],ee._$={first_line:e[e.length-(w||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(w||1)].first_column,last_column:e[e.length-1].last_column},et)ee._$.range=[e[e.length-(w||1)].range[0],e[e.length-1].range[1]];if(De=this.performAction.apply(ee,[i,Ue,_e,H.yy,A[1],m,e].concat($e)),typeof De<"u")return De;if(w)f=f.slice(0,-1*w*2),m=m.slice(0,-1*w),e=e.slice(0,-1*w);f.push(this.productions_[A[1]][0]),m.push(ee.$),e.push(ee._$),qe=he[f[f.length-2]][f[f.length-1]],f.push(qe);break;case 3:return!0}}return!0},"parse")},Qe=function(){var Z={EOF:1,parseError:t(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw Error(c)},"parseError"),setInput:t(function(n,c){if(this.yy=c||this.yy||{},this._input=n,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:t(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var c=n.match(/(?:\r\n?|\n).*/g);if(c)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),n},"input"),unput:t(function(n){var c=n.length,f=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),c=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eA}from"./index-55pqvh82.js";var e=Object.freeze(JSON.parse(`{"displayName":"Erlang","fileTypes":["erl","escript","hrl","xrl","yrl"],"name":"erlang","patterns":[{"include":"#module-directive"},{"include":"#import-export-directive"},{"include":"#behaviour-directive"},{"include":"#record-directive"},{"include":"#define-directive"},{"include":"#macro-directive"},{"include":"#doc-directive"},{"include":"#directive"},{"include":"#function"},{"include":"#everything-else"}],"repository":{"atom":{"patterns":[{"begin":"(')","beginCaptures":{"1":{"name":"punctuation.definition.symbol.begin.erlang"}},"end":"(')","endCaptures":{"1":{"name":"punctuation.definition.symbol.end.erlang"}},"name":"constant.other.symbol.quoted.single.erlang","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.other.symbol.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.atom.erlang"}]},{"match":"[a-z][@-Z_a-z\\\\d]*+","name":"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.behaviour.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.behaviour.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(behaviour)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.behaviour.erlang"},"binary":{"begin":"(<<)","beginCaptures":{"1":{"name":"punctuation.definition.binary.begin.erlang"}},"end":"(>>)","endCaptures":{"1":{"name":"punctuation.definition.binary.end.erlang"}},"name":"meta.structure.binary.erlang","patterns":[{"captures":{"1":{"name":"punctuation.separator.binary.erlang"},"2":{"name":"punctuation.separator.value-size.erlang"}},"match":"(,)|(:)"},{"include":"#internal-type-specifiers"},{"include":"#everything-else"}]},"character":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.erlang"},"2":{"name":"constant.character.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"},"5":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\$)((\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2}))","name":"constant.character.erlang"},{"match":"\\\\$\\\\\\\\\\\\^?.?","name":"invalid.illegal.character.erlang"},{"captures":{"1":{"name":"punctuation.definition.character.erlang"}},"match":"(\\\\$)[ \\\\S]","name":"constant.character.erlang"},{"match":"\\\\$.?","name":"invalid.illegal.character.erlang"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.erlang"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.erlang"}},"end":"\\\\n","name":"comment.line.percentage.erlang"}]},"define-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"(?=^\\\\s*+-\\\\s*+define\\\\s*+\\\\(\\\\s*+[@-Z_a-z\\\\d]++\\\\s*+\\\\()","end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*(,)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.separator.parameters.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"\\\\|\\\\||[,.:;|]|->","name":"punctuation.separator.define.erlang"},{"include":"#everything-else"}]}]},"directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(?)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\)?)\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.erlang","patterns":[{"include":"#everything-else"}]},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\.)","name":"meta.directive.erlang"}]},"doc-directive":{"begin":"^\\\\s*+(-)\\\\s*+((module)?doc)\\\\s*(\\\\(\\\\s*)?(~[BSbs]?)?((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.doc.erlang"},"4":{"name":"punctuation.definition.parameters.begin.erlang"},"5":{"name":"storage.type.string.erlang"},"6":{"name":"comment.block.documentation.erlang"},"7":{"name":"punctuation.definition.string.begin.erlang"},"8":{"name":"invalid.illegal.string.erlang"}},"contentName":"meta.embedded.block.markdown","end":"^(\\\\s*(\\\\7))\\\\s*(\\\\)\\\\s*)?(\\\\.)","endCaptures":{"1":{"name":"comment.block.documentation.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"},"3":{"name":"punctuation.section.directive.end.Erlang"}},"name":"meta.directive.doc.erlang","patterns":[{"include":"text.html.markdown"}]},"docstring":{"begin":"(?<!\\")((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"meta.string.quoted.triple.begin.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"},"3":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\2))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.triple.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"everything-else":{"patterns":[{"include":"#comment"},{"include":"#record-usage"},{"include":"#macro-usage"},{"include":"#expression"},{"include":"#keyword"},{"include":"#textual-operator"},{"include":"#language-constant"},{"include":"#function-call"},{"include":"#tuple"},{"include":"#list"},{"include":"#binary"},{"include":"#parenthesized-expression"},{"include":"#character"},{"include":"#number"},{"include":"#atom"},{"include":"#sigil-docstring"},{"include":"#sigil-docstring-verbatim"},{"include":"#sigil-string"},{"include":"#docstring"},{"include":"#string"},{"include":"#symbolic-operator"},{"include":"#variable"}]},"expression":{"patterns":[{"begin":"\\\\b(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.if.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.case.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(receive)\\\\b","beginCaptures":{"1":{"name":"keyword.control.receive.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.receive.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"captures":{"1":{"name":"keyword.control.fun.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"variable.other.erlang"},"6":{"name":"punctuation.separator.module-function.erlang"},"8":{"name":"entity.name.function.erlang"},"9":{"name":"variable.other.erlang"},"10":{"name":"punctuation.separator.function-arity.erlang"}},"match":"\\\\b(fun)\\\\s+((([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*(/)","name":"meta.expression.fun.implicit.erlang"},{"begin":"\\\\b(fun)\\\\s+(([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"},"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s+(?!\\\\()","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s*+(\\\\()(?=(\\\\s*+\\\\()|(\\\\)))","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.fun.erlang","patterns":[{"begin":"(?=\\\\()","end":"(;)|(?=\\\\bend\\\\b)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},{"begin":"\\\\b(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.try.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(begin)\\\\b","beginCaptures":{"1":{"name":"keyword.control.begin.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.begin.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(maybe)\\\\b","beginCaptures":{"1":{"name":"keyword.control.maybe.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.maybe.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]}]},"function":{"begin":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()","beginCaptures":{"1":{"name":"entity.name.function.definition.erlang"}},"end":"(\\\\.)","endCaptures":{"1":{"name":"punctuation.terminator.function.erlang"}},"name":"meta.function.erlang","patterns":[{"captures":{"1":{"name":"entity.name.function.erlang"}},"match":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()"},{"begin":"(?=\\\\()","end":"(;)|(?=\\\\.)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#parenthesized-expression"},{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},"function-call":{"begin":"(?=([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(|:\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"name":"meta.function-call.erlang","patterns":[{"begin":"((erlang)\\\\s*+(:)\\\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\\\s*+(\\\\()","beginCaptures":{"2":{"name":"entity.name.type.class.module.erlang"},"3":{"name":"punctuation.separator.module-function.erlang"},"4":{"name":"entity.name.function.guard.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"begin":"((([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(\\\\()","beginCaptures":{"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"},"7":{"name":"entity.name.function.erlang"},"8":{"name":"variable.other.erlang"},"9":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]}]},"import-export-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(import)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.import.erlang","patterns":[{"include":"#internal-function-list"}]},{"begin":"^\\\\s*+(-)\\\\s*+(export)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.export.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.export.erlang","patterns":[{"include":"#internal-function-list"}]}]},"internal-expression-punctuation":{"captures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"},"2":{"name":"punctuation.separator.clauses.erlang"},"3":{"name":"punctuation.separator.expressions.erlang"}},"match":"(->)|(;)|(,)"},"internal-function-list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.function.erlang","patterns":[{"begin":"([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(/)","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.separator.function-arity.erlang"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.list.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-function-parts":{"patterns":[{"begin":"(?=\\\\()","end":"(->)","endCaptures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"[,;]","name":"punctuation.separator.guards.erlang"},{"include":"#everything-else"}]},{"match":",","name":"punctuation.separator.expressions.erlang"},{"include":"#everything-else"}]},"internal-record-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.class.record.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.class.record.end.erlang"}},"name":"meta.structure.record.erlang","patterns":[{"begin":"(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_))","beginCaptures":{"2":{"name":"variable.other.field.erlang"},"3":{"name":"variable.language.omitted.field.erlang"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.class.record.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-string-body":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.character.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.string.erlang"},{"include":"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"},"6":{"name":"punctuation.separator.placeholder-parts.erlang"},"10":{"name":"punctuation.separator.placeholder-parts.erlang"}},"match":"(~)((-)?\\\\d++|(\\\\*))?((\\\\.)(\\\\d++|(\\\\*))?((\\\\.)((\\\\*)|.))?)?[Kklt]*[#+BPWXbcefginpswx~]","name":"constant.character.format.placeholder.other.erlang"},{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"}},"match":"(~)(\\\\*)?(\\\\d++)?(t)?[-#acdflsu~]","name":"constant.character.format.placeholder.other.erlang"},{"match":"~[^\\"]?","name":"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{"begin":"(/)","beginCaptures":{"1":{"name":"punctuation.separator.value-type.erlang"}},"end":"(?=[,:]|>>)","patterns":[{"captures":{"1":{"name":"storage.type.erlang"},"2":{"name":"storage.modifier.signedness.erlang"},"3":{"name":"storage.modifier.endianness.erlang"},"4":{"name":"storage.modifier.unit.erlang"},"5":{"name":"punctuation.separator.unit-specifiers.erlang"},"6":{"name":"constant.numeric.integer.decimal.erlang"},"7":{"name":"punctuation.separator.type-specifiers.erlang"}},"match":"(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)(\\\\d++)|(-)"}]},"keyword":{"match":"\\\\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\\\\b","name":"keyword.control.erlang"},"language-constant":{"match":"\\\\b(false|true|undefined)\\\\b","name":"constant.language"},"list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.erlang","patterns":[{"match":"\\\\|\\\\|??|,","name":"punctuation.separator.list.erlang"},{"include":"#everything-else"}]},"macro-directive":{"patterns":[{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifdef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifdef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifdef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifndef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifndef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifndef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.undef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(undef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.undef.erlang"}]},"macro-usage":{"captures":{"1":{"name":"keyword.operator.macro.erlang"},"2":{"name":"entity.name.function.macro.erlang"}},"match":"(\\\\?\\\\??)\\\\s*+([@-Z_a-z\\\\d]++)","name":"meta.macro-usage.erlang"},"module-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.module.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(module)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.module.erlang"},"number":{"begin":"(?=\\\\d)","end":"(?!\\\\d)","patterns":[{"captures":{"1":{"name":"punctuation.separator.integer-float.erlang"},"2":{"name":"punctuation.separator.float-exponent.erlang"}},"match":"\\\\d++(\\\\.)\\\\d++([Ee][-+]?\\\\d++)?","name":"constant.numeric.float.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"2(#)([01]++_)*[01]++","name":"constant.numeric.integer.binary.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"3(#)([012]++_)*[012]++","name":"constant.numeric.integer.base-3.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"4(#)([0-3]++_)*[0-3]++","name":"constant.numeric.integer.base-4.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"5(#)([0-4]++_)*[0-4]++","name":"constant.numeric.integer.base-5.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"6(#)([0-5]++_)*[0-5]++","name":"constant.numeric.integer.base-6.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"7(#)([0-6]++_)*[0-6]++","name":"constant.numeric.integer.base-7.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"8(#)([0-7]++_)*[0-7]++","name":"constant.numeric.integer.octal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"9(#)([0-8]++_)*[0-8]++","name":"constant.numeric.integer.base-9.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"10(#)(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"11(#)([Aa\\\\d]++_)*[Aa\\\\d]++","name":"constant.numeric.integer.base-11.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"12(#)([ABab\\\\d]++_)*[ABab\\\\d]++","name":"constant.numeric.integer.base-12.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"13(#)([ABCabc\\\\d]++_)*[ABCabc\\\\d]++","name":"constant.numeric.integer.base-13.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"14(#)([A-Da-d\\\\d]++_)*[A-Da-d\\\\d]++","name":"constant.numeric.integer.base-14.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"15(#)([A-Ea-e\\\\d]++_)*[A-Ea-e\\\\d]++","name":"constant.numeric.integer.base-15.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"16(#)([A-Fa-f\\\\d]++_)*[A-Fa-f\\\\d]++","name":"constant.numeric.integer.hexadecimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"17(#)([A-Ga-g\\\\d]++_)*[A-Ga-g\\\\d]++","name":"constant.numeric.integer.base-17.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"18(#)([A-Ha-h\\\\d]++_)*[A-Ha-h\\\\d]++","name":"constant.numeric.integer.base-18.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"19(#)([A-Ia-i\\\\d]++_)*[A-Ia-i\\\\d]++","name":"constant.numeric.integer.base-19.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"20(#)([A-Ja-j\\\\d]++_)*[A-Ja-j\\\\d]++","name":"constant.numeric.integer.base-20.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"21(#)([A-Ka-k\\\\d]++_)*[A-Ka-k\\\\d]++","name":"constant.numeric.integer.base-21.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"22(#)([A-La-l\\\\d]++_)*[A-La-l\\\\d]++","name":"constant.numeric.integer.base-22.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"23(#)([A-Ma-m\\\\d]++_)*[A-Ma-m\\\\d]++","name":"constant.numeric.integer.base-23.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"24(#)([A-Na-n\\\\d]++_)*[A-Na-n\\\\d]++","name":"constant.numeric.integer.base-24.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"25(#)([A-Oa-o\\\\d]++_)*[A-Oa-o\\\\d]++","name":"constant.numeric.integer.base-25.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"26(#)([A-Pa-p\\\\d]++_)*[A-Pa-p\\\\d]++","name":"constant.numeric.integer.base-26.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"27(#)([A-Qa-q\\\\d]++_)*[A-Qa-q\\\\d]++","name":"constant.numeric.integer.base-27.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"28(#)([A-Ra-r\\\\d]++_)*[A-Ra-r\\\\d]++","name":"constant.numeric.integer.base-28.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"29(#)([A-Sa-s\\\\d]++_)*[A-Sa-s\\\\d]++","name":"constant.numeric.integer.base-29.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"30(#)([A-Ta-t\\\\d]++_)*[A-Ta-t\\\\d]++","name":"constant.numeric.integer.base-30.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"31(#)([A-Ua-u\\\\d]++_)*[A-Ua-u\\\\d]++","name":"constant.numeric.integer.base-31.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"32(#)([A-Va-v\\\\d]++_)*[A-Va-v\\\\d]++","name":"constant.numeric.integer.base-32.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"33(#)([A-Wa-w\\\\d]++_)*[A-Wa-w\\\\d]++","name":"constant.numeric.integer.base-33.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"34(#)([A-Xa-x\\\\d]++_)*[A-Xa-x\\\\d]++","name":"constant.numeric.integer.base-34.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"35(#)([A-Ya-y\\\\d]++_)*[A-Ya-y\\\\d]++","name":"constant.numeric.integer.base-35.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"36(#)([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"constant.numeric.integer.base-36.erlang"},{"match":"\\\\d++#([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"invalid.illegal.integer.erlang"},{"match":"(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.erlang"}},"name":"meta.expression.parenthesized","patterns":[{"include":"#everything-else"}]},"record-directive":{"begin":"^\\\\s*+(-)\\\\s*+(record)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.record.definition.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.record.erlang","patterns":[{"include":"#internal-record-body"},{"include":"#comment"}]},"record-usage":{"patterns":[{"captures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"},"3":{"name":"punctuation.separator.record-field.erlang"},"4":{"name":"variable.other.field.erlang"}},"match":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(\\\\.)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","name":"meta.record-usage.erlang"},{"begin":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","beginCaptures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"}},"end":"(?<=})","name":"meta.record-usage.erlang","patterns":[{"include":"#internal-record-body"}]}]},"sigil-docstring":{"begin":"(~[bs])((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-docstring-verbatim":{"begin":"(~[BS]?)((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string":{"patterns":[{"include":"#sigil-string-parenthesis"},{"include":"#sigil-string-parenthesis-verbatim"},{"include":"#sigil-string-curly-brackets"},{"include":"#sigil-string-curly-brackets-verbatim"},{"include":"#sigil-string-square-brackets"},{"include":"#sigil-string-square-brackets-verbatim"},{"include":"#sigil-string-less-greater"},{"include":"#sigil-string-less-greater-verbatim"},{"include":"#sigil-string-single-character"},{"include":"#sigil-string-single-character-verbatim"},{"include":"#sigil-string-single-quote"},{"include":"#sigil-string-single-quote-verbatim"},{"include":"#sigil-string-double-quote"},{"include":"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{"begin":"(~[bs]?)(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{"begin":"(~[BS])(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{"begin":"(~[bs]?)(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{"begin":"(~[BS])(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{"begin":"(~[bs]?)(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{"begin":"(~[BS])(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{"begin":"(~[bs]?)(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{"begin":"(~[BS])(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-character":{"begin":"(~[bs]?)([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-character-verbatim":{"begin":"(~[BS])([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{"begin":"(~[bs]?)(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{"begin":"(~[BS])(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{"begin":"(~[bs]?)(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{"begin":"(~[BS])(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.erlang","patterns":[{"include":"#internal-string-body"}]},"symbolic-operator":{"match":"\\\\+\\\\+?|--|[-*]|/=?|=/=|=:=|==|=<?|<-?|>=|[!>]|::|\\\\?=","name":"keyword.operator.symbolic.erlang"},"textual-operator":{"match":"\\\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\\\b","name":"keyword.operator.textual.erlang"},"tuple":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.tuple.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.tuple.end.erlang"}},"name":"meta.structure.tuple.erlang","patterns":[{"match":",","name":"punctuation.separator.tuple.erlang"},{"include":"#everything-else"}]},"variable":{"captures":{"1":{"name":"variable.other.erlang"},"2":{"name":"variable.language.omitted.erlang"}},"match":"(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)|(_)"}},"scopeName":"source.erlang","embeddedLangs":["markdown"],"aliases":["erl"]}`)),a=[...eA,e];export{a as default};
|
|
1
|
+
import{Zf}from"./index-h7pn9qw6.js";var e=Object.freeze(JSON.parse(`{"displayName":"Erlang","fileTypes":["erl","escript","hrl","xrl","yrl"],"name":"erlang","patterns":[{"include":"#module-directive"},{"include":"#import-export-directive"},{"include":"#behaviour-directive"},{"include":"#record-directive"},{"include":"#define-directive"},{"include":"#macro-directive"},{"include":"#doc-directive"},{"include":"#directive"},{"include":"#function"},{"include":"#everything-else"}],"repository":{"atom":{"patterns":[{"begin":"(')","beginCaptures":{"1":{"name":"punctuation.definition.symbol.begin.erlang"}},"end":"(')","endCaptures":{"1":{"name":"punctuation.definition.symbol.end.erlang"}},"name":"constant.other.symbol.quoted.single.erlang","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.other.symbol.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.atom.erlang"}]},{"match":"[a-z][@-Z_a-z\\\\d]*+","name":"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.behaviour.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.behaviour.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(behaviour)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.behaviour.erlang"},"binary":{"begin":"(<<)","beginCaptures":{"1":{"name":"punctuation.definition.binary.begin.erlang"}},"end":"(>>)","endCaptures":{"1":{"name":"punctuation.definition.binary.end.erlang"}},"name":"meta.structure.binary.erlang","patterns":[{"captures":{"1":{"name":"punctuation.separator.binary.erlang"},"2":{"name":"punctuation.separator.value-size.erlang"}},"match":"(,)|(:)"},{"include":"#internal-type-specifiers"},{"include":"#everything-else"}]},"character":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.erlang"},"2":{"name":"constant.character.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"},"5":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\$)((\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2}))","name":"constant.character.erlang"},{"match":"\\\\$\\\\\\\\\\\\^?.?","name":"invalid.illegal.character.erlang"},{"captures":{"1":{"name":"punctuation.definition.character.erlang"}},"match":"(\\\\$)[ \\\\S]","name":"constant.character.erlang"},{"match":"\\\\$.?","name":"invalid.illegal.character.erlang"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.erlang"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.erlang"}},"end":"\\\\n","name":"comment.line.percentage.erlang"}]},"define-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"(?=^\\\\s*+-\\\\s*+define\\\\s*+\\\\(\\\\s*+[@-Z_a-z\\\\d]++\\\\s*+\\\\()","end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*(,)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.separator.parameters.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"\\\\|\\\\||[,.:;|]|->","name":"punctuation.separator.define.erlang"},{"include":"#everything-else"}]}]},"directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(?)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\)?)\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.erlang","patterns":[{"include":"#everything-else"}]},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\.)","name":"meta.directive.erlang"}]},"doc-directive":{"begin":"^\\\\s*+(-)\\\\s*+((module)?doc)\\\\s*(\\\\(\\\\s*)?(~[BSbs]?)?((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.doc.erlang"},"4":{"name":"punctuation.definition.parameters.begin.erlang"},"5":{"name":"storage.type.string.erlang"},"6":{"name":"comment.block.documentation.erlang"},"7":{"name":"punctuation.definition.string.begin.erlang"},"8":{"name":"invalid.illegal.string.erlang"}},"contentName":"meta.embedded.block.markdown","end":"^(\\\\s*(\\\\7))\\\\s*(\\\\)\\\\s*)?(\\\\.)","endCaptures":{"1":{"name":"comment.block.documentation.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"},"3":{"name":"punctuation.section.directive.end.Erlang"}},"name":"meta.directive.doc.erlang","patterns":[{"include":"text.html.markdown"}]},"docstring":{"begin":"(?<!\\")((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"meta.string.quoted.triple.begin.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"},"3":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\2))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.triple.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"everything-else":{"patterns":[{"include":"#comment"},{"include":"#record-usage"},{"include":"#macro-usage"},{"include":"#expression"},{"include":"#keyword"},{"include":"#textual-operator"},{"include":"#language-constant"},{"include":"#function-call"},{"include":"#tuple"},{"include":"#list"},{"include":"#binary"},{"include":"#parenthesized-expression"},{"include":"#character"},{"include":"#number"},{"include":"#atom"},{"include":"#sigil-docstring"},{"include":"#sigil-docstring-verbatim"},{"include":"#sigil-string"},{"include":"#docstring"},{"include":"#string"},{"include":"#symbolic-operator"},{"include":"#variable"}]},"expression":{"patterns":[{"begin":"\\\\b(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.if.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.case.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(receive)\\\\b","beginCaptures":{"1":{"name":"keyword.control.receive.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.receive.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"captures":{"1":{"name":"keyword.control.fun.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"variable.other.erlang"},"6":{"name":"punctuation.separator.module-function.erlang"},"8":{"name":"entity.name.function.erlang"},"9":{"name":"variable.other.erlang"},"10":{"name":"punctuation.separator.function-arity.erlang"}},"match":"\\\\b(fun)\\\\s+((([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*(/)","name":"meta.expression.fun.implicit.erlang"},{"begin":"\\\\b(fun)\\\\s+(([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"},"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s+(?!\\\\()","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s*+(\\\\()(?=(\\\\s*+\\\\()|(\\\\)))","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.fun.erlang","patterns":[{"begin":"(?=\\\\()","end":"(;)|(?=\\\\bend\\\\b)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},{"begin":"\\\\b(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.try.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(begin)\\\\b","beginCaptures":{"1":{"name":"keyword.control.begin.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.begin.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(maybe)\\\\b","beginCaptures":{"1":{"name":"keyword.control.maybe.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.maybe.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]}]},"function":{"begin":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()","beginCaptures":{"1":{"name":"entity.name.function.definition.erlang"}},"end":"(\\\\.)","endCaptures":{"1":{"name":"punctuation.terminator.function.erlang"}},"name":"meta.function.erlang","patterns":[{"captures":{"1":{"name":"entity.name.function.erlang"}},"match":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()"},{"begin":"(?=\\\\()","end":"(;)|(?=\\\\.)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#parenthesized-expression"},{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},"function-call":{"begin":"(?=([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(|:\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"name":"meta.function-call.erlang","patterns":[{"begin":"((erlang)\\\\s*+(:)\\\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\\\s*+(\\\\()","beginCaptures":{"2":{"name":"entity.name.type.class.module.erlang"},"3":{"name":"punctuation.separator.module-function.erlang"},"4":{"name":"entity.name.function.guard.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"begin":"((([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(\\\\()","beginCaptures":{"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"},"7":{"name":"entity.name.function.erlang"},"8":{"name":"variable.other.erlang"},"9":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]}]},"import-export-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(import)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.import.erlang","patterns":[{"include":"#internal-function-list"}]},{"begin":"^\\\\s*+(-)\\\\s*+(export)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.export.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.export.erlang","patterns":[{"include":"#internal-function-list"}]}]},"internal-expression-punctuation":{"captures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"},"2":{"name":"punctuation.separator.clauses.erlang"},"3":{"name":"punctuation.separator.expressions.erlang"}},"match":"(->)|(;)|(,)"},"internal-function-list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.function.erlang","patterns":[{"begin":"([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(/)","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.separator.function-arity.erlang"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.list.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-function-parts":{"patterns":[{"begin":"(?=\\\\()","end":"(->)","endCaptures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"[,;]","name":"punctuation.separator.guards.erlang"},{"include":"#everything-else"}]},{"match":",","name":"punctuation.separator.expressions.erlang"},{"include":"#everything-else"}]},"internal-record-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.class.record.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.class.record.end.erlang"}},"name":"meta.structure.record.erlang","patterns":[{"begin":"(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_))","beginCaptures":{"2":{"name":"variable.other.field.erlang"},"3":{"name":"variable.language.omitted.field.erlang"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.class.record.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-string-body":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.character.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.string.erlang"},{"include":"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"},"6":{"name":"punctuation.separator.placeholder-parts.erlang"},"10":{"name":"punctuation.separator.placeholder-parts.erlang"}},"match":"(~)((-)?\\\\d++|(\\\\*))?((\\\\.)(\\\\d++|(\\\\*))?((\\\\.)((\\\\*)|.))?)?[Kklt]*[#+BPWXbcefginpswx~]","name":"constant.character.format.placeholder.other.erlang"},{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"}},"match":"(~)(\\\\*)?(\\\\d++)?(t)?[-#acdflsu~]","name":"constant.character.format.placeholder.other.erlang"},{"match":"~[^\\"]?","name":"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{"begin":"(/)","beginCaptures":{"1":{"name":"punctuation.separator.value-type.erlang"}},"end":"(?=[,:]|>>)","patterns":[{"captures":{"1":{"name":"storage.type.erlang"},"2":{"name":"storage.modifier.signedness.erlang"},"3":{"name":"storage.modifier.endianness.erlang"},"4":{"name":"storage.modifier.unit.erlang"},"5":{"name":"punctuation.separator.unit-specifiers.erlang"},"6":{"name":"constant.numeric.integer.decimal.erlang"},"7":{"name":"punctuation.separator.type-specifiers.erlang"}},"match":"(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)(\\\\d++)|(-)"}]},"keyword":{"match":"\\\\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\\\\b","name":"keyword.control.erlang"},"language-constant":{"match":"\\\\b(false|true|undefined)\\\\b","name":"constant.language"},"list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.erlang","patterns":[{"match":"\\\\|\\\\|??|,","name":"punctuation.separator.list.erlang"},{"include":"#everything-else"}]},"macro-directive":{"patterns":[{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifdef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifdef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifdef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifndef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifndef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifndef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.undef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(undef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.undef.erlang"}]},"macro-usage":{"captures":{"1":{"name":"keyword.operator.macro.erlang"},"2":{"name":"entity.name.function.macro.erlang"}},"match":"(\\\\?\\\\??)\\\\s*+([@-Z_a-z\\\\d]++)","name":"meta.macro-usage.erlang"},"module-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.module.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(module)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.module.erlang"},"number":{"begin":"(?=\\\\d)","end":"(?!\\\\d)","patterns":[{"captures":{"1":{"name":"punctuation.separator.integer-float.erlang"},"2":{"name":"punctuation.separator.float-exponent.erlang"}},"match":"\\\\d++(\\\\.)\\\\d++([Ee][-+]?\\\\d++)?","name":"constant.numeric.float.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"2(#)([01]++_)*[01]++","name":"constant.numeric.integer.binary.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"3(#)([012]++_)*[012]++","name":"constant.numeric.integer.base-3.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"4(#)([0-3]++_)*[0-3]++","name":"constant.numeric.integer.base-4.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"5(#)([0-4]++_)*[0-4]++","name":"constant.numeric.integer.base-5.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"6(#)([0-5]++_)*[0-5]++","name":"constant.numeric.integer.base-6.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"7(#)([0-6]++_)*[0-6]++","name":"constant.numeric.integer.base-7.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"8(#)([0-7]++_)*[0-7]++","name":"constant.numeric.integer.octal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"9(#)([0-8]++_)*[0-8]++","name":"constant.numeric.integer.base-9.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"10(#)(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"11(#)([Aa\\\\d]++_)*[Aa\\\\d]++","name":"constant.numeric.integer.base-11.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"12(#)([ABab\\\\d]++_)*[ABab\\\\d]++","name":"constant.numeric.integer.base-12.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"13(#)([ABCabc\\\\d]++_)*[ABCabc\\\\d]++","name":"constant.numeric.integer.base-13.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"14(#)([A-Da-d\\\\d]++_)*[A-Da-d\\\\d]++","name":"constant.numeric.integer.base-14.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"15(#)([A-Ea-e\\\\d]++_)*[A-Ea-e\\\\d]++","name":"constant.numeric.integer.base-15.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"16(#)([A-Fa-f\\\\d]++_)*[A-Fa-f\\\\d]++","name":"constant.numeric.integer.hexadecimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"17(#)([A-Ga-g\\\\d]++_)*[A-Ga-g\\\\d]++","name":"constant.numeric.integer.base-17.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"18(#)([A-Ha-h\\\\d]++_)*[A-Ha-h\\\\d]++","name":"constant.numeric.integer.base-18.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"19(#)([A-Ia-i\\\\d]++_)*[A-Ia-i\\\\d]++","name":"constant.numeric.integer.base-19.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"20(#)([A-Ja-j\\\\d]++_)*[A-Ja-j\\\\d]++","name":"constant.numeric.integer.base-20.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"21(#)([A-Ka-k\\\\d]++_)*[A-Ka-k\\\\d]++","name":"constant.numeric.integer.base-21.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"22(#)([A-La-l\\\\d]++_)*[A-La-l\\\\d]++","name":"constant.numeric.integer.base-22.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"23(#)([A-Ma-m\\\\d]++_)*[A-Ma-m\\\\d]++","name":"constant.numeric.integer.base-23.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"24(#)([A-Na-n\\\\d]++_)*[A-Na-n\\\\d]++","name":"constant.numeric.integer.base-24.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"25(#)([A-Oa-o\\\\d]++_)*[A-Oa-o\\\\d]++","name":"constant.numeric.integer.base-25.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"26(#)([A-Pa-p\\\\d]++_)*[A-Pa-p\\\\d]++","name":"constant.numeric.integer.base-26.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"27(#)([A-Qa-q\\\\d]++_)*[A-Qa-q\\\\d]++","name":"constant.numeric.integer.base-27.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"28(#)([A-Ra-r\\\\d]++_)*[A-Ra-r\\\\d]++","name":"constant.numeric.integer.base-28.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"29(#)([A-Sa-s\\\\d]++_)*[A-Sa-s\\\\d]++","name":"constant.numeric.integer.base-29.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"30(#)([A-Ta-t\\\\d]++_)*[A-Ta-t\\\\d]++","name":"constant.numeric.integer.base-30.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"31(#)([A-Ua-u\\\\d]++_)*[A-Ua-u\\\\d]++","name":"constant.numeric.integer.base-31.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"32(#)([A-Va-v\\\\d]++_)*[A-Va-v\\\\d]++","name":"constant.numeric.integer.base-32.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"33(#)([A-Wa-w\\\\d]++_)*[A-Wa-w\\\\d]++","name":"constant.numeric.integer.base-33.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"34(#)([A-Xa-x\\\\d]++_)*[A-Xa-x\\\\d]++","name":"constant.numeric.integer.base-34.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"35(#)([A-Ya-y\\\\d]++_)*[A-Ya-y\\\\d]++","name":"constant.numeric.integer.base-35.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"36(#)([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"constant.numeric.integer.base-36.erlang"},{"match":"\\\\d++#([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"invalid.illegal.integer.erlang"},{"match":"(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.erlang"}},"name":"meta.expression.parenthesized","patterns":[{"include":"#everything-else"}]},"record-directive":{"begin":"^\\\\s*+(-)\\\\s*+(record)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.record.definition.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.record.erlang","patterns":[{"include":"#internal-record-body"},{"include":"#comment"}]},"record-usage":{"patterns":[{"captures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"},"3":{"name":"punctuation.separator.record-field.erlang"},"4":{"name":"variable.other.field.erlang"}},"match":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(\\\\.)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","name":"meta.record-usage.erlang"},{"begin":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","beginCaptures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"}},"end":"(?<=})","name":"meta.record-usage.erlang","patterns":[{"include":"#internal-record-body"}]}]},"sigil-docstring":{"begin":"(~[bs])((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-docstring-verbatim":{"begin":"(~[BS]?)((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string":{"patterns":[{"include":"#sigil-string-parenthesis"},{"include":"#sigil-string-parenthesis-verbatim"},{"include":"#sigil-string-curly-brackets"},{"include":"#sigil-string-curly-brackets-verbatim"},{"include":"#sigil-string-square-brackets"},{"include":"#sigil-string-square-brackets-verbatim"},{"include":"#sigil-string-less-greater"},{"include":"#sigil-string-less-greater-verbatim"},{"include":"#sigil-string-single-character"},{"include":"#sigil-string-single-character-verbatim"},{"include":"#sigil-string-single-quote"},{"include":"#sigil-string-single-quote-verbatim"},{"include":"#sigil-string-double-quote"},{"include":"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{"begin":"(~[bs]?)(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{"begin":"(~[BS])(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{"begin":"(~[bs]?)(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{"begin":"(~[BS])(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{"begin":"(~[bs]?)(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{"begin":"(~[BS])(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{"begin":"(~[bs]?)(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{"begin":"(~[BS])(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-character":{"begin":"(~[bs]?)([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-character-verbatim":{"begin":"(~[BS])([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{"begin":"(~[bs]?)(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{"begin":"(~[BS])(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{"begin":"(~[bs]?)(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{"begin":"(~[BS])(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.erlang","patterns":[{"include":"#internal-string-body"}]},"symbolic-operator":{"match":"\\\\+\\\\+?|--|[-*]|/=?|=/=|=:=|==|=<?|<-?|>=|[!>]|::|\\\\?=","name":"keyword.operator.symbolic.erlang"},"textual-operator":{"match":"\\\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\\\b","name":"keyword.operator.textual.erlang"},"tuple":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.tuple.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.tuple.end.erlang"}},"name":"meta.structure.tuple.erlang","patterns":[{"match":",","name":"punctuation.separator.tuple.erlang"},{"include":"#everything-else"}]},"variable":{"captures":{"1":{"name":"variable.other.erlang"},"2":{"name":"variable.language.omitted.erlang"}},"match":"(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)|(_)"}},"scopeName":"source.erlang","embeddedLangs":["markdown"],"aliases":["erl"]}`)),a=[...Zf,e];export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cf}from"./index-k06med7d.js";export{cf as createEventModelingServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-302d35e5.js";import"./index-cx89yk15.js";import{ah}from"./index-xearvz2z.js";export{ah as diagram};
|