@omg-dev/app 0.1.308

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 (423) hide show
  1. package/LICENSE +21 -0
  2. package/dist-lib/BrowserProfiles-BKqSwtW3.js +650 -0
  3. package/dist-lib/ChangelogPage-DUF8wn1F.js +2978 -0
  4. package/dist-lib/File-BszRWhXA.js +5866 -0
  5. package/dist-lib/FileEditor-ByMnm-sa.js +6892 -0
  6. package/dist-lib/FileTreePane-BG2k7gTc.js +8422 -0
  7. package/dist-lib/FileViewer-DgjR_OJp.js +18 -0
  8. package/dist-lib/SessionFilesPanel-Brfp2niD.js +336 -0
  9. package/dist-lib/TermView-BNcp4mex.js +4000 -0
  10. package/dist-lib/__vite-browser-external-2447137e-DYxpcVy9.js +4 -0
  11. package/dist-lib/_commonjsHelpers-C6fGbg64.js +6 -0
  12. package/dist-lib/abap-Y8Dl9g_6.js +6 -0
  13. package/dist-lib/abnfDiagram-VRR7QNED-Chn1Z_p9.js +87 -0
  14. package/dist-lib/actionscript-3-DQVEcJUW.js +6 -0
  15. package/dist-lib/ada-vP6ak0IW.js +6 -0
  16. package/dist-lib/agent-claude.svg +1 -0
  17. package/dist-lib/agent-codex.svg +1 -0
  18. package/dist-lib/agent-copilot.svg +1 -0
  19. package/dist-lib/agent-cursor.svg +4 -0
  20. package/dist-lib/agent-grok.svg +1 -0
  21. package/dist-lib/agent-hermes.svg +9 -0
  22. package/dist-lib/agent-opencode.svg +1 -0
  23. package/dist-lib/agent-pi.svg +7 -0
  24. package/dist-lib/andromeeda-BbmzSJq1.js +4 -0
  25. package/dist-lib/angular-html-DPB4Rf0C.js +32 -0
  26. package/dist-lib/angular-ts-CTOR2ofC.js +21 -0
  27. package/dist-lib/apache-BUjz-sD2.js +6 -0
  28. package/dist-lib/apex-OyTfjCYK.js +6 -0
  29. package/dist-lib/apl-CjNiDgad.js +16 -0
  30. package/dist-lib/apple-touch-icon.png +0 -0
  31. package/dist-lib/applescript-BPx7YFFu.js +6 -0
  32. package/dist-lib/ara-Z2fSOxSw.js +6 -0
  33. package/dist-lib/arc-B652oHQ-.js +83 -0
  34. package/dist-lib/architectureDiagram-ZJ3FMSHR-CMatArpz.js +4762 -0
  35. package/dist-lib/asciidoc-C1T9ziH6.js +6 -0
  36. package/dist-lib/asm-BTWLY5ym.js +6 -0
  37. package/dist-lib/astro-CFFExE8Q.js +18 -0
  38. package/dist-lib/aurora-x-BwoVEUWZ.js +4 -0
  39. package/dist-lib/awk-Fb0P9dkn.js +6 -0
  40. package/dist-lib/ayu-dark-DJoqd4M9.js +4 -0
  41. package/dist-lib/ayu-light-BzXEJRJ-.js +4 -0
  42. package/dist-lib/ayu-mirage-BJ2oZGzi.js +4 -0
  43. package/dist-lib/badge-CgdKT4o8.js +46 -0
  44. package/dist-lib/ballerina-oZK-YekG.js +6 -0
  45. package/dist-lib/bat-0FvbqU9S.js +6 -0
  46. package/dist-lib/beancount-DqJEb89h.js +6 -0
  47. package/dist-lib/berry-DODBq_Ff.js +6 -0
  48. package/dist-lib/bibtex-EULQRLY5.js +6 -0
  49. package/dist-lib/bicep-BorU73w0.js +6 -0
  50. package/dist-lib/bird2-CIjBSNj3.js +6 -0
  51. package/dist-lib/blade-D0HyNvCw.js +20 -0
  52. package/dist-lib/blockDiagram-677ZJIJ3-CEOPfI9A.js +2429 -0
  53. package/dist-lib/bsl-NkNNwerW.js +8 -0
  54. package/dist-lib/c-eeMepfLm.js +6 -0
  55. package/dist-lib/c3-BY5XW5ym.js +6 -0
  56. package/dist-lib/c4Diagram-LMCZKHZV-DcUHrESL.js +1578 -0
  57. package/dist-lib/cadence-02UX7mW8.js +6 -0
  58. package/dist-lib/cairo-DM6WF2e3.js +8 -0
  59. package/dist-lib/catppuccin-frappe-D3cH2rXe.js +4 -0
  60. package/dist-lib/catppuccin-latte-C0LRGUW4.js +4 -0
  61. package/dist-lib/catppuccin-macchiato-c5wQ11TT.js +4 -0
  62. package/dist-lib/catppuccin-mocha-WMD6Qvya.js +4 -0
  63. package/dist-lib/channel-B5lJFbed.js +5 -0
  64. package/dist-lib/chat-engine-BeMpvOlJ.js +7272 -0
  65. package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +15 -0
  66. package/dist-lib/chunk-32BRIVSS-IYmNSvH8.js +68 -0
  67. package/dist-lib/chunk-5VM5RSS4-DO2g-xIj.js +19 -0
  68. package/dist-lib/chunk-EX3LRPZG-N96wfks9.js +1421 -0
  69. package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +9 -0
  70. package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +664 -0
  71. package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +315 -0
  72. package/dist-lib/chunk-V7JOEXUC-DQwf2vkP.js +1534 -0
  73. package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +20 -0
  74. package/dist-lib/chunk-XXDRQBXY-Ccv4aRcn.js +8 -0
  75. package/dist-lib/clarity-PKm5CwqM.js +6 -0
  76. package/dist-lib/classDiagram-OUVF2IWQ-DOn-rhuL.js +16 -0
  77. package/dist-lib/classDiagram-v2-EOCWNBFH-DOn-rhuL.js +16 -0
  78. package/dist-lib/clipboard-paste-Cq1hNjMN.js +17 -0
  79. package/dist-lib/clojure-CXJfHrL3.js +6 -0
  80. package/dist-lib/cmake-BJz8BOTU.js +6 -0
  81. package/dist-lib/cobol-HihOMwht.js +10 -0
  82. package/dist-lib/codeowners-Bt9yU6NX.js +6 -0
  83. package/dist-lib/codeql-DHkodjjI.js +6 -0
  84. package/dist-lib/coding-agents-page-7V7PKijy.js +209 -0
  85. package/dist-lib/coffee-DGBR_nr_.js +8 -0
  86. package/dist-lib/common-lisp-EVqT9Zhp.js +6 -0
  87. package/dist-lib/coq-B0L9upzn.js +6 -0
  88. package/dist-lib/cose-bilkent-JH36ORCC-C-tACTrT.js +2609 -0
  89. package/dist-lib/cpp-Cj177cuW.js +18 -0
  90. package/dist-lib/create-BrnHvSDE.js +306 -0
  91. package/dist-lib/crystal-CRJyc4G-.js +18 -0
  92. package/dist-lib/csharp-CCgA4A09.js +6 -0
  93. package/dist-lib/css-CECN5uSL.js +6 -0
  94. package/dist-lib/csv-CmYOceLb.js +6 -0
  95. package/dist-lib/cue-ZzumE7IT.js +6 -0
  96. package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +23853 -0
  97. package/dist-lib/cynefinDiagram-TSTJHNR4-Be7CamD2.js +299 -0
  98. package/dist-lib/cypher-jpdmjtA6.js +6 -0
  99. package/dist-lib/cytoscape.esm-B0ledd6M.js +18786 -0
  100. package/dist-lib/d-CBagWSwH.js +6 -0
  101. package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +346 -0
  102. package/dist-lib/dark-plus-pUHDTVV0.js +4 -0
  103. package/dist-lib/dart-6ObCrKr9.js +6 -0
  104. package/dist-lib/dax-CcDT-8dH.js +6 -0
  105. package/dist-lib/defaultLocale-BgPVtth8.js +171 -0
  106. package/dist-lib/desktop-B93p9R9O.js +6 -0
  107. package/dist-lib/diagram-FQU43EPY-Jg12ow4Z.js +466 -0
  108. package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +530 -0
  109. package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +143 -0
  110. package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +353 -0
  111. package/dist-lib/diagram-WEI45ONY-D1kKPOc_.js +221 -0
  112. package/dist-lib/diff-BxzP2J8R.js +6 -0
  113. package/dist-lib/docker-CsHqm9tx.js +6 -0
  114. package/dist-lib/dotenv-BMjVjUL1.js +6 -0
  115. package/dist-lib/dracula-BtZx2Kac.js +4 -0
  116. package/dist-lib/dracula-soft-BKa-aqBv.js +4 -0
  117. package/dist-lib/dream-maker-PAx17jaB.js +6 -0
  118. package/dist-lib/ebnfDiagram-CCIWWBDH-BhQWrGMc.js +109 -0
  119. package/dist-lib/edge-BYQkOzbF.js +12 -0
  120. package/dist-lib/elixir-Dh036GMp.js +8 -0
  121. package/dist-lib/elm-BtNbw_Cd.js +8 -0
  122. package/dist-lib/emacs-lisp-Cfxdx5D-.js +6 -0
  123. package/dist-lib/embedded-DS7udW2I.js +41876 -0
  124. package/dist-lib/engine-compile-BeZvvx0I.js +10442 -0
  125. package/dist-lib/erDiagram-Q63AITRT-D2q6Nmwa.js +911 -0
  126. package/dist-lib/erb-ScVOXVpH.js +10 -0
  127. package/dist-lib/erlang-DNcDT8Hi.js +8 -0
  128. package/dist-lib/everforest-dark-DMCBqXCK.js +4 -0
  129. package/dist-lib/everforest-light-BbXl82Em.js +4 -0
  130. package/dist-lib/fennel-N4WcXuKx.js +6 -0
  131. package/dist-lib/fish-BTDEUgqH.js +6 -0
  132. package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +1645 -0
  133. package/dist-lib/fluent-BMXUxfv1.js +6 -0
  134. package/dist-lib/fortran-fixed-form-B67KFkXH.js +8 -0
  135. package/dist-lib/fortran-free-form-CwqYvCLJ.js +6 -0
  136. package/dist-lib/fsharp-CYOiIVNx.js +8 -0
  137. package/dist-lib/ganttDiagram-NO4QXBWP-C_Lj-cJB.js +2712 -0
  138. package/dist-lib/gdresource-CvCIUjhi.js +10 -0
  139. package/dist-lib/gdscript-DSAxJ_aS.js +6 -0
  140. package/dist-lib/gdshader-Bk8fF6yr.js +6 -0
  141. package/dist-lib/genie-DzUvd7U9.js +6 -0
  142. package/dist-lib/gherkin-DHRaV0YP.js +6 -0
  143. package/dist-lib/git-commit-Bd32YZ0K.js +8 -0
  144. package/dist-lib/git-rebase-ZWUFO_T4.js +8 -0
  145. package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +828 -0
  146. package/dist-lib/github-dark-DenFmJkN.js +4 -0
  147. package/dist-lib/github-dark-default-BJPUVz4H.js +4 -0
  148. package/dist-lib/github-dark-dimmed-DUshB20C.js +4 -0
  149. package/dist-lib/github-dark-high-contrast-D3aGCnF8.js +4 -0
  150. package/dist-lib/github-light-JYsPkUQd.js +4 -0
  151. package/dist-lib/github-light-default-D99KPAby.js +4 -0
  152. package/dist-lib/github-light-high-contrast-BbmZE-Mp.js +4 -0
  153. package/dist-lib/gleam-Bv284lvN.js +6 -0
  154. package/dist-lib/glimmer-js-DkxNrfPT.js +14 -0
  155. package/dist-lib/glimmer-ts-D6YZEmK_.js +14 -0
  156. package/dist-lib/glsl-CkUcVZNK.js +8 -0
  157. package/dist-lib/gn-XtJxiLa4.js +6 -0
  158. package/dist-lib/gnuplot-yPG9-sE_.js +6 -0
  159. package/dist-lib/go-CvFNMTvu.js +6 -0
  160. package/dist-lib/graph-B68L3K2T.js +1545 -0
  161. package/dist-lib/graphql-CBu2ehBn.js +14 -0
  162. package/dist-lib/groovy-CJQTphOW.js +6 -0
  163. package/dist-lib/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  164. package/dist-lib/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  165. package/dist-lib/gruvbox-dark-soft-B46F314v.js +4 -0
  166. package/dist-lib/gruvbox-light-hard-CJD38wDZ.js +4 -0
  167. package/dist-lib/gruvbox-light-medium-BlIhMYTA.js +4 -0
  168. package/dist-lib/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  169. package/dist-lib/hack-ItRNKiEb.js +10 -0
  170. package/dist-lib/haml-NZLVzu_R.js +10 -0
  171. package/dist-lib/handlebars-mxStpSE7.js +14 -0
  172. package/dist-lib/haskell-WeIwNIP6.js +6 -0
  173. package/dist-lib/haxe-TztHsm5T.js +6 -0
  174. package/dist-lib/hcl-D438OF-I.js +6 -0
  175. package/dist-lib/highlighted-body-OFNGDK62-B2IXPhCU.js +19 -0
  176. package/dist-lib/hjson-DYBUbqOl.js +6 -0
  177. package/dist-lib/hlsl-Bk8TCZNL.js +6 -0
  178. package/dist-lib/horizon-CJQ10nlf.js +4 -0
  179. package/dist-lib/horizon-bright-CdkBZOMB.js +4 -0
  180. package/dist-lib/houston-BDYrDoDW.js +4 -0
  181. package/dist-lib/html-B50bmoVb.js +10 -0
  182. package/dist-lib/html-derivative-C6bxFbFW.js +8 -0
  183. package/dist-lib/http-DLvAkeD-.js +14 -0
  184. package/dist-lib/hurl-CgkFN90t.js +12 -0
  185. package/dist-lib/hxml-GbqSQCLa.js +8 -0
  186. package/dist-lib/hy-Brt5EZ7-.js +6 -0
  187. package/dist-lib/icon-192.png +0 -0
  188. package/dist-lib/icon-512.png +0 -0
  189. package/dist-lib/icon-maskable-512.png +0 -0
  190. package/dist-lib/icon-maskable.svg +16 -0
  191. package/dist-lib/icon-small.svg +19 -0
  192. package/dist-lib/icon.svg +19 -0
  193. package/dist-lib/imba-CimUv-Uh.js +6 -0
  194. package/dist-lib/index-DhYD46ms.js +5062 -0
  195. package/dist-lib/index-JkCQXUYs.js +16566 -0
  196. package/dist-lib/index-npuLMlPS.js +746 -0
  197. package/dist-lib/index.d.ts +95 -0
  198. package/dist-lib/index.js +8 -0
  199. package/dist-lib/infoDiagram-FWYZ7A6U-BbUkT0KS.js +24 -0
  200. package/dist-lib/ini-BZIuRIvJ.js +6 -0
  201. package/dist-lib/init-DjUOC4st.js +16 -0
  202. package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +622 -0
  203. package/dist-lib/java-DY6VlHhP.js +6 -0
  204. package/dist-lib/javascript-C25yR2R2.js +6 -0
  205. package/dist-lib/jinja-CFW5uAwY.js +11 -0
  206. package/dist-lib/jison-DdreslRX.js +8 -0
  207. package/dist-lib/journeyDiagram-5HDEW3XC-CgykmVSC.js +834 -0
  208. package/dist-lib/json-DxJze_jm.js +6 -0
  209. package/dist-lib/json5-BT4Fjg39.js +6 -0
  210. package/dist-lib/jsonc-CHjZD8gR.js +6 -0
  211. package/dist-lib/jsonl-BGuvDmy9.js +6 -0
  212. package/dist-lib/jsonnet-Bx2cfsXg.js +6 -0
  213. package/dist-lib/jssm-BcADi6EI.js +6 -0
  214. package/dist-lib/jsx-BtKADgXT.js +6 -0
  215. package/dist-lib/julia-CZiKXNNP.js +16 -0
  216. package/dist-lib/just-CEK2SJ_k.js +18 -0
  217. package/dist-lib/kanagawa-dragon-CiKur4Hl.js +4 -0
  218. package/dist-lib/kanagawa-lotus-BKu-smKu.js +4 -0
  219. package/dist-lib/kanagawa-wave-CQwozSzG.js +4 -0
  220. package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +726 -0
  221. package/dist-lib/katex-jHfnQmlp.js +11682 -0
  222. package/dist-lib/kdl-BNOv9TC3.js +6 -0
  223. package/dist-lib/kotlin-ByBMgTeR.js +6 -0
  224. package/dist-lib/kusto-DH_XitHS.js +6 -0
  225. package/dist-lib/laserwave-6a00oqik.js +4 -0
  226. package/dist-lib/latex-B8Egmqc5.js +8 -0
  227. package/dist-lib/layout-BGrtsiRL.js +1519 -0
  228. package/dist-lib/lean-BnVxaZxY.js +6 -0
  229. package/dist-lib/less-B1GLI2Di.js +6 -0
  230. package/dist-lib/light-plus-CZuVqSLX.js +4 -0
  231. package/dist-lib/linear-B5ZSwawJ.js +259 -0
  232. package/dist-lib/liquid-CHzkx3jT.js +14 -0
  233. package/dist-lib/llvm-Bk2XctFf.js +6 -0
  234. package/dist-lib/log-Al8wyEFV.js +6 -0
  235. package/dist-lib/logo-DBa4JDzV.js +6 -0
  236. package/dist-lib/lua-Bp3IRv7I.js +8 -0
  237. package/dist-lib/luau-UQyhudEE.js +6 -0
  238. package/dist-lib/make-CsMclxtr.js +6 -0
  239. package/dist-lib/manifest.webmanifest +19 -0
  240. package/dist-lib/map-hbfFlSln.js +224 -0
  241. package/dist-lib/markdown-CrScaQ96.js +6 -0
  242. package/dist-lib/marko-CJBA24Ri.js +14 -0
  243. package/dist-lib/material-theme-D6KBX41T.js +4 -0
  244. package/dist-lib/material-theme-darker-CkRroheE.js +4 -0
  245. package/dist-lib/material-theme-lighter-BUBw43Yz.js +4 -0
  246. package/dist-lib/material-theme-ocean-ClGX14Ja.js +4 -0
  247. package/dist-lib/material-theme-palenight-C1RVm8K1.js +4 -0
  248. package/dist-lib/matlab-BOAaUVP0.js +6 -0
  249. package/dist-lib/mdc-C9YSUwVC.js +12 -0
  250. package/dist-lib/mdx-BOhZZUJ8.js +6 -0
  251. package/dist-lib/mermaid-C3rz4dYh.js +6 -0
  252. package/dist-lib/mermaid-GHXKKRXX-BepkNUDb.js +4 -0
  253. package/dist-lib/min-dark-C7ak0t6c.js +4 -0
  254. package/dist-lib/min-light-CKFxVcPp.js +4 -0
  255. package/dist-lib/mindmap-definition-LN4V7U3C-CfhfeEht.js +831 -0
  256. package/dist-lib/mipsasm-CTx18fBl.js +6 -0
  257. package/dist-lib/mojo-EIZIZRTQ.js +6 -0
  258. package/dist-lib/monokai-C1KBYcO0.js +4 -0
  259. package/dist-lib/moonbit-B1TV0fG3.js +6 -0
  260. package/dist-lib/move-Db4ltDq1.js +6 -0
  261. package/dist-lib/narrat-DmhDCBs-.js +6 -0
  262. package/dist-lib/nextflow-47kAzSl1.js +8 -0
  263. package/dist-lib/nextflow-groovy-Drz_2V0j.js +6 -0
  264. package/dist-lib/nginx-D7O4WoB1.js +8 -0
  265. package/dist-lib/night-owl-Bm2rzalh.js +4 -0
  266. package/dist-lib/night-owl-light-CBI5u5kw.js +4 -0
  267. package/dist-lib/nim-QAjRdh9w.js +20 -0
  268. package/dist-lib/nix-fTRXMGic.js +9 -0
  269. package/dist-lib/nord-CC5OiUXg.js +4 -0
  270. package/dist-lib/nushell-BGCPRlV5.js +6 -0
  271. package/dist-lib/objective-c-Itk8tzmv.js +6 -0
  272. package/dist-lib/objective-cpp-DGt5UKRO.js +6 -0
  273. package/dist-lib/ocaml-eSVK32Eg.js +6 -0
  274. package/dist-lib/odin-BItnF517.js +6 -0
  275. package/dist-lib/one-dark-pro-DTA3VF0_.js +4 -0
  276. package/dist-lib/one-light-LkMrt1Cf.js +4 -0
  277. package/dist-lib/openscad-Sp5uZ6f2.js +6 -0
  278. package/dist-lib/ordinal-DfAQgscy.js +61 -0
  279. package/dist-lib/pascal-xy8pJNns.js +6 -0
  280. package/dist-lib/pegDiagram-2B236MQR-CYDAJHPF.js +95 -0
  281. package/dist-lib/perl-DkVrgJBg.js +16 -0
  282. package/dist-lib/php-BIzsF_5x.js +18 -0
  283. package/dist-lib/pieDiagram-ENE6RG2P-udKxQm4p.js +209 -0
  284. package/dist-lib/pierre-dark-D52vmD1t.js +4 -0
  285. package/dist-lib/pierre-dark-protanopia-deuteranopia-Coza2ydH.js +4 -0
  286. package/dist-lib/pierre-dark-soft-D0o08Lfm.js +4 -0
  287. package/dist-lib/pierre-dark-tritanopia-BP-A_WyN.js +4 -0
  288. package/dist-lib/pierre-dark-vibrant-BjUzbiGn.js +4 -0
  289. package/dist-lib/pierre-light-CzM3AfLn.js +4 -0
  290. package/dist-lib/pierre-light-protanopia-deuteranopia-DFclCKch.js +4 -0
  291. package/dist-lib/pierre-light-soft-m3tr_5b6.js +4 -0
  292. package/dist-lib/pierre-light-tritanopia-Dh0MAsTp.js +4 -0
  293. package/dist-lib/pierre-light-vibrant-BZSORskK.js +4 -0
  294. package/dist-lib/pkl-C-zSNmaA.js +6 -0
  295. package/dist-lib/plastic-CSTz3KZp.js +4 -0
  296. package/dist-lib/plsql-pVbGZfOv.js +6 -0
  297. package/dist-lib/po-BNfHvqmm.js +6 -0
  298. package/dist-lib/poimandres-C-VADXHD.js +4 -0
  299. package/dist-lib/polar-CAZahv3u.js +6 -0
  300. package/dist-lib/postcss-05aHdL-n.js +6 -0
  301. package/dist-lib/powerquery-DI9HkTvs.js +6 -0
  302. package/dist-lib/powershell-Clc4ydu-.js +6 -0
  303. package/dist-lib/prisma-FZjmVtSl.js +6 -0
  304. package/dist-lib/prolog-C5-yg4TO.js +6 -0
  305. package/dist-lib/proto-C7QgialS.js +6 -0
  306. package/dist-lib/pug-XOw9Q1Ho.js +12 -0
  307. package/dist-lib/puppet-CUJHmnxV.js +6 -0
  308. package/dist-lib/purescript-rUfGld-4.js +6 -0
  309. package/dist-lib/python-BFNSHbwJ.js +6 -0
  310. package/dist-lib/qml-rTNXsquU.js +8 -0
  311. package/dist-lib/qmldir-BInDYbpo.js +6 -0
  312. package/dist-lib/qss-AeJTysr_.js +6 -0
  313. package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +1025 -0
  314. package/dist-lib/r-CSmzDPi7.js +6 -0
  315. package/dist-lib/racket-B83wSAja.js +6 -0
  316. package/dist-lib/railroadDiagram-RFXS5EU6-q0Svkmuy.js +77 -0
  317. package/dist-lib/raku-nEQ4ZJJ7.js +6 -0
  318. package/dist-lib/razor-Ci8D0dQK.js +10 -0
  319. package/dist-lib/red-7y8PH7HH.js +4 -0
  320. package/dist-lib/reg-m_s_Kiip.js +6 -0
  321. package/dist-lib/regexp-BazyLpPg.js +6 -0
  322. package/dist-lib/rel-BcRfyd6Q.js +6 -0
  323. package/dist-lib/requirementDiagram-TGXJPOKE-tNxRI1gc.js +884 -0
  324. package/dist-lib/resume-session-sheet-YCOfKuXl.js +316 -0
  325. package/dist-lib/riscv-Ce8MAQLP.js +6 -0
  326. package/dist-lib/ron-DCEEQypA.js +6 -0
  327. package/dist-lib/rose-pine-BKc3yVeu.js +4 -0
  328. package/dist-lib/rose-pine-dawn-BulJcPZT.js +4 -0
  329. package/dist-lib/rose-pine-moon-j6jiXKV8.js +4 -0
  330. package/dist-lib/rosmsg-Cz0w1km8.js +6 -0
  331. package/dist-lib/rst-DM32Wy3O.js +22 -0
  332. package/dist-lib/ruby-BeqCs27h.js +30 -0
  333. package/dist-lib/rust-CLzF9zIN.js +6 -0
  334. package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +847 -0
  335. package/dist-lib/sas-fpEvgATw.js +8 -0
  336. package/dist-lib/sass-DxHp5rTx.js +6 -0
  337. package/dist-lib/scala-D4grkFkl.js +6 -0
  338. package/dist-lib/scheme-BCRWuEm4.js +6 -0
  339. package/dist-lib/scss-B1FaCqwR.js +8 -0
  340. package/dist-lib/sdbl-B7T8abf4.js +6 -0
  341. package/dist-lib/sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js +2898 -0
  342. package/dist-lib/session-token-usage-DIMXh6Pi.js +236 -0
  343. package/dist-lib/shaderlab-Cr62-Wb4.js +8 -0
  344. package/dist-lib/shadow-text-size-CBCTdbYU.js +39 -0
  345. package/dist-lib/shellscript-InADTalH.js +6 -0
  346. package/dist-lib/shellsession-DiDJNQdy.js +8 -0
  347. package/dist-lib/shipped-page-D51HiXpe.js +574 -0
  348. package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +47 -0
  349. package/dist-lib/slack-dark-i7wN4OET.js +4 -0
  350. package/dist-lib/slack-ochin-ndHf0LoP.js +4 -0
  351. package/dist-lib/smalltalk-BlI1_OkM.js +6 -0
  352. package/dist-lib/snazzy-light-BlSJXAu4.js +4 -0
  353. package/dist-lib/solarized-dark-UTmkh7lw.js +4 -0
  354. package/dist-lib/solarized-light-BheCkDPT.js +4 -0
  355. package/dist-lib/solidity-DUWnFhS6.js +6 -0
  356. package/dist-lib/soy-C1-6njHa.js +8 -0
  357. package/dist-lib/sparql-B0KWFEri.js +8 -0
  358. package/dist-lib/splunk-CRXR8A9s.js +6 -0
  359. package/dist-lib/sql-Cn_v3PB0.js +6 -0
  360. package/dist-lib/ssh-config-DP-hNVbF.js +6 -0
  361. package/dist-lib/stata-B8c5fTjX.js +8 -0
  362. package/dist-lib/stateDiagram-2N3HPSRC-CnWB7HvU.js +263 -0
  363. package/dist-lib/stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js +16 -0
  364. package/dist-lib/streamdown-response-DPrve_Vt.js +20929 -0
  365. package/dist-lib/styles.css +1 -0
  366. package/dist-lib/stylus-CyKEU1Ej.js +6 -0
  367. package/dist-lib/surrealql-CQi7GQN7.js +8 -0
  368. package/dist-lib/svelte-rYri41WT.js +14 -0
  369. package/dist-lib/sw.js +215 -0
  370. package/dist-lib/swift-DJpUqPLg.js +6 -0
  371. package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +5353 -0
  372. package/dist-lib/swimlanesDiagram-G3AALYLV-CKyOeqF_.js +13 -0
  373. package/dist-lib/synthwave-84-NU3C_KFZ.js +4 -0
  374. package/dist-lib/system-verilog-BCm7smPJ.js +6 -0
  375. package/dist-lib/systemd-C-4qm6XH.js +6 -0
  376. package/dist-lib/talonscript-CFF3LF_O.js +6 -0
  377. package/dist-lib/tasl-Cg_WBUAe.js +6 -0
  378. package/dist-lib/tcl-DN7buRTF.js +6 -0
  379. package/dist-lib/templ-Crs9Ui8q.js +12 -0
  380. package/dist-lib/terraform-DGvcn9zM.js +6 -0
  381. package/dist-lib/tex-AHxmLTL0.js +8 -0
  382. package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +1066 -0
  383. package/dist-lib/tokyo-night-DP4TmcQl.js +4 -0
  384. package/dist-lib/toml-DY62mUL_.js +6 -0
  385. package/dist-lib/ts-tags-ioVe2PKw.js +41 -0
  386. package/dist-lib/tsv-BtvSkaG0.js +6 -0
  387. package/dist-lib/tsx-B8rCNbgL.js +6 -0
  388. package/dist-lib/turtle-_H59FV7D.js +6 -0
  389. package/dist-lib/twig-DwV2Fi4L.js +18 -0
  390. package/dist-lib/types-BSXdE6DF.js +4 -0
  391. package/dist-lib/typescript-RycA9KXf.js +6 -0
  392. package/dist-lib/typespec-DWqp-kUU.js +6 -0
  393. package/dist-lib/typst-D_1QKWns.js +6 -0
  394. package/dist-lib/v-BPCNiyYe.js +6 -0
  395. package/dist-lib/vala-uxaPR7d1.js +6 -0
  396. package/dist-lib/vb-D8_c5-KN.js +6 -0
  397. package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +1585 -0
  398. package/dist-lib/verilog-B-bybjPF.js +6 -0
  399. package/dist-lib/vesper-BckBta1U.js +4 -0
  400. package/dist-lib/vhdl-CUlNa8ac.js +6 -0
  401. package/dist-lib/viml-DsfA-sWm.js +6 -0
  402. package/dist-lib/vitesse-black-BoGvW84i.js +4 -0
  403. package/dist-lib/vitesse-dark-Cym-eLtO.js +4 -0
  404. package/dist-lib/vitesse-light-CcmG315c.js +4 -0
  405. package/dist-lib/vue-DXEmyXn9.js +31 -0
  406. package/dist-lib/vue-html-j9xNEdu3.js +8 -0
  407. package/dist-lib/vue-vine-D41-N99t.js +18 -0
  408. package/dist-lib/vyper-CPQuu50u.js +6 -0
  409. package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +684 -0
  410. package/dist-lib/wasm-BBXxrAl7.js +6 -0
  411. package/dist-lib/wasm-DQxwEHae.js +7 -0
  412. package/dist-lib/wenyan-pbVjoM9_.js +6 -0
  413. package/dist-lib/wgsl-DY4iK1q1.js +6 -0
  414. package/dist-lib/wikitext-Z-MoUasO.js +6 -0
  415. package/dist-lib/wit-CQMQOlTg.js +6 -0
  416. package/dist-lib/wolfram-Dz4KXISs.js +6 -0
  417. package/dist-lib/xml-C2J0sS9M.js +8 -0
  418. package/dist-lib/xsl-BmSZphgC.js +8 -0
  419. package/dist-lib/xychartDiagram-FW5EYKEG-m3s7caPv.js +1385 -0
  420. package/dist-lib/yaml-DaO7k5B1.js +6 -0
  421. package/dist-lib/zenscript-CxBjpf9c.js +6 -0
  422. package/dist-lib/zig-Vm0PO9wB.js +6 -0
  423. package/package.json +55 -0
