file-viewer3 1.0.8 → 1.0.26

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 (370) hide show
  1. package/LICENSE +160 -0
  2. package/README.en.md +390 -0
  3. package/README.md +306 -89
  4. package/dist/components/3MFLoader.js +527 -0
  5. package/dist/components/AMFLoader.js +188 -0
  6. package/dist/components/ArchiveViewer.js +526 -0
  7. package/dist/components/AudioViewer.js +66 -0
  8. package/dist/components/CadViewer.js +9040 -0
  9. package/dist/components/CodeViewer.js +151 -0
  10. package/dist/components/ColladaLoader.js +2282 -0
  11. package/dist/components/DrawingViewer.js +295 -0
  12. package/dist/components/EdaViewer.js +630 -0
  13. package/dist/components/EmailViewer.js +276 -0
  14. package/dist/components/EpubViewer.js +172 -0
  15. package/dist/components/FBXLoader.js +1574 -0
  16. package/dist/components/GLTFLoader.js +1383 -0
  17. package/dist/components/ImageViewer.js +1516 -1895
  18. package/dist/components/KMZLoader.js +45 -0
  19. package/dist/components/MarkdownViewer.js +1456 -1557
  20. package/dist/components/ModelViewer.js +797 -0
  21. package/dist/components/OBJLoader.js +287 -0
  22. package/dist/components/OfdViewer.js +133 -0
  23. package/dist/components/PCDLoader.js +141 -0
  24. package/dist/components/PLYLoader.js +305 -0
  25. package/dist/components/PdfView.js +27662 -21655
  26. package/dist/components/PptxRender.js +11170 -21118
  27. package/dist/components/STLLoader.js +83 -0
  28. package/dist/components/TDSLoader.js +228 -0
  29. package/dist/components/TypstViewer.js +1697 -0
  30. package/dist/components/USDLoader.js +2526 -0
  31. package/dist/components/UmdViewer.js +1873 -0
  32. package/dist/components/VRMLLoader.js +6422 -0
  33. package/dist/components/VTKLoader.js +337 -0
  34. package/dist/components/XYZLoader.js +30 -0
  35. package/dist/components/XlsxTable.js +7871 -69873
  36. package/dist/components/__vite-browser-external.js +7 -0
  37. package/dist/components/_plugin-vue_export-helper.js +8 -0
  38. package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
  39. package/dist/components/arc.js +79 -0
  40. package/dist/components/architecture-7EHR7CIX.js +3 -0
  41. package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
  42. package/dist/components/archive.js +24 -0
  43. package/dist/components/asyncToGenerator.js +29 -0
  44. package/dist/components/audio.js +19 -0
  45. package/dist/components/az-AZ-76LH7QW2.js +523 -0
  46. package/dist/components/bash.js +169 -0
  47. package/dist/components/bg-BG-XCXSNQG7.js +523 -0
  48. package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
  49. package/dist/components/bn-BD-2XOGV67Q.js +523 -0
  50. package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
  51. package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
  52. package/dist/components/cad.js +23 -0
  53. package/dist/components/cfb.js +1174 -0
  54. package/dist/components/channel.js +5 -0
  55. package/dist/components/chunk-2J33WTMH.js +26 -0
  56. package/dist/components/chunk-3OPIFGDE.js +4167 -0
  57. package/dist/components/chunk-4BX2VUAB.js +19 -0
  58. package/dist/components/chunk-55IACEB6.js +9 -0
  59. package/dist/components/chunk-5ZQYHXKU.js +669 -0
  60. package/dist/components/chunk-6U3AYISY.js +624 -0
  61. package/dist/components/chunk-727SXJPM.js +3356 -0
  62. package/dist/components/chunk-AGHRB4JF.js +324 -0
  63. package/dist/components/chunk-AQP2D5EJ.js +2055 -0
  64. package/dist/components/chunk-BSJP7CBP.js +83 -0
  65. package/dist/components/chunk-CSCIHK7Q.js +3500 -0
  66. package/dist/components/chunk-EIO257PC.js +1836 -0
  67. package/dist/components/chunk-FMBD7UC4.js +5 -0
  68. package/dist/components/chunk-K2UTITRG.js +17627 -0
  69. package/dist/components/chunk-KSCS5N6A.js +572 -0
  70. package/dist/components/chunk-L5ZTLDWV.js +40 -0
  71. package/dist/components/chunk-LZXEDZCA.js +60 -0
  72. package/dist/components/chunk-ND2GUHAM.js +61 -0
  73. package/dist/components/chunk-NNHCCRGN.js +20425 -0
  74. package/dist/components/chunk-NZK2D7GU.js +68 -0
  75. package/dist/components/chunk-O5CBEL6O.js +1894 -0
  76. package/dist/components/chunk-QZHKN3VN.js +12 -0
  77. package/dist/components/chunk-SRAX5OIU.js +22 -0
  78. package/dist/components/chunk-WU5MYG2G.js +14 -0
  79. package/dist/components/chunk-XPW4576I.js +1146 -0
  80. package/dist/components/chunk-Z3N5DIM6.js +59 -0
  81. package/dist/components/chunk-ZUYEQ4TG.js +22 -0
  82. package/dist/components/chunk.js +23 -0
  83. package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
  84. package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
  85. package/dist/components/compiler.js +2 -0
  86. package/dist/components/core.js +845 -0
  87. package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
  88. package/dist/components/cpp.js +225 -0
  89. package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
  90. package/dist/components/csharp.js +260 -0
  91. package/dist/components/css.js +140 -0
  92. package/dist/components/cytoscape.esm.js +18114 -0
  93. package/dist/components/da-DK-5WZEPLOC.js +523 -0
  94. package/dist/components/dagre-BM42HDAG.js +325 -0
  95. package/dist/components/dagre.js +1936 -0
  96. package/dist/components/de-DE-XR44H4JA.js +523 -0
  97. package/dist/components/defaultLocale.js +201 -0
  98. package/dist/components/defineProperty.js +50 -0
  99. package/dist/components/diagram-2AECGRRQ.js +229 -0
  100. package/dist/components/diagram-5GNKFQAL.js +108 -0
  101. package/dist/components/diagram-KO2AKTUF.js +443 -0
  102. package/dist/components/diagram-LMA3HP47.js +139 -0
  103. package/dist/components/diagram-OG6HWLK6.js +541 -0
  104. package/dist/components/diff.js +39 -0
  105. package/dist/components/directory-open-01563666.js +26 -0
  106. package/dist/components/directory-open-4ed118d0.js +83 -0
  107. package/dist/components/dist.js +50 -0
  108. package/dist/components/dist2.js +3291 -0
  109. package/dist/components/dist3.js +1593 -0
  110. package/dist/components/documentSearch.js +378 -0
  111. package/dist/components/docx-preview.js +3113 -0
  112. package/dist/components/drawing.js +19 -0
  113. package/dist/components/ebook.js +16 -0
  114. package/dist/components/eda.js +20 -0
  115. package/dist/components/el-GR-BZB4AONW.js +523 -0
  116. package/dist/components/email.js +21 -0
  117. package/dist/components/en-B4ZKOASM.js +3 -0
  118. package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
  119. package/dist/components/es-ES-U4NZUMDT.js +523 -0
  120. package/dist/components/eu-ES-A7QVB2H4.js +523 -0
  121. package/dist/components/eventmodeling-FCH6USID.js +3 -0
  122. package/dist/components/fa-IR-HGAKTJCU.js +523 -0
  123. package/dist/components/fflate.module.js +323 -0
  124. package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
  125. package/dist/components/file-open-002ab408.js +38 -0
  126. package/dist/components/file-open-7c801643.js +24 -0
  127. package/dist/components/file-save-3189631c.js +40 -0
  128. package/dist/components/file-save-745eba88.js +36 -0
  129. package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
  130. package/dist/components/fr-FR-RHASNOE6.js +523 -0
  131. package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
  132. package/dist/components/gitGraph-WXDBUCRP.js +3 -0
  133. package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
  134. package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
  135. package/dist/components/global-compiler.js +23 -0
  136. package/dist/components/global-renderer.js +23 -0
  137. package/dist/components/go.js +140 -0
  138. package/dist/components/graphlib.js +1267 -0
  139. package/dist/components/he-IL-6SHJWFNN.js +523 -0
  140. package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
  141. package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
  142. package/dist/components/id-ID-SAP4L64H.js +523 -0
  143. package/dist/components/image-GAAHSSAO.js +3 -0
  144. package/dist/components/image-blob-reduce.esm.js +1429 -0
  145. package/dist/components/image.js +17 -0
  146. package/dist/components/info-J43DQDTF.js +3 -0
  147. package/dist/components/infoDiagram-5YYISTIA.js +26 -0
  148. package/dist/components/ini.js +88 -0
  149. package/dist/components/init.js +15 -0
  150. package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
  151. package/dist/components/it-IT-JPQ66NNP.js +523 -0
  152. package/dist/components/ja-JP-DBVTYXUO.js +523 -0
  153. package/dist/components/java.js +169 -0
  154. package/dist/components/javascript.js +436 -0
  155. package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
  156. package/dist/components/json.js +36 -0
  157. package/dist/components/jszip.min.js +3033 -0
  158. package/dist/components/kaa-6HZHGXH3.js +523 -0
  159. package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
  160. package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
  161. package/dist/components/katex.js +21979 -0
  162. package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
  163. package/dist/components/km-KH-HSX4SM5Z.js +523 -0
  164. package/dist/components/ko-KR-MTYHY66A.js +523 -0
  165. package/dist/components/ku-TR-6OUDTVRD.js +523 -0
  166. package/dist/components/lib.js +4877 -0
  167. package/dist/components/libarchive.js +360 -0
  168. package/dist/components/linear.js +289 -0
  169. package/dist/components/lt-LT-XHIRWOB4.js +523 -0
  170. package/dist/components/lv-LV-5QDEKY6T.js +523 -0
  171. package/dist/components/markdown.js +181 -0
  172. package/dist/components/md.js +17 -0
  173. package/dist/components/mermaid-parser.core.js +328 -0
  174. package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
  175. package/dist/components/model.js +21 -0
  176. package/dist/components/mp4.js +12 -0
  177. package/dist/components/mr-IN-CRQNXWMA.js +523 -0
  178. package/dist/components/my-MM-5M5IBNSE.js +523 -0
  179. package/dist/components/nb-NO-T6EIAALU.js +523 -0
  180. package/dist/components/nestedRender.js +158 -0
  181. package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
  182. package/dist/components/nn-NO-6E72VCQL.js +523 -0
  183. package/dist/components/objectSpread2.js +29 -0
  184. package/dist/components/objectWithoutProperties.js +28 -0
  185. package/dist/components/oc-FR-POXYY2M6.js +523 -0
  186. package/dist/components/ofd.js +5261 -0
  187. package/dist/components/ofd2.js +16 -0
  188. package/dist/components/ordinal.js +65 -0
  189. package/dist/components/pa-IN-N4M65BXN.js +523 -0
  190. package/dist/components/packet-YPE3B663.js +3 -0
  191. package/dist/components/pdf.js +24 -0
  192. package/dist/components/percentages-BXMCSKIN.js +3 -0
  193. package/dist/components/php.js +294 -0
  194. package/dist/components/pica.js +1009 -0
  195. package/dist/components/pie-LRSECV5Y.js +3 -0
  196. package/dist/components/pie.js +47 -0
  197. package/dist/components/pieDiagram-4H26LBE5.js +130 -0
  198. package/dist/components/pl-PL-T2D74RX3.js +523 -0
  199. package/dist/components/postal-mime.js +3146 -0
  200. package/dist/components/pptx.js +15 -0
  201. package/dist/components/printLayout.js +42 -0
  202. package/dist/components/prod.js +21770 -0
  203. package/dist/components/pt-BR-5N22H2LF.js +523 -0
  204. package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
  205. package/dist/components/python.js +238 -0
  206. package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
  207. package/dist/components/radar-GUYGQ44K.js +3 -0
  208. package/dist/components/renderer.js +2 -0
  209. package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
  210. package/dist/components/ro-RO-JPDTUUEW.js +523 -0
  211. package/dist/components/rough.esm.js +1355 -0
  212. package/dist/components/roundRect.js +90 -0
  213. package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
  214. package/dist/components/rust.js +169 -0
  215. package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
  216. package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
  217. package/dist/components/shared.js +175 -0
  218. package/dist/components/shared2.js +4 -0
  219. package/dist/components/si-LK-N5RQ5JYF.js +523 -0
  220. package/dist/components/sk-SK-C5VTKIMK.js +523 -0
  221. package/dist/components/sl-SI-NN7IZMDC.js +523 -0
  222. package/dist/components/sourceLoading.js +134 -0
  223. package/dist/components/sql.js +118 -0
  224. package/dist/components/src.js +2664 -0
  225. package/dist/components/src2.js +10722 -0
  226. package/dist/components/stateDiagram-AJRCARHV.js +217 -0
  227. package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
  228. package/dist/components/subset-shared.chunk.js +3 -0
  229. package/dist/components/subset-worker.chunk.js +21 -0
  230. package/dist/components/sv-SE-XGPEYMSR.js +523 -0
  231. package/dist/components/ta-IN-2NMHFXQM.js +523 -0
  232. package/dist/components/text.js +20 -0
  233. package/dist/components/th-TH-HPSO5L25.js +523 -0
  234. package/dist/components/three.module.js +13134 -0
  235. package/dist/components/time.js +910 -0
  236. package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
  237. package/dist/components/tr-TR-DEFEU3FU.js +523 -0
  238. package/dist/components/treeView-BLDUP644.js +3 -0
  239. package/dist/components/treemap-LRROVOQU.js +3 -0
  240. package/dist/components/typescript.js +521 -0
  241. package/dist/components/typst.js +25 -0
  242. package/dist/components/uk-UA-QMV73CPH.js +523 -0
  243. package/dist/components/umd.js +16 -0
  244. package/dist/components/use.js +422 -0
  245. package/dist/components/util.js +49 -0
  246. package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
  247. package/dist/components/vi-VN-M7AON7JQ.js +523 -0
  248. package/dist/components/viewerZoom.js +92 -0
  249. package/dist/components/wardley-L42UT6IY.js +3 -0
  250. package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
  251. package/dist/components/wasm-pack-shim.js +1711 -0
  252. package/dist/components/wasm-pack-shim2.js +934 -0
  253. package/dist/components/wasm.js +97 -0
  254. package/dist/components/word.js +3055 -0
  255. package/dist/components/worker-ref.js +15 -20
  256. package/dist/components/xlsx.js +21 -0
  257. package/dist/components/xml.js +166 -0
  258. package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
  259. package/dist/components/yaml.js +144 -0
  260. package/dist/components/zh-CN-LNUGB5OW.js +523 -0
  261. package/dist/components/zh-HK-E62DVLB3.js +523 -0
  262. package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
  263. package/dist/file-viewer3.css +2 -0
  264. package/dist/index.mjs +3292 -5
  265. package/dist/src/App.vue.d.ts +3 -0
  266. package/dist/src/compare/CompareApp.vue.d.ts +3 -0
  267. package/dist/src/compare/main.d.ts +0 -0
  268. package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
  269. package/dist/src/components/HelloWorld.vue.d.ts +3 -0
  270. package/dist/src/components/utils.d.ts +4 -0
  271. package/dist/src/main.d.ts +0 -0
  272. package/dist/src/package/common/printCapability.d.ts +27 -0
  273. package/dist/src/package/common/printLayout.d.ts +16 -0
  274. package/dist/src/package/common/sourceLoading.d.ts +10 -0
  275. package/dist/src/package/common/type.d.ts +522 -8
  276. package/dist/src/package/common/worker-ref.d.ts +1 -1
  277. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
  278. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
  279. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
  280. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
  281. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
  282. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
  283. package/dist/src/package/components/FileViewer/index.d.ts +1 -1
  284. package/dist/src/package/components/FileViewer/util.d.ts +2 -1
  285. package/dist/src/package/index.d.ts +14 -4
  286. package/dist/src/package/use/documentLocation.d.ts +15 -0
  287. package/dist/src/package/use/documentSearch.d.ts +234 -0
  288. package/dist/src/package/use/index.d.ts +4 -0
  289. package/dist/src/package/use/loading.d.ts +33 -0
  290. package/dist/src/package/use/viewerZoom.d.ts +42 -0
  291. package/dist/src/package/use/worker.d.ts +2 -2
  292. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
  293. package/dist/src/package/vendors/archive/cache.d.ts +10 -0
  294. package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
  295. package/dist/src/package/vendors/archive/index.d.ts +3 -0
  296. package/dist/src/package/vendors/archive/shared.d.ts +24 -0
  297. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
  298. package/dist/src/package/vendors/audio/index.d.ts +7 -0
  299. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
  300. package/dist/src/package/vendors/cad/index.d.ts +8 -0
  301. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
  302. package/dist/src/package/vendors/drawing/index.d.ts +7 -0
  303. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
  304. package/dist/src/package/vendors/ebook/index.d.ts +7 -0
  305. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
  306. package/dist/src/package/vendors/eda/index.d.ts +2 -0
  307. package/dist/src/package/vendors/eda/parser.d.ts +77 -0
  308. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
  309. package/dist/src/package/vendors/email/index.d.ts +2 -0
  310. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
  311. package/dist/src/package/vendors/image/index.d.ts +1 -1
  312. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
  313. package/dist/src/package/vendors/md/index.d.ts +1 -1
  314. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
  315. package/dist/src/package/vendors/model/index.d.ts +3 -0
  316. package/dist/src/package/vendors/model/shared.d.ts +1 -0
  317. package/dist/src/package/vendors/nestedRender.d.ts +10 -0
  318. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
  319. package/dist/src/package/vendors/ofd/index.d.ts +7 -0
  320. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
  321. package/dist/src/package/vendors/pdf/index.d.ts +2 -1
  322. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  323. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
  324. package/dist/src/package/vendors/pptx/index.d.ts +1 -1
  325. package/dist/src/package/vendors/renders.d.ts +1 -1
  326. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
  327. package/dist/src/package/vendors/text/index.d.ts +6 -2
  328. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
  329. package/dist/src/package/vendors/typst/index.d.ts +8 -0
  330. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
  331. package/dist/src/package/vendors/umd/index.d.ts +7 -0
  332. package/dist/src/package/vendors/umd/parser.d.ts +30 -0
  333. package/dist/src/package/vendors/word/doc.d.ts +5 -0
  334. package/dist/src/package/vendors/word/docx.d.ts +5 -0
  335. package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
  336. package/dist/src/package/vendors/word/index.d.ts +3 -0
  337. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
  338. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
  339. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
  340. package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
  341. package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
  342. package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
  343. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
  344. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
  345. package/dist/style.css +1 -57
  346. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  347. package/dist/wasm/cad/dwg-worker.js +24 -0
  348. package/dist/wasm/cad/libredwg-web.js +15 -0
  349. package/dist/wasm/cad/libredwg-web.wasm +0 -0
  350. package/package.json +118 -42
  351. package/.vscode/extensions.json +0 -3
  352. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  353. package/dist/components/_commonjsHelpers.js +0 -36
  354. package/dist/components/docx-preview.min.js +0 -5287
  355. package/dist/components/index.js +0 -1717
  356. package/dist/favicon.ico +0 -0
  357. package/dist/index.umd.js +0 -436
  358. package/dist/src/package/vendors/docx/index.d.ts +0 -4
  359. package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
  360. package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  361. package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  362. package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  363. package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  364. package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  365. package/dist/worker/pdf.worker.js +0 -66
  366. package/dist/worker/pptx.worker.js +0 -21
  367. package/dist/worker/sheet.worker.js +0 -38
  368. package/dist/worker/xlsx.worker.js +0 -65
  369. /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
  370. /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
