@kabmo-labs/kabmo 0.57.0 → 0.58.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.
Files changed (525) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +523 -506
  3. package/dist/client/static/js/Body-karkrzkc.js +3 -0
  4. package/dist/client/static/js/{CsvGrid-t84xmbk9.js → CsvGrid-j03knmbe.js} +2 -2
  5. package/dist/client/static/js/{DocxView-4jda3szm.js → DocxView-e8408vzs.js} +2 -2
  6. package/dist/client/static/js/{DrawioView-9qvvtnvt.js → DrawioView-fj4mfzch.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-4pba1ys5.js → HtmlPreview-9g8xwzgw.js} +1 -1
  8. package/dist/client/static/js/ImageView-sz4fzz9k.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-b8f013ws.js +1 -0
  11. package/dist/client/static/js/Modal-ahecatp5.js +60 -0
  12. package/dist/client/static/js/{PdfView-sny55sne.js → PdfView-8jtdx5hd.js} +1 -1
  13. package/dist/client/static/js/SessionsView-jwp8xvw5.js +1 -0
  14. package/dist/client/static/js/{SheetView-ezqak2b4.js → SheetView-hwx8s864.js} +11 -11
  15. package/dist/client/static/js/{SvgPreview-q1cvdf4s.js → SvgPreview-ete36nzv.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-ftm2qwa3.js → abnfDiagram-O67JEVCF-7nsqzz6z.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-j8kqfzmf.js → architectureDiagram-NJMV4G6O-xvpkfq2f.js} +11 -11
  19. package/dist/client/static/js/{astro-asmathwv.js → astro-rsrqgjjx.js} +1 -1
  20. package/dist/client/static/js/bash-n5d0esqg.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-m3zpsp9h.js → blockDiagram-BEXU5L5S-0saahcs6.js} +7 -7
  22. package/dist/client/static/js/c-pk766wx0.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-myshvbrx.js → c4Diagram-YGBWAQC7-ktpqnb4a.js} +2 -2
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-s0cwmsj4.js → classDiagram-v2-NBCMYWYE-x67cz3ms.js} +5 -5
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-t5t02sfr.js → cose-bilkent-JH36ORCC-9wzmhkz8.js} +1 -1
  26. package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
  27. package/dist/client/static/js/css-sp1cgdbr.js +1 -0
  28. package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +1 -0
  29. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-6yxd72sh.js → cynefinDiagram-VND7K2PF-dmmgmv99.js} +2 -2
  30. package/dist/client/static/js/{dagre-6A5THRUB-vft5103m.js → dagre-6A5THRUB-ygkkms1t.js} +2 -2
  31. package/dist/client/static/js/{diagram-22UHCM2B-yy2jfvxt.js → diagram-22UHCM2B-qxj0pqb4.js} +14 -14
  32. package/dist/client/static/js/{diagram-3UASUU5V-1xqhzq20.js → diagram-3UASUU5V-77k8w5dt.js} +1 -1
  33. package/dist/client/static/js/{diagram-ATOU4E4O-f11cxgvm.js → diagram-ATOU4E4O-m0h86vf4.js} +3 -3
  34. package/dist/client/static/js/{diagram-CDSNMT55-gqmkfcp7.js → diagram-CDSNMT55-5v28kaeg.js} +5 -5
  35. package/dist/client/static/js/{diagram-MLGK6HIB-1fg7304a.js → diagram-MLGK6HIB-zgcg9gaz.js} +2 -2
  36. package/dist/client/static/js/{diagram-MPIPVDR6-mem80369.js → diagram-MPIPVDR6-10c9s6e6.js} +2 -2
  37. package/dist/client/static/js/{dockerfile-jarjwxp9.js → dockerfile-dr9sdsqp.js} +1 -1
  38. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4rcbvfrj.js → ebnfDiagram-ZINNZB2B-mz4022dz.js} +1 -1
  39. package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-3dy25ex8.js} +1 -1
  40. package/dist/client/static/js/{elk-276RUBZZ-ykd0stxz.js → elk-276RUBZZ-ccerbsag.js} +1 -1
  41. package/dist/client/static/js/{erDiagram-OPXOYQCR-b2th9bk4.js → erDiagram-OPXOYQCR-a8vjyrrw.js} +5 -5
  42. package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
  43. package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +1 -0
  44. package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +1 -0
  45. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-64p5r7cx.js → ganttDiagram-FUAMR5RP-sz1g29fp.js} +4 -4
  46. package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +1 -0
  47. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-z3yc333r.js → gitGraphDiagram-X574FWY7-efqk42q0.js} +15 -15
  48. package/dist/client/static/js/graphql-2ntm7jyh.js +1 -0
  49. package/dist/client/static/js/html-mt2yb43b.js +1 -0
  50. package/dist/client/static/js/{index-w659dhe5.js → index-2a0b9ya2.js} +1 -1
  51. package/dist/client/static/js/index-2f6psebk.js +2 -0
  52. package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
  53. package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
  54. package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
  55. package/dist/client/static/js/{index-rbkvw2xs.js → index-5tp3emtg.js} +2 -2
  56. package/dist/client/static/js/{index-h4qmywn5.js → index-6ac860yz.js} +2 -2
  57. package/dist/client/static/js/{index-77wznmg5.js → index-6ey6y9em.js} +2 -2
  58. package/dist/client/static/js/index-6h46r2de.js +1 -0
  59. package/dist/client/static/js/index-6qqsy78z.js +1 -0
  60. package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
  61. package/dist/client/static/js/{index-dxx49b9m.js → index-7ma44af3.js} +3 -3
  62. package/dist/client/static/js/index-7s4dge1z.js +1 -0
  63. package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
  64. package/dist/client/static/js/index-8aqjj2x2.js +1 -0
  65. package/dist/client/static/js/index-bkwax812.js +1 -0
  66. package/dist/client/static/js/{index-60g0e74a.js → index-dqf0srrp.js} +2 -2
  67. package/dist/client/static/js/{index-mdmtxh1c.js → index-dz18nn65.js} +2 -2
  68. package/dist/client/static/js/{index-5m0se6fk.js → index-e42ys2q3.js} +7 -7
  69. package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
  70. package/dist/client/static/js/{index-t415df0c.js → index-f31c6jg8.js} +22 -22
  71. package/dist/client/static/js/index-f44k9k8d.css +1 -0
  72. package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
  73. package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
  74. package/dist/client/static/js/{index-hmjb96kb.js → index-gqsnyh8k.js} +2 -2
  75. package/dist/client/static/js/index-gw4c5n3a.js +2 -0
  76. package/dist/client/static/js/index-j863hg0d.js +9 -0
  77. package/dist/client/static/js/{index-e4yj4kbe.js → index-jnxmvxb8.js} +12 -12
  78. package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
  79. package/dist/client/static/js/index-k1576e2m.js +2 -0
  80. package/dist/client/static/js/index-k4qshngy.js +4 -0
  81. package/dist/client/static/js/{index-3x3nhs8n.js → index-k56patms.js} +2 -2
  82. package/dist/client/static/js/{index-8pqx5n2p.js → index-kc5yt2cd.js} +2 -2
  83. package/dist/client/static/js/index-mkp3gwag.js +1 -0
  84. package/dist/client/static/js/{index-q9gbwqbe.js → index-nzq51nbb.js} +7 -7
  85. package/dist/client/static/js/{index-c2vc6znd.js → index-q5q8a3qn.js} +2 -2
  86. package/dist/client/static/js/{index-g71wn1pr.js → index-qbqm3c91.js} +5 -5
  87. package/dist/client/static/js/{index-sw370sk7.js → index-qkcmspxq.js} +2 -2
  88. package/dist/client/static/js/index-r1wrke3j.js +1 -0
  89. package/dist/client/static/js/index-rr79n77k.js +470 -0
  90. package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
  91. package/dist/client/static/js/{index-6m5n8b6w.js → index-ssepzdaz.js} +6 -6
  92. package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
  93. package/dist/client/static/js/{index-k57bandz.js → index-t71k3b28.js} +2 -2
  94. package/dist/client/static/js/index-tc07gd33.js +2 -0
  95. package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
  96. package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
  97. package/dist/client/static/js/{index-ebnd5hnr.js → index-tnxp90ac.js} +1 -1
  98. package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
  99. package/dist/client/static/js/index-ts8rhd06.js +1 -0
  100. package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
  101. package/dist/client/static/js/{index-n71ffk62.js → index-vb5a3g01.js} +4 -4
  102. package/dist/client/static/js/{index-bwwgtesb.js → index-ver116ed.js} +1 -1
  103. package/dist/client/static/js/{index-hge0y4vn.js → index-vf01q99d.js} +2 -2
  104. package/dist/client/static/js/{index-wgcgshdh.js → index-w5j1wgcz.js} +1 -1
  105. package/dist/client/static/js/{index-cwwg7k5f.js → index-wnk9k57k.js} +27 -27
  106. package/dist/client/static/js/{index-2gf593e3.js → index-x7h04xzf.js} +2 -2
  107. package/dist/client/static/js/{index-kbaffwp1.js → index-xfyxmaj1.js} +85 -85
  108. package/dist/client/static/js/index-xygk0v3e.js +2 -0
  109. package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
  110. package/dist/client/static/js/index-zh550byg.js +2 -0
  111. package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +1 -0
  112. package/dist/client/static/js/{infoDiagram-VRGFBTTK-59xq3n1b.js → infoDiagram-VRGFBTTK-rykcacj5.js} +1 -1
  113. package/dist/client/static/js/ini-bdk46a3d.js +1 -0
  114. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-v18q4qt7.js → ishikawaDiagram-OU5B5YK6-rj752kd8.js} +3 -3
  115. package/dist/client/static/js/java-3g3925cf.js +1 -0
  116. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-etazj0p8.js → journeyDiagram-ZHPQQLJL-mtetwn6f.js} +5 -5
  117. package/dist/client/static/js/json-hdyzmffz.js +1 -0
  118. package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
  119. package/dist/client/static/js/{julia-d18zhpyp.js → julia-mxe3pnz3.js} +1 -1
  120. package/dist/client/static/js/{kanban-definition-PNTS6WVX-ph15e5p2.js → kanban-definition-PNTS6WVX-4h5pw5mm.js} +3 -3
  121. package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
  122. package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
  123. package/dist/client/static/js/{mermaid.core-7ygd161b.js → mermaid.core-bs542jma.js} +8 -8
  124. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-j5xsftrf.js → mindmap-definition-NLK3R4M7-67s4xy7h.js} +5 -5
  125. package/dist/client/static/js/one-dark-pro-541ed4b7.js +1 -0
  126. package/dist/client/static/js/one-light-nr79mykt.js +1 -0
  127. package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +1 -0
  128. package/dist/client/static/js/{pegDiagram-GJSIUBJH-09nvb70v.js → pegDiagram-GJSIUBJH-qykb6ssk.js} +1 -1
  129. package/dist/client/static/js/{perl-sns2qvmf.js → perl-a8eeaqkn.js} +1 -1
  130. package/dist/client/static/js/{php-3q6v9eey.js → php-6gq92zt8.js} +1 -1
  131. package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +1 -0
  132. package/dist/client/static/js/{pieDiagram-5QR66LMP-6ymh1960.js → pieDiagram-5QR66LMP-mymrrvck.js} +2 -2
  133. package/dist/client/static/js/properties-xk4dn00p.js +1 -0
  134. package/dist/client/static/js/python-7sgz05n4.js +1 -0
  135. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-hk61avw2.js → quadrantDiagram-O4NWA36T-6f8ahd40.js} +6 -6
  136. package/dist/client/static/js/r-w4qxm0pv.js +1 -0
  137. package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +1 -0
  138. package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +1 -0
  139. package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +1 -0
  140. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +1 -0
  141. package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +1 -0
  142. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3jvqrfnb.js → railroadDiagram-XR7U4H2S-c3habpvw.js} +1 -1
  143. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-zthfj48k.js → requirementDiagram-PLB6GJNP-nysqy6te.js} +12 -12
  144. package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-mc826p2e.js} +1 -1
  145. package/dist/client/static/js/{rust-q7n7q6dy.js → rust-m4f4vpvn.js} +1 -1
  146. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nh5d6xte.js → sankeyDiagram-IPEJSGJF-s5dtfp3z.js} +4 -4
  147. package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
  148. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-crej9b40.js → sequenceDiagram-PO4LG4MO-bb3yp049.js} +21 -21
  149. package/dist/client/static/js/{sizeCapture-INFHLROL-nvvxw58j.js → sizeCapture-INFHLROL-0m2msee7.js} +1 -1
  150. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-e6tztjnj.js → stateDiagram-v2-GCMORJYK-cd0qgj6t.js} +3 -3
  151. package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-5vrwkc13.js} +1 -1
  152. package/dist/client/static/js/{swimlanes-2SLR337P-xhdqjqmf.js → swimlanes-2SLR337P-rpb01f7p.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-9cve31zc.js → timeline-definition-EJHVYXUP-tqw2e6y1.js} +5 -5
  155. package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +1 -0
  156. package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.js +1 -0
  157. package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
  158. package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
  159. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-asycstwe.js → usecaseDiagram-POWQR4AR-dhf4d5xg.js} +41 -41
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-gbzk6era.js → vennDiagram-UO4OBE2U-ztkk79dv.js} +7 -7
  161. package/dist/client/static/js/{vue-e8e3q3hj.js → vue-gmjnxjm3.js} +1 -1
  162. package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +1 -0
  163. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-1swwfszr.js → wardleyDiagram-VNRHLVJA-ahre5tmv.js} +5 -5
  164. package/dist/client/static/js/xml-mrk4xakv.js +1 -0
  165. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-v7qkwv0b.js → xychartDiagram-PMCCYNJV-vak2c50n.js} +6 -6
  166. package/dist/client/static/js/yaml-xaza6dra.js +1 -0
  167. package/package.json +6 -6
  168. package/src/client/bootstrap.d.ts +11 -0
  169. package/src/client/borders.css +3 -4
  170. package/src/client/components/auth/login-screen/index.tsx +1 -1
  171. package/src/client/components/common/ComposerPicker.tsx +1 -1
  172. package/src/client/components/common/CopyButton.tsx +1 -1
  173. package/src/client/components/common/FolderPicker.tsx +1 -1
  174. package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
  175. package/src/client/components/common/ViewportSelector.tsx +2 -2
  176. package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
  177. package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
  178. package/src/client/components/common/checkbox/style.ts +1 -1
  179. package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
  180. package/src/client/components/common/file-icon/index.tsx +3 -3
  181. package/src/client/components/common/harness-glyph/index.tsx +4 -3
  182. package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
  183. package/src/client/components/common/image-viewer/index.tsx +2 -2
  184. package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
  185. package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
  186. package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
  187. package/src/client/components/common/server-control/Panel.tsx +1 -1
  188. package/src/client/components/common/server-control/Row.tsx +3 -3
  189. package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
  190. package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
  191. package/src/client/components/common/session-delete-modal/index.tsx +4 -4
  192. package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
  193. package/src/client/components/common/session-row/index.tsx +40 -2
  194. package/src/client/components/common/session-row/session-row.test.tsx +46 -3
  195. package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
  196. package/src/client/components/common/todo-row/index.tsx +1 -1
  197. package/src/client/components/common/window-controls/index.tsx +1 -1
  198. package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
  199. package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
  200. package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
  201. package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
  202. package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
  203. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
  204. package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
  205. package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
  206. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  207. package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
  208. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
  209. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
  210. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  211. package/src/client/components/layout/update-popup/Actions.tsx +1 -1
  212. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
  213. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
  214. package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
  215. package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
  216. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
  217. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
  218. package/src/client/components/settings/Modal.tsx +8 -3
  219. package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
  220. package/src/client/components/settings/Sidebar.tsx +3 -3
  221. package/src/client/components/settings/apply-side-effects.test.ts +46 -0
  222. package/src/client/components/settings/apply-side-effects.ts +8 -0
  223. package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
  224. package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
  225. package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
  226. package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
  227. package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
  228. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
  229. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
  230. package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
  231. package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
  232. package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
  233. package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
  234. package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
  235. package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
  236. package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
  237. package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
  238. package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
  239. package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
  240. package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
  241. package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
  242. package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
  243. package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
  244. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
  245. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  246. package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
  247. package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
  248. package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
  249. package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
  250. package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
  251. package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
  252. package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
  253. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
  254. package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
  255. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
  256. package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
  257. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
  258. package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
  259. package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
  260. package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
  261. package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
  262. package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
  263. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
  264. package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
  265. package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
  266. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
  267. package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
  268. package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
  269. package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
  270. package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
  271. package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
  272. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
  273. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
  274. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
  275. package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
  276. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
  277. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
  278. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
  279. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
  280. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
  281. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
  282. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
  283. package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
  284. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
  285. package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
  286. package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
  287. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
  288. package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
  289. package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
  290. package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
  291. package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
  292. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
  293. package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
  294. package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
  295. package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
  296. package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
  297. package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
  298. package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
  299. package/src/client/components/workspace/browser-panel/index.tsx +2 -2
  300. package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
  301. package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
  302. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
  303. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
  304. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
  305. package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
  306. package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
  307. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
  308. package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +5 -5
  309. package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
  310. package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
  311. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
  312. package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
  313. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
  314. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  315. package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +2 -2
  316. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
  317. package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
  318. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
  319. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
  320. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
  321. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +2 -2
  322. package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
  323. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
  324. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  325. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
  326. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
  327. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
  328. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
  329. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
  330. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
  331. package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
  332. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
  333. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
  334. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
  335. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
  336. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
  337. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
  338. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
  339. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
  340. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
  341. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
  342. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
  343. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
  344. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
  345. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
  346. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
  347. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
  348. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
  349. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
  350. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
  351. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
  352. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
  353. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
  354. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +1 -1
  355. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +10 -8
  356. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
  357. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.test.ts +37 -0
  358. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.ts +17 -1
  359. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +50 -21
  360. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +21 -17
  361. package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
  362. package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
  363. package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
  364. package/src/client/components/workspace/diff-panel/index.tsx +3 -3
  365. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
  366. package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
  367. package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
  368. package/src/client/components/workspace/editor/FilePane.tsx +6 -6
  369. package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
  370. package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
  371. package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
  372. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
  373. package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
  374. package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
  375. package/src/client/components/workspace/editor/Tabs.tsx +6 -6
  376. package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
  377. package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
  378. package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
  379. package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
  380. package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
  381. package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
  382. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  383. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
  384. package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
  385. package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
  386. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
  387. package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
  388. package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
  389. package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
  390. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  391. package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
  392. package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
  393. package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
  394. package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
  395. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
  396. package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
  397. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
  398. package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
  399. package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
  400. package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
  401. package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
  402. package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
  403. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
  404. package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
  405. package/src/client/components/workspace/plan-panel/index.tsx +2 -2
  406. package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
  407. package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
  408. package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
  409. package/src/client/components/workspace/search-panel/Body.tsx +2 -2
  410. package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
  411. package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
  412. package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
  413. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  414. package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
  415. package/src/client/components/workspace/usage-panel/index.tsx +3 -3
  416. package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
  417. package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
  418. package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
  419. package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
  420. package/src/client/data/settings/omp-schema.json +27 -7
  421. package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
  422. package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
  423. package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
  424. package/src/client/hooks/ui/border-style.test.ts +1 -2
  425. package/src/client/hooks/ui/theme.ts +23 -2
  426. package/src/client/main.tsx +7 -1
  427. package/src/client/tailwind-contrast.test.ts +22 -7
  428. package/src/client/tailwind.css +115 -18
  429. package/src/server/lib/assets/theme-css.server.test.ts +31 -1
  430. package/src/server/lib/assets/theme-css.server.ts +15 -1
  431. package/src/server/lib/dictation/capability.server.test.ts +9 -6
  432. package/src/server/lib/dictation/worker-process.ts +9 -2
  433. package/src/server/lib/harness/accounts.test.ts +5 -3
  434. package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
  435. package/src/server/lib/omp/session/delete.server.ts +4 -0
  436. package/src/server/lib/realtime/topics/session-data.server.ts +63 -1
  437. package/src/server/lib/realtime/topics/session-data.test.ts +154 -0
  438. package/src/server/lib/tray/runtime.server.ts +5 -0
  439. package/src/server/plugins/ssr.ts +16 -4
  440. package/src/server/routes/settings/root.ts +11 -0
  441. package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
  442. package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
  443. package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
  444. package/src/shared/lib/chat/todo/flat-list.ts +29 -0
  445. package/src/shared/lib/chat/todo/parser.ts +7 -53
  446. package/src/shared/lib/chat/todo/progress.test.ts +3 -3
  447. package/src/shared/lib/chat/todo/progress.ts +3 -3
  448. package/src/shared/lib/fs/git-status.test.ts +22 -22
  449. package/src/shared/lib/fs/git-status.ts +31 -31
  450. package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
  451. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
  452. package/src/shared/lib/settings/defaults.ts +1 -0
  453. package/src/shared/lib/theme/catalog.test.ts +42 -0
  454. package/src/shared/lib/theme/catalog.ts +66 -11
  455. package/src/shared/lib/theme/css.ts +25 -1
  456. package/src/shared/lib/theme/custom.test.ts +156 -0
  457. package/src/shared/lib/theme/custom.ts +260 -0
  458. package/src/shared/lib/theme/ink-scale.test.ts +83 -2
  459. package/src/shared/lib/theme/ink-scale.ts +74 -9
  460. package/src/shared/lib/theme/shell-palette.ts +3 -3
  461. package/src/shared/lib/theme/theme.test.ts +28 -13
  462. package/src/shared/types/settings/state.ts +11 -3
  463. package/tsconfig.json +6 -0
  464. package/dist/client/static/js/Body-k96gtstv.js +0 -3
  465. package/dist/client/static/js/ImageView-0gf5xdsv.js +0 -1
  466. package/dist/client/static/js/LayoutWrapper-pwbq5syv.js +0 -2
  467. package/dist/client/static/js/MergeDiffView-m4jkr786.js +0 -1
  468. package/dist/client/static/js/Modal-yjszc3vy.js +0 -60
  469. package/dist/client/static/js/SessionsView-q3800n83.js +0 -1
  470. package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
  471. package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
  472. package/dist/client/static/js/c-20y64hcp.js +0 -1
  473. package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
  474. package/dist/client/static/js/css-ncvxaxt0.js +0 -1
  475. package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
  476. package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
  477. package/dist/client/static/js/flowDiagram-KWPJA3E3-f3bdtc1z.js +0 -1
  478. package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
  479. package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
  480. package/dist/client/static/js/html-p76eszt9.js +0 -1
  481. package/dist/client/static/js/index-1mm7kyjd.js +0 -1
  482. package/dist/client/static/js/index-3w18s59k.js +0 -9
  483. package/dist/client/static/js/index-ep353yxd.js +0 -2
  484. package/dist/client/static/js/index-ewtv8gg7.js +0 -1
  485. package/dist/client/static/js/index-gr07t5c4.js +0 -2
  486. package/dist/client/static/js/index-jd2h5tvh.js +0 -2
  487. package/dist/client/static/js/index-k6wms0kx.js +0 -1
  488. package/dist/client/static/js/index-k9v6477a.js +0 -1
  489. package/dist/client/static/js/index-mv83hpva.js +0 -1
  490. package/dist/client/static/js/index-nr5gwny1.js +0 -470
  491. package/dist/client/static/js/index-rqpbva78.js +0 -2
  492. package/dist/client/static/js/index-taz2nfym.css +0 -1
  493. package/dist/client/static/js/index-x6945djv.js +0 -1
  494. package/dist/client/static/js/index-y5mf2w81.js +0 -1
  495. package/dist/client/static/js/index-y69cbdvd.js +0 -2
  496. package/dist/client/static/js/index-y6qtx68e.js +0 -1
  497. package/dist/client/static/js/index-yktwxghr.js +0 -2
  498. package/dist/client/static/js/index-zj65csnm.js +0 -4
  499. package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
  500. package/dist/client/static/js/ini-kjcpgebh.js +0 -1
  501. package/dist/client/static/js/java-0bcyv1jt.js +0 -1
  502. package/dist/client/static/js/json-xha2drny.js +0 -1
  503. package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
  504. package/dist/client/static/js/lua-njwwdj4s.js +0 -1
  505. package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
  506. package/dist/client/static/js/one-dark-pro-4s2rr12v.js +0 -1
  507. package/dist/client/static/js/one-light-3bkk59ww.js +0 -1
  508. package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
  509. package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
  510. package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
  511. package/dist/client/static/js/python-fdwwjjhh.js +0 -1
  512. package/dist/client/static/js/r-4d2ygtfj.js +0 -1
  513. package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
  514. package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
  515. package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
  516. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
  517. package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
  518. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-hbwg3m3k.js +0 -8
  519. package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
  520. package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
  521. package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
  522. package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
  523. package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
  524. package/dist/client/static/js/xml-8516fzfp.js +0 -1
  525. package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
