@nxgt/material 2.2.0 → 2.3.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 (213) hide show
  1. package/README.md +7 -2
  2. package/dist/{_Uint8Array-BlYETJ93.js → _Uint8Array-BDK6FjpM.js} +20 -20
  3. package/dist/{abnfDiagram-O67JEVCF-UBHbDvRt.js → abnfDiagram-O67JEVCF-C7NxOWqd.js} +8 -8
  4. package/dist/architecture-7GRP2DOG-CMg7-eYj.js +3 -0
  5. package/dist/{architectureDiagram-NJMV4G6O-YUaZEFrZ.js → architectureDiagram-NJMV4G6O-BIvwyzEh.js} +12 -12
  6. package/dist/{blockDiagram-BEXU5L5S-LYb2ZWFy.js → blockDiagram-BEXU5L5S-C8q-lXgt.js} +18 -18
  7. package/dist/{c4Diagram-YGBWAQC7-C-2N38iN.js → c4Diagram-YGBWAQC7-WgqlRIL5.js} +10 -10
  8. package/dist/channel-Ba8pEAWx.js +5 -0
  9. package/dist/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
  10. package/dist/{chunk-3FUC2YCW-uD4dp-_M.js → chunk-3FUC2YCW-BGpNbruY.js} +11 -11
  11. package/dist/{chunk-5DYCD2WN-B2Jnu3zk.js → chunk-5DYCD2WN-Bqi3iL5i.js} +5 -5
  12. package/dist/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
  13. package/dist/{chunk-6AEJRKK7-C9kihZu8.js → chunk-6AEJRKK7-DDXoGWDs.js} +4 -4
  14. package/dist/{chunk-742MDFTN-C8SK_MEU.js → chunk-742MDFTN-nG_ROTnT.js} +14 -14
  15. package/dist/{chunk-7INBJB4K-CyUOVm3_.js → chunk-7INBJB4K-Dg64CbhT.js} +10 -10
  16. package/dist/{chunk-7M6MHVWA-stRISv0F.js → chunk-7M6MHVWA-_-i4Sb1c.js} +14 -14
  17. package/dist/{chunk-7PRAP22T-DSh07ASj.js → chunk-7PRAP22T-DIiYRAce.js} +3 -3
  18. package/dist/{chunk-DUW6YSOI-BdOla2G8.js → chunk-DUW6YSOI-9R-v-IIp.js} +2 -2
  19. package/dist/{chunk-FOHPRMQF-Crq0JMf2.js → chunk-FOHPRMQF-DBc3Omt0.js} +1 -1
  20. package/dist/{chunk-GNY47TPC-CNRH-hmN.js → chunk-GNY47TPC-BJperC1X.js} +14 -14
  21. package/dist/{chunk-GTNCS2PH-Dd-9mUKz.js → chunk-GTNCS2PH-CzDYTYNy.js} +5 -5
  22. package/dist/{chunk-GWA4HPMP-LeZ8CTY7.js → chunk-GWA4HPMP-CmsxMX3A.js} +5 -5
  23. package/dist/{chunk-J5ZVWO5B-CYzz6Pq8.js → chunk-J5ZVWO5B-DmRRmhon.js} +2 -2
  24. package/dist/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
  25. package/dist/{chunk-LNGE3PJU-CiGrDO_F.js → chunk-LNGE3PJU-DJjGTS7O.js} +2 -2
  26. package/dist/{chunk-MBY4JIJT-efJLM0ZL.js → chunk-MBY4JIJT-IA2XBafa.js} +8 -8
  27. package/dist/{chunk-NETBCI7D-Dh3LtOKr.js → chunk-NETBCI7D-D0kbMnm0.js} +3 -3
  28. package/dist/{chunk-O7XYJQB3-CocGKgmL.js → chunk-O7XYJQB3-C87zK8E5.js} +5 -5
  29. package/dist/{chunk-UA2S7LBM-C81eiQ4_.js → chunk-UA2S7LBM-B0LGFGu3.js} +10 -10
  30. package/dist/{chunk-WEXAMYUT-Dt2jrFYj.js → chunk-WEXAMYUT-C-QP0DFq.js} +4 -4
  31. package/dist/{chunk-XXDRQBXY-mQqOBHO_.js → chunk-XXDRQBXY-Bq4sFnO2.js} +3 -3
  32. package/dist/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
  33. package/dist/{chunk-Z7XXMR3K-D00WQ1MY.js → chunk-Z7XXMR3K-CJmPL4k9.js} +12 -12
  34. package/dist/{chunk-ZIGJFQKS-Dqo-x9kg.js → chunk-ZIGJFQKS-HDJ6e6OJ.js} +29 -29
  35. package/dist/{classDiagram-v2-NBCMYWYE-C4ucYlr1.js → classDiagram-v2-NBCMYWYE-DRoCWiaP.js} +18 -18
  36. package/dist/{client-only.utils-ojMUdy5B.js → client-only.utils-qMX_CMiw.js} +25 -25
  37. package/dist/{components-DqMrnRRo.js → components-CRrswCsD.js} +33211 -26822
  38. package/dist/components.js +6 -7
  39. package/dist/{cose-bilkent-JH36ORCC-BgR2hiLh.js → cose-bilkent-JH36ORCC-11-T1rfk.js} +5 -5
  40. package/dist/cynefin-OW5HDTMX-BGe4AjUw.js +3 -0
  41. package/dist/{cynefinDiagram-VND7K2PF-wsthSZGu.js → cynefinDiagram-VND7K2PF-1kHi2rGa.js} +8 -8
  42. package/dist/{cytoscape.esm-_jXi1N4y.js → cytoscape.esm-DXVRLXF3.js} +1 -1
  43. package/dist/{dagre-6A5THRUB-D9hh4vCU.js → dagre-6A5THRUB-B11jdkPL.js} +104 -104
  44. package/dist/{diagram-22UHCM2B-Bu26TJjA.js → diagram-22UHCM2B-CAVrn_uY.js} +20 -20
  45. package/dist/diagram-3UASUU5V-uO9-gtWR.js +525 -0
  46. package/dist/{diagram-ATOU4E4O-DNtxHPVW.js → diagram-ATOU4E4O-Clju_0RY.js} +8 -8
  47. package/dist/{diagram-CDSNMT55-BrwCxgMX.js → diagram-CDSNMT55-w7kkJ6MU.js} +10 -10
  48. package/dist/{diagram-MLGK6HIB-Bk26pSvC.js → diagram-MLGK6HIB-mUOtRVmm.js} +8 -8
  49. package/dist/{diagram-MPIPVDR6-Bl3F8b-U.js → diagram-MPIPVDR6-DEUw58dq.js} +8 -8
  50. package/dist/{dist-C-0DUGrt.js → dist-CeHNxLJG.js} +30 -30
  51. package/dist/{dist-CZn89tDX.js → dist-gYpAi-su.js} +2 -2
  52. package/dist/dnd.js +1 -1
  53. package/dist/{ebnfDiagram-ZINNZB2B-C7vCu85A.js → ebnfDiagram-ZINNZB2B-BYfatie5.js} +8 -8
  54. package/dist/{elk-276RUBZZ-ChJLevem.js → elk-276RUBZZ-BALenDhN.js} +16 -16
  55. package/dist/{erDiagram-OPXOYQCR-DLzDCh2a.js → erDiagram-OPXOYQCR-FtFHGu-P.js} +17 -17
  56. package/dist/eventmodeling-NTZA5JFV-38h1xeNf.js +3 -0
  57. package/dist/{field-blur-CtjbtCDw.js → field-blur-DkydMwaN.js} +614 -643
  58. package/dist/flowDiagram-KWPJA3E3-DZwUgKQu.js +17 -0
  59. package/dist/{ganttDiagram-FUAMR5RP-35sd5PoK.js → ganttDiagram-FUAMR5RP-CmMpH0CG.js} +436 -1117
  60. package/dist/gitGraph-4MIJSDKK-C-5NH3Jx.js +3 -0
  61. package/dist/{gitGraphDiagram-X574FWY7-Z7zhlcB8.js → gitGraphDiagram-X574FWY7-DcGaPSwy.js} +8 -8
  62. package/dist/{graphlib-DlxAzBTD.js → graphlib-DovxbouT.js} +43 -43
  63. package/dist/hooks.js +15 -15
  64. package/dist/i18n.js +4 -4
  65. package/dist/{icon-button-38As1vrs.js → icon-button-Dl9PDYCE.js} +15 -15
  66. package/dist/info-A6RAGUB7-DTwpNebQ.js +3 -0
  67. package/dist/{infoDiagram-VRGFBTTK-BwoHwPPX.js → infoDiagram-VRGFBTTK-Cvj167dl.js} +6 -6
  68. package/dist/{init-Buj1GKRa.js → init-B-aM8wRX.js} +1 -1
  69. package/dist/{isArrayLikeObject-DsRXN32g.js → isArrayLikeObject-D0u9Q9Yg.js} +11 -11
  70. package/dist/{ishikawaDiagram-OU5B5YK6-C-aWtSta.js → ishikawaDiagram-OU5B5YK6-ChBwjCfr.js} +7 -7
  71. package/dist/{journeyDiagram-ZHPQQLJL-vXvTzJwE.js → journeyDiagram-ZHPQQLJL-DVxTOFQu.js} +7 -7
  72. package/dist/{kanban-definition-PNTS6WVX-Co0CvKcV.js → kanban-definition-PNTS6WVX-BRoa-Yp5.js} +14 -14
  73. package/dist/{katex-BMQ6LGsM.js → katex-BLTzjTha.js} +1 -1
  74. package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +3 -3
  75. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-list.d.ts +1 -1
  76. package/dist/lib/components/ui/media/pdf-viewer/pdf-reader-body.d.ts +2 -2
  77. package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.reducer.d.ts +1 -1
  78. package/dist/lib/components/ui/media/pdf-viewer/pdf-sidebar.d.ts +1 -1
  79. package/dist/lib/components/ui/media/pdf-viewer/pdf-thumbnail-sidebar.d.ts +1 -1
  80. package/dist/lib/components/ui/media/pdf-viewer/types.d.ts +3 -3
  81. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-document-search.d.ts +1 -1
  82. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-file-actions.d.ts +1 -1
  83. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-page-area.d.ts +1 -1
  84. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-reader.d.ts +1 -1
  85. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-search-hits.d.ts +1 -2
  86. package/dist/lib/components/ui/media/pdf-viewer/use-pdf-source.d.ts +1 -1
  87. package/dist/lib/hooks/use-formatters.d.ts +1 -1
  88. package/dist/lib/lib/index.d.ts +1 -1
  89. package/dist/lib/print/components/print-data-table/print-data-table.d.ts +1 -1
  90. package/dist/lib/print/components/print-data-table/print-key-value.d.ts +2 -2
  91. package/dist/lib/print/components/print-data-table/print-metric.d.ts +2 -2
  92. package/dist/lib/print/components/print-document/print-document.d.ts +1 -1
  93. package/dist/lib/print/components/print-document/print-render-context.d.ts +1 -1
  94. package/dist/lib/print/components/print-header.d.ts +1 -1
  95. package/dist/lib/print/index.d.ts +4 -4
  96. package/dist/lib/print/output/index.d.ts +2 -2
  97. package/dist/lib/print/output/pdf-response.d.ts +1 -1
  98. package/dist/lib/print/output/types.d.ts +3 -3
  99. package/dist/lib/print/output/use-pdf-file.d.ts +1 -1
  100. package/dist/lib/vite/index.d.ts +5 -64
  101. package/dist/{lib-uF8iIfvP.js → lib-B_cBmfz5.js} +70 -69
  102. package/dist/lib.js +5 -6
  103. package/dist/main.js +17 -19
  104. package/dist/map.js +4 -4
  105. package/dist/{math-C5EhTgJw.js → math-D0ky-xWd.js} +1 -1
  106. package/dist/{merge-Z2oE4ahJ.js → merge-DQLOWMVN.js} +24 -24
  107. package/dist/{mermaid-parser.core-Cz-MfB4Z.js → mermaid-parser.core-BXD_TD1T.js} +32 -32
  108. package/dist/{mermaid.core-6Yzht5pQ.js → mermaid.core-CQ6lUhgC.js} +59 -59
  109. package/dist/{mindmap-definition-NLK3R4M7-AxpMaPtm.js → mindmap-definition-NLK3R4M7-DyB5NgHM.js} +18 -18
  110. package/dist/{number.utils-CRFiOD5c.js → number.utils-BiBN2hWJ.js} +48 -48
  111. package/dist/{ordinal-DuP05kVQ.js → ordinal-DwxdXP1t.js} +3 -3
  112. package/dist/packet-AYTQ26CC-Cc2sGaDY.js +3 -0
  113. package/dist/{path-Cjou0lUh.js → path-Cxq8zobN.js} +3 -3
  114. package/dist/{pdf.worker.min-DRpqlnXj.js → pdf.worker.min-ByGJNiUH.js} +1 -1
  115. package/dist/{pegDiagram-GJSIUBJH-DjilqSgv.js → pegDiagram-GJSIUBJH-Dcm3LCQX.js} +8 -8
  116. package/dist/pie-WAS4IAKB-Qm7ZL20Y.js +3 -0
  117. package/dist/{pieDiagram-5QR66LMP-H8rVCHkC.js → pieDiagram-5QR66LMP-DCdDWF2H.js} +16 -16
  118. package/dist/print.js +164 -1113
  119. package/dist/{quadrantDiagram-O4NWA36T-CEDIjm-K.js → quadrantDiagram-O4NWA36T-BMfcGUfy.js} +5 -5
  120. package/dist/radar-RG4KPBEZ-TQ0zaqCR.js +3 -0
  121. package/dist/railroad-74A4TZTK-bk-BYNub.js +3 -0
  122. package/dist/railroad-abnf-HS5TGJTU-Bdw25bd-.js +3 -0
  123. package/dist/railroad-ebnf-LZEXJU2U-DiFjNUyt.js +3 -0
  124. package/dist/railroad-peg-WCYAUIDC-xf3JLr_Y.js +3 -0
  125. package/dist/{railroadDiagram-XR7U4H2S-BxR9jg9Y.js → railroadDiagram-XR7U4H2S-CzOJlTUA.js} +8 -8
  126. package/dist/{requirementDiagram-PLB6GJNP-DAuKYcHc.js → requirementDiagram-PLB6GJNP-Bg-uQlZj.js} +16 -16
  127. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-Cvc79rxE.js} +1 -1
  128. package/dist/{sankeyDiagram-IPEJSGJF-C3JJqzLE.js → sankeyDiagram-IPEJSGJF-E-o_7bq2.js} +18 -18
  129. package/dist/{sequenceDiagram-PO4LG4MO-Cs8x9lRY.js → sequenceDiagram-PO4LG4MO-DMLeIQ03.js} +9 -9
  130. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-C_032szM.js} +2 -2
  131. package/dist/{sortable-provider-DalccwHj.js → sortable-provider-NE74zkmo.js} +7 -7
  132. package/dist/{src-BIbdeDuO.js → src-CJ8DNrI1.js} +82 -82
  133. package/dist/{stateDiagram-v2-GCMORJYK-PpP0APmW.js → stateDiagram-v2-GCMORJYK-BDB4K1Fw.js} +17 -17
  134. package/dist/{step-B6KjpKgN.js → step-Dt43c9X4.js} +17 -17
  135. package/dist/{string-B-ZWXCs2.js → string-BqyOfyFV.js} +8 -8
  136. package/dist/{swimlanes-2SLR337P-BmqILJTV.js → swimlanes-2SLR337P-C406S8ui.js} +14 -14
  137. package/dist/swimlanesDiagram-TC7HE7FX-BstKZ--K.js +28 -0
  138. package/dist/{timeline-definition-EJHVYXUP-CEOIzkcq.js → timeline-definition-EJHVYXUP-BmhxT0qo.js} +8 -8
  139. package/dist/{translate-material-BO32ZDCi.js → translate-material-CRxs5aS3.js} +1 -1
  140. package/dist/{translator-CiPgm2s3.js → translator-BfyVF7Ej.js} +88 -88
  141. package/dist/treeView-Q6P3EWNA-Dyk8HSag.js +3 -0
  142. package/dist/treemap-WGGIJYW6-CHrhBv7m.js +3 -0
  143. package/dist/{use-heading-spy-DSs5Coe-.js → use-heading-spy-BiLosksJ.js} +2 -2
  144. package/dist/{use-material-translation-RhoPY_RC.js → use-material-translation-D3HwtYDm.js} +1 -1
  145. package/dist/{usecaseDiagram-POWQR4AR-CMvboR6A.js → usecaseDiagram-POWQR4AR-cHGV1E_T.js} +403 -403
  146. package/dist/{utils-Brj-Qb2N.js → utils-UBn-46YY.js} +2 -2
  147. package/dist/{vennDiagram-UO4OBE2U-xN_G4DeI.js → vennDiagram-UO4OBE2U-Aql8mhcy.js} +8 -8
  148. package/dist/vite.js +1 -17
  149. package/dist/wardley-WFR3VGLG-DnLHjx6k.js +3 -0
  150. package/dist/{wardleyDiagram-VNRHLVJA-C0B-kQ2b.js → wardleyDiagram-VNRHLVJA-tknlhG_t.js} +8 -8
  151. package/dist/{xychartDiagram-PMCCYNJV-Crmi6_s-.js → xychartDiagram-PMCCYNJV-ixeD_kO0.js} +24 -24
  152. package/docs/components/rich-widgets.md +2 -0
  153. package/docs/getting-started.md +20 -0
  154. package/docs/guides/printing.md +6 -2
  155. package/docs/guides/ssr.md +8 -2
  156. package/docs/troubleshooting.md +57 -2
  157. package/package.json +30 -33
  158. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +0 -3
  159. package/dist/channel-CUIVvEUM.js +0 -5
  160. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +0 -3
  161. package/dist/diagram-3UASUU5V-BEydDExL.js +0 -724
  162. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +0 -3
  163. package/dist/flowDiagram-KWPJA3E3-uiZryqlC.js +0 -17
  164. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +0 -3
  165. package/dist/info-A6RAGUB7-BvtuPd9C.js +0 -3
  166. package/dist/lib/components/ui/fields/currency-field/currency-digits.d.ts +0 -7
  167. package/dist/lib/components/ui/forms/field-blur-layers.d.ts +0 -34
  168. package/dist/lib/components/ui/media/pdf-viewer/pdf-document-search.d.ts +0 -44
  169. package/dist/lib/components/ui/media/pdf-viewer/pdf-escape.d.ts +0 -6
  170. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-geometry.d.ts +0 -57
  171. package/dist/lib/components/ui/media/pdf-viewer/pdf-page-sizes.d.ts +0 -37
  172. package/dist/lib/components/ui/media/pdf-viewer/pdf-scroll-spy.d.ts +0 -42
  173. package/dist/lib/components/ui/media/pdf-viewer/pdf-text-search.d.ts +0 -25
  174. package/dist/lib/lib/pdf-download.d.ts +0 -35
  175. package/dist/lib/lib/pdf-file-name.d.ts +0 -9
  176. package/dist/lib/lib/pdf-source.d.ts +0 -57
  177. package/dist/lib/lib/print-format.utils.d.ts +0 -59
  178. package/dist/lib/lib/print-fraction-digits.d.ts +0 -12
  179. package/dist/lib/lib/print-table.utils.d.ts +0 -60
  180. package/dist/lib/lib/print-value.utils.d.ts +0 -40
  181. package/dist/lib/pdf-core/file-loader.d.ts +0 -18
  182. package/dist/lib/pdf-core/http.d.ts +0 -22
  183. package/dist/lib/pdf-core/index.d.ts +0 -11
  184. package/dist/lib/pdf-core/model/builders.d.ts +0 -54
  185. package/dist/lib/pdf-core/model/data-table.d.ts +0 -24
  186. package/dist/lib/pdf-core/model/index.d.ts +0 -4
  187. package/dist/lib/pdf-core/model/nodes.d.ts +0 -133
  188. package/dist/lib/pdf-core/model/theme.d.ts +0 -16
  189. package/dist/lib/pdf-core/model/types.d.ts +0 -108
  190. package/dist/lib/pdf-core/render/context.d.ts +0 -50
  191. package/dist/lib/pdf-core/render/document.d.ts +0 -21
  192. package/dist/lib/pdf-core/render/index.d.ts +0 -5
  193. package/dist/lib/pdf-core/render/nodes/blocks.d.ts +0 -19
  194. package/dist/lib/pdf-core/render/nodes/header.d.ts +0 -14
  195. package/dist/lib/pdf-core/render/nodes/layout.d.ts +0 -44
  196. package/dist/lib/pdf-core/render/nodes/table.d.ts +0 -14
  197. package/dist/lib/pdf-core/render/page.d.ts +0 -30
  198. package/dist/lib/pdf-core/render/render-node.d.ts +0 -10
  199. package/dist/lib/pdf-core/render/styles.d.ts +0 -303
  200. package/dist/packet-AYTQ26CC-CshIswP8.js +0 -3
  201. package/dist/pdf-download-hrKrI5_6.js +0 -153
  202. package/dist/pie-WAS4IAKB-CYs22y4X.js +0 -3
  203. package/dist/print-format.utils-B7K9qvuo.js +0 -53
  204. package/dist/print-fraction-digits-WtEBeztr.js +0 -5
  205. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +0 -3
  206. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +0 -3
  207. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +0 -3
  208. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +0 -3
  209. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +0 -3
  210. package/dist/swimlanesDiagram-TC7HE7FX-DO3BxSlE.js +0 -28
  211. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +0 -3
  212. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +0 -3
  213. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +0 -3