@@ -0,0 +1,572 @@
1
+ import { n as e, t } from "./objectSpread2.js";
2
+ import { n, t as r } from "./asyncToGenerator.js";
3
+ import { n as i, r as a } from "./chunk-AGHRB4JF.js";
4
+ import { T as o, b as s, x as c } from "./chunk-CSCIHK7Q.js";
5
+ import { Q as l, _ as u, a as d, i as f, n as p, o as m, p as h, r as g, t as _, u as v, v as y, x as b } from "./src.js";
6
+ import { K as x, g as S, q as ee, u as te } from "./chunk-5ZQYHXKU.js";
7
+ import { i as C, n as w, r as T, t as E } from "./chunk-BSJP7CBP.js";
8
+ import { n as D } from "./chunk-L5ZTLDWV.js";
9
+ import { i as O, n as ne } from "./chunk-NZK2D7GU.js";
10
+ import { n as k } from "./chunk-O5CBEL6O.js";
11
+ import { t as re } from "./rough.esm.js";
12
+ import { r as A } from "./chunk-3OPIFGDE.js";
13
+ n(), e();
14
+ var ie = /* @__PURE__ */ i((e, t, n, r, i, a = !1, o) => {
15
+ t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
16
+ }, "addEdgeMarkers"), j = {
17
+ arrow_cross: {
18
+ type: "cross",
19
+ fill: !1
20
+ },
21
+ arrow_point: {
22
+ type: "point",
23
+ fill: !0
24
+ },
25
+ arrow_barb: {
26
+ type: "barb",
27
+ fill: !0
28
+ },
29
+ arrow_barb_neo: {
30
+ type: "barb",
31
+ fill: !0
32
+ },
33
+ arrow_circle: {
34
+ type: "circle",
35
+ fill: !1
36
+ },
37
+ aggregation: {
38
+ type: "aggregation",
39
+ fill: !1
40
+ },
41
+ extension: {
42
+ type: "extension",
43
+ fill: !1
44
+ },
45
+ composition: {
46
+ type: "composition",
47
+ fill: !0
48
+ },
49
+ dependency: {
50
+ type: "dependency",
51
+ fill: !0
52
+ },
53
+ lollipop: {
54
+ type: "lollipop",
55
+ fill: !1
56
+ },
57
+ only_one: {
58
+ type: "onlyOne",
59
+ fill: !1
60
+ },
61
+ zero_or_one: {
62
+ type: "zeroOrOne",
63
+ fill: !1
64
+ },
65
+ one_or_more: {
66
+ type: "oneOrMore",
67
+ fill: !1
68
+ },
69
+ zero_or_more: {
70
+ type: "zeroOrMore",
71
+ fill: !1
72
+ },
73
+ requirement_arrow: {
74
+ type: "requirement_arrow",
75
+ fill: !1
76
+ },
77
+ requirement_contains: {
78
+ type: "requirement_contains",
79
+ fill: !1
80
+ }
81
+ }, M = [
82
+ "cross",
83
+ "point",
84
+ "circle",
85
+ "lollipop",
86
+ "aggregation",
87
+ "extension",
88
+ "composition",
89
+ "dependency",
90
+ "barb"
91
+ ], N = /* @__PURE__ */ i((e, t, n, r, i, o, s = !1, c) => {
92
+ let l = j[n], u = l && M.includes(l.type);
93
+ if (!l) {
94
+ a.warn(`Unknown arrow type: ${n}`);
95
+ return;
96
+ }
97
+ let d = `${i}_${o}-${l.type}${t === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
98
+ if (c && c.trim() !== "") {
99
+ let n = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
100
+ if (!document.getElementById(n)) {
101
+ let e = document.getElementById(d);
102
+ if (e) {
103
+ var f;
104
+ let t = e.cloneNode(!0);
105
+ t.id = n, t.querySelectorAll("path, circle, line").forEach((e) => {
106
+ e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
107
+ }), (f = e.parentNode) == null || f.appendChild(t);
108
+ }
109
+ }
110
+ e.attr(`marker-${t}`, `url(${r}#${n})`);
111
+ } else e.attr(`marker-${t}`, `url(${r}#${d})`);
112
+ }, "addEdgeMarker"), ae = /* @__PURE__ */ i((e) => {
113
+ var t;
114
+ return typeof e == "string" ? e : (t = c()) == null || (t = t.flowchart) == null ? void 0 : t.curve;
115
+ }, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ i(() => {
116
+ P.clear(), F.clear();
117
+ }, "clear"), L = /* @__PURE__ */ i((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), R = /* @__PURE__ */ i(function() {
118
+ var e = r(function* (e, t) {
119
+ let n = c(), r = o(n), { labelStyles: i } = O(t);
120
+ t.labelStyle = i;
121
+ let s = e.insert("g").attr("class", "edgeLabel"), u = s.insert("g").attr("class", "label").attr("data-id", t.id), d = t.labelType === "markdown", f = yield k(e, t.label, {
122
+ style: L(t.labelStyle),
123
+ useHtmlLabels: r,
124
+ addSvgBackground: !0,
125
+ isNode: !1,
126
+ markdown: d,
127
+ width: void 0
128
+ }, n);
129
+ u.node().appendChild(f), a.info("abc82", t, t.labelType);
130
+ let p = f.getBBox(), m = p;
131
+ if (r) {
132
+ let e = f.children[0], t = l(f);
133
+ p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
134
+ } else {
135
+ let e = l(f).select("text").node();
136
+ e && typeof e.getBBox == "function" && (m = e.getBBox());
137
+ }
138
+ u.attr("transform", E(m, r)), P.set(t.id, s), t.width = p.width, t.height = p.height;
139
+ let h;
140
+ if (t.startLabelLeft) {
141
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(i, t.startLabelLeft, L(t.labelStyle) || "", !1, !1);
142
+ h = a;
143
+ let o = a.getBBox();
144
+ if (r) {
145
+ let e = a.children[0], t = l(a);
146
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
147
+ }
148
+ i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).startLeft = n, z(h, t.startLabelLeft);
149
+ }
150
+ if (t.startLabelRight) {
151
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(i, t.startLabelRight, L(t.labelStyle) || "", !1, !1);
152
+ h = a;
153
+ let o = a.getBBox();
154
+ if (r) {
155
+ let e = a.children[0], t = l(a);
156
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
157
+ }
158
+ i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).startRight = n, z(h, t.startLabelRight);
159
+ }
160
+ if (t.endLabelLeft) {
161
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(n, t.endLabelLeft, L(t.labelStyle) || "", !1, !1);
162
+ h = a;
163
+ let o = a.getBBox();
164
+ if (r) {
165
+ let e = a.children[0], t = l(a);
166
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
167
+ }
168
+ i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).endLeft = n, z(h, t.endLabelLeft);
169
+ }
170
+ if (t.endLabelRight) {
171
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(n, t.endLabelRight, L(t.labelStyle) || "", !1, !1);
172
+ h = a;
173
+ let o = a.getBBox();
174
+ if (r) {
175
+ let e = a.children[0], t = l(a);
176
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
177
+ }
178
+ i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).endRight = n, z(h, t.endLabelRight);
179
+ }
180
+ return f;
181
+ });
182
+ return function(t, n) {
183
+ return e.apply(this, arguments);
184
+ };
185
+ }(), "insertEdgeLabel");
186
+ function z(e, t) {
187
+ o(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
188
+ }
189
+ i(z, "setTerminalWidth");
190
+ var B = /* @__PURE__ */ i((e, t) => {
191
+ a.debug("Moving label abc88 ", e.id, e.label, P.get(e.id), t);
192
+ let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: r } = D(c());
193
+ if (e.label) {
194
+ let i = P.get(e.id), o = e.x, s = e.y;
195
+ if (n) {
196
+ let r = S.calcLabelPosition(n);
197
+ a.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", r.x, ",", r.y, ") abc88"), t.updatedPath && (o = r.x, s = r.y);
198
+ }
199
+ i.attr("transform", `translate(${o}, ${s + r / 2})`);
200
+ }
201
+ if (e.startLabelLeft) {
202
+ let t = F.get(e.id).startLeft, r = e.x, i = e.y;
203
+ if (n) {
204
+ let t = S.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
205
+ r = t.x, i = t.y;
206
+ }
207
+ t.attr("transform", `translate(${r}, ${i})`);
208
+ }
209
+ if (e.startLabelRight) {
210
+ let t = F.get(e.id).startRight, r = e.x, i = e.y;
211
+ if (n) {
212
+ let t = S.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
213
+ r = t.x, i = t.y;
214
+ }
215
+ t.attr("transform", `translate(${r}, ${i})`);
216
+ }
217
+ if (e.endLabelLeft) {
218
+ let t = F.get(e.id).endLeft, r = e.x, i = e.y;
219
+ if (n) {
220
+ let t = S.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
221
+ r = t.x, i = t.y;
222
+ }
223
+ t.attr("transform", `translate(${r}, ${i})`);
224
+ }
225
+ if (e.endLabelRight) {
226
+ let t = F.get(e.id).endRight, r = e.x, i = e.y;
227
+ if (n) {
228
+ let t = S.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
229
+ r = t.x, i = t.y;
230
+ }
231
+ t.attr("transform", `translate(${r}, ${i})`);
232
+ }
233
+ }, "positionEdgeLabel"), V = /* @__PURE__ */ i((e, t) => {
234
+ let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
235
+ return i >= o || a >= s;
236
+ }, "outsideNode"), H = /* @__PURE__ */ i((e, t, n) => {
237
+ a.debug(`intersection calc abc89:
238
+ outsidePoint: ${JSON.stringify(t)}
239
+ insidePoint : ${JSON.stringify(n)}
240
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
241
+ let r = e.x, i = e.y, o = Math.abs(r - n.x), s = e.width / 2, c = n.x < t.x ? s - o : s + o, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
242
+ if (Math.abs(i - t.y) * s > Math.abs(r - t.x) * l) {
243
+ let e = n.y < t.y ? t.y - l - i : i - l - t.y;
244
+ c = d * e / u;
245
+ let r = {
246
+ x: n.x < t.x ? n.x + c : n.x - d + c,
247
+ y: n.y < t.y ? n.y + u - e : n.y - u + e
248
+ };
249
+ return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), a.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
250
+ } else {
251
+ c = n.x < t.x ? t.x - s - r : r - s - t.x;
252
+ let e = u * c / d, i = n.x < t.x ? n.x + d - c : n.x - d + c, o = n.y < t.y ? n.y + e : n.y - e;
253
+ return a.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
254
+ _x: i,
255
+ _y: o
256
+ }), c === 0 && (i = t.x, o = t.y), d === 0 && (i = t.x), u === 0 && (o = t.y), {
257
+ x: i,
258
+ y: o
259
+ };
260
+ }
261
+ }, "intersection"), U = /* @__PURE__ */ i((e, t) => {
262
+ a.warn("abc88 cutPathAtIntersect", e, t);
263
+ let n = [], r = e[0], i = !1;
264
+ return e.forEach((e) => {
265
+ if (a.info("abc88 checking point", e, t), !V(t, e) && !i) {
266
+ let o = H(t, r, e);
267
+ a.debug("abc88 inside", e, r, o), a.debug("abc88 intersection", o, t);
268
+ let s = !1;
269
+ n.forEach((e) => {
270
+ s = s || e.x === o.x && e.y === o.y;
271
+ }), n.some((e) => e.x === o.x && e.y === o.y) ? a.warn("abc88 no intersect", o, n) : n.push(o), i = !0;
272
+ } else a.warn("abc88 outside", e, r), r = e, i || n.push(e);
273
+ }), a.debug("returning points", n), n;
274
+ }, "cutPathAtIntersect");
275
+ function W(e) {
276
+ let t = [], n = [];
277
+ for (let r = 1; r < e.length - 1; r++) {
278
+ let i = e[r - 1], a = e[r], o = e[r + 1];
279
+ (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
280
+ }
281
+ return {
282
+ cornerPoints: t,
283
+ cornerPointPositions: n
284
+ };
285
+ }
286
+ i(W, "extractCornerPoints");
287
+ var G = /* @__PURE__ */ i(function(e, t, n) {
288
+ let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
289
+ return {
290
+ x: t.x - a * r,
291
+ y: t.y - a * i
292
+ };
293
+ }, "findAdjacentPoint"), oe = /* @__PURE__ */ i(function(e) {
294
+ let { cornerPointPositions: t } = W(e), n = [];
295
+ for (let r = 0; r < e.length; r++) if (t.includes(r)) {
296
+ let t = e[r - 1], i = e[r + 1], o = e[r], s = G(t, o, 5), c = G(i, o, 5), l = c.x - s.x, u = c.y - s.y;
297
+ n.push(s);
298
+ let d = Math.sqrt(2) * 2, f = {
299
+ x: o.x,
300
+ y: o.y
301
+ };
302
+ Math.abs(i.x - t.x) > 10 && Math.abs(i.y - t.y) >= 10 ? (a.debug("Corner point fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), f = o.x === s.x ? {
303
+ x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
304
+ y: u < 0 ? s.y - d : s.y + d
305
+ } : {
306
+ x: l < 0 ? s.x - d : s.x + d,
307
+ y: u < 0 ? s.y - 5 + d : s.y + 5 - d
308
+ }) : a.debug("Corner point skipping fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), n.push(f, c);
309
+ } else n.push(e[r]);
310
+ return n;
311
+ }, "fixCorners"), se = /* @__PURE__ */ i((e, t, n) => {
312
+ let r = e - t - n, i = Math.floor(r / 4);
313
+ return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
314
+ }, "generateDashArray"), K = /* @__PURE__ */ i(function(e, t, n, r, i, o, s, T = !1) {
315
+ if (!s) throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
316
+ let { handDrawnSeed: E } = c(), D = t.points, O = !1, k = i;
317
+ var A = o;
318
+ let j = [];
319
+ for (let e in t.cssCompiledStyles) ne(e) || j.push(t.cssCompiledStyles[e]);
320
+ a.debug("UIO intersect check", t.points, A.x, k.x), A.intersect && k.intersect && !T && (D = D.slice(1, t.points.length - 1), D.unshift(k.intersect(D[0])), a.debug("Last point UIO", t.start, "-->", t.end, D[D.length - 1], A, A.intersect(D[D.length - 1])), D.push(A.intersect(D[D.length - 1])));
321
+ let M = btoa(JSON.stringify(D));
322
+ t.toCluster && (a.info("to cluster abc88", n.get(t.toCluster)), D = U(t.points, n.get(t.toCluster).node), O = !0), t.fromCluster && (a.debug("from cluster abc88", n.get(t.fromCluster), JSON.stringify(D, null, 2)), D = U(D.reverse(), n.get(t.fromCluster).node).reverse(), O = !0);
323
+ let N = D.filter((e) => !Number.isNaN(e.y)), P = ae(t.curve);
324
+ P !== "rounded" && (N = oe(N));
325
+ let F = b;
326
+ switch (P) {
327
+ case "linear":
328
+ F = b;
329
+ break;
330
+ case "basis":
331
+ F = u;
332
+ break;
333
+ case "cardinal":
334
+ F = h;
335
+ break;
336
+ case "bumpX":
337
+ F = x;
338
+ break;
339
+ case "bumpY":
340
+ F = ee;
341
+ break;
342
+ case "catmullRom":
343
+ F = v;
344
+ break;
345
+ case "monotoneX":
346
+ F = d;
347
+ break;
348
+ case "monotoneY":
349
+ F = m;
350
+ break;
351
+ case "natural":
352
+ F = f;
353
+ break;
354
+ case "step":
355
+ F = g;
356
+ break;
357
+ case "stepAfter":
358
+ F = _;
359
+ break;
360
+ case "stepBefore":
361
+ F = p;
362
+ break;
363
+ case "rounded":
364
+ F = b;
365
+ break;
366
+ default: F = u;
367
+ }
368
+ let { x: I, y: L } = w(t), R = y().x(I).y(L).curve(F), z;
369
+ switch (t.thickness) {
370
+ case "normal":
371
+ z = "edge-thickness-normal";
372
+ break;
373
+ case "thick":
374
+ z = "edge-thickness-thick";
375
+ break;
376
+ case "invisible":
377
+ z = "edge-thickness-invisible";
378
+ break;
379
+ default: z = "edge-thickness-normal";
380
+ }
381
+ switch (t.pattern) {
382
+ case "solid":
383
+ z += " edge-pattern-solid";
384
+ break;
385
+ case "dotted":
386
+ z += " edge-pattern-dotted";
387
+ break;
388
+ case "dashed":
389
+ z += " edge-pattern-dashed";
390
+ break;
391
+ default: z += " edge-pattern-solid";
392
+ }
393
+ let B, V = P === "rounded" ? q(Y(N, t), 5) : R(N), H = Array.isArray(t.style) ? t.style : [t.style], W = H.find((e) => e == null ? void 0 : e.startsWith("stroke:")), G = "";
394
+ t.animate && (G = "edge-animation-fast"), t.animation && (G = "edge-animation-" + t.animation);
395
+ let K = !1;
396
+ if (t.look === "handDrawn") {
397
+ let n = re.svg(e);
398
+ Object.assign([], N);
399
+ let r = n.path(V, {
400
+ roughness: .3,
401
+ seed: E
402
+ });
403
+ z += " transition", B = l(r).select("path").attr("id", `${s}-${t.id}`).attr("class", " " + z + (t.classes ? " " + t.classes : "") + (G ? " " + G : "")).attr("style", H ? H.reduce((e, t) => e + ";" + t, "") : "");
404
+ let i = B.attr("d");
405
+ B.attr("d", i), e.node().appendChild(B.node());
406
+ } else {
407
+ var J;
408
+ let n = j.join(";"), r = H ? H.reduce((e, t) => e + t + ";", "") : "", i = (n ? n + ";" + r + ";" : r) + ";" + (H ? H.reduce((e, t) => e + ";" + t, "") : "");
409
+ B = e.append("path").attr("d", V).attr("id", `${s}-${t.id}`).attr("class", " " + z + (t.classes ? " " + t.classes : "") + (G ? " " + G : "")).attr("style", i), W = (J = i.match(/stroke:([^;]+)/)) == null ? void 0 : J[1], K = t.animate === !0 || !!t.animation || n.includes("animation");
410
+ let a = B.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, c = C[t.arrowTypeStart] || 0, l = C[t.arrowTypeEnd] || 0;
411
+ if (t.look === "neo" && !K) {
412
+ let e = `stroke-dasharray: ${t.pattern === "dotted" || t.pattern === "dashed" ? se(o, c, l) : `0 ${c} ${o - c - l} ${l}`}; stroke-dashoffset: 0;`;
413
+ B.attr("style", e + B.attr("style"));
414
+ }
415
+ }
416
+ B.attr("data-edge", !0), B.attr("data-et", "edge"), B.attr("data-id", t.id), B.attr("data-points", M), B.attr("data-look", te(t.look)), t.showPoints && N.forEach((t) => {
417
+ e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
418
+ });
419
+ let X = "";
420
+ (c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (X = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, X = X.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), a.info("arrowTypeStart", t.arrowTypeStart), a.info("arrowTypeEnd", t.arrowTypeEnd);
421
+ let Z = !K && (t == null ? void 0 : t.look) === "neo";
422
+ ie(B, t, X, s, r, Z, W);
423
+ let Q = Math.floor(D.length / 2), ce = D[Q];
424
+ S.isLabelCoordinateInPath(ce, B.attr("d")) || (O = !0);
425
+ let $ = {};
426
+ return O && ($.updatedPath = D), $.originalPath = t.points, $;
427
+ }, "insertEdge");
428
+ function q(e, t) {
429
+ if (e.length < 2) return "";
430
+ let n = "", r = e.length, i = 1e-5;
431
+ for (let a = 0; a < r; a++) {
432
+ let o = e[a], s = e[a - 1], c = e[a + 1];
433
+ if (a === 0) n += `M${o.x},${o.y}`;
434
+ else if (a === r - 1) n += `L${o.x},${o.y}`;
435
+ else {
436
+ let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
437
+ if (u < i || d < i) {
438
+ n += `L${o.x},${o.y}`;
439
+ continue;
440
+ }
441
+ let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
442
+ if (_ < i || Math.abs(Math.PI - _) < i) {
443
+ n += `L${o.x},${o.y}`;
444
+ continue;
445
+ }
446
+ let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
447
+ n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
448
+ }
449
+ }
450
+ return n;
451
+ }
452
+ i(q, "generateRoundedPath");
453
+ function J(e, t) {
454
+ if (!e || !t) return {
455
+ angle: 0,
456
+ deltaX: 0,
457
+ deltaY: 0
458
+ };
459
+ let n = t.x - e.x, r = t.y - e.y;
460
+ return {
461
+ angle: Math.atan2(r, n),
462
+ deltaX: n,
463
+ deltaY: r
464
+ };
465
+ }
466
+ i(J, "calculateDeltaAndAngle");
467
+ function Y(e, n) {
468
+ let r = e.map((e) => t({}, e));
469
+ if (e.length >= 2 && T[n.arrowTypeStart]) {
470
+ let t = T[n.arrowTypeStart], i = e[0], a = e[1], { angle: o } = J(i, a), s = t * Math.cos(o), c = t * Math.sin(o);
471
+ r[0].x = i.x + s, r[0].y = i.y + c;
472
+ }
473
+ let i = e.length;
474
+ if (i >= 2 && T[n.arrowTypeEnd]) {
475
+ let t = T[n.arrowTypeEnd], a = e[i - 1], o = e[i - 2], { angle: s } = J(o, a), c = t * Math.cos(s), l = t * Math.sin(s);
476
+ r[i - 1].x = a.x - c, r[i - 1].y = a.y - l;
477
+ }
478
+ return r;
479
+ }
480
+ i(Y, "applyMarkerOffsetsToPoints");
481
+ var X = /* @__PURE__ */ i((e, t, n, r) => {
482
+ t.forEach((t) => {
483
+ Z[t](e, n, r);
484
+ });
485
+ }, "insertMarkers"), Z = {
486
+ extension: /* @__PURE__ */ i((e, t, n) => {
487
+ a.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", n + "_" + t + "-extensionStart-margin").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd-margin").attr("class", "marker extension " + t).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
488
+ }, "extension"),
489
+ composition: /* @__PURE__ */ i((e, t, n) => {
490
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
491
+ }, "composition"),
492
+ aggregation: /* @__PURE__ */ i((e, t, n) => {
493
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
494
+ }, "aggregation"),
495
+ dependency: /* @__PURE__ */ i((e, t, n) => {
496
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
497
+ }, "dependency"),
498
+ lollipop: /* @__PURE__ */ i((e, t, n) => {
499
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
500
+ }, "lollipop"),
501
+ point: /* @__PURE__ */ i((e, t, n) => {
502
+ e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
503
+ }, "point"),
504
+ circle: /* @__PURE__ */ i((e, t, n) => {
505
+ e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
506
+ }, "circle"),
507
+ cross: /* @__PURE__ */ i((e, t, n) => {
508
+ e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
509
+ }, "cross"),
510
+ barb: /* @__PURE__ */ i((e, t, n) => {
511
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
512
+ }, "barb"),
513
+ barbNeo: /* @__PURE__ */ i((e, t, n) => {
514
+ let { themeVariables: r } = s(), { transitionColor: i } = r;
515
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${i}`);
516
+ }, "barbNeo"),
517
+ only_one: /* @__PURE__ */ i((e, t, n) => {
518
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
519
+ }, "only_one"),
520
+ zero_or_one: /* @__PURE__ */ i((e, t, n) => {
521
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
522
+ r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
523
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
524
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
525
+ }, "zero_or_one"),
526
+ one_or_more: /* @__PURE__ */ i((e, t, n) => {
527
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
528
+ }, "one_or_more"),
529
+ zero_or_more: /* @__PURE__ */ i((e, t, n) => {
530
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
531
+ r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
532
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
533
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
534
+ }, "zero_or_more"),
535
+ only_one_neo: /* @__PURE__ */ i((e, t, n) => {
536
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
537
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${i}`);
538
+ }, "only_one_neo"),
539
+ zero_or_one_neo: /* @__PURE__ */ i((e, t, n) => {
540
+ let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
541
+ o.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), o.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
542
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
543
+ c.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
544
+ }, "zero_or_one_neo"),
545
+ one_or_more_neo: /* @__PURE__ */ i((e, t, n) => {
546
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
547
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${i}`);
548
+ }, "one_or_more_neo"),
549
+ zero_or_more_neo: /* @__PURE__ */ i((e, t, n) => {
550
+ let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
551
+ o.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), o.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
552
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
553
+ c.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
554
+ }, "zero_or_more_neo"),
555
+ requirement_arrow: /* @__PURE__ */ i((e, t, n) => {
556
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
557
+ }, "requirement_arrow"),
558
+ requirement_contains: /* @__PURE__ */ i((e, t, n) => {
559
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
560
+ r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
561
+ }, "requirement_contains"),
562
+ requirement_arrow_neo: /* @__PURE__ */ i((e, t, n) => {
563
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
564
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${i}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
565
+ }, "requirement_arrow_neo"),
566
+ requirement_contains_neo: /* @__PURE__ */ i((e, t, n) => {
567
+ let { themeVariables: r } = s(), { strokeWidth: i } = r, a = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
568
+ a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${i}`);
569
+ }, "requirement_contains_neo")
570
+ }, Q = X;
571
+ //#endregion
572
+ export { B as a, Q as i, K as n, R as r, I as t };
@@ -0,0 +1,40 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ import { n } from "./chunk-AGHRB4JF.js";
3
+ import { f as r, x as i } from "./chunk-CSCIHK7Q.js";
4
+ import { p as a } from "./chunk-5ZQYHXKU.js";
5
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-L5ZTLDWV.mjs
6
+ e();
7
+ var o = /* @__PURE__ */ n(({ flowchart: e }) => {
8
+ var t, n, r, i;
9
+ let a = (t = e == null || (n = e.subGraphTitleMargin) == null ? void 0 : n.top) == null ? 0 : t, o = (r = e == null || (i = e.subGraphTitleMargin) == null ? void 0 : i.bottom) == null ? 0 : r;
10
+ return {
11
+ subGraphTitleTopMargin: a,
12
+ subGraphTitleBottomMargin: o,
13
+ subGraphTitleTotalMargin: a + o
14
+ };
15
+ }, "getSubGraphTitleMargins");
16
+ function s(e, t) {
17
+ return c.apply(this, arguments);
18
+ }
19
+ function c() {
20
+ return c = t(function* (e, t) {
21
+ let o = e.getElementsByTagName("img");
22
+ if (!o || o.length === 0) return;
23
+ let s = t.replace(/<img[^>]*>/g, "").trim() === "";
24
+ yield Promise.all([...o].map((e) => new Promise((t) => {
25
+ function o() {
26
+ if (e.style.display = "flex", e.style.flexDirection = "column", s) {
27
+ let [t = r.fontSize] = a(i().fontSize ? i().fontSize : window.getComputedStyle(document.body).fontSize), n = t * 5 + "px";
28
+ e.style.minWidth = n, e.style.maxWidth = n;
29
+ } else e.style.width = "100%";
30
+ t(e);
31
+ }
32
+ n(o, "setupImage"), setTimeout(() => {
33
+ e.complete && o();
34
+ }), e.addEventListener("error", o), e.addEventListener("load", o);
35
+ })));
36
+ }), c.apply(this, arguments);
37
+ }
38
+ n(s, "configureLabelImages");
39
+ //#endregion
40
+ export { o as n, s as t };