@@ -1,7 +1,7 @@
1
- import{$i}from"./index-hmjb96kb.js";import{xe}from"./index-bwwgtesb.js";import{t,l,Y,C,te,re,M,O,G,z,j,q,H,Ae,Xi,br,ce}from"./index-kbaffwp1.js";import{$e}from"./index-cwwg7k5f.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,F=/[─━]/,k=/^[\s│┃]+$/,N=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,A=/^\s*%%/,Z=" ";function _(n){return n.some((r)=>L.test(r))}t(_,"isBoxDrawingFormat");function S(n){for(let r of n){let e=D.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(S,"inferSegmentWidth");function R(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let a=parseInt(i,10),o=r.get(a);return o?`line ${o}`:e})}t(R,"remapErrorLines");function W(n){let r=n.split(`
2
- `),e=new Map,i=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){i=g;break}if(i===-1)return{text:n,lineMap:e};let a=[];for(let g=i+1;g<r.length;g++){let d=r[g];if(d.trim()===""||A.test(d)||N.test(d))continue;if(k.test(d))continue;a.push(d.replace(/\t/g," "))}if(!_(a))return{text:n,lineMap:e};let o=S(a),s=[],c=0;for(let g=0;g<=i;g++)s.push(r[g]),c++,e.set(c,g+1);for(let g=i+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){s.push(d),c++,e.set(c,f);continue}if(A.test(d)){s.push(d),c++,e.set(c,f);continue}if(N.test(d)){s.push(d),c++,e.set(c,f);continue}if(k.test(d))continue;let h=d.replace(/\t/g," "),w=D.exec(h);if(w?.index!==void 0){let u=w.index,x=Math.round(u/o)+1,m=u+1;while(m<h.length&&F.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let b=h.slice(m).trimEnd();if(!b)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let P=Z.repeat(x);s.push(P+b),c++,e.set(c,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(L.test(h))s.push(d),c++,e.set(c,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else s.push(d),c++,e.set(c,f)}return{text:s.join(`
3
- `),lineMap:e}}t(W,"preprocessBoxDrawing");var v=new $i(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),U=t(()=>{v.reset(),M()},"clear"),J=t(()=>v.records.stack[0],"getRoot"),K=t(()=>v.records.cnt,"getCount"),Q=Y.treeView,ee=t(()=>ce(Q,C().treeView),"getConfig"),ne=t((n,r,e,i,a,o)=>{while(n<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let s={id:v.records.cnt++,level:n,name:r,nodeType:e,icon:a,cssClass:i,description:o,children:[]};v.records.stack[v.records.stack.length-1].children.push(s),v.records.stack.push(s)},"addNode"),ie={clear:U,addNode:ne,getRoot:J,getCount:K,getConfig:ee,getAccTitle:G,getAccDescription:j,getDiagramTitle:H,setAccDescription:z,setAccTitle:O,setDiagramTitle:q},y=ie,oe=t((n)=>{xe(n,y);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,i=r.name,a=i.endsWith("/");if(a)i=i.slice(0,-1);let o=a?"directory":"file",s=r.classAnnotation||void 0,c=r.iconAnnotation,g=c!==void 0?c||"none":void 0,d=r.descAnnotation||void 0,p=d?te(d,C()):void 0;y.addNode(e,i,o,s,g,p)}},"populate"),se={parse:t(async(n)=>{let{text:r,lineMap:e}=W(n);try{let i=await $e("treeView",r);l.debug(i),oe(i)}catch(i){if(e.size>0&&i instanceof Error)i.message=R(i.message,e);throw i}},"parse")},I={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function X(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let i=n.lastIndexOf(".");if(i>0){let a=n.substring(i).toLowerCase(),o=r?.extensionIcons;return o?.[a]??o?.[a.slice(1)]}return}t(X,"detectIcon");function B(n,r){if(n.includes(":"))return n;if(n in I.icons||!r)return`${I.prefix}:${n}`;return`${r}:${n}`}t(B,"qualifyIcon");function V(n,r){if(n.icon==="none")return;if(n.icon)return B(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=X(n.name,r);if(e==="none")return;if(e)return B(e,r.defaultIconPack)}return`${I.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(V,"getNodeIcon");Xi([{name:I.prefix,icons:I}]);var T=14,ae=4,le=16,de=t(async(n,r)=>{let e=[],i=t((o)=>{let s=V(o,r);if(s)e.push({icon:s,node:o});o.children.forEach(i)},"collect");i(n);let a=await Promise.all(e.map(async({icon:o,node:s})=>({id:s.id,svg:await br(o,{height:T,width:T})})));return new Map(a.map(({id:o,svg:s})=>[o,s]))},"resolveNodeIcons"),he=t((n,r,e,i,a,o)=>{let s=i.append("g"),c="treeView-node-label";if(e.nodeType==="directory")c+=" treeView-node-dir";if(e.cssClass)c+=` ${e.cssClass}`;let g=T+ae,d=V(e,a),p=d!==void 0;if(d)s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+a.paddingX}, ${r+a.paddingY})`).html(o.get(e.id)??"");let f=s.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",c),{height:h,width:w}=f.node().getBBox(),u=h+a.paddingY*2,x=n+a.paddingX+(p?g:0);f.attr("x",x),f.attr("y",r+u/2);let m=x+w,b=w+a.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:b,height:u},e.cssClass?.split(/\s+/).includes("highlight"))s.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:s,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),E=t((n,r,e,i,a,o)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",i).attr("y2",a).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),pe=t((n,r,e,i)=>{let a=0,o=0,s=[],c=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=he(u,a,f,p,h,i);s.push(x);let{height:m,width:b}=f.BBox;E(p,u-h.rowIndent,a+m/2,u,a+m/2,h.lineThickness),o=Math.max(o,u+b),a+=m},"drawNode"),g=t((p,f=0)=>{c(n,p,e,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;E(n,h+e.paddingX,w+u,h+e.paddingX,x+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=s.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...s.map((h)=>h.labelRightEdge))+le;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();o=Math.max(o,f+u.width+e.paddingX)}}for(let p of s)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=o-p.node.BBox.x+8;f.attr("width",h),o=Math.max(o,p.node.BBox.x+h+2)}}return{totalHeight:a,totalWidth:o}},"drawTree"),fe=t(async(n,r,e,i)=>{l.debug(`Rendering treeView diagram
4
- `+n);let a=i.db,o=a.getRoot(),s=a.getConfig(),c=Ae(r),g=c.append("g");g.attr("class","tree-view");let d=await de(o,s),{totalHeight:p,totalWidth:f}=pe(g,o,s,d);c.attr("viewBox",`-${s.lineThickness/2} 0 ${f} ${p}`),re(c,p,f,s.useMaxWidth)},"draw"),ge={draw:fe},ue=ge,me={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},we=t(({treeView:n})=>{let{labelFontSize:r,labelColor:e,lineColor:i,iconColor:a,descriptionColor:o,highlightBg:s,highlightStroke:c}=ce(me,n);return`
1
+ import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t,l,Y,E,te,re,F,O,G,z,j,q,H,Ae,ts,br,ue}from"./index-xfyxmaj1.js";import{$e}from"./index-wnk9k57k.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,P=/[─━]/,V=/^[\s│┃]+$/,k=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,N=/^\s*%%/,Z=" ";function _(n){return n.some((r)=>L.test(r))}t(_,"isBoxDrawingFormat");function M(n){for(let r of n){let e=D.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(M,"inferSegmentWidth");function S(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let a=parseInt(i,10),o=r.get(a);return o?`line ${o}`:e})}t(S,"remapErrorLines");function R(n){let r=n.split(`
2
+ `),e=new Map,i=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){i=g;break}if(i===-1)return{text:n,lineMap:e};let a=[];for(let g=i+1;g<r.length;g++){let d=r[g];if(d.trim()===""||N.test(d)||k.test(d))continue;if(V.test(d))continue;a.push(d.replace(/\t/g," "))}if(!_(a))return{text:n,lineMap:e};let o=M(a),s=[],c=0;for(let g=0;g<=i;g++)s.push(r[g]),c++,e.set(c,g+1);for(let g=i+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){s.push(d),c++,e.set(c,f);continue}if(N.test(d)){s.push(d),c++,e.set(c,f);continue}if(k.test(d)){s.push(d),c++,e.set(c,f);continue}if(V.test(d))continue;let h=d.replace(/\t/g," "),w=D.exec(h);if(w?.index!==void 0){let u=w.index,x=Math.round(u/o)+1,m=u+1;while(m<h.length&&P.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let b=h.slice(m).trimEnd();if(!b)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let X=Z.repeat(x);s.push(X+b),c++,e.set(c,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(L.test(h))s.push(d),c++,e.set(c,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else s.push(d),c++,e.set(c,f)}return{text:s.join(`
3
+ `),lineMap:e}}t(R,"preprocessBoxDrawing");var v=new Ui(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),U=t(()=>{v.reset(),F()},"clear"),J=t(()=>v.records.stack[0],"getRoot"),K=t(()=>v.records.cnt,"getCount"),Q=Y.treeView,ee=t(()=>ue(Q,E().treeView),"getConfig"),ne=t((n,r,e,i,a,o)=>{while(n<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let s={id:v.records.cnt++,level:n,name:r,nodeType:e,icon:a,cssClass:i,description:o,children:[]};v.records.stack[v.records.stack.length-1].children.push(s),v.records.stack.push(s)},"addNode"),ie={clear:U,addNode:ne,getRoot:J,getCount:K,getConfig:ee,getAccTitle:G,getAccDescription:j,getDiagramTitle:H,setAccDescription:z,setAccTitle:O,setDiagramTitle:q},I=ie,oe=t((n)=>{xe(n,I);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,i=r.name,a=i.endsWith("/");if(a)i=i.slice(0,-1);let o=a?"directory":"file",s=r.classAnnotation||void 0,c=r.iconAnnotation,g=c!==void 0?c||"none":void 0,d=r.descAnnotation||void 0,p=d?te(d,E()):void 0;I.addNode(e,i,o,s,g,p)}},"populate"),se={parse:t(async(n)=>{let{text:r,lineMap:e}=R(n);try{let i=await $e("treeView",r);l.debug(i),oe(i)}catch(i){if(e.size>0&&i instanceof Error)i.message=S(i.message,e);throw i}},"parse")},C={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function W(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let i=n.lastIndexOf(".");if(i>0){let a=n.substring(i).toLowerCase(),o=r?.extensionIcons;return o?.[a]??o?.[a.slice(1)]}return}t(W,"detectIcon");function y(n,r){if(n.includes(":"))return n;if(n in C.icons||!r)return`${C.prefix}:${n}`;return`${r}:${n}`}t(y,"qualifyIcon");function T(n,r){if(n.icon==="none")return;if(n.icon)return y(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=W(n.name,r);if(e==="none")return;if(e)return y(e,r.defaultIconPack)}return`${C.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(T,"getNodeIcon");ts([{name:C.prefix,icons:C}]);var B=14,ae=4,ce=16,le=t(async(n,r)=>{let e=[],i=t((o)=>{let s=T(o,r);if(s)e.push({icon:s,node:o});o.children.forEach(i)},"collect");i(n);let a=await Promise.all(e.map(async({icon:o,node:s})=>({id:s.id,svg:await br(o,{height:B,width:B})})));return new Map(a.map(({id:o,svg:s})=>[o,s]))},"resolveNodeIcons"),de=t((n,r,e,i,a,o)=>{let s=i.append("g"),c="treeView-node-label";if(e.nodeType==="directory")c+=" treeView-node-dir";if(e.cssClass)c+=` ${e.cssClass}`;let g=B+ae,d=T(e,a),p=d!==void 0;if(d)s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+a.paddingX}, ${r+a.paddingY})`).html(o.get(e.id)??"");let f=s.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",c),{height:h,width:w}=f.node().getBBox(),u=h+a.paddingY*2,x=n+a.paddingX+(p?g:0);f.attr("x",x),f.attr("y",r+u/2);let m=x+w,b=w+a.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:b,height:u},e.cssClass?.split(/\s+/).includes("highlight"))s.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:s,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),A=t((n,r,e,i,a,o)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",i).attr("y2",a).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),he=t((n,r,e,i)=>{let a=0,o=0,s=[],c=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=de(u,a,f,p,h,i);s.push(x);let{height:m,width:b}=f.BBox;A(p,u-h.rowIndent,a+m/2,u,a+m/2,h.lineThickness),o=Math.max(o,u+b),a+=m},"drawNode"),g=t((p,f=0)=>{c(n,p,e,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;A(n,h+e.paddingX,w+u,h+e.paddingX,x+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=s.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...s.map((h)=>h.labelRightEdge))+ce;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();o=Math.max(o,f+u.width+e.paddingX)}}for(let p of s)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=o-p.node.BBox.x+8;f.attr("width",h),o=Math.max(o,p.node.BBox.x+h+2)}}return{totalHeight:a,totalWidth:o}},"drawTree"),pe=t(async(n,r,e,i)=>{l.debug(`Rendering treeView diagram
4
+ `+n);let a=i.db,o=a.getRoot(),s=a.getConfig(),c=Ae(r),g=c.append("g");g.attr("class","tree-view");let d=await le(o,s),{totalHeight:p,totalWidth:f}=he(g,o,s,d);c.attr("viewBox",`-${s.lineThickness/2} 0 ${f} ${p}`),re(c,p,f,s.useMaxWidth)},"draw"),fe={draw:pe},ge=fe,me={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},we=t(({treeView:n})=>{let{labelFontSize:r,labelColor:e,lineColor:i,iconColor:a,descriptionColor:o,highlightBg:s,highlightStroke:c}=ue(me,n);return`
5
5
  .treeView-node-label {
6
6
  font-size: ${r};
7
7
  fill: ${e};
@@ -27,4 +27,4 @@ import{$i}from"./index-hmjb96kb.js";import{xe}from"./index-bwwgtesb.js";import{t
27
27
  stroke: ${c};
28
28
  stroke-width: 1;
29
29
  }
30
- `},"styles"),ve=we,Ee={db:y,renderer:ue,parser:se,styles:ve};export{Ee as diagram};
30
+ `},"styles"),ve=we,Ee={db:I,renderer:ge,parser:se,styles:ve};export{Ee as diagram};
@@ -1,4 +1,4 @@
1
- import{xe}from"./index-bwwgtesb.js";import{t,l,Y,C,re,M,O,G,z,j,q,H,Ae,ce}from"./index-kbaffwp1.js";import{$e}from"./index-cwwg7k5f.js";var y=Y.packet,u=class{constructor(){this.packet=[],this.setAccTitle=O,this.getAccTitle=G,this.setDiagramTitle=q,this.getDiagramTitle=H,this.getAccDescription=j,this.setAccDescription=z}static{t(this,"PacketDB")}getConfig(){let e=ce({...y,...C().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){M(),this.packet=[]}},B=1e4,S=t((e,r)=>{xe(e,r);let o=-1,i=[],c=1,{bitsPerRow:d}=r.getConfig();for(let{start:a,end:n,bits:g,label:p}of e.blocks){if(a!==void 0&&n!==void 0&&n<a)throw Error(`Packet block ${a} - ${n} is invalid. End must be greater than start.`);if(a??=o+1,a!==o+1)throw Error(`Packet block ${a} - ${n??a} is not contiguous. It should start from ${o+1}.`);if(g===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);n??=a+(g??1)-1,g??=n-a+1,o=n,l.debug(`Packet block ${a} - ${o} with label ${p}`);while(i.length<=d+1&&r.getPacket().length<B){let[h,s]=D({start:a,end:n,bits:g,label:p},c,d);if(i.push(h),h.end+1===c*d)r.pushWord(i),i=[],c++;if(!s)break;({start:a,end:n,bits:g,label:p}=s)}}r.pushWord(i)},"populate"),D=t((e,r,o)=>{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*o)return[e,void 0];let i=r*o-1,c=r*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:c,end:e.end,label:e.label,bits:e.end-c}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:t(async(e)=>{let r=await $e("packet",e),o=w.parser?.yy;if(!(o instanceof u))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");l.debug(r),S(r,o)},"parse")},T=t((e,r,o,i)=>{let c=i.db,d=c.getConfig(),{rowHeight:a,paddingY:n,bitWidth:g,bitsPerRow:p}=d,h=c.getPacket(),s=c.getDiagramTitle(),k=a+n,f=k*(h.length+1)-(s?0:a),m=g*p+2,b=Ae(r);b.attr("viewBox",`0 0 ${m} ${f}`),re(b,f,m,d.useMaxWidth);for(let[v,x]of h.entries())P(b,x,v,d);b.append("text").text(s).attr("x",m/2).attr("y",f-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),P=t((e,r,o,{rowHeight:i,paddingX:c,paddingY:d,bitWidth:a,bitsPerRow:n,showBits:g})=>{let p=e.append("g"),h=o*(i+d)+d;for(let s of r){let k=s.start%n*a+1,f=(s.end-s.start+1)*a-c;if(p.append("rect").attr("x",k).attr("y",h).attr("width",f).attr("height",i).attr("class","packetBlock"),p.append("text").attr("x",k+f/2).attr("y",h+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!g)continue;let m=s.end===s.start,b=h-2;if(p.append("text").attr("x",k+(m?f/2:0)).attr("y",b).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",m?"middle":"start").text(s.start),!m)p.append("text").attr("x",k+f).attr("y",b).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),E={draw:T},F={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},A=t(({packet:e}={})=>{let r=ce(F,e);return`
1
+ import{xe}from"./index-ver116ed.js";import{t,l,Y,E,re,F,O,G,z,j,q,H,Ae,ue}from"./index-xfyxmaj1.js";import{$e}from"./index-wnk9k57k.js";var y=Y.packet,u=class{constructor(){this.packet=[],this.setAccTitle=O,this.getAccTitle=G,this.setDiagramTitle=q,this.getDiagramTitle=H,this.getAccDescription=j,this.setAccDescription=z}static{t(this,"PacketDB")}getConfig(){let e=ue({...y,...E().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){F(),this.packet=[]}},B=1e4,C=t((e,r)=>{xe(e,r);let o=-1,i=[],c=1,{bitsPerRow:d}=r.getConfig();for(let{start:a,end:n,bits:g,label:p}of e.blocks){if(a!==void 0&&n!==void 0&&n<a)throw Error(`Packet block ${a} - ${n} is invalid. End must be greater than start.`);if(a??=o+1,a!==o+1)throw Error(`Packet block ${a} - ${n??a} is not contiguous. It should start from ${o+1}.`);if(g===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);n??=a+(g??1)-1,g??=n-a+1,o=n,l.debug(`Packet block ${a} - ${o} with label ${p}`);while(i.length<=d+1&&r.getPacket().length<B){let[h,s]=S({start:a,end:n,bits:g,label:p},c,d);if(i.push(h),h.end+1===c*d)r.pushWord(i),i=[],c++;if(!s)break;({start:a,end:n,bits:g,label:p}=s)}}r.pushWord(i)},"populate"),S=t((e,r,o)=>{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*o)return[e,void 0];let i=r*o-1,c=r*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:c,end:e.end,label:e.label,bits:e.end-c}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:t(async(e)=>{let r=await $e("packet",e),o=w.parser?.yy;if(!(o instanceof u))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");l.debug(r),C(r,o)},"parse")},D=t((e,r,o,i)=>{let c=i.db,d=c.getConfig(),{rowHeight:a,paddingY:n,bitWidth:g,bitsPerRow:p}=d,h=c.getPacket(),s=c.getDiagramTitle(),k=a+n,f=k*(h.length+1)-(s?0:a),m=g*p+2,b=Ae(r);b.attr("viewBox",`0 0 ${m} ${f}`),re(b,f,m,d.useMaxWidth);for(let[v,x]of h.entries())T(b,x,v,d);b.append("text").text(s).attr("x",m/2).attr("y",f-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=t((e,r,o,{rowHeight:i,paddingX:c,paddingY:d,bitWidth:a,bitsPerRow:n,showBits:g})=>{let p=e.append("g"),h=o*(i+d)+d;for(let s of r){let k=s.start%n*a+1,f=(s.end-s.start+1)*a-c;if(p.append("rect").attr("x",k).attr("y",h).attr("width",f).attr("height",i).attr("class","packetBlock"),p.append("text").attr("x",k+f/2).attr("y",h+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!g)continue;let m=s.end===s.start,b=h-2;if(p.append("text").attr("x",k+(m?f/2:0)).attr("y",b).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",m?"middle":"start").text(s.start),!m)p.append("text").attr("x",k+f).attr("y",b).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),P={draw:D},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},W=t(({packet:e}={})=>{let r=ue(A,e);return`
2
2
  .packetByte {
3
3
  font-size: ${r.byteFontSize};
4
4
  }
@@ -21,4 +21,4 @@ import{xe}from"./index-bwwgtesb.js";import{t,l,Y,C,re,M,O,G,z,j,q,H,Ae,ce}from".
21
21
  stroke-width: ${r.blockStrokeWidth};
22
22
  fill: ${r.blockFillColor};
23
23
  }
24
- `},"styles"),U={parser:w,get db(){return new u},renderer:E,styles:A};export{U as diagram};
24
+ `},"styles"),U={parser:w,get db(){return new u},renderer:P,styles:W};export{U as diagram};
@@ -1,4 +1,4 @@
1
- import{xe}from"./index-bwwgtesb.js";import{t,l,Yt,Y,C,re,M,O,G,z,j,q,H,Ae,ce}from"./index-kbaffwp1.js";import{$e}from"./index-cwwg7k5f.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b=32,A={axes:[],curves:[],options:h},x=structuredClone(A),E=Y.radar,F=t(()=>ce({...E,...C().radar}),"getConfig"),L=t(()=>x.axes,"getAxes"),D=t(()=>x.curves,"getCurves"),P=t(()=>x.options,"getOptions"),B=t((r)=>{x.axes=r.map((e)=>({name:e.name,label:e.label??e.name}))},"setAxes"),W=t((r)=>{x.curves=r.map((e)=>({name:e.name,label:e.label??e.name,entries:V(e.entries)}))},"setCurves"),V=t((r)=>{if(r[0].axis==null)return r.map((a)=>a.value);let e=L();if(e.length===0)throw Error("Axes must be populated before curves for reference entries");return e.map((a)=>{let n=r.find((s)=>s.axis?.$refText===a.name);if(n===void 0)throw Error("Missing entry for axis "+a.label);return n.value})},"computeCurveEntries"),U=t((r)=>{let e=r.reduce((a,n)=>(a[n.name]=n,a),{});if(x.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule},x.options.ticks>b)l.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${b}). Using ${b} instead.`),x.options.ticks=b},"setOptions"),X=t(()=>{M(),x=structuredClone(A)},"clear"),y={getAxes:L,getCurves:D,getOptions:P,setAxes:B,setCurves:W,setOptions:U,getConfig:F,clear:X,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,getAccDescription:j,setAccDescription:z},K=t((r)=>{xe(r,y);let{axes:e,curves:a,options:n}=r;y.setAxes(e),y.setCurves(a),y.setOptions(n)},"populate"),N={parse:t(async(r)=>{let e=await $e("radar",r);l.debug(e),K(e)},"parse")},Z=t((r,e,a,n)=>{let s=n.db,c=s.getAxes(),d=s.getCurves(),o=s.getOptions(),i=s.getConfig(),u=s.getDiagramTitle(),m=Ae(e),p=J(m,i),g=o.max??Math.max(...d.map((w)=>Math.max(...w.entries))),v=o.min,f=Math.min(i.width,i.height)/2;Q(p,c,f,o.ticks,o.graticule),tt(p,c,f,i),T(p,c,d,v,g,o.graticule,i),R(p,d,o.showLegend,i),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-i.height/2-i.marginTop)},"draw"),J=t((r,e)=>{let a=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return re(r,n,a,e.useMaxWidth??!0),r.attr("viewBox",`0 0 ${a} ${n}`).attr("overflow","visible"),r.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),Q=t((r,e,a,n,s)=>{if(s==="circle")for(let c=0;c<n;c++){let d=a*(c+1)/n;r.append("circle").attr("r",d).attr("class","radarGraticule")}else if(s==="polygon"){let c=e.length;for(let d=0;d<n;d++){let o=a*(d+1)/n,i=e.map((u,m)=>{let p=2*m*Math.PI/c-Math.PI/2,g=o*Math.cos(p),v=o*Math.sin(p);return`${g},${v}`}).join(" ");r.append("polygon").attr("points",i).attr("class","radarGraticule")}}},"drawGraticule"),tt=t((r,e,a,n)=>{let s=e.length;for(let c=0;c<s;c++){let d=e[c].label,o=2*c*Math.PI/s-Math.PI/2,i=Math.cos(o),u=Math.sin(o);r.append("line").attr("x1",0).attr("y1",0).attr("x2",a*n.axisScaleFactor*i).attr("y2",a*n.axisScaleFactor*u).attr("class","radarAxisLine");let m=i>0.01?"start":i<-0.01?"end":"middle",p=u>0.01?"hanging":u<-0.01?"auto":"central",g=4;r.append("text").text(d).attr("x",a*n.axisLabelFactor*i+g*i).attr("y",a*n.axisLabelFactor*u+g*u).attr("text-anchor",m).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function T(r,e,a,n,s,c,d){let o=e.length,i=Math.min(d.width,d.height)/2;a.forEach((u,m)=>{if(u.entries.length!==o)return;let p=u.entries.map((g,v)=>{let f=2*Math.PI*v/o-Math.PI/2,w=S(g,n,s,i),I=w*Math.cos(f),_=w*Math.sin(f);return{x:I,y:_}});if(c==="circle")r.append("path").attr("d",k(p,d.curveTension)).attr("class",`radarCurve-${m}`);else if(c==="polygon")r.append("polygon").attr("points",p.map((g)=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}t(T,"drawCurves");function S(r,e,a,n){let s=Math.min(Math.max(r,e),a);return n*(s-e)/(a-e)}t(S,"relativeRadius");function k(r,e){let a=r.length,n=`M${r[0].x},${r[0].y}`;for(let s=0;s<a;s++){let c=r[(s-1+a)%a],d=r[s],o=r[(s+1)%a],i=r[(s+2)%a],u={x:d.x+(o.x-c.x)*e,y:d.y+(o.y-c.y)*e},m={x:o.x-(i.x-d.x)*e,y:o.y-(i.y-d.y)*e};n+=` C${u.x},${u.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${n} Z`}t(k,"closedRoundCurve");function R(r,e,a,n){if(!a)return;let s=(n.width/2+n.marginRight)*3/4,c=-(n.height/2+n.marginTop)*3/4,d=20;e.forEach((o,i)=>{let u=r.append("g").attr("transform",`translate(${s}, ${c+i*d})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${i}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}t(R,"drawLegend");var et={draw:Z},at=t((r,e)=>{let a="";for(let n=0;n<r.THEME_COLOR_LIMIT;n++){let s=r[`cScale${n}`];a+=`
1
+ import{xe}from"./index-ver116ed.js";import{t,l,Jt,Y,E,re,F,O,G,z,j,q,H,Ae,ue}from"./index-xfyxmaj1.js";import{$e}from"./index-wnk9k57k.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},C=32,b={axes:[],curves:[],options:h},x=structuredClone(b),I=Y.radar,_=t(()=>ue({...I,...E().radar}),"getConfig"),A=t(()=>x.axes,"getAxes"),D=t(()=>x.curves,"getCurves"),P=t(()=>x.options,"getOptions"),B=t((r)=>{x.axes=r.map((e)=>({name:e.name,label:e.label??e.name}))},"setAxes"),W=t((r)=>{x.curves=r.map((e)=>({name:e.name,label:e.label??e.name,entries:V(e.entries)}))},"setCurves"),V=t((r)=>{if(r[0].axis==null)return r.map((a)=>a.value);let e=A();if(e.length===0)throw Error("Axes must be populated before curves for reference entries");return e.map((a)=>{let n=r.find((s)=>s.axis?.$refText===a.name);if(n===void 0)throw Error("Missing entry for axis "+a.label);return n.value})},"computeCurveEntries"),U=t((r)=>{let e=r.reduce((a,n)=>(a[n.name]=n,a),{});if(x.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule},x.options.ticks>C)l.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${C}). Using ${C} instead.`),x.options.ticks=C},"setOptions"),X=t(()=>{F(),x=structuredClone(b)},"clear"),y={getAxes:A,getCurves:D,getOptions:P,setAxes:B,setCurves:W,setOptions:U,getConfig:_,clear:X,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,getAccDescription:j,setAccDescription:z},K=t((r)=>{xe(r,y);let{axes:e,curves:a,options:n}=r;y.setAxes(e),y.setCurves(a),y.setOptions(n)},"populate"),N={parse:t(async(r)=>{let e=await $e("radar",r);l.debug(e),K(e)},"parse")},Z=t((r,e,a,n)=>{let s=n.db,c=s.getAxes(),d=s.getCurves(),o=s.getOptions(),i=s.getConfig(),u=s.getDiagramTitle(),m=Ae(e),p=J(m,i),g=o.max??Math.max(...d.map((w)=>Math.max(...w.entries))),v=o.min,f=Math.min(i.width,i.height)/2;Q(p,c,f,o.ticks,o.graticule),tt(p,c,f,i),M(p,c,d,v,g,o.graticule,i),S(p,d,o.showLegend,i),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-i.height/2-i.marginTop)},"draw"),J=t((r,e)=>{let a=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return re(r,n,a,e.useMaxWidth??!0),r.attr("viewBox",`0 0 ${a} ${n}`).attr("overflow","visible"),r.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),Q=t((r,e,a,n,s)=>{if(s==="circle")for(let c=0;c<n;c++){let d=a*(c+1)/n;r.append("circle").attr("r",d).attr("class","radarGraticule")}else if(s==="polygon"){let c=e.length;for(let d=0;d<n;d++){let o=a*(d+1)/n,i=e.map((u,m)=>{let p=2*m*Math.PI/c-Math.PI/2,g=o*Math.cos(p),v=o*Math.sin(p);return`${g},${v}`}).join(" ");r.append("polygon").attr("points",i).attr("class","radarGraticule")}}},"drawGraticule"),tt=t((r,e,a,n)=>{let s=e.length;for(let c=0;c<s;c++){let d=e[c].label,o=2*c*Math.PI/s-Math.PI/2,i=Math.cos(o),u=Math.sin(o);r.append("line").attr("x1",0).attr("y1",0).attr("x2",a*n.axisScaleFactor*i).attr("y2",a*n.axisScaleFactor*u).attr("class","radarAxisLine");let m=i>0.01?"start":i<-0.01?"end":"middle",p=u>0.01?"hanging":u<-0.01?"auto":"central",g=4;r.append("text").text(d).attr("x",a*n.axisLabelFactor*i+g*i).attr("y",a*n.axisLabelFactor*u+g*u).attr("text-anchor",m).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function M(r,e,a,n,s,c,d){let o=e.length,i=Math.min(d.width,d.height)/2;a.forEach((u,m)=>{if(u.entries.length!==o)return;let p=u.entries.map((g,v)=>{let f=2*Math.PI*v/o-Math.PI/2,w=L(g,n,s,i),k=w*Math.cos(f),R=w*Math.sin(f);return{x:k,y:R}});if(c==="circle")r.append("path").attr("d",T(p,d.curveTension)).attr("class",`radarCurve-${m}`);else if(c==="polygon")r.append("polygon").attr("points",p.map((g)=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}t(M,"drawCurves");function L(r,e,a,n){let s=Math.min(Math.max(r,e),a);return n*(s-e)/(a-e)}t(L,"relativeRadius");function T(r,e){let a=r.length,n=`M${r[0].x},${r[0].y}`;for(let s=0;s<a;s++){let c=r[(s-1+a)%a],d=r[s],o=r[(s+1)%a],i=r[(s+2)%a],u={x:d.x+(o.x-c.x)*e,y:d.y+(o.y-c.y)*e},m={x:o.x-(i.x-d.x)*e,y:o.y-(i.y-d.y)*e};n+=` C${u.x},${u.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${n} Z`}t(T,"closedRoundCurve");function S(r,e,a,n){if(!a)return;let s=(n.width/2+n.marginRight)*3/4,c=-(n.height/2+n.marginTop)*3/4,d=20;e.forEach((o,i)=>{let u=r.append("g").attr("transform",`translate(${s}, ${c+i*d})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${i}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}t(S,"drawLegend");var et={draw:Z},at=t((r,e)=>{let a="";for(let n=0;n<r.THEME_COLOR_LIMIT;n++){let s=r[`cScale${n}`];a+=`
2
2
  .radarCurve-${n} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -11,7 +11,7 @@ import{xe}from"./index-bwwgtesb.js";import{t,l,Yt,Y,C,re,M,O,G,z,j,q,H,Ae,ce}fro