@@ -1,724 +0,0 @@
1
- import { n as e, t } from "./src-BIbdeDuO.js";
2
- import { i as n } from "./chunk-ZIGJFQKS-Dqo-x9kg.js";
3
- import { t as r } from "./ordinal-DuP05kVQ.js";
4
- import { n as i } from "./mermaid-parser.core-Cz-MfB4Z.js";
5
- import { n as a } from "./chunk-Y2CYZVJY-i11wjrBe.js";
6
- import { D as o, H as s, U as c, a as l, b as u, c as d, f, q as p, v as m, w as h, y as g } from "./chunk-O7XYJQB3-CocGKgmL.js";
7
- import { t as _ } from "./chunk-6AEJRKK7-C9kihZu8.js";
8
- import { t as v } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
9
- import { i as y, n as b } from "./chunk-7PRAP22T-DSh07ASj.js";
10
- import { t as x } from "./chunk-WEXAMYUT-Dt2jrFYj.js";
11
- //#region node_modules/d3/node_modules/d3-format/src/formatDecimal.js
12
- function S(e) {
13
- return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
14
- }
15
- function C(e, t) {
16
- if (!isFinite(e) || e === 0) return null;
17
- var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
18
- return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
19
- }
20
- //#endregion
21
- //#region node_modules/d3/node_modules/d3-format/src/exponent.js
22
- function w(e) {
23
- return e = C(Math.abs(e)), e ? e[1] : NaN;
24
- }
25
- //#endregion
26
- //#region node_modules/d3/node_modules/d3-format/src/formatGroup.js
27
- function T(e, t) {
28
- return function(n, r) {
29
- for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
30
- return a.reverse().join(t);
31
- };
32
- }
33
- //#endregion
34
- //#region node_modules/d3/node_modules/d3-format/src/formatNumerals.js
35
- function E(e) {
36
- return function(t) {
37
- return t.replace(/[0-9]/g, function(t) {
38
- return e[+t];
39
- });
40
- };
41
- }
42
- //#endregion
43
- //#region node_modules/d3/node_modules/d3-format/src/formatSpecifier.js
44
- var D = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
45
- function O(e) {
46
- if (!(t = D.exec(e))) throw Error("invalid format: " + e);
47
- var t;
48
- return new k({
49
- fill: t[1],
50
- align: t[2],
51
- sign: t[3],
52
- symbol: t[4],
53
- zero: t[5],
54
- width: t[6],
55
- comma: t[7],
56
- precision: t[8] && t[8].slice(1),
57
- trim: t[9],
58
- type: t[10]
59
- });
60
- }
61
- O.prototype = k.prototype;
62
- function k(e) {
63
- this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
64
- }
65
- k.prototype.toString = function() {
66
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
67
- };
68
- //#endregion
69
- //#region node_modules/d3/node_modules/d3-format/src/formatTrim.js
70
- function A(e) {
71
- out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
72
- case ".":
73
- r = i = n;
74
- break;
75
- case "0":
76
- r === 0 && (r = n), i = n;
77
- break;
78
- default:
79
- if (!+e[n]) break out;
80
- r > 0 && (r = 0);
81
- break;
82
- }
83
- return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
84
- }
85
- //#endregion
86
- //#region node_modules/d3/node_modules/d3-format/src/formatPrefixAuto.js
87
- var j;
88
- function M(e, t) {
89
- var n = C(e, t);
90
- if (!n) return j = void 0, e.toPrecision(t);
91
- var r = n[0], i = n[1], a = i - (j = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
92
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + C(e, Math.max(0, t + a - 1))[0];
93
- }
94
- //#endregion
95
- //#region node_modules/d3/node_modules/d3-format/src/formatRounded.js
96
- function N(e, t) {
97
- var n = C(e, t);
98
- if (!n) return e + "";
99
- var r = n[0], i = n[1];
100
- return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
101
- }
102
- //#endregion
103
- //#region node_modules/d3/node_modules/d3-format/src/formatTypes.js
104
- var P = {
105
- "%": (e, t) => (e * 100).toFixed(t),
106
- b: (e) => Math.round(e).toString(2),
107
- c: (e) => e + "",
108
- d: S,
109
- e: (e, t) => e.toExponential(t),
110
- f: (e, t) => e.toFixed(t),
111
- g: (e, t) => e.toPrecision(t),
112
- o: (e) => Math.round(e).toString(8),
113
- p: (e, t) => N(e * 100, t),
114
- r: N,
115
- s: M,
116
- X: (e) => Math.round(e).toString(16).toUpperCase(),
117
- x: (e) => Math.round(e).toString(16)
118
- };
119
- //#endregion
120
- //#region node_modules/d3/node_modules/d3-format/src/identity.js
121
- function F(e) {
122
- return e;
123
- }
124
- //#endregion
125
- //#region node_modules/d3/node_modules/d3-format/src/locale.js
126
- var I = Array.prototype.map, L = [
127
- "y",
128
- "z",
129
- "a",
130
- "f",
131
- "p",
132
- "n",
133
- "µ",
134
- "m",
135
- "",
136
- "k",
137
- "M",
138
- "G",
139
- "T",
140
- "P",
141
- "E",
142
- "Z",
143
- "Y"
144
- ];
145
- function R(e) {
146
- var t = e.grouping === void 0 || e.thousands === void 0 ? F : T(I.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? F : E(I.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
147
- function l(e, l) {
148
- e = O(e);
149
- var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
150
- y === "n" ? (g = !0, y = "g") : P[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
151
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = P[y], C = /[defgprs%]/.test(y);
152
- _ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
153
- function w(e) {
154
- var n = b, r = x, o, l, p;
155
- if (y === "c") r = S(e) + r, e = "";
156
- else {
157
- e = +e;
158
- var w = e < 0 || 1 / e < 0;
159
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = A(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && j !== void 0 ? L[8 + j / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
160
- for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
161
- r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
162
- break;
163
- }
164
- }
165
- }
166
- g && !m && (e = t(e, Infinity));
167
- var T = n.length + e.length + r.length, E = T < h ? Array(h - T + 1).join(u) : "";
168
- switch (g && m && (e = t(E + e, E.length ? h - r.length : Infinity), E = ""), d) {
169
- case "<":
170
- e = n + e + r + E;
171
- break;
172
- case "=":
173
- e = n + E + e + r;
174
- break;
175
- case "^":
176
- e = E.slice(0, T = E.length >> 1) + n + e + r + E.slice(T);
177
- break;
178
- default:
179
- e = E + n + e + r;
180
- break;
181
- }
182
- return a(e);
183
- }
184
- return w.toString = function() {
185
- return e + "";
186
- }, w;
187
- }
188
- function u(e, t) {
189
- var n = Math.max(-8, Math.min(8, Math.floor(w(t) / 3))) * 3, r = 10 ** -n, i = l((e = O(e), e.type = "f", e), { suffix: L[8 + n / 3] });
190
- return function(e) {
191
- return i(r * e);
192
- };
193
- }
194
- return {
195
- format: l,
196
- formatPrefix: u
197
- };
198
- }
199
- //#endregion
200
- //#region node_modules/d3/node_modules/d3-format/src/defaultLocale.js
201
- var z, B;
202
- V({
203
- thousands: ",",
204
- grouping: [3],
205
- currency: ["$", ""]
206
- });
207
- function V(e) {
208
- return z = R(e), B = z.format, z.formatPrefix, z;
209
- }
210
- //#endregion
211
- //#region node_modules/d3-hierarchy/src/hierarchy/count.js
212
- function H(e) {
213
- var t = 0, n = e.children, r = n && n.length;
214
- if (!r) t = 1;
215
- else for (; --r >= 0;) t += n[r].value;
216
- e.value = t;
217
- }
218
- function U() {
219
- return this.eachAfter(H);
220
- }
221
- //#endregion
222
- //#region node_modules/d3-hierarchy/src/hierarchy/each.js
223
- function W(e, t) {
224
- let n = -1;
225
- for (let r of this) e.call(t, r, ++n, this);
226
- return this;
227
- }
228
- //#endregion
229
- //#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
230
- function ee(e, t) {
231
- for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
232
- return this;
233
- }
234
- //#endregion
235
- //#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
236
- function te(e, t) {
237
- for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
238
- for (; n = i.pop();) e.call(t, n, ++c, this);
239
- return this;
240
- }
241
- //#endregion
242
- //#region node_modules/d3-hierarchy/src/hierarchy/find.js
243
- function ne(e, t) {
244
- let n = -1;
245
- for (let r of this) if (e.call(t, r, ++n, this)) return r;
246
- }
247
- //#endregion
248
- //#region node_modules/d3-hierarchy/src/hierarchy/sum.js
249
- function re(e) {
250
- return this.eachAfter(function(t) {
251
- for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
252
- t.value = n;
253
- });
254
- }
255
- //#endregion
256
- //#region node_modules/d3-hierarchy/src/hierarchy/sort.js
257
- function ie(e) {
258
- return this.eachBefore(function(t) {
259
- t.children && t.children.sort(e);
260
- });
261
- }
262
- //#endregion
263
- //#region node_modules/d3-hierarchy/src/hierarchy/path.js
264
- function ae(e) {
265
- for (var t = this, n = oe(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
266
- for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
267
- return r;
268
- }
269
- function oe(e, t) {
270
- if (e === t) return e;
271
- var n = e.ancestors(), r = t.ancestors(), i = null;
272
- for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
273
- return i;
274
- }
275
- //#endregion
276
- //#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
277
- function se() {
278
- for (var e = this, t = [e]; e = e.parent;) t.push(e);
279
- return t;
280
- }
281
- //#endregion
282
- //#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
283
- function ce() {
284
- return Array.from(this);
285
- }
286
- //#endregion
287
- //#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
288
- function le() {
289
- var e = [];
290
- return this.eachBefore(function(t) {
291
- t.children || e.push(t);
292
- }), e;
293
- }
294
- //#endregion
295
- //#region node_modules/d3-hierarchy/src/hierarchy/links.js
296
- function ue() {
297
- var e = this, t = [];
298
- return e.each(function(n) {
299
- n !== e && t.push({
300
- source: n.parent,
301
- target: n
302
- });
303
- }), t;
304
- }
305
- //#endregion
306
- //#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
307
- function* de() {
308
- var e = this, t, n = [e], r, i, a;
309
- do
310
- for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
311
- while (n.length);
312
- }
313
- //#endregion
314
- //#region node_modules/d3-hierarchy/src/hierarchy/index.js
315
- function G(e, t) {
316
- e instanceof Map ? (e = [void 0, e], t === void 0 && (t = me)) : t === void 0 && (t = pe);
317
- for (var n = new K(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new K(o[s])), a.parent = r, a.depth = r.depth + 1;
318
- return n.eachBefore(ge);
319
- }
320
- function fe() {
321
- return G(this).eachBefore(he);
322
- }
323
- function pe(e) {
324
- return e.children;
325
- }
326
- function me(e) {
327
- return Array.isArray(e) ? e[1] : null;
328
- }
329
- function he(e) {
330
- e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
331
- }
332
- function ge(e) {
333
- var t = 0;
334
- do
335
- e.height = t;
336
- while ((e = e.parent) && e.height < ++t);
337
- }
338
- function K(e) {
339
- this.data = e, this.depth = this.height = 0, this.parent = null;
340
- }
341
- K.prototype = G.prototype = {
342
- constructor: K,
343
- count: U,
344
- each: W,
345
- eachAfter: te,
346
- eachBefore: ee,
347
- find: ne,
348
- sum: re,
349
- sort: ie,
350
- path: ae,
351
- ancestors: se,
352
- descendants: ce,
353
- leaves: le,
354
- links: ue,
355
- copy: fe,
356
- [Symbol.iterator]: de
357
- };
358
- //#endregion
359
- //#region node_modules/d3-hierarchy/src/accessors.js
360
- function _e(e) {
361
- if (typeof e != "function") throw Error();
362
- return e;
363
- }
364
- //#endregion
365
- //#region node_modules/d3-hierarchy/src/constant.js
366
- function q() {
367
- return 0;
368
- }
369
- function J(e) {
370
- return function() {
371
- return e;
372
- };
373
- }
374
- //#endregion
375
- //#region node_modules/d3-hierarchy/src/treemap/round.js
376
- function ve(e) {
377
- e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
378
- }
379
- //#endregion
380
- //#region node_modules/d3-hierarchy/src/treemap/dice.js
381
- function ye(e, t, n, r, i) {
382
- for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
383
- }
384
- //#endregion
385
- //#region node_modules/d3-hierarchy/src/treemap/slice.js
386
- function be(e, t, n, r, i) {
387
- for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
388
- }
389
- //#endregion
390
- //#region node_modules/d3-hierarchy/src/treemap/squarify.js
391
- var xe = (1 + Math.sqrt(5)) / 2;
392
- function Se(e, t, n, r, i, a) {
393
- for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
394
- p = i - n, m = a - r;
395
- do
396
- g = s[d++].value;
397
- while (!g && d < f);
398
- for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
399
- if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
400
- g -= l;
401
- break;
402
- }
403
- b = y;
404
- }
405
- o.push(c = {
406
- value: g,
407
- dice: p < m,
408
- children: s.slice(u, d)
409
- }), c.dice ? ye(c, n, r, i, h ? r += m * g / h : a) : be(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
410
- }
411
- return o;
412
- }
413
- var Ce = (function e(t) {
414
- function n(e, n, r, i, a) {
415
- Se(t, e, n, r, i, a);
416
- }
417
- return n.ratio = function(t) {
418
- return e((t = +t) > 1 ? t : 1);
419
- }, n;
420
- })(xe);
421
- //#endregion
422
- //#region node_modules/d3-hierarchy/src/treemap/index.js
423
- function we() {
424
- var e = Ce, t = !1, n = 1, r = 1, i = [0], a = q, o = q, s = q, c = q, l = q;
425
- function u(e) {
426
- return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ve), e;
427
- }
428
- function d(t) {
429
- var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
430
- d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
431
- }
432
- return u.round = function(e) {
433
- return arguments.length ? (t = !!e, u) : t;
434
- }, u.size = function(e) {
435
- return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
436
- }, u.tile = function(t) {
437
- return arguments.length ? (e = _e(t), u) : e;
438
- }, u.padding = function(e) {
439
- return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
440
- }, u.paddingInner = function(e) {
441
- return arguments.length ? (a = typeof e == "function" ? e : J(+e), u) : a;
442
- }, u.paddingOuter = function(e) {
443
- return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
444
- }, u.paddingTop = function(e) {
445
- return arguments.length ? (o = typeof e == "function" ? e : J(+e), u) : o;
446
- }, u.paddingRight = function(e) {
447
- return arguments.length ? (s = typeof e == "function" ? e : J(+e), u) : s;
448
- }, u.paddingBottom = function(e) {
449
- return arguments.length ? (c = typeof e == "function" ? e : J(+e), u) : c;
450
- }, u.paddingLeft = function(e) {
451
- return arguments.length ? (l = typeof e == "function" ? e : J(+e), u) : l;
452
- }, u;
453
- }
454
- //#endregion
455
- //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-3UASUU5V.mjs
456
- var Y = class {
457
- constructor() {
458
- this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = c, this.getAccTitle = g, this.setDiagramTitle = p, this.getDiagramTitle = h, this.getAccDescription = m, this.setAccDescription = s;
459
- }
460
- static {
461
- a(this, "TreeMapDB");
462
- }
463
- getNodes() {
464
- return this.nodes;
465
- }
466
- getConfig() {
467
- let e = f, t = u();
468
- return n({
469
- ...e.treemap,
470
- ...t.treemap ?? {}
471
- });
472
- }
473
- addNode(e, t) {
474
- this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
475
- }
476
- getRoot() {
477
- return {
478
- name: "",
479
- children: this.outerNodes
480
- };
481
- }
482
- addClass(e, t) {
483
- let n = this.classes.get(e) ?? {
484
- id: e,
485
- styles: [],
486
- textStyles: []
487
- }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
488
- r && r.forEach((e) => {
489
- b(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
490
- }), this.classes.set(e, n);
491
- }
492
- getClasses() {
493
- return this.classes;
494
- }
495
- getStylesForClass(e) {
496
- return this.classes.get(e)?.styles ?? [];
497
- }
498
- clear() {
499
- l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
500
- }
501
- };
502
- function X(e) {
503
- if (!e.length) return [];
504
- let t = [], n = [];
505
- return e.forEach((e) => {
506
- let r = {
507
- name: e.name,
508
- children: e.type === "Leaf" ? void 0 : []
509
- };
510
- for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
511
- if (n.length === 0) t.push(r);
512
- else {
513
- let e = n[n.length - 1].node;
514
- e.children ? e.children.push(r) : e.children = [r];
515
- }
516
- e.type !== "Leaf" && n.push({
517
- node: r,
518
- level: e.level
519
- });
520
- }), t;
521
- }
522
- a(X, "buildHierarchy");
523
- var Te = /* @__PURE__ */ a((e, t) => {
524
- v(e, t);
525
- let n = [];
526
- for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
527
- for (let r of e.TreemapRows ?? []) {
528
- let e = r.item;
529
- if (!e) continue;
530
- let i = r.indent ? parseInt(r.indent) : 0, a = Ee(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
531
- level: i,
532
- name: a,
533
- type: e.$type,
534
- value: e.value,
535
- classSelector: e.classSelector,
536
- cssCompiledStyles: s
537
- };
538
- n.push(c);
539
- }
540
- let r = X(n), i = /* @__PURE__ */ a((e, n) => {
541
- for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && i(r.children, n + 1);
542
- }, "addNodesRecursively");
543
- i(r, 0);
544
- }, "populate"), Ee = /* @__PURE__ */ a((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
545
- parser: { yy: void 0 },
546
- parse: /* @__PURE__ */ a(async (t) => {
547
- try {
548
- let n = await i("treemap", t);
549
- e.debug("Treemap AST:", n);
550
- let r = Z.parser?.yy;
551
- if (!(r instanceof Y)) throw Error("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.");
552
- Te(n, r);
553
- } catch (t) {
554
- throw e.error("Error parsing treemap:", t), t;
555
- }
556
- }, "parse")
557
- }, De = 10, Q = 10, $ = 25, Oe = {
558
- draw: /* @__PURE__ */ a((n, i, o, s) => {
559
- let c = s.db, l = c.getConfig(), f = l.padding ?? De, p = c.getDiagramTitle(), m = c.getRoot(), { themeVariables: h } = u();
560
- if (!m) return;
561
- let g = p ? 30 : 0, v = _(i), b = l.nodeWidth ? l.nodeWidth * Q : 960, S = l.nodeHeight ? l.nodeHeight * Q : 500, C = b, w = S + g;
562
- v.attr("viewBox", `0 0 ${C} ${w}`), d(v, w, C, l.useMaxWidth);
563
- let T;
564
- try {
565
- let e = l.valueFormat || ",";
566
- if (e === "$0,0") T = /* @__PURE__ */ a((e) => "$" + B(",")(e), "valueFormat");
567
- else if (e.startsWith("$") && e.includes(",")) {
568
- let t = /\.\d+/.exec(e), n = t ? t[0] : "";
569
- T = /* @__PURE__ */ a((e) => "$" + B("," + n)(e), "valueFormat");
570
- } else if (e.startsWith("$")) {
571
- let t = e.substring(1);
572
- T = /* @__PURE__ */ a((e) => "$" + B(t || "")(e), "valueFormat");
573
- } else T = B(e);
574
- } catch (t) {
575
- e.error("Error creating format function:", t), T = B(",");
576
- }
577
- let E = r().range([
578
- "transparent",
579
- h.cScale0,
580
- h.cScale1,
581
- h.cScale2,
582
- h.cScale3,
583
- h.cScale4,
584
- h.cScale5,
585
- h.cScale6,
586
- h.cScale7,
587
- h.cScale8,
588
- h.cScale9,
589
- h.cScale10,
590
- h.cScale11
591
- ]), D = r().range([
592
- "transparent",
593
- h.cScalePeer0,
594
- h.cScalePeer1,
595
- h.cScalePeer2,
596
- h.cScalePeer3,
597
- h.cScalePeer4,
598
- h.cScalePeer5,
599
- h.cScalePeer6,
600
- h.cScalePeer7,
601
- h.cScalePeer8,
602
- h.cScalePeer9,
603
- h.cScalePeer10,
604
- h.cScalePeer11
605
- ]), O = r().range([
606
- h.cScaleLabel0,
607
- h.cScaleLabel1,
608
- h.cScaleLabel2,
609
- h.cScaleLabel3,
610
- h.cScaleLabel4,
611
- h.cScaleLabel5,
612
- h.cScaleLabel6,
613
- h.cScaleLabel7,
614
- h.cScaleLabel8,
615
- h.cScaleLabel9,
616
- h.cScaleLabel10,
617
- h.cScaleLabel11
618
- ]);
619
- p && v.append("text").attr("x", C / 2).attr("y", g / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
620
- let k = v.append("g").attr("transform", `translate(0, ${g})`).attr("class", "treemapContainer"), A = G(m).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), j = we().size([b, S]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(f).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(A), M = j.descendants().filter((e) => e.children && e.children.length > 0), N = k.selectAll(".treemapSection").data(M).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
621
- N.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), N.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), N.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => E(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => D(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
622
- if (e.depth === 0) return "display: none;";
623
- let t = y({ cssCompiledStyles: e.data.cssCompiledStyles });
624
- return t.nodeStyles + ";" + t.borderStyles.join(";");
625
- }), N.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${i}-${t})`).attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + O(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
626
- if (e.depth === 0) return;
627
- let n = t(this), r = e.data.name;
628
- n.text(r);
629
- let i = e.x1 - e.x0, a;
630
- a = l.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
631
- let o = Math.max(15, a), s = n.node();
632
- if (s.getComputedTextLength() > o) {
633
- let e = r;
634
- for (; e.length > 0;) {
635
- if (e = r.substring(0, e.length - 1), e.length === 0) {
636
- n.text("..."), s.getComputedTextLength() > o && n.text("");
637
- break;
638
- }
639
- if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
640
- }
641
- }
642
- }), l.showValues !== !1 && N.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? T(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + O(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
643
- let P = j.leaves(), F = P.length > 20, I = F ? 16 : 38, L = F ? 14 : 28, R = F ? 4 : 8, z = F ? 4 : 6, V = F ? 2 : 4, H = F ? 8 : 10, U = F ? 1 : 2, W = k.selectAll(".treemapLeafGroup").data(P).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
644
- W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? E(e.parent.data.name) : E(e.data.name)).attr("style", (e) => y({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? E(e.parent.data.name) : E(e.data.name)).attr("stroke-width", 3), W.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), W.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => `text-anchor: middle; dominant-baseline: middle; font-size: ${I}px;fill:` + O(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
645
- let n = t(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = n.node(), o = r - 2 * V, s = i - 2 * V;
646
- if (o < H || s < H) {
647
- n.style("display", "none");
648
- return;
649
- }
650
- let c = parseInt(n.style("font-size"), 10), l = .6;
651
- for (; a.getComputedTextLength() > o && c > R;) c--, n.style("font-size", `${c}px`);
652
- let u = Math.max(z, Math.min(L, Math.round(c * l))), d = c + U + u;
653
- for (; d > s && c > R && (c--, u = Math.max(z, Math.min(L, Math.round(c * l))), !(u < z && c === R));) n.style("font-size", `${c}px`), d = c + U + u;
654
- n.style("font-size", `${c}px`), F ? (c < R || s < R) && n.style("display", "none") : (a.getComputedTextLength() > o || c < R || s < c) && n.style("display", "none");
655
- }), l.showValues !== !1 && W.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
656
- return (e.y1 - e.y0) / 2;
657
- }).attr("style", (e) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${L}px;fill:` + O(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? T(e.value) : "").each(function(e) {
658
- let n = t(this), r = this.parentNode;
659
- if (!r) {
660
- n.style("display", "none");
661
- return;
662
- }
663
- let i = t(r).select(".treemapLabel");
664
- if (i.empty() || i.style("display") === "none") {
665
- n.style("display", "none");
666
- return;
667
- }
668
- let a = parseFloat(i.style("font-size")), o = Math.max(z, Math.min(L, Math.round(a * .6)));
669
- n.style("font-size", `${o}px`);
670
- let s = (e.y1 - e.y0) / 2 + a / 2 + U;
671
- n.attr("y", s);
672
- let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 2 * V;
673
- n.node().getComputedTextLength() > u || s + o > l || o < z ? n.style("display", "none") : n.style("display", null);
674
- }), x(v, l.diagramPadding ?? 8, "flowchart", l?.useMaxWidth || !1);
675
- }, "draw"),
676
- getClasses: /* @__PURE__ */ a(function(e, t) {
677
- return t.db.getClasses();
678
- }, "getClasses")
679
- }, ke = {
680
- sectionStrokeColor: "black",
681
- sectionStrokeWidth: "1",
682
- sectionFillColor: "#efefef",
683
- leafStrokeColor: "black",
684
- leafStrokeWidth: "1",
685
- leafFillColor: "#efefef",
686
- labelFontSize: "12px",
687
- valueFontSize: "10px",
688
- titleFontSize: "14px"
689
- }, Ae = {
690
- parser: Z,
691
- get db() {
692
- return new Y();
693
- },
694
- renderer: Oe,
695
- styles: /* @__PURE__ */ a(({ treemap: e } = {}) => {
696
- let t = n(o(), u().themeVariables), r = n(ke, e), i = r.titleColor ?? t.titleColor, a = r.labelColor ?? t.textColor, s = r.valueColor ?? t.textColor;
697
- return `
698
- .treemapNode.section {
699
- stroke: ${r.sectionStrokeColor};
700
- stroke-width: ${r.sectionStrokeWidth};
701
- fill: ${r.sectionFillColor};
702
- }
703
- .treemapNode.leaf {
704
- stroke: ${r.leafStrokeColor};
705
- stroke-width: ${r.leafStrokeWidth};
706
- fill: ${r.leafFillColor};
707
- }
708
- .treemapLabel {
709
- fill: ${a};
710
- font-size: ${r.labelFontSize};
711
- }
712
- .treemapValue {
713
- fill: ${s};
714
- font-size: ${r.valueFontSize};
715
- }
716
- .treemapTitle {
717
- fill: ${i};
718
- font-size: ${r.titleFontSize};
719
- }
720
- `;
721
- }, "getStyles")
722
- };
723
- //#endregion
724
- export { Ae as diagram };