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,788 @@
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 { H as o, K as s, U as c, Y as l, a as u, b as d, f, s as p, v as m, w as h, x as g, y as _ } from "./chunk-CSCIHK7Q.js";
5
+ import { Q as v } from "./src.js";
6
+ import { g as y, i as b, m as x } from "./chunk-5ZQYHXKU.js";
7
+ import { t as S } from "./mermaid-parser.core.js";
8
+ import { t as C } from "./chunk-4BX2VUAB.js";
9
+ import { t as ee } from "./chunk-QZHKN3VN.js";
10
+ e(), n();
11
+ var w = {
12
+ NORMAL: 0,
13
+ REVERSE: 1,
14
+ HIGHLIGHT: 2,
15
+ MERGE: 3,
16
+ CHERRY_PICK: 4
17
+ }, te = f.gitGraph, T = /* @__PURE__ */ i(() => b(t(t({}, te), d().gitGraph)), "getConfig"), E = new ee(() => {
18
+ let e = T(), t = e.mainBranchName, n = e.mainBranchOrder;
19
+ return {
20
+ mainBranchName: t,
21
+ commits: /* @__PURE__ */ new Map(),
22
+ head: null,
23
+ branchConfig: /* @__PURE__ */ new Map([[t, {
24
+ name: t,
25
+ order: n
26
+ }]]),
27
+ branches: /* @__PURE__ */ new Map([[t, null]]),
28
+ currBranch: t,
29
+ direction: "LR",
30
+ seq: 0,
31
+ options: {}
32
+ };
33
+ });
34
+ function D() {
35
+ return x({ length: 7 });
36
+ }
37
+ i(D, "getID");
38
+ function O(e, t) {
39
+ let n = /* @__PURE__ */ Object.create(null);
40
+ return e.reduce((e, r) => {
41
+ let i = t(r);
42
+ return n[i] || (n[i] = !0, e.push(r)), e;
43
+ }, []);
44
+ }
45
+ i(O, "uniqBy");
46
+ var ne = /* @__PURE__ */ i(function(e) {
47
+ E.records.direction = e;
48
+ }, "setDirection"), re = /* @__PURE__ */ i(function(e) {
49
+ a.debug("options str", e), e = e == null ? void 0 : e.trim(), e = e || "{}";
50
+ try {
51
+ E.records.options = JSON.parse(e);
52
+ } catch (e) {
53
+ a.error("error while parsing gitGraph options", e.message);
54
+ }
55
+ }, "setOptions"), ie = /* @__PURE__ */ i(function() {
56
+ return E.records.options;
57
+ }, "getOptions"), ae = /* @__PURE__ */ i(function(e) {
58
+ var t;
59
+ let n = e.msg, r = e.id, i = e.type, o = e.tags;
60
+ a.info("commit", n, r, i, o), a.debug("Entering commit:", n, r, i, o);
61
+ let s = T();
62
+ r = p.sanitizeText(r, s), n = p.sanitizeText(n, s), o = o == null ? void 0 : o.map((e) => p.sanitizeText(e, s));
63
+ let c = {
64
+ id: r || E.records.seq + "-" + D(),
65
+ message: n,
66
+ seq: E.records.seq++,
67
+ type: i == null ? w.NORMAL : i,
68
+ tags: (t = o) == null ? [] : t,
69
+ parents: E.records.head == null ? [] : [E.records.head.id],
70
+ branch: E.records.currBranch
71
+ };
72
+ E.records.head = c, a.info("main branch", s.mainBranchName), E.records.commits.has(c.id) && a.warn(`Commit ID ${c.id} already exists`), E.records.commits.set(c.id, c), E.records.branches.set(E.records.currBranch, c.id), a.debug("in pushCommit " + c.id);
73
+ }, "commit"), oe = /* @__PURE__ */ i(function(e) {
74
+ let t = e.name, n = e.order;
75
+ if (t = p.sanitizeText(t, T()), E.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
76
+ E.records.branches.set(t, E.records.head == null ? null : E.records.head.id), E.records.branchConfig.set(t, {
77
+ name: t,
78
+ order: n
79
+ }), k(t), a.debug("in createBranch");
80
+ }, "branch"), se = /* @__PURE__ */ i((e) => {
81
+ let t = e.branch, n = e.id, r = e.type, i = e.tags, o = T();
82
+ t = p.sanitizeText(t, o), n && (n = p.sanitizeText(n, o));
83
+ let s = E.records.branches.get(E.records.currBranch), c = E.records.branches.get(t), l = s ? E.records.commits.get(s) : void 0, u = c ? E.records.commits.get(c) : void 0;
84
+ if (l && u && l.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
85
+ if (E.records.currBranch === t) {
86
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
87
+ throw e.hash = {
88
+ text: `merge ${t}`,
89
+ token: `merge ${t}`,
90
+ expected: ["branch abc"]
91
+ }, e;
92
+ }
93
+ if (l === void 0 || !l) {
94
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);
95
+ throw e.hash = {
96
+ text: `merge ${t}`,
97
+ token: `merge ${t}`,
98
+ expected: ["commit"]
99
+ }, e;
100
+ }
101
+ if (!E.records.branches.has(t)) {
102
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
103
+ throw e.hash = {
104
+ text: `merge ${t}`,
105
+ token: `merge ${t}`,
106
+ expected: [`branch ${t}`]
107
+ }, e;
108
+ }
109
+ if (u === void 0 || !u) {
110
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
111
+ throw e.hash = {
112
+ text: `merge ${t}`,
113
+ token: `merge ${t}`,
114
+ expected: ["\"commit\""]
115
+ }, e;
116
+ }
117
+ if (l === u) {
118
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
119
+ throw e.hash = {
120
+ text: `merge ${t}`,
121
+ token: `merge ${t}`,
122
+ expected: ["branch abc"]
123
+ }, e;
124
+ }
125
+ if (n && E.records.commits.has(n)) {
126
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
127
+ throw e.hash = {
128
+ text: `merge ${t} ${n} ${r} ${i == null ? void 0 : i.join(" ")}`,
129
+ token: `merge ${t} ${n} ${r} ${i == null ? void 0 : i.join(" ")}`,
130
+ expected: [`merge ${t} ${n}_UNIQUE ${r} ${i == null ? void 0 : i.join(" ")}`]
131
+ }, e;
132
+ }
133
+ let d = c || "", f = {
134
+ id: n || `${E.records.seq}-${D()}`,
135
+ message: `merged branch ${t} into ${E.records.currBranch}`,
136
+ seq: E.records.seq++,
137
+ parents: E.records.head == null ? [] : [E.records.head.id, d],
138
+ branch: E.records.currBranch,
139
+ type: w.MERGE,
140
+ customType: r,
141
+ customId: !!n,
142
+ tags: i == null ? [] : i
143
+ };
144
+ E.records.head = f, E.records.commits.set(f.id, f), E.records.branches.set(E.records.currBranch, f.id), a.debug(E.records.branches), a.debug("in mergeBranch");
145
+ }, "merge"), ce = /* @__PURE__ */ i(function(e) {
146
+ let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
147
+ a.debug("Entering cherryPick:", t, n, r);
148
+ let o = T();
149
+ if (t = p.sanitizeText(t, o), n = p.sanitizeText(n, o), r = r == null ? void 0 : r.map((e) => p.sanitizeText(e, o)), i = p.sanitizeText(i, o), !t || !E.records.commits.has(t)) {
150
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
151
+ throw e.hash = {
152
+ text: `cherryPick ${t} ${n}`,
153
+ token: `cherryPick ${t} ${n}`,
154
+ expected: ["cherry-pick abc"]
155
+ }, e;
156
+ }
157
+ let s = E.records.commits.get(t);
158
+ if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
159
+ if (i && !(Array.isArray(s.parents) && s.parents.includes(i))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
160
+ let c = s.branch;
161
+ if (s.type === w.MERGE && !i) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
162
+ if (!n || !E.records.commits.has(n)) {
163
+ if (c === E.records.currBranch) {
164
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
165
+ throw e.hash = {
166
+ text: `cherryPick ${t} ${n}`,
167
+ token: `cherryPick ${t} ${n}`,
168
+ expected: ["cherry-pick abc"]
169
+ }, e;
170
+ }
171
+ let e = E.records.branches.get(E.records.currBranch);
172
+ if (e === void 0 || !e) {
173
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);
174
+ throw e.hash = {
175
+ text: `cherryPick ${t} ${n}`,
176
+ token: `cherryPick ${t} ${n}`,
177
+ expected: ["cherry-pick abc"]
178
+ }, e;
179
+ }
180
+ let o = E.records.commits.get(e);
181
+ if (o === void 0 || !o) {
182
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);
183
+ throw e.hash = {
184
+ text: `cherryPick ${t} ${n}`,
185
+ token: `cherryPick ${t} ${n}`,
186
+ expected: ["cherry-pick abc"]
187
+ }, e;
188
+ }
189
+ let l = {
190
+ id: E.records.seq + "-" + D(),
191
+ message: `cherry-picked ${s == null ? void 0 : s.message} into ${E.records.currBranch}`,
192
+ seq: E.records.seq++,
193
+ parents: E.records.head == null ? [] : [E.records.head.id, s.id],
194
+ branch: E.records.currBranch,
195
+ type: w.CHERRY_PICK,
196
+ tags: r ? r.filter(Boolean) : [`cherry-pick:${s.id}${s.type === w.MERGE ? `|parent:${i}` : ""}`]
197
+ };
198
+ E.records.head = l, E.records.commits.set(l.id, l), E.records.branches.set(E.records.currBranch, l.id), a.debug(E.records.branches), a.debug("in cherryPick");
199
+ }
200
+ }, "cherryPick"), k = /* @__PURE__ */ i(function(e) {
201
+ if (e = p.sanitizeText(e, T()), E.records.branches.has(e)) {
202
+ E.records.currBranch = e;
203
+ let n = E.records.branches.get(E.records.currBranch);
204
+ if (n === void 0 || !n) E.records.head = null;
205
+ else {
206
+ var t;
207
+ E.records.head = (t = E.records.commits.get(n)) == null ? null : t;
208
+ }
209
+ } else {
210
+ let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
211
+ throw t.hash = {
212
+ text: `checkout ${e}`,
213
+ token: `checkout ${e}`,
214
+ expected: [`branch ${e}`]
215
+ }, t;
216
+ }
217
+ }, "checkout");
218
+ function A(e, t, n) {
219
+ let r = e.indexOf(t);
220
+ r === -1 ? e.push(n) : e.splice(r, 1, n);
221
+ }
222
+ i(A, "upsert");
223
+ function j(e) {
224
+ let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
225
+ e.forEach(function(e) {
226
+ e === t ? n += " *" : n += " |";
227
+ });
228
+ let r = [
229
+ n,
230
+ t.id,
231
+ t.seq
232
+ ];
233
+ for (let e in E.records.branches) E.records.branches.get(e) === t.id && r.push(e);
234
+ if (a.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
235
+ let n = E.records.commits.get(t.parents[0]);
236
+ A(e, t, n), t.parents[1] && e.push(E.records.commits.get(t.parents[1]));
237
+ } else if (t.parents.length == 0) return;
238
+ else if (t.parents[0]) {
239
+ let n = E.records.commits.get(t.parents[0]);
240
+ A(e, t, n);
241
+ }
242
+ e = O(e, (e) => e.id), j(e);
243
+ }
244
+ i(j, "prettyPrintCommitHistory");
245
+ var le = /* @__PURE__ */ i(function() {
246
+ a.debug(E.records.commits);
247
+ let e = me()[0];
248
+ j([e]);
249
+ }, "prettyPrint"), ue = /* @__PURE__ */ i(function() {
250
+ E.reset(), u();
251
+ }, "clear"), de = /* @__PURE__ */ i(function() {
252
+ return [...E.records.branchConfig.values()].map((e, n) => e.order !== null && e.order !== void 0 ? e : t(t({}, e), {}, { order: parseFloat(`0.${n}`) })).sort((e, t) => {
253
+ var n, r;
254
+ return ((n = e.order) == null ? 0 : n) - ((r = t.order) == null ? 0 : r);
255
+ }).map(({ name: e }) => ({ name: e }));
256
+ }, "getBranchesAsObjArray"), fe = /* @__PURE__ */ i(function() {
257
+ return E.records.branches;
258
+ }, "getBranches"), pe = /* @__PURE__ */ i(function() {
259
+ return E.records.commits;
260
+ }, "getCommits"), me = /* @__PURE__ */ i(function() {
261
+ let e = [...E.records.commits.values()];
262
+ return e.forEach(function(e) {
263
+ a.debug(e.id);
264
+ }), e.sort((e, t) => e.seq - t.seq), e;
265
+ }, "getCommitsArray"), M = {
266
+ commitType: w,
267
+ getConfig: T,
268
+ setDirection: ne,
269
+ setOptions: re,
270
+ getOptions: ie,
271
+ commit: ae,
272
+ branch: oe,
273
+ merge: se,
274
+ cherryPick: ce,
275
+ checkout: k,
276
+ prettyPrint: le,
277
+ clear: ue,
278
+ getBranchesAsObjArray: de,
279
+ getBranches: fe,
280
+ getCommits: pe,
281
+ getCommitsArray: me,
282
+ getCurrentBranch: /* @__PURE__ */ i(function() {
283
+ return E.records.currBranch;
284
+ }, "getCurrentBranch"),
285
+ getDirection: /* @__PURE__ */ i(function() {
286
+ return E.records.direction;
287
+ }, "getDirection"),
288
+ getHead: /* @__PURE__ */ i(function() {
289
+ return E.records.head;
290
+ }, "getHead"),
291
+ setAccTitle: c,
292
+ getAccTitle: _,
293
+ getAccDescription: m,
294
+ setAccDescription: o,
295
+ setDiagramTitle: s,
296
+ getDiagramTitle: h
297
+ }, he = /* @__PURE__ */ i((e, t) => {
298
+ C(e, t), e.dir && t.setDirection(e.dir);
299
+ for (let n of e.statements) ge(n, t);
300
+ }, "populate"), ge = /* @__PURE__ */ i((e, t) => {
301
+ let n = {
302
+ Commit: /* @__PURE__ */ i((e) => t.commit(_e(e)), "Commit"),
303
+ Branch: /* @__PURE__ */ i((e) => t.branch(ve(e)), "Branch"),
304
+ Merge: /* @__PURE__ */ i((e) => t.merge(ye(e)), "Merge"),
305
+ Checkout: /* @__PURE__ */ i((e) => t.checkout(be(e)), "Checkout"),
306
+ CherryPicking: /* @__PURE__ */ i((e) => t.cherryPick(xe(e)), "CherryPicking")
307
+ }[e.$type];
308
+ n ? n(e) : a.error(`Unknown statement type: ${e.$type}`);
309
+ }, "parseStatement"), _e = /* @__PURE__ */ i((e) => {
310
+ var t, n;
311
+ return {
312
+ id: e.id,
313
+ msg: (t = e.message) == null ? "" : t,
314
+ type: e.type === void 0 ? w.NORMAL : w[e.type],
315
+ tags: (n = e.tags) == null ? void 0 : n
316
+ };
317
+ }, "parseCommit"), ve = /* @__PURE__ */ i((e) => {
318
+ var t;
319
+ return {
320
+ name: e.name,
321
+ order: (t = e.order) == null ? 0 : t
322
+ };
323
+ }, "parseBranch"), ye = /* @__PURE__ */ i((e) => {
324
+ var t, n;
325
+ return {
326
+ branch: e.branch,
327
+ id: (t = e.id) == null ? "" : t,
328
+ type: e.type === void 0 ? void 0 : w[e.type],
329
+ tags: (n = e.tags) == null ? void 0 : n
330
+ };
331
+ }, "parseMerge"), be = /* @__PURE__ */ i((e) => e.branch, "parseCheckout"), xe = /* @__PURE__ */ i((e) => {
332
+ var t;
333
+ return {
334
+ id: e.id,
335
+ targetId: "",
336
+ tags: ((t = e.tags) == null ? void 0 : t.length) === 0 ? void 0 : e.tags,
337
+ parent: e.parent
338
+ };
339
+ }, "parseCherryPicking"), Se = { parse: /* @__PURE__ */ i(function() {
340
+ var e = r(function* (e) {
341
+ let t = yield S("gitGraph", e);
342
+ a.debug(t), he(t, M);
343
+ });
344
+ return function(t) {
345
+ return e.apply(this, arguments);
346
+ };
347
+ }(), "parse") }, N = 10, P = 40, F = 4, I = 2, L = 8, R = /* @__PURE__ */ new Set([
348
+ "redux",
349
+ "redux-dark",
350
+ "redux-color",
351
+ "redux-dark-color"
352
+ ]), z = 12, B = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ce = /* @__PURE__ */ new Set([
353
+ "dark",
354
+ "redux-dark",
355
+ "redux-dark-color",
356
+ "neo-dark"
357
+ ]), V = /* @__PURE__ */ i((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", we = /* @__PURE__ */ i(() => {
358
+ H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
359
+ }, "clear"), Y = /* @__PURE__ */ i((e) => {
360
+ let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
361
+ return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
362
+ let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
363
+ n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
364
+ }), t;
365
+ }, "drawText"), X = /* @__PURE__ */ i((e) => {
366
+ let t, n, r;
367
+ return J === "BT" ? (n = /* @__PURE__ */ i((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ i((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
368
+ var i, a;
369
+ let o = J === "TB" || J == "BT" ? (i = U.get(e)) == null ? void 0 : i.y : (a = U.get(e)) == null ? void 0 : a.x;
370
+ o !== void 0 && n(o, r) && (t = e, r = o);
371
+ }), t;
372
+ }, "findClosestParent"), Te = /* @__PURE__ */ i((e) => {
373
+ let t = "", n = Infinity;
374
+ return e.forEach((e) => {
375
+ let r = U.get(e).y;
376
+ r <= n && (t = e, n = r);
377
+ }), t || void 0;
378
+ }, "findClosestParentBT"), Ee = /* @__PURE__ */ i((e, t, n) => {
379
+ let r = n, i = n, a = [];
380
+ e.forEach((e) => {
381
+ let n = t.get(e);
382
+ if (!n) throw Error(`Commit not found for key ${e}`);
383
+ n.parents.length ? (r = Oe(n), i = Math.max(r, i)) : a.push(n), ke(n, r);
384
+ }), r = i, a.forEach((e) => {
385
+ Ae(e, r, n);
386
+ }), e.forEach((e) => {
387
+ let n = t.get(e);
388
+ if (n != null && n.parents.length) {
389
+ let e = Te(n.parents);
390
+ r = U.get(e).y - P, r <= i && (i = r);
391
+ let t = H.get(n.branch).pos, a = r - N;
392
+ U.set(n.id, {
393
+ x: t,
394
+ y: a
395
+ });
396
+ }
397
+ });
398
+ }, "setParallelBTPos"), De = /* @__PURE__ */ i((e) => {
399
+ var t;
400
+ let n = X(e.parents.filter((e) => e !== null));
401
+ if (!n) throw Error(`Closest parent not found for commit ${e.id}`);
402
+ let r = (t = U.get(n)) == null ? void 0 : t.y;
403
+ if (r === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
404
+ return r;
405
+ }, "findClosestParentPos"), Oe = /* @__PURE__ */ i((e) => De(e) + P, "calculateCommitPosition"), ke = /* @__PURE__ */ i((e, t) => {
406
+ let n = H.get(e.branch);
407
+ if (!n) throw Error(`Branch not found for commit ${e.id}`);
408
+ let r = n.pos, i = t + N;
409
+ return U.set(e.id, {
410
+ x: r,
411
+ y: i
412
+ }), {
413
+ x: r,
414
+ y: i
415
+ };
416
+ }, "setCommitPosition"), Ae = /* @__PURE__ */ i((e, t, n) => {
417
+ let r = H.get(e.branch);
418
+ if (!r) throw Error(`Branch not found for commit ${e.id}`);
419
+ let i = t + n, a = r.pos;
420
+ U.set(e.id, {
421
+ x: a,
422
+ y: i
423
+ });
424
+ }, "setRootPosition"), je = /* @__PURE__ */ i((e, t, n, r, i, a) => {
425
+ let { theme: o } = g(), s = R.has(o == null ? "" : o), c = B.has(o == null ? "" : o), l = Ce.has(o == null ? "" : o);
426
+ if (a === w.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${V(i, L, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${V(i, L, c)} ${r}-inner`);
427
+ else if (a === w.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
428
+ else {
429
+ let o = e.append("circle");
430
+ if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", s ? 7 : 10), o.attr("class", `commit ${t.id} commit${V(i, L, c)}`), a === w.MERGE) {
431
+ let a = e.append("circle");
432
+ a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", s ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${V(i, L, c)}`);
433
+ }
434
+ if (a === w.REVERSE) {
435
+ let a = e.append("path"), o = s ? 4 : 5;
436
+ a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${V(i, L, c)}`);
437
+ }
438
+ }
439
+ }, "drawCommitBullet"), Me = /* @__PURE__ */ i((e, t, n, r, i) => {
440
+ if (t.type !== w.CHERRY_PICK && (t.customId && t.type === w.MERGE || t.type !== w.MERGE) && i.showCommitLabel) {
441
+ var a;
442
+ let o = e.append("g"), s = o.insert("rect").attr("class", "commit-label-bkg"), c = o.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), l = (a = c.node()) == null ? void 0 : a.getBBox();
443
+ if (l && (s.attr("x", n.posWithOffset - l.width / 2 - I).attr("y", n.y + 13.5).attr("width", l.width + 2 * I).attr("height", l.height + 2 * I), J === "TB" || J === "BT" ? (s.attr("x", n.x - (l.width + 4 * F + 5)).attr("y", n.y - 12), c.attr("x", n.x - (l.width + 4 * F)).attr("y", n.y + l.height - 12)) : c.attr("x", n.posWithOffset - l.width / 2), i.rotateCommitLabel)) if (J === "TB" || J === "BT") c.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
444
+ else {
445
+ let e = -7.5 - (l.width + 10) / 25 * 9.5, t = 10 + l.width / 25 * 8.5;
446
+ o.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
447
+ }
448
+ }
449
+ }, "drawCommitLabel"), Ne = /* @__PURE__ */ i((e, t, n, r) => {
450
+ if (t.tags.length > 0) {
451
+ let a = 0, o = 0, s = 0, c = [];
452
+ for (let r of t.tags.reverse()) {
453
+ var i;
454
+ let t = e.insert("polygon"), l = e.append("circle"), u = e.append("text").attr("y", n.y - 16 - a).attr("class", "tag-label").text(r), d = (i = u.node()) == null ? void 0 : i.getBBox();
455
+ if (!d) throw Error("Tag bbox not found");
456
+ o = Math.max(o, d.width), s = Math.max(s, d.height), u.attr("x", n.posWithOffset - d.width / 2), c.push({
457
+ tag: u,
458
+ hole: l,
459
+ rect: t,
460
+ yOffset: a
461
+ }), a += 20;
462
+ }
463
+ for (let { tag: e, hole: t, rect: i, yOffset: a } of c) {
464
+ let c = s / 2, l = n.y - 19.2 - a;
465
+ if (i.attr("class", "tag-label-bkg").attr("points", `
466
+ ${r - o / 2 - F / 2},${l + I}
467
+ ${r - o / 2 - F / 2},${l - I}
468
+ ${n.posWithOffset - o / 2 - F},${l - c - I}
469
+ ${n.posWithOffset + o / 2 + F},${l - c - I}
470
+ ${n.posWithOffset + o / 2 + F},${l + c + I}
471
+ ${n.posWithOffset - o / 2 - F},${l + c + I}`), t.attr("cy", l).attr("cx", r - o / 2 + F / 2).attr("r", 1.5).attr("class", "tag-hole"), J === "TB" || J === "BT") {
472
+ let s = r + a;
473
+ i.attr("class", "tag-label-bkg").attr("points", `
474
+ ${n.x},${s + 2}
475
+ ${n.x},${s - 2}
476
+ ${n.x + N},${s - c - 2}
477
+ ${n.x + N + o + 4},${s - c - 2}
478
+ ${n.x + N + o + 4},${s + c + 2}
479
+ ${n.x + N},${s + c + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + F / 2).attr("cy", s).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", s + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
480
+ }
481
+ }
482
+ }
483
+ }, "drawCommitTags"), Pe = /* @__PURE__ */ i((e) => {
484
+ var t;
485
+ switch ((t = e.customType) == null ? e.type : t) {
486
+ case w.NORMAL: return "commit-normal";
487
+ case w.REVERSE: return "commit-reverse";
488
+ case w.HIGHLIGHT: return "commit-highlight";
489
+ case w.MERGE: return "commit-merge";
490
+ case w.CHERRY_PICK: return "commit-cherry-pick";
491
+ default: return "commit-normal";
492
+ }
493
+ }, "getCommitClassType"), Fe = /* @__PURE__ */ i((e, t, n, r) => {
494
+ let i = {
495
+ x: 0,
496
+ y: 0
497
+ };
498
+ if (e.parents.length > 0) {
499
+ let n = X(e.parents);
500
+ if (n) {
501
+ var a;
502
+ let s = (a = r.get(n)) == null ? i : a;
503
+ if (t === "TB") return s.y + P;
504
+ if (t === "BT") {
505
+ var o;
506
+ return ((o = r.get(e.id)) == null ? i : o).y - P;
507
+ } else return s.x + P;
508
+ }
509
+ } else if (t === "TB") return W;
510
+ else if (t === "BT") {
511
+ var s;
512
+ return ((s = r.get(e.id)) == null ? i : s).y - P;
513
+ } else return 0;
514
+ return 0;
515
+ }, "calculatePosition"), Ie = /* @__PURE__ */ i((e, t, n) => {
516
+ var r, i, a;
517
+ let o = J === "BT" && n ? t : t + N, s = (r = H.get(e.branch)) == null ? void 0 : r.pos, c = J === "TB" || J === "BT" ? (i = H.get(e.branch)) == null ? void 0 : i.pos : o;
518
+ if (c === void 0 || s === void 0) throw Error(`Position were undefined for commit ${e.id}`);
519
+ let l = R.has((a = g().theme) == null ? "" : a);
520
+ return {
521
+ x: c,
522
+ y: J === "TB" || J === "BT" ? o : s + (l ? z / 2 + 1 : -2),
523
+ posWithOffset: o
524
+ };
525
+ }, "getCommitPosition"), Z = /* @__PURE__ */ i((e, t, n, r) => {
526
+ var a;
527
+ let o = e.append("g").attr("class", "commit-bullets"), s = e.append("g").attr("class", "commit-labels"), c = J === "TB" || J === "BT" ? W : 0, l = [...t.keys()], u = (a = r.parallelCommits) == null ? !1 : a, d = /* @__PURE__ */ i((e, n) => {
528
+ var r, i;
529
+ let a = (r = t.get(e)) == null ? void 0 : r.seq, o = (i = t.get(n)) == null ? void 0 : i.seq;
530
+ return a !== void 0 && o !== void 0 ? a - o : 0;
531
+ }, "sortKeys"), f = l.sort(d);
532
+ J === "BT" && (u && Ee(f, t, c), f = f.reverse()), f.forEach((e) => {
533
+ let i = t.get(e);
534
+ if (!i) throw Error(`Commit not found for key ${e}`);
535
+ u && (c = Fe(i, J, c, U));
536
+ let a = Ie(i, c, u);
537
+ if (n) {
538
+ var l, d, f;
539
+ let e = Pe(i), t = (l = i.customType) == null ? i.type : l;
540
+ je(o, i, a, e, (d = (f = H.get(i.branch)) == null ? void 0 : f.index) == null ? 0 : d, t), Me(s, i, a, c, r), Ne(s, i, a, c);
541
+ }
542
+ J === "TB" || J === "BT" ? U.set(i.id, {
543
+ x: a.x,
544
+ y: a.posWithOffset
545
+ }) : U.set(i.id, {
546
+ x: a.posWithOffset,
547
+ y: a.y
548
+ }), c = J === "BT" && u ? c + P : c + P + N, c > q && (q = c);
549
+ });
550
+ }, "drawCommits"), Le = /* @__PURE__ */ i((e, t, n, r, a) => {
551
+ let o = (J === "TB" || J === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, s = /* @__PURE__ */ i((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ i((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
552
+ return [...a.values()].some((e) => c(e) && s(e));
553
+ }, "shouldRerouteArrow"), Q = /* @__PURE__ */ i((e, t, n = 0) => {
554
+ let r = e + Math.abs(e - t) / 2;
555
+ return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : Q(e, t - Math.abs(e - t) / 5, n + 1);
556
+ }, "findLane"), Re = /* @__PURE__ */ i((e, t, n, r) => {
557
+ var i;
558
+ let { theme: a } = g(), o = B.has(a == null ? "" : a), s = U.get(t.id), c = U.get(n.id);
559
+ if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
560
+ let l = Le(t, n, s, c, r), u = "", d = "", f = 0, p = 0, m = (i = H.get(n.branch)) == null ? void 0 : i.index;
561
+ if (n.type === w.MERGE && t.id !== n.parents[0]) {
562
+ var h;
563
+ m = (h = H.get(t.branch)) == null ? void 0 : h.index;
564
+ }
565
+ let _;
566
+ if (l) {
567
+ u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
568
+ let e = s.y < c.y ? Q(s.y, c.y) : Q(c.y, s.y), n = s.x < c.x ? Q(s.x, c.x) : Q(c.x, s.x);
569
+ if (J === "TB") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${d} ${n} ${s.y + p} L ${n} ${c.y - f} ${u} ${n + p} ${c.y} L ${c.x} ${c.y}`;
570
+ else {
571
+ var v;
572
+ m = (v = H.get(t.branch)) == null ? void 0 : v.index, _ = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${u} ${n} ${s.y + p} L ${n} ${c.y - f} ${d} ${n - p} ${c.y} L ${c.x} ${c.y}`;
573
+ }
574
+ else if (J === "BT") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${u} ${n} ${s.y - p} L ${n} ${c.y + f} ${d} ${n + p} ${c.y} L ${c.x} ${c.y}`;
575
+ else {
576
+ var y;
577
+ m = (y = H.get(t.branch)) == null ? void 0 : y.index, _ = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${d} ${n} ${s.y - p} L ${n} ${c.y + f} ${u} ${n - p} ${c.y} L ${c.x} ${c.y}`;
578
+ }
579
+ else if (s.y < c.y) _ = `M ${s.x} ${s.y} L ${s.x} ${e - f} ${u} ${s.x + p} ${e} L ${c.x - f} ${e} ${d} ${c.x} ${e + p} L ${c.x} ${c.y}`;
580
+ else {
581
+ var b;
582
+ m = (b = H.get(t.branch)) == null ? void 0 : b.index, _ = `M ${s.x} ${s.y} L ${s.x} ${e + f} ${d} ${s.x + p} ${e} L ${c.x - f} ${e} ${u} ${c.x} ${e - p} L ${c.x} ${c.y}`;
583
+ }
584
+ } else u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, J === "TB" ? (s.x < c.x && (_ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, _ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${d} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${u} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : J === "BT" ? (s.x < c.x && (_ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, _ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${u} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${d} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (_ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (_ = n.type === w.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
585
+ if (_ === void 0) throw Error("Line definition not found");
586
+ e.append("path").attr("d", _).attr("class", "arrow arrow" + V(m, L, o));
587
+ }, "drawArrow"), ze = /* @__PURE__ */ i((e, t) => {
588
+ let n = e.append("g").attr("class", "commit-arrows");
589
+ [...t.keys()].forEach((e) => {
590
+ let r = t.get(e);
591
+ r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
592
+ Re(n, t.get(e), r, t);
593
+ });
594
+ });
595
+ }, "drawArrows"), Be = /* @__PURE__ */ i((e, t, n, r) => {
596
+ let { look: i, theme: a, themeVariables: o } = g(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = R.has(a == null ? "" : a), u = B.has(a == null ? "" : a), d = e.append("g");
597
+ t.forEach((e, t) => {
598
+ var a;
599
+ let o = V(t, l ? c : L, u), f = (a = H.get(e.name)) == null ? void 0 : a.pos;
600
+ if (f === void 0) throw Error(`Position not found for branch ${e.name}`);
601
+ let p = J === "TB" || J === "BT" ? f : l ? f + z / 2 + 1 : f - 2, m = d.append("line");
602
+ m.attr("x1", 0), m.attr("y1", p), m.attr("x2", q), m.attr("y2", p), m.attr("class", "branch branch" + o), J === "TB" ? (m.attr("y1", W), m.attr("x1", f), m.attr("y2", q), m.attr("x2", f)) : J === "BT" && (m.attr("y1", q), m.attr("x1", f), m.attr("y2", W), m.attr("x2", f)), K.push(p);
603
+ let h = e.name, g = Y(h), _ = d.insert("rect"), v = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + o);
604
+ v.node().appendChild(g);
605
+ let y = g.getBBox(), b = l ? 0 : 4, x = l ? 16 : 0, S = l ? z : 0;
606
+ i === "neo" && _.attr("data-look", "neo"), _.attr("class", "branchLabelBkg label" + o).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", b).attr("ry", b).attr("x", -y.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 10).attr("width", y.width + 18 + x).attr("height", y.height + 4 + S), v.attr("transform", "translate(" + (-y.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + x / 2) + ", " + (p - y.height / 2 - 2) + ")"), J === "TB" ? (_.attr("x", f - y.width / 2 - 10).attr("y", 0), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", 0)"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${-S - 10})`), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + (-S * 2 + 7) + ")"))) : J === "BT" ? (_.attr("x", f - y.width / 2 - 10).attr("y", q), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + q + ")"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${S + 10})`), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + (q + S * 2 + 4) + ")"))) : _.attr("transform", "translate(-19, " + (p - 12 - S / 2) + ")");
607
+ });
608
+ }, "drawBranches"), Ve = /* @__PURE__ */ i(function(e, t, n, r, i) {
609
+ return H.set(e, {
610
+ pos: t,
611
+ index: n
612
+ }), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
613
+ }, "setBranchPosition"), He = { draw: /* @__PURE__ */ i(function(e, t, n, r) {
614
+ var i, o;
615
+ we(), a.debug("in gitgraph renderer", e + "\n", "id:", t, n);
616
+ let s = r.db;
617
+ if (!s.getConfig) {
618
+ a.error("getConfig method is not available on db");
619
+ return;
620
+ }
621
+ let c = s.getConfig(), u = (i = c.rotateCommitLabel) == null ? !1 : i;
622
+ G = s.getCommits();
623
+ let d = s.getBranchesAsObjArray();
624
+ J = s.getDirection();
625
+ let f = v(`[id="${t}"]`), { look: p, theme: m, themeVariables: h } = g(), { useGradient: _, gradientStart: b, gradientStop: x, filterColor: S } = h;
626
+ if (_) {
627
+ let e = f.append("defs").append("linearGradient").attr("id", t + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
628
+ e.append("stop").attr("offset", "0%").attr("stop-color", b).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
629
+ }
630
+ p === "neo" && R.has(m == null ? "" : m) && f.append("defs").append("filter").attr("id", t + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", S);
631
+ let C = 0;
632
+ d.forEach((e, t) => {
633
+ var n;
634
+ let r = Y(e.name), i = f.append("g"), a = i.insert("g").attr("class", "branchLabel"), o = a.insert("g").attr("class", "label branch-label");
635
+ (n = o.node()) == null || n.appendChild(r);
636
+ let s = r.getBBox();
637
+ C = Ve(e.name, C, t, s, u), o.remove(), a.remove(), i.remove();
638
+ }), Z(f, G, !1, c), c.showBranches && Be(f, d, c, t), ze(f, G), Z(f, G, !0, c), y.insertTitle(f, "gitTitleText", (o = c.titleTopMargin) == null ? 0 : o, s.getDiagramTitle()), l(void 0, f, c.diagramPadding, c.useMaxWidth);
639
+ }, "draw") }, Ue = 8, $ = /* @__PURE__ */ new Set([
640
+ "redux",
641
+ "redux-dark",
642
+ "redux-color",
643
+ "redux-dark-color"
644
+ ]), We = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ge = /* @__PURE__ */ new Set(["neo", "neo-dark"]), Ke = /* @__PURE__ */ new Set([
645
+ "dark",
646
+ "redux-dark",
647
+ "redux-dark-color",
648
+ "neo-dark"
649
+ ]), qe = /* @__PURE__ */ new Set([
650
+ "redux",
651
+ "redux-dark",
652
+ "redux-color",
653
+ "redux-dark-color",
654
+ "neo",
655
+ "neo-dark"
656
+ ]), Je = /* @__PURE__ */ i((e) => {
657
+ let { svgId: t } = e, n = "";
658
+ if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
659
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
660
+ `;
661
+ return n;
662
+ }, "genGitGraphGradient"), Ye = /* @__PURE__ */ i((e) => {
663
+ let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
664
+ if (Ge.has(t)) {
665
+ let t = "";
666
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
667
+ .branch-label${n} { fill: ${e.nodeBorder};}
668
+ .commit${n} { stroke: ${e.nodeBorder}; }
669
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
670
+ .arrow${n} { stroke: ${e.nodeBorder}; }
671
+ .commit-bullets { fill: ${e.nodeBorder}; }
672
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
673
+ ${Je(e)}`;
674
+ else {
675
+ let r = n % Ue;
676
+ t += `
677
+ .branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
678
+ .commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
679
+ .commit-highlight${n} { stroke: ${e["gitInv" + r]}; fill: ${e["gitInv" + r]}; }
680
+ .arrow${n} { stroke: ${e["git" + r]}; }
681
+ `;
682
+ }
683
+ return t;
684
+ } else if (We.has(t)) {
685
+ let n = "";
686
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
687
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
688
+ .commit${a} { stroke: ${e.nodeBorder}; }
689
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
690
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
691
+ .arrow${a} { stroke: ${e.nodeBorder}; }
692
+ .commit-bullets { fill: ${e.nodeBorder}; }
693
+ `;
694
+ else {
695
+ let o = a % r.length;
696
+ n += `
697
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
698
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
699
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
700
+ .label${a} { fill: ${Ke.has(t) ? e.mainBkg : r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
701
+ .arrow${a} { stroke: ${r[o]}; }
702
+ `;
703
+ }
704
+ return n;
705
+ } else {
706
+ let t = "";
707
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
708
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
709
+ .commit${n} { stroke: ${e.nodeBorder}; }
710
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
711
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""}}
712
+ .arrow${n} { stroke: ${e.nodeBorder}; }
713
+ .commit-bullets { fill: ${e.nodeBorder}; }
714
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
715
+ `;
716
+ return t;
717
+ }
718
+ }, "genColor"), Xe = /* @__PURE__ */ i((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
719
+ let n = t % Ue;
720
+ return `
721
+ .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
722
+ .commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
723
+ .commit-highlight${t} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
724
+ .label${t} { fill: ${e["git" + n]}; }
725
+ .arrow${t} { stroke: ${e["git" + n]}; }
726
+ `;
727
+ }).join("\n")}`, "normalTheme"), Ze = {
728
+ parser: Se,
729
+ db: M,
730
+ renderer: He,
731
+ styles: /* @__PURE__ */ i((e) => {
732
+ var t;
733
+ let { theme: n } = d(), r = qe.has(n);
734
+ return `
735
+ .commit-id,
736
+ .commit-msg,
737
+ .branch-label {
738
+ fill: lightgrey;
739
+ color: lightgrey;
740
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
741
+ font-family: var(--mermaid-font-family);
742
+ }
743
+
744
+ ${r ? Ye(e) : Xe(e)}
745
+
746
+ .branch {
747
+ stroke-width: ${e.strokeWidth};
748
+ stroke: ${(t = e.commitLineColor) == null ? e.lineColor : t};
749
+ stroke-dasharray: ${r ? "4 2" : "2"};
750
+ }
751
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${r ? e.nodeBorder : e.commitLabelColor}; ${r ? `font-weight:${e.noteFontWeight};` : ""}}
752
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${r ? "transparent" : e.commitLabelBackground}; opacity: ${r ? "" : .5}; }
753
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
754
+ .tag-label-bkg { fill: ${r ? e.mainBkg : e.tagLabelBackground}; stroke: ${r ? e.nodeBorder : e.tagLabelBorder}; ${r ? `filter:${e.dropShadow}` : ""} }
755
+ .tag-hole { fill: ${e.textColor}; }
756
+
757
+ .commit-merge {
758
+ stroke: ${r ? e.mainBkg : e.primaryColor};
759
+ fill: ${r ? e.mainBkg : e.primaryColor};
760
+ }
761
+ .commit-reverse {
762
+ stroke: ${r ? e.mainBkg : e.primaryColor};
763
+ fill: ${r ? e.mainBkg : e.primaryColor};
764
+ stroke-width: ${r ? e.strokeWidth : 3};
765
+ }
766
+ .commit-highlight-outer {
767
+ }
768
+ .commit-highlight-inner {
769
+ stroke: ${r ? e.mainBkg : e.primaryColor};
770
+ fill: ${r ? e.mainBkg : e.primaryColor};
771
+ }
772
+
773
+ .arrow {
774
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
775
+ stroke-width: ${$.has(n) ? e.strokeWidth : 8};
776
+ stroke-linecap: round;
777
+ fill: none
778
+ }
779
+ .gitTitleText {
780
+ text-anchor: middle;
781
+ font-size: 18px;
782
+ fill: ${e.textColor};
783
+ }
784
+ `;
785
+ }, "getStyles")
786
+ };
787
+ //#endregion
788
+ export { Ze as diagram };