@@ -0,0 +1,530 @@
1
+ import { p as me } from "./chunk-JWPE2WC7-DFPBClX_.js";
2
+ import { _ as w, W as ye, z as ae, B as ee, F as Se, e as ve, l as te, be as B, d as U, b as xe, a as be, o as we, p as Ce, g as Te, s as Le, D as $e, bf as Ae, q as Fe } from "./index-JkCQXUYs.js";
3
+ import { s as Ne } from "./chunk-VR4S4FIN-hOZG7eF3.js";
4
+ import { p as Me } from "./cynefin-VYW2F7L2-DQXPWaog.js";
5
+ import { b as O } from "./defaultLocale-BgPVtth8.js";
6
+ import { o as Q } from "./ordinal-DfAQgscy.js";
7
+ function _e(t) {
8
+ var a = 0, l = t.children, n = l && l.length;
9
+ if (!n) a = 1;
10
+ else for (; --n >= 0; ) a += l[n].value;
11
+ t.value = a;
12
+ }
13
+ function ke() {
14
+ return this.eachAfter(_e);
15
+ }
16
+ function ze(t, a) {
17
+ let l = -1;
18
+ for (const n of this)
19
+ t.call(a, n, ++l, this);
20
+ return this;
21
+ }
22
+ function Ve(t, a) {
23
+ for (var l = this, n = [l], r, s, h = -1; l = n.pop(); )
24
+ if (t.call(a, l, ++h, this), r = l.children)
25
+ for (s = r.length - 1; s >= 0; --s)
26
+ n.push(r[s]);
27
+ return this;
28
+ }
29
+ function De(t, a) {
30
+ for (var l = this, n = [l], r = [], s, h, d, m = -1; l = n.pop(); )
31
+ if (r.push(l), s = l.children)
32
+ for (h = 0, d = s.length; h < d; ++h)
33
+ n.push(s[h]);
34
+ for (; l = r.pop(); )
35
+ t.call(a, l, ++m, this);
36
+ return this;
37
+ }
38
+ function Pe(t, a) {
39
+ let l = -1;
40
+ for (const n of this)
41
+ if (t.call(a, n, ++l, this))
42
+ return n;
43
+ }
44
+ function Be(t) {
45
+ return this.eachAfter(function(a) {
46
+ for (var l = +t(a.data) || 0, n = a.children, r = n && n.length; --r >= 0; ) l += n[r].value;
47
+ a.value = l;
48
+ });
49
+ }
50
+ function We(t) {
51
+ return this.eachBefore(function(a) {
52
+ a.children && a.children.sort(t);
53
+ });
54
+ }
55
+ function Ee(t) {
56
+ for (var a = this, l = Re(a, t), n = [a]; a !== l; )
57
+ a = a.parent, n.push(a);
58
+ for (var r = n.length; t !== l; )
59
+ n.splice(r, 0, t), t = t.parent;
60
+ return n;
61
+ }
62
+ function Re(t, a) {
63
+ if (t === a) return t;
64
+ var l = t.ancestors(), n = a.ancestors(), r = null;
65
+ for (t = l.pop(), a = n.pop(); t === a; )
66
+ r = t, t = l.pop(), a = n.pop();
67
+ return r;
68
+ }
69
+ function He() {
70
+ for (var t = this, a = [t]; t = t.parent; )
71
+ a.push(t);
72
+ return a;
73
+ }
74
+ function Ie() {
75
+ return Array.from(this);
76
+ }
77
+ function Oe() {
78
+ var t = [];
79
+ return this.eachBefore(function(a) {
80
+ a.children || t.push(a);
81
+ }), t;
82
+ }
83
+ function qe() {
84
+ var t = this, a = [];
85
+ return t.each(function(l) {
86
+ l !== t && a.push({ source: l.parent, target: l });
87
+ }), a;
88
+ }
89
+ function* Ge() {
90
+ var t = this, a, l = [t], n, r, s;
91
+ do
92
+ for (a = l.reverse(), l = []; t = a.pop(); )
93
+ if (yield t, n = t.children)
94
+ for (r = 0, s = n.length; r < s; ++r)
95
+ l.push(n[r]);
96
+ while (l.length);
97
+ }
98
+ function ne(t, a) {
99
+ t instanceof Map ? (t = [void 0, t], a === void 0 && (a = je)) : a === void 0 && (a = Ye);
100
+ for (var l = new Z(t), n, r = [l], s, h, d, m; n = r.pop(); )
101
+ if ((h = a(n.data)) && (m = (h = Array.from(h)).length))
102
+ for (n.children = h, d = m - 1; d >= 0; --d)
103
+ r.push(s = h[d] = new Z(h[d])), s.parent = n, s.depth = n.depth + 1;
104
+ return l.eachBefore(Ze);
105
+ }
106
+ function Xe() {
107
+ return ne(this).eachBefore(Ue);
108
+ }
109
+ function Ye(t) {
110
+ return t.children;
111
+ }
112
+ function je(t) {
113
+ return Array.isArray(t) ? t[1] : null;
114
+ }
115
+ function Ue(t) {
116
+ t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
117
+ }
118
+ function Ze(t) {
119
+ var a = 0;
120
+ do
121
+ t.height = a;
122
+ while ((t = t.parent) && t.height < ++a);
123
+ }
124
+ function Z(t) {
125
+ this.data = t, this.depth = this.height = 0, this.parent = null;
126
+ }
127
+ Z.prototype = ne.prototype = {
128
+ constructor: Z,
129
+ count: ke,
130
+ each: ze,
131
+ eachAfter: De,
132
+ eachBefore: Ve,
133
+ find: Pe,
134
+ sum: Be,
135
+ sort: We,
136
+ path: Ee,
137
+ ancestors: He,
138
+ descendants: Ie,
139
+ leaves: Oe,
140
+ links: qe,
141
+ copy: Xe,
142
+ [Symbol.iterator]: Ge
143
+ };
144
+ function Je(t) {
145
+ if (typeof t != "function") throw new Error();
146
+ return t;
147
+ }
148
+ function q() {
149
+ return 0;
150
+ }
151
+ function G(t) {
152
+ return function() {
153
+ return t;
154
+ };
155
+ }
156
+ function Ke(t) {
157
+ t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
158
+ }
159
+ function Qe(t, a, l, n, r) {
160
+ for (var s = t.children, h, d = -1, m = s.length, c = t.value && (n - a) / t.value; ++d < m; )
161
+ h = s[d], h.y0 = l, h.y1 = r, h.x0 = a, h.x1 = a += h.value * c;
162
+ }
163
+ function et(t, a, l, n, r) {
164
+ for (var s = t.children, h, d = -1, m = s.length, c = t.value && (r - l) / t.value; ++d < m; )
165
+ h = s[d], h.x0 = a, h.x1 = n, h.y0 = l, h.y1 = l += h.value * c;
166
+ }
167
+ var tt = (1 + Math.sqrt(5)) / 2;
168
+ function at(t, a, l, n, r, s) {
169
+ for (var h = [], d = a.children, m, c, u = 0, b = 0, i = d.length, x, S, v = a.value, p, y, N, $, V, R, M; u < i; ) {
170
+ x = r - l, S = s - n;
171
+ do
172
+ p = d[b++].value;
173
+ while (!p && b < i);
174
+ for (y = N = p, R = Math.max(S / x, x / S) / (v * t), M = p * p * R, V = Math.max(N / M, M / y); b < i; ++b) {
175
+ if (p += c = d[b].value, c < y && (y = c), c > N && (N = c), M = p * p * R, $ = Math.max(N / M, M / y), $ > V) {
176
+ p -= c;
177
+ break;
178
+ }
179
+ V = $;
180
+ }
181
+ h.push(m = { value: p, dice: x < S, children: d.slice(u, b) }), m.dice ? Qe(m, l, n, r, v ? n += S * p / v : s) : et(m, l, n, v ? l += x * p / v : r, s), v -= p, u = b;
182
+ }
183
+ return h;
184
+ }
185
+ const nt = (function t(a) {
186
+ function l(n, r, s, h, d) {
187
+ at(a, n, r, s, h, d);
188
+ }
189
+ return l.ratio = function(n) {
190
+ return t((n = +n) > 1 ? n : 1);
191
+ }, l;
192
+ })(tt);
193
+ function lt() {
194
+ var t = nt, a = !1, l = 1, n = 1, r = [0], s = q, h = q, d = q, m = q, c = q;
195
+ function u(i) {
196
+ return i.x0 = i.y0 = 0, i.x1 = l, i.y1 = n, i.eachBefore(b), r = [0], a && i.eachBefore(Ke), i;
197
+ }
198
+ function b(i) {
199
+ var x = r[i.depth], S = i.x0 + x, v = i.y0 + x, p = i.x1 - x, y = i.y1 - x;
200
+ p < S && (S = p = (S + p) / 2), y < v && (v = y = (v + y) / 2), i.x0 = S, i.y0 = v, i.x1 = p, i.y1 = y, i.children && (x = r[i.depth + 1] = s(i) / 2, S += c(i) - x, v += h(i) - x, p -= d(i) - x, y -= m(i) - x, p < S && (S = p = (S + p) / 2), y < v && (v = y = (v + y) / 2), t(i, S, v, p, y));
201
+ }
202
+ return u.round = function(i) {
203
+ return arguments.length ? (a = !!i, u) : a;
204
+ }, u.size = function(i) {
205
+ return arguments.length ? (l = +i[0], n = +i[1], u) : [l, n];
206
+ }, u.tile = function(i) {
207
+ return arguments.length ? (t = Je(i), u) : t;
208
+ }, u.padding = function(i) {
209
+ return arguments.length ? u.paddingInner(i).paddingOuter(i) : u.paddingInner();
210
+ }, u.paddingInner = function(i) {
211
+ return arguments.length ? (s = typeof i == "function" ? i : G(+i), u) : s;
212
+ }, u.paddingOuter = function(i) {
213
+ return arguments.length ? u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i) : u.paddingTop();
214
+ }, u.paddingTop = function(i) {
215
+ return arguments.length ? (h = typeof i == "function" ? i : G(+i), u) : h;
216
+ }, u.paddingRight = function(i) {
217
+ return arguments.length ? (d = typeof i == "function" ? i : G(+i), u) : d;
218
+ }, u.paddingBottom = function(i) {
219
+ return arguments.length ? (m = typeof i == "function" ? i : G(+i), u) : m;
220
+ }, u.paddingLeft = function(i) {
221
+ return arguments.length ? (c = typeof i == "function" ? i : G(+i), u) : c;
222
+ }, u;
223
+ }
224
+ var E, oe = (E = class {
225
+ constructor() {
226
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = xe, this.getAccTitle = be, this.setDiagramTitle = we, this.getDiagramTitle = Ce, this.getAccDescription = Te, this.setAccDescription = Le;
227
+ }
228
+ getNodes() {
229
+ return this.nodes;
230
+ }
231
+ getConfig() {
232
+ const a = $e, l = ae();
233
+ return ee({
234
+ ...a.treemap,
235
+ ...l.treemap ?? {}
236
+ });
237
+ }
238
+ addNode(a, l) {
239
+ this.nodes.push(a), this.levels.set(a, l), l === 0 && (this.outerNodes.push(a), this.root ?? (this.root = a));
240
+ }
241
+ getRoot() {
242
+ return { name: "", children: this.outerNodes };
243
+ }
244
+ addClass(a, l) {
245
+ const n = this.classes.get(a) ?? { id: a, styles: [], textStyles: [] }, r = l.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
246
+ r && r.forEach((s) => {
247
+ Ae(s) && (n != null && n.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n != null && n.styles ? n.styles.push(s) : n.styles = [s];
248
+ }), this.classes.set(a, n);
249
+ }
250
+ getClasses() {
251
+ return this.classes;
252
+ }
253
+ getStylesForClass(a) {
254
+ var l;
255
+ return ((l = this.classes.get(a)) == null ? void 0 : l.styles) ?? [];
256
+ }
257
+ clear() {
258
+ Fe(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
259
+ }
260
+ }, w(E, "TreeMapDB"), E);
261
+ function ce(t) {
262
+ if (!t.length)
263
+ return [];
264
+ const a = [], l = [];
265
+ return t.forEach((n) => {
266
+ const r = {
267
+ name: n.name,
268
+ children: n.type === "Leaf" ? void 0 : []
269
+ };
270
+ for (r.classSelector = n == null ? void 0 : n.classSelector, n != null && n.cssCompiledStyles && (r.cssCompiledStyles = n.cssCompiledStyles), n.type === "Leaf" && n.value !== void 0 && (r.value = n.value); l.length > 0 && l[l.length - 1].level >= n.level; )
271
+ l.pop();
272
+ if (l.length === 0)
273
+ a.push(r);
274
+ else {
275
+ const s = l[l.length - 1].node;
276
+ s.children ? s.children.push(r) : s.children = [r];
277
+ }
278
+ n.type !== "Leaf" && l.push({ node: r, level: n.level });
279
+ }), a;
280
+ }
281
+ w(ce, "buildHierarchy");
282
+ var rt = /* @__PURE__ */ w((t, a) => {
283
+ me(t, a);
284
+ const l = [];
285
+ for (const s of t.TreemapRows ?? [])
286
+ s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
287
+ for (const s of t.TreemapRows ?? []) {
288
+ const h = s.item;
289
+ if (!h)
290
+ continue;
291
+ const d = s.indent ? parseInt(s.indent) : 0, m = st(h), c = h.classSelector ? a.getStylesForClass(h.classSelector) : [], u = c.length > 0 ? c : void 0, b = {
292
+ level: d,
293
+ name: m,
294
+ type: h.$type,
295
+ value: h.value,
296
+ classSelector: h.classSelector,
297
+ cssCompiledStyles: u
298
+ };
299
+ l.push(b);
300
+ }
301
+ const n = ce(l), r = /* @__PURE__ */ w((s, h) => {
302
+ for (const d of s)
303
+ a.addNode(d, h), d.children && d.children.length > 0 && r(d.children, h + 1);
304
+ }, "addNodesRecursively");
305
+ r(n, 0);
306
+ }, "populate"), st = /* @__PURE__ */ w((t) => t.name ? String(t.name) : "", "getItemName"), he = {
307
+ // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
308
+ parser: { yy: void 0 },
309
+ parse: /* @__PURE__ */ w(async (t) => {
310
+ var a;
311
+ try {
312
+ const n = await Me("treemap", t);
313
+ te.debug("Treemap AST:", n);
314
+ const r = (a = he.parser) == null ? void 0 : a.yy;
315
+ if (!(r instanceof oe))
316
+ throw new Error(
317
+ "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
318
+ );
319
+ rt(n, r);
320
+ } catch (l) {
321
+ throw te.error("Error parsing treemap:", l), l;
322
+ }
323
+ }, "parse")
324
+ }, it = 10, W = 10, X = 25, ot = /* @__PURE__ */ w((t, a, l, n) => {
325
+ const r = n.db, s = r.getConfig(), h = s.padding ?? it, d = r.getDiagramTitle(), m = r.getRoot(), { themeVariables: c } = ae();
326
+ if (!m)
327
+ return;
328
+ const u = d ? 30 : 0, b = Se(a), i = s.nodeWidth ? s.nodeWidth * W : 960, x = s.nodeHeight ? s.nodeHeight * W : 500, S = i, v = x + u;
329
+ b.attr("viewBox", `0 0 ${S} ${v}`), ve(b, v, S, s.useMaxWidth);
330
+ let p;
331
+ try {
332
+ const e = s.valueFormat || ",";
333
+ if (e === "$0,0")
334
+ p = /* @__PURE__ */ w((o) => "$" + O(",")(o), "valueFormat");
335
+ else if (e.startsWith("$") && e.includes(",")) {
336
+ const o = /\.\d+/.exec(e), f = o ? o[0] : "";
337
+ p = /* @__PURE__ */ w((C) => "$" + O("," + f)(C), "valueFormat");
338
+ } else if (e.startsWith("$")) {
339
+ const o = e.substring(1);
340
+ p = /* @__PURE__ */ w((f) => "$" + O(o || "")(f), "valueFormat");
341
+ } else
342
+ p = O(e);
343
+ } catch (e) {
344
+ te.error("Error creating format function:", e), p = O(",");
345
+ }
346
+ const y = Q().range([
347
+ "transparent",
348
+ c.cScale0,
349
+ c.cScale1,
350
+ c.cScale2,
351
+ c.cScale3,
352
+ c.cScale4,
353
+ c.cScale5,
354
+ c.cScale6,
355
+ c.cScale7,
356
+ c.cScale8,
357
+ c.cScale9,
358
+ c.cScale10,
359
+ c.cScale11
360
+ ]), N = Q().range([
361
+ "transparent",
362
+ c.cScalePeer0,
363
+ c.cScalePeer1,
364
+ c.cScalePeer2,
365
+ c.cScalePeer3,
366
+ c.cScalePeer4,
367
+ c.cScalePeer5,
368
+ c.cScalePeer6,
369
+ c.cScalePeer7,
370
+ c.cScalePeer8,
371
+ c.cScalePeer9,
372
+ c.cScalePeer10,
373
+ c.cScalePeer11
374
+ ]), $ = Q().range([
375
+ c.cScaleLabel0,
376
+ c.cScaleLabel1,
377
+ c.cScaleLabel2,
378
+ c.cScaleLabel3,
379
+ c.cScaleLabel4,
380
+ c.cScaleLabel5,
381
+ c.cScaleLabel6,
382
+ c.cScaleLabel7,
383
+ c.cScaleLabel8,
384
+ c.cScaleLabel9,
385
+ c.cScaleLabel10,
386
+ c.cScaleLabel11
387
+ ]);
388
+ d && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
389
+ const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), R = ne(m).sum((e) => e.value ?? 0).sort((e, o) => (o.value ?? 0) - (e.value ?? 0)), le = lt().size([i, x]).paddingTop(
390
+ (e) => e.children && e.children.length > 0 ? X + W : 0
391
+ ).paddingInner(h).paddingLeft((e) => e.children && e.children.length > 0 ? W : 0).paddingRight((e) => e.children && e.children.length > 0 ? W : 0).paddingBottom((e) => e.children && e.children.length > 0 ? W : 0).round(!0)(R), de = le.descendants().filter((e) => e.children && e.children.length > 0), H = V.selectAll(".treemapSection").data(de).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
392
+ H.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), H.append("clipPath").attr("id", (e, o) => `clip-section-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), H.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, o) => `treemapSection section${o}`).attr("fill", (e) => y(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
393
+ if (e.depth === 0)
394
+ return "display: none;";
395
+ const o = B({ cssCompiledStyles: e.data.cssCompiledStyles });
396
+ return o.nodeStyles + ";" + o.borderStyles.join(";");
397
+ }), H.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, o) => `url(#clip-section-${a}-${o})`).attr("style", (e) => {
398
+ if (e.depth === 0)
399
+ return "display: none;";
400
+ const o = "dominant-baseline: middle; font-size: 12px; fill:" + $(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
401
+ return o + f.labelStyles.replace("color:", "fill:");
402
+ }).each(function(e) {
403
+ if (e.depth === 0)
404
+ return;
405
+ const o = U(this), f = e.data.name;
406
+ o.text(f);
407
+ const C = e.x1 - e.x0, L = 6;
408
+ let T;
409
+ s.showValues !== !1 && e.value ? T = C - 10 - 30 - 10 - L : T = C - L - 6;
410
+ const g = Math.max(15, T), _ = o.node();
411
+ if (_.getComputedTextLength() > g) {
412
+ let z = f;
413
+ for (; z.length > 0; ) {
414
+ if (z = f.substring(0, z.length - 1), z.length === 0) {
415
+ o.text("..."), _.getComputedTextLength() > g && o.text("");
416
+ break;
417
+ }
418
+ if (o.text(z + "..."), _.getComputedTextLength() <= g)
419
+ break;
420
+ }
421
+ }
422
+ }), s.showValues !== !1 && H.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
423
+ if (e.depth === 0)
424
+ return "display: none;";
425
+ const o = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + $(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
426
+ return o + f.labelStyles.replace("color:", "fill:");
427
+ });
428
+ const re = le.leaves(), A = re.length > 20, ue = A ? 16 : 38, Y = A ? 14 : 28, D = A ? 4 : 8, I = A ? 4 : 6, J = A ? 2 : 4, se = A ? 8 : 10, K = A ? 1 : 2, j = V.selectAll(".treemapLeafGroup").data(re).enter().append("g").attr("class", (e, o) => `treemapNode treemapLeafGroup leaf${o}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
429
+ j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("style", (e) => B({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, o) => `clip-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
430
+ const o = `text-anchor: middle; dominant-baseline: middle; font-size: ${ue}px;fill:` + $(e.data.name) + ";", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
431
+ return o + f.labelStyles.replace("color:", "fill:");
432
+ }).attr("clip-path", (e, o) => `url(#clip-${a}-${o})`).text((e) => e.data.name).each(function(e) {
433
+ const o = U(this), f = e.x1 - e.x0, C = e.y1 - e.y0, L = o.node(), T = f - 2 * J, P = C - 2 * J;
434
+ if (T < se || P < se) {
435
+ o.style("display", "none");
436
+ return;
437
+ }
438
+ let g = parseInt(o.style("font-size"), 10);
439
+ const _ = 0.6;
440
+ for (; L.getComputedTextLength() > T && g > D; )
441
+ g--, o.style("font-size", `${g}px`);
442
+ let F = Math.max(
443
+ I,
444
+ Math.min(Y, Math.round(g * _))
445
+ ), k = g + K + F;
446
+ for (; k > P && g > D && (g--, F = Math.max(
447
+ I,
448
+ Math.min(Y, Math.round(g * _))
449
+ ), !(F < I && g === D)); )
450
+ o.style("font-size", `${g}px`), k = g + K + F;
451
+ o.style("font-size", `${g}px`), A ? (g < D || P < D) && o.style("display", "none") : (L.getComputedTextLength() > T || g < D || P < g) && o.style("display", "none");
452
+ }), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (o) => (o.x1 - o.x0) / 2).attr("y", function(o) {
453
+ return (o.y1 - o.y0) / 2;
454
+ }).attr("style", (o) => {
455
+ const f = `text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:` + $(o.data.name) + ";", C = B({ cssCompiledStyles: o.data.cssCompiledStyles });
456
+ return f + C.labelStyles.replace("color:", "fill:");
457
+ }).attr("clip-path", (o, f) => `url(#clip-${a}-${f})`).text((o) => o.value ? p(o.value) : "").each(function(o) {
458
+ const f = U(this), C = this.parentNode;
459
+ if (!C) {
460
+ f.style("display", "none");
461
+ return;
462
+ }
463
+ const L = U(C).select(".treemapLabel");
464
+ if (L.empty() || L.style("display") === "none") {
465
+ f.style("display", "none");
466
+ return;
467
+ }
468
+ const T = parseFloat(L.style("font-size")), g = Math.max(
469
+ I,
470
+ Math.min(Y, Math.round(T * 0.6))
471
+ );
472
+ f.style("font-size", `${g}px`);
473
+ const F = (o.y1 - o.y0) / 2 + T / 2 + K;
474
+ f.attr("y", F);
475
+ const k = o.x1 - o.x0, ie = o.y1 - o.y0 - 4, ge = k - 2 * J;
476
+ f.node().getComputedTextLength() > ge || F + g > ie || g < I ? f.style("display", "none") : f.style("display", null);
477
+ });
478
+ const pe = s.diagramPadding ?? 8;
479
+ Ne(b, pe, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1);
480
+ }, "draw"), ct = /* @__PURE__ */ w(function(t, a) {
481
+ return a.db.getClasses();
482
+ }, "getClasses"), ht = { draw: ot, getClasses: ct }, dt = {
483
+ sectionStrokeColor: "black",
484
+ sectionStrokeWidth: "1",
485
+ sectionFillColor: "#efefef",
486
+ leafStrokeColor: "black",
487
+ leafStrokeWidth: "1",
488
+ leafFillColor: "#efefef",
489
+ labelFontSize: "12px",
490
+ valueFontSize: "10px",
491
+ titleFontSize: "14px"
492
+ }, ut = /* @__PURE__ */ w(({
493
+ treemap: t
494
+ } = {}) => {
495
+ const a = ye(), l = ae(), n = ee(a, l.themeVariables), r = ee(dt, t), s = r.titleColor ?? n.titleColor, h = r.labelColor ?? n.textColor, d = r.valueColor ?? n.textColor;
496
+ return `
497
+ .treemapNode.section {
498
+ stroke: ${r.sectionStrokeColor};
499
+ stroke-width: ${r.sectionStrokeWidth};
500
+ fill: ${r.sectionFillColor};
501
+ }
502
+ .treemapNode.leaf {
503
+ stroke: ${r.leafStrokeColor};
504
+ stroke-width: ${r.leafStrokeWidth};
505
+ fill: ${r.leafFillColor};
506
+ }
507
+ .treemapLabel {
508
+ fill: ${h};
509
+ font-size: ${r.labelFontSize};
510
+ }
511
+ .treemapValue {
512
+ fill: ${d};
513
+ font-size: ${r.valueFontSize};
514
+ }
515
+ .treemapTitle {
516
+ fill: ${s};
517
+ font-size: ${r.titleFontSize};
518
+ }
519
+ `;
520
+ }, "getStyles"), pt = ut, bt = {
521
+ parser: he,
522
+ get db() {
523
+ return new oe();
524
+ },
525
+ renderer: ht,
526
+ styles: pt
527
+ };
528
+ export {
529
+ bt as diagram
530
+ };
@@ -0,0 +1,143 @@
1
+ import { p as $ } from "./chunk-JWPE2WC7-DFPBClX_.js";
2
+ import { _ as b, B as m, F as C, e as S, l as w, b as D, a as T, o as z, p as F, g as P, s as E, z as A, D as W, q as _ } from "./index-JkCQXUYs.js";
3
+ import { p as N } from "./cynefin-VYW2F7L2-DQXPWaog.js";
4
+ var L = W.packet, u, v = (u = class {
5
+ constructor() {
6
+ this.packet = [], this.setAccTitle = D, this.getAccTitle = T, this.setDiagramTitle = z, this.getDiagramTitle = F, this.getAccDescription = P, this.setAccDescription = E;
7
+ }
8
+ getConfig() {
9
+ const t = m({
10
+ ...L,
11
+ ...A().packet
12
+ });
13
+ return t.showBits && (t.paddingY += 10), t;
14
+ }
15
+ getPacket() {
16
+ return this.packet;
17
+ }
18
+ pushWord(t) {
19
+ t.length > 0 && this.packet.push(t);
20
+ }
21
+ clear() {
22
+ _(), this.packet = [];
23
+ }
24
+ }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
25
+ $(e, t);
26
+ let s = -1, r = [], n = 1;
27
+ const { bitsPerRow: l } = t.getConfig();
28
+ for (let { start: a, end: i, bits: d, label: c } of e.blocks) {
29
+ if (a !== void 0 && i !== void 0 && i < a)
30
+ throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);
31
+ if (a ?? (a = s + 1), a !== s + 1)
32
+ throw new Error(
33
+ `Packet block ${a} - ${i ?? a} is not contiguous. It should start from ${s + 1}.`
34
+ );
35
+ if (d === 0)
36
+ throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
37
+ for (i ?? (i = a + (d ?? 1) - 1), d ?? (d = i - a + 1), s = i, w.debug(`Packet block ${a} - ${s} with label ${c}`); r.length <= l + 1 && t.getPacket().length < M; ) {
38
+ const [p, o] = I({ start: a, end: i, bits: d, label: c }, n, l);
39
+ if (r.push(p), p.end + 1 === n * l && (t.pushWord(r), r = [], n++), !o)
40
+ break;
41
+ ({ start: a, end: i, bits: d, label: c } = o);
42
+ }
43
+ }
44
+ t.pushWord(r);
45
+ }, "populate"), I = /* @__PURE__ */ b((e, t, s) => {
46
+ if (e.start === void 0)
47
+ throw new Error("start should have been set during first phase");
48
+ if (e.end === void 0)
49
+ throw new Error("end should have been set during first phase");
50
+ if (e.start > e.end)
51
+ throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);
52
+ if (e.end + 1 <= t * s)
53
+ return [e, void 0];
54
+ const r = t * s - 1, n = t * s;
55
+ return [
56
+ {
57
+ start: e.start,
58
+ end: r,
59
+ label: e.label,
60
+ bits: r - e.start
61
+ },
62
+ {
63
+ start: n,
64
+ end: e.end,
65
+ label: e.label,
66
+ bits: e.end - n
67
+ }
68
+ ];
69
+ }, "getNextFittingBlock"), x = {
70
+ // @ts-expect-error - PacketDB is not assignable to DiagramDB
71
+ parser: { yy: void 0 },
72
+ parse: /* @__PURE__ */ b(async (e) => {
73
+ var r;
74
+ const t = await N("packet", e), s = (r = x.parser) == null ? void 0 : r.yy;
75
+ if (!(s instanceof v))
76
+ throw new Error(
77
+ "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."
78
+ );
79
+ w.debug(t), Y(t, s);
80
+ }, "parse")
81
+ }, O = /* @__PURE__ */ b((e, t, s, r) => {
82
+ const n = r.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = C(t);
83
+ f.attr("viewBox", `0 0 ${k} ${g}`), S(f, g, k, l.useMaxWidth);
84
+ for (const [y, B] of p.entries())
85
+ j(f, B, y, l);
86
+ f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
87
+ }, "draw"), j = /* @__PURE__ */ b((e, t, s, { rowHeight: r, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
88
+ const c = e.append("g"), p = s * (r + l) + l;
89
+ for (const o of t) {
90
+ const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
91
+ if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", r).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + r / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
92
+ continue;
93
+ const k = o.end === o.start, f = p - 2;
94
+ c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
95
+ }
96
+ }, "drawWord"), q = { draw: O }, G = {
97
+ byteFontSize: "10px",
98
+ startByteColor: "black",
99
+ endByteColor: "black",
100
+ labelColor: "black",
101
+ labelFontSize: "12px",
102
+ titleColor: "black",
103
+ titleFontSize: "14px",
104
+ blockStrokeColor: "black",
105
+ blockStrokeWidth: "1",
106
+ blockFillColor: "#efefef"
107
+ }, H = /* @__PURE__ */ b(({ packet: e } = {}) => {
108
+ const t = m(G, e);
109
+ return `
110
+ .packetByte {
111
+ font-size: ${t.byteFontSize};
112
+ }
113
+ .packetByte.start {
114
+ fill: ${t.startByteColor};
115
+ }
116
+ .packetByte.end {
117
+ fill: ${t.endByteColor};
118
+ }
119
+ .packetLabel {
120
+ fill: ${t.labelColor};
121
+ font-size: ${t.labelFontSize};
122
+ }
123
+ .packetTitle {
124
+ fill: ${t.titleColor};
125
+ font-size: ${t.titleFontSize};
126
+ }
127
+ .packetBlock {
128
+ stroke: ${t.blockStrokeColor};
129
+ stroke-width: ${t.blockStrokeWidth};
130
+ fill: ${t.blockFillColor};
131
+ }
132
+ `;
133
+ }, "styles"), X = {
134
+ parser: x,
135
+ get db() {
136
+ return new v();
137
+ },
138
+ renderer: q,
139
+ styles: H
140
+ };
141
+ export {
142
+ X as diagram
143
+ };