11
11
  fill-opacity: ${e.curveOpacity};
12
12
  stroke: ${s};
13
13
  }
14
- `}return a},"genIndexStyles"),rt=t((r)=>{let e=Yt(),a=C(),n=ce(e,a.themeVariables),s=ce(n.radar,r);return{themeVariables:n,radarOptions:s}},"buildRadarStyleOptions"),nt=t(({radar:r}={})=>{let{themeVariables:e,radarOptions:a}=rt(r);return`
14
+ `}return a},"genIndexStyles"),rt=t((r)=>{let e=Jt(),a=E(),n=ue(e,a.themeVariables),s=ue(n.radar,r);return{themeVariables:n,radarOptions:s}},"buildRadarStyleOptions"),nt=t(({radar:r}={})=>{let{themeVariables:e,radarOptions:a}=rt(r);return`
15
15
  .radarTitle {
16
16
  font-size: ${e.fontSize};
17
17
  color: ${e.titleColor};
@@ -1 +1 @@
1
- import{Kd}from"./index-nr5gwny1.js";var e="from",o=new RegExp("^(\\s*)\\b("+e+")\\b","i"),n=["run","cmd","entrypoint","shell"],s=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),t="expose",l=new RegExp("^(\\s*)("+t+")(\\s+)","i"),x=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],g=[e,t].concat(n).concat(x),r="("+g.join("|")+")",u=new RegExp("^(\\s*)"+r+"(\\s*)(#.*)?$","i"),a=new RegExp("^(\\s*)"+r+"(\\s+)","i"),i=Kd({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:o,token:[null,"keyword"],sol:!0,next:"from"},{regex:u,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:l,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:a,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});export{i as dockerFile};
1
+ import{Xd}from"./index-rr79n77k.js";var e="from",o=new RegExp("^(\\s*)\\b("+e+")\\b","i"),n=["run","cmd","entrypoint","shell"],s=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),t="expose",l=new RegExp("^(\\s*)("+t+")(\\s+)","i"),x=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],g=[e,t].concat(n).concat(x),r="("+g.join("|")+")",u=new RegExp("^(\\s*)"+r+"(\\s*)(#.*)?$","i"),a=new RegExp("^(\\s*)"+r+"(\\s+)","i"),i=Xd({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:o,token:[null,"keyword"],sol:!0,next:"from"},{regex:u,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:l,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:a,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});export{i as dockerFile};
@@ -1 +1 @@
1
- import{t,l}from"./index-kbaffwp1.js";import{je,Va,Ya}from"./index-q9gbwqbe.js";import{xe}from"./index-bwwgtesb.js";import{Kl,ga}from"./index-cwwg7k5f.js";var s=Kl().RailroadEbnf.parser.LangiumParser,a=t((e)=>{let r=e.alternatives.map(i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),i=t((e)=>{let r=e.elements.map(p);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),o=t((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return a(e.element);case"EbnfOptional":return{type:"optional",element:a(e.element)};case"EbnfRepetition":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),m=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},o(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),p=t((e)=>e.postfixes.reduce((r,n)=>m(r,n),o(e.base)),"transformTerm"),f=t((e)=>({name:e.name,definition:a(e.definition)}),"transformRule"),u=t((e)=>{if(xe(e,je),e.title)je.setTitle(e.title);e.rules.map((r)=>je.addRule(f(r)))},"populateDb"),c={parse:t((e)=>{je.clear(),l.debug("[EBNF Parser] Starting Langium parse");let r=s.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new ga(r);let n=r.value;l.debug("[EBNF Parser] Parsed rules:",n.rules.length),u(n),l.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:je}},x={parser:c,db:je,renderer:Ya,styles:Va};export{x as diagram};
1
+ import{t,l}from"./index-xfyxmaj1.js";import{je,Va,Ya}from"./index-nzq51nbb.js";import{xe}from"./index-ver116ed.js";import{Vl,ga}from"./index-wnk9k57k.js";var s=Vl().RailroadEbnf.parser.LangiumParser,a=t((e)=>{let r=e.alternatives.map(i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),i=t((e)=>{let r=e.elements.map(p);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),o=t((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return a(e.element);case"EbnfOptional":return{type:"optional",element:a(e.element)};case"EbnfRepetition":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),m=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},o(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),p=t((e)=>e.postfixes.reduce((r,n)=>m(r,n),o(e.base)),"transformTerm"),f=t((e)=>({name:e.name,definition:a(e.definition)}),"transformRule"),u=t((e)=>{if(xe(e,je),e.title)je.setTitle(e.title);e.rules.map((r)=>je.addRule(f(r)))},"populateDb"),c={parse:t((e)=>{je.clear(),l.debug("[EBNF Parser] Starting Langium parse");let r=s.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new ga(r);let n=r.value;l.debug("[EBNF Parser] Parsed rules:",n.rules.length),u(n),l.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:je}},x={parser:c,db:je,renderer:Ya,styles:Va};export{x as diagram};
@@ -1 +1 @@
1
- import"./index-q0k1am0g.js";import"./index-mpyd7qxj.js";import{qn}from"./index-60g0e74a.js";var e=Object.freeze(JSON.parse('{"displayName":"Elixir","fileTypes":["ex","exs"],"firstLineMatch":"^#!/.*\\\\belixir","foldingStartMarker":"(after|else|catch|rescue|->|[\\\\[{]|do)\\\\s*$","foldingStopMarker":"^\\\\s*(([]}]|after|else|catch|rescue)\\\\s*$|end\\\\b)","name":"elixir","patterns":[{"begin":"\\\\b(fn)\\\\b(?!.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"$","patterns":[{"include":"#core_syntax"}]},{"captures":{"1":{"name":"entity.name.type.class.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"([A-Z]\\\\w+)\\\\s*(\\\\.)\\\\s*([_a-z]\\\\w*[!?]?)"},{"captures":{"1":{"name":"constant.other.symbol.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"(:\\\\w+)\\\\s*(\\\\.)\\\\s*(_?\\\\w*[!?]?)"},{"captures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"entity.name.function.elixir"}},"match":"(\\\\|>)\\\\s*([_a-z]\\\\w*[!?]?)"},{"match":"\\\\b[_a-z]\\\\w*[!?]?(?=\\\\s*\\\\.?\\\\s*\\\\()","name":"entity.name.function.elixir"},{"begin":"\\\\b(fn)\\\\b(?=.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]},{"include":"#core_syntax"},{"begin":"^(?=.*->)((?![^\\"\']*([\\"\'])[^\\"\']*->)|(?=.*->[^\\"\']*([\\"\'])[^\\"\']*->))((?!.*\\\\([^)]*->)|(?=[^()]*->)|(?=\\\\s*\\\\(.*\\\\).*->))((?!.*\\\\b(fn)\\\\b)|(?=.*->.*\\\\bfn\\\\b))","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]}],"repository":{"core_syntax":{"patterns":[{"begin":"^\\\\s*(defmodule)\\\\b","beginCaptures":{"1":{"name":"keyword.control.module.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.module.elixir"}},"name":"meta.module.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*(?=\\\\.)","name":"entity.other.inherited-class.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"}]},{"begin":"^\\\\s*(defprotocol)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_declaration.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(defimpl)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_implementation.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(def(?:|macro|delegate|guard))\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.public.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:|n|macro|delegate|guard))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.public.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"^\\\\s*(def(?:|n|macro|guard)p)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.private.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:p|macrop|guardp))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.private.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"\\\\s*~L\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.leex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"\\\\s*~H\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.heex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"@(module|type)?doc (~[a-z])?\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc"},{"begin":"@(module|type)?doc (~[a-z])?\'\'\'","end":"\\\\s*\'\'\'","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\'\'\'","end":"\\\\s*\'\'\'","name":"comment.block.documentation.heredoc"},{"match":"@(module|type)?doc false","name":"comment.block.documentation.false"},{"begin":"@(module|type)?doc \\"","end":"\\"","name":"comment.block.documentation.string","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\.)\\\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\\\\b(?![!:?])","name":"keyword.control.elixir"},{"match":"(?<!\\\\.)\\\\b(and|not|or|when|xor|in)\\\\b","name":"keyword.operator.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"},{"match":"\\\\b(nil|true|false)\\\\b(?![!?])","name":"constant.language.elixir"},{"match":"\\\\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\\\\b(?![!?])","name":"variable.language.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.module.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(&)\\\\d+","name":"variable.other.anonymous.elixir"},{"match":"&(?!&)","name":"variable.other.anonymous.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"\\\\^[_a-z]\\\\w*","name":"variable.other.capture.elixir"},{"match":"\\\\b0x\\\\h(?>_?\\\\h)*\\\\b","name":"constant.numeric.hex.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)+)([Ee][-+]?\\\\d(?>_?\\\\d)*)?\\\\b","name":"constant.numeric.float.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*\\\\b","name":"constant.numeric.integer.elixir"},{"match":"\\\\b0b[01](?>_?[01])*\\\\b","name":"constant.numeric.binary.elixir"},{"match":"\\\\b0o[0-7](?>_?[0-7])*\\\\b","name":"constant.numeric.octal.elixir"},{"begin":":\'","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\'","name":"constant.other.symbol.single-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":":\\"","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\\"","name":"constant.other.symbol.double-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\'\'\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\'\'\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[A-Z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.literal.elixir"},{"begin":"~[A-Z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?<!:)(:)(?>[A-Z_a-z][@\\\\w]*(?>[!?]|=(?![=>]))?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\\\|>|=>|=~|[/=]|\\\\\\\\\\\\\\\\|\\\\*\\\\*?|\\\\.\\\\.?\\\\.?|\\\\.\\\\.//|>=?|<=?|&&?&?|\\\\+\\\\+?|--?|\\\\|\\\\|?\\\\|?|[!@]|%?\\\\{}|%|\\\\[]|\\\\^(\\\\^\\\\^)?)","name":"constant.other.symbol.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?>[A-Z_a-z][@\\\\w]*[!?]?)(:)(?!:)","name":"constant.other.keywords.elixir"},{"begin":"(^[\\\\t ]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.section.elixir"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.number-sign.elixir"}]},{"match":"\\\\b_([^_]\\\\w+[!?]?)","name":"comment.unused.elixir"},{"match":"\\\\b_\\\\b","name":"comment.wildcard.elixir"},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|[^CMx])|[^\\\\\\\\\\\\s])","name":"constant.numeric.elixir"},{"match":"\\\\+\\\\+|--|<\\\\|>","name":"keyword.operator.concatenation.elixir"},{"match":"\\\\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\\\\|>","name":"keyword.operator.sigils_1.elixir"},{"match":"&&&?","name":"keyword.operator.sigils_2.elixir"},{"match":"<-|\\\\\\\\\\\\\\\\","name":"keyword.operator.sigils_3.elixir"},{"match":"===?|!==?|<=?|>=?","name":"keyword.operator.comparison.elixir"},{"match":"(\\\\|\\\\|\\\\||&&&|\\\\^\\\\^\\\\^|<<<|>>>|~~~)","name":"keyword.operator.bitwise.elixir"},{"match":"(?<=[\\\\t ])!+|\\\\bnot\\\\b|&&|\\\\band\\\\b|\\\\|\\\\||\\\\bor\\\\b|\\\\bxor\\\\b","name":"keyword.operator.logical.elixir"},{"match":"([-*+/])","name":"keyword.operator.arithmetic.elixir"},{"match":"\\\\||\\\\+\\\\+|--|\\\\*\\\\*|\\\\\\\\\\\\\\\\|<-|<>|<<|>>|::|\\\\.\\\\.|//|\\\\|>|~|=>|&","name":"keyword.operator.other.elixir"},{"match":"=","name":"keyword.operator.assignment.elixir"},{"match":":","name":"punctuation.separator.other.elixir"},{"match":";","name":"punctuation.separator.statement.elixir"},{"match":",","name":"punctuation.separator.object.elixir"},{"match":"\\\\.","name":"punctuation.separator.method.elixir"},{"match":"[{}]","name":"punctuation.section.scope.elixir"},{"match":"[]\\\\[]","name":"punctuation.section.array.elixir"},{"match":"[()]","name":"punctuation.section.function.elixir"}]},"escaped_char":{"match":"\\\\\\\\(x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escaped.elixir"},"interpolated_elixir":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.elixir"}},"contentName":"source.elixir","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.elixir"}},"name":"meta.embedded.line.elixir","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.elixir"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]}},"scopeName":"source.elixir","embeddedLangs":["html"]}')),n=[...qn,e];export{n as default};
1
+ import"./index-q0k1am0g.js";import"./index-mpyd7qxj.js";import{Wn}from"./index-dqf0srrp.js";var e=Object.freeze(JSON.parse('{"displayName":"Elixir","fileTypes":["ex","exs"],"firstLineMatch":"^#!/.*\\\\belixir","foldingStartMarker":"(after|else|catch|rescue|->|[\\\\[{]|do)\\\\s*$","foldingStopMarker":"^\\\\s*(([]}]|after|else|catch|rescue)\\\\s*$|end\\\\b)","name":"elixir","patterns":[{"begin":"\\\\b(fn)\\\\b(?!.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"$","patterns":[{"include":"#core_syntax"}]},{"captures":{"1":{"name":"entity.name.type.class.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"([A-Z]\\\\w+)\\\\s*(\\\\.)\\\\s*([_a-z]\\\\w*[!?]?)"},{"captures":{"1":{"name":"constant.other.symbol.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"(:\\\\w+)\\\\s*(\\\\.)\\\\s*(_?\\\\w*[!?]?)"},{"captures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"entity.name.function.elixir"}},"match":"(\\\\|>)\\\\s*([_a-z]\\\\w*[!?]?)"},{"match":"\\\\b[_a-z]\\\\w*[!?]?(?=\\\\s*\\\\.?\\\\s*\\\\()","name":"entity.name.function.elixir"},{"begin":"\\\\b(fn)\\\\b(?=.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]},{"include":"#core_syntax"},{"begin":"^(?=.*->)((?![^\\"\']*([\\"\'])[^\\"\']*->)|(?=.*->[^\\"\']*([\\"\'])[^\\"\']*->))((?!.*\\\\([^)]*->)|(?=[^()]*->)|(?=\\\\s*\\\\(.*\\\\).*->))((?!.*\\\\b(fn)\\\\b)|(?=.*->.*\\\\bfn\\\\b))","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]}],"repository":{"core_syntax":{"patterns":[{"begin":"^\\\\s*(defmodule)\\\\b","beginCaptures":{"1":{"name":"keyword.control.module.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.module.elixir"}},"name":"meta.module.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*(?=\\\\.)","name":"entity.other.inherited-class.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"}]},{"begin":"^\\\\s*(defprotocol)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_declaration.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(defimpl)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_implementation.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(def(?:|macro|delegate|guard))\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.public.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:|n|macro|delegate|guard))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.public.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"^\\\\s*(def(?:|n|macro|guard)p)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.private.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:p|macrop|guardp))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.private.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"\\\\s*~L\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.leex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"\\\\s*~H\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.heex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"@(module|type)?doc (~[a-z])?\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc"},{"begin":"@(module|type)?doc (~[a-z])?\'\'\'","end":"\\\\s*\'\'\'","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\'\'\'","end":"\\\\s*\'\'\'","name":"comment.block.documentation.heredoc"},{"match":"@(module|type)?doc false","name":"comment.block.documentation.false"},{"begin":"@(module|type)?doc \\"","end":"\\"","name":"comment.block.documentation.string","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\.)\\\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\\\\b(?![!:?])","name":"keyword.control.elixir"},{"match":"(?<!\\\\.)\\\\b(and|not|or|when|xor|in)\\\\b","name":"keyword.operator.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"},{"match":"\\\\b(nil|true|false)\\\\b(?![!?])","name":"constant.language.elixir"},{"match":"\\\\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\\\\b(?![!?])","name":"variable.language.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.module.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(&)\\\\d+","name":"variable.other.anonymous.elixir"},{"match":"&(?!&)","name":"variable.other.anonymous.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"\\\\^[_a-z]\\\\w*","name":"variable.other.capture.elixir"},{"match":"\\\\b0x\\\\h(?>_?\\\\h)*\\\\b","name":"constant.numeric.hex.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)+)([Ee][-+]?\\\\d(?>_?\\\\d)*)?\\\\b","name":"constant.numeric.float.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*\\\\b","name":"constant.numeric.integer.elixir"},{"match":"\\\\b0b[01](?>_?[01])*\\\\b","name":"constant.numeric.binary.elixir"},{"match":"\\\\b0o[0-7](?>_?[0-7])*\\\\b","name":"constant.numeric.octal.elixir"},{"begin":":\'","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\'","name":"constant.other.symbol.single-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":":\\"","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\\"","name":"constant.other.symbol.double-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\'\'\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\'\'\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[A-Z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.literal.elixir"},{"begin":"~[A-Z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?<!:)(:)(?>[A-Z_a-z][@\\\\w]*(?>[!?]|=(?![=>]))?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\\\|>|=>|=~|[/=]|\\\\\\\\\\\\\\\\|\\\\*\\\\*?|\\\\.\\\\.?\\\\.?|\\\\.\\\\.//|>=?|<=?|&&?&?|\\\\+\\\\+?|--?|\\\\|\\\\|?\\\\|?|[!@]|%?\\\\{}|%|\\\\[]|\\\\^(\\\\^\\\\^)?)","name":"constant.other.symbol.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?>[A-Z_a-z][@\\\\w]*[!?]?)(:)(?!:)","name":"constant.other.keywords.elixir"},{"begin":"(^[\\\\t ]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.section.elixir"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.number-sign.elixir"}]},{"match":"\\\\b_([^_]\\\\w+[!?]?)","name":"comment.unused.elixir"},{"match":"\\\\b_\\\\b","name":"comment.wildcard.elixir"},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|[^CMx])|[^\\\\\\\\\\\\s])","name":"constant.numeric.elixir"},{"match":"\\\\+\\\\+|--|<\\\\|>","name":"keyword.operator.concatenation.elixir"},{"match":"\\\\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\\\\|>","name":"keyword.operator.sigils_1.elixir"},{"match":"&&&?","name":"keyword.operator.sigils_2.elixir"},{"match":"<-|\\\\\\\\\\\\\\\\","name":"keyword.operator.sigils_3.elixir"},{"match":"===?|!==?|<=?|>=?","name":"keyword.operator.comparison.elixir"},{"match":"(\\\\|\\\\|\\\\||&&&|\\\\^\\\\^\\\\^|<<<|>>>|~~~)","name":"keyword.operator.bitwise.elixir"},{"match":"(?<=[\\\\t ])!+|\\\\bnot\\\\b|&&|\\\\band\\\\b|\\\\|\\\\||\\\\bor\\\\b|\\\\bxor\\\\b","name":"keyword.operator.logical.elixir"},{"match":"([-*+/])","name":"keyword.operator.arithmetic.elixir"},{"match":"\\\\||\\\\+\\\\+|--|\\\\*\\\\*|\\\\\\\\\\\\\\\\|<-|<>|<<|>>|::|\\\\.\\\\.|//|\\\\|>|~|=>|&","name":"keyword.operator.other.elixir"},{"match":"=","name":"keyword.operator.assignment.elixir"},{"match":":","name":"punctuation.separator.other.elixir"},{"match":";","name":"punctuation.separator.statement.elixir"},{"match":",","name":"punctuation.separator.object.elixir"},{"match":"\\\\.","name":"punctuation.separator.method.elixir"},{"match":"[{}]","name":"punctuation.section.scope.elixir"},{"match":"[]\\\\[]","name":"punctuation.section.array.elixir"},{"match":"[()]","name":"punctuation.section.function.elixir"}]},"escaped_char":{"match":"\\\\\\\\(x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escaped.elixir"},"interpolated_elixir":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.elixir"}},"contentName":"source.elixir","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.elixir"}},"name":"meta.embedded.line.elixir","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.elixir"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]}},"scopeName":"source.elixir","embeddedLangs":["html"]}')),n=[...Wn,e];export{n as default};
@@ -1,2 +1,2 @@
1
- import{t,va,ka,zg,Zt,xm}from"./index-kbaffwp1.js";import{Zl}from"./index-c2vc6znd.js";import"./index-hge0y4vn.js";import{oi,Sp}from"./index-3x3nhs8n.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}));Zl(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(Zt[e]??0,xm[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,Ot=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,St=24,Pt=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 Mt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=St,e["spacing.nodeNode"]=Pt}t(Mt,"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(!zg(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!zg(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function Nt(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":St,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Pt,"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":Ot},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(Nt,"buildSubgraphLayoutOptions");function At(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(At,"findCyclicEntryNodes");function _t(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=At(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(_t,"applyCyclicEntryConstraint");function vt(e,r){let n=at(r);return Dt(n),se(e,n),{algorithm:n.algorithm}}t(vt,"prepareLayoutForElk");async function Rt(e,r){let n=at(r),o=Tt(e,n),i=new yt;n.log.info("Drawing flowchart using v4 renderer",i);let s=await Yt(i,o.elkGraph,n.log);return Kt(e,s,o,n.log),Ct(e.nodes),s}t(Rt,"runElkLayoutCore");function Tt(e,r){let n={},o=Lt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Gt(e.nodes,r.log);return lt(e.nodes,o,n,r),Ht(e,o,n,r),Wt(e,n,s,r),$t(o,n,s,r.log),_t(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Tt,"buildElkGraphFromLayoutData");var Ve=oi({afterPaint:bt,prepareLayout:vt,measureLayout:t((e,r)=>Sp(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Rt,paintOptions:{skipIntersect:!0}});function Dt(e){va(e.getConfig())}t(Dt,"syncHostConfig");function Ct(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(Ct,"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 Lt(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":Ot},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(Lt,"createRootElkGraph");function Gt(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(Gt,"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)=>{Bt(r,e,a,n,o)}),r}t(lt,"addVertices");function Bt(e,r,n,o,i){let s=Ft(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ut(n,i.getConfig())}t(Bt,"addVertex");function Ft(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(Ft,"createElkNode");function Ut(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(Ut,"getMeasuredLabelData");function Ht(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}=Xt(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(Ht,"addEdgesToElkGraph");function Xt(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(Xt,"getEdgeStartEndPoint");function Wt(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=Nt(s,e.config.elk,o.algorithm,o.log),delete s.x,delete s.y,delete s.width,delete s.height})}t(Wt,"configureSubgraphNodes");function $t(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($t,"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"),Mt(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 Yt(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(Yt,"runElkLayout");function Kt(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(Kt,"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 jt(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(jt,"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=jt(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 Vt(e){let r=j(e)??e,n=[...r].reverse(),o=j(n);if(o)r=o.reverse();return r}t(Vt,"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 zt(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(zt,"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(zt(e[o],e[o+1],r[i],r[i+1]))n++;return n}t(V,"crossingCount");function Jt(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=Vt(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(Jt,"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=Qt(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)Jt(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 Qt(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(Qt,"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),ka);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,va,ka,Yg,Xt,Im}from"./index-xfyxmaj1.js";import{Xl}from"./index-q5q8a3qn.js";import"./index-vf01q99d.js";import{si,Rp}from"./index-k56patms.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}));Xl(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(Xt[e]??0,Im[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,Ot=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,St=24,Pt=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 Mt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=St,e["spacing.nodeNode"]=Pt}t(Mt,"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(!Yg(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!Yg(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function Nt(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":St,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Pt,"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":Ot},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(Nt,"buildSubgraphLayoutOptions");function At(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(At,"findCyclicEntryNodes");function _t(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=At(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(_t,"applyCyclicEntryConstraint");function vt(e,r){let n=at(r);return Dt(n),se(e,n),{algorithm:n.algorithm}}t(vt,"prepareLayoutForElk");async function Rt(e,r){let n=at(r),o=Tt(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),Ct(e.nodes),s}t(Rt,"runElkLayoutCore");function Tt(e,r){let n={},o=Lt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Gt(e.nodes,r.log);return lt(e.nodes,o,n,r),Ht(e,o,n,r),$t(e,n,s,r),Yt(o,n,s,r.log),_t(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Tt,"buildElkGraphFromLayoutData");var Ve=si({afterPaint:bt,prepareLayout:vt,measureLayout:t((e,r)=>Rp(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Rt,paintOptions:{skipIntersect:!0}});function Dt(e){va(e.getConfig())}t(Dt,"syncHostConfig");function Ct(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(Ct,"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 Lt(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":Ot},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(Lt,"createRootElkGraph");function Gt(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(Gt,"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)=>{Bt(r,e,a,n,o)}),r}t(lt,"addVertices");function Bt(e,r,n,o,i){let s=Ft(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ut(n,i.getConfig())}t(Bt,"addVertex");function Ft(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(Ft,"createElkNode");function Ut(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(Ut,"getMeasuredLabelData");function Ht(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(Ht,"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=Nt(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"),Mt(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),ka);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};