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,1016 @@
1
+ import { n as e, t } from "./asyncToGenerator.js";
2
+ import { n, r } from "./chunk-AGHRB4JF.js";
3
+ import { b as i, et as a, f as o, k as s, rt as c, tt as l, x as u, z as d } from "./chunk-CSCIHK7Q.js";
4
+ import "./chunk-5ZQYHXKU.js";
5
+ import "./chunk-BSJP7CBP.js";
6
+ import "./chunk-L5ZTLDWV.js";
7
+ import "./chunk-NZK2D7GU.js";
8
+ import "./chunk-O5CBEL6O.js";
9
+ import "./chunk-3OPIFGDE.js";
10
+ import "./chunk-KSCS5N6A.js";
11
+ import { r as f, t as p } from "./chunk-LZXEDZCA.js";
12
+ import { t as m } from "./chunk-55IACEB6.js";
13
+ import { t as h } from "./chunk-2J33WTMH.js";
14
+ //#region node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
15
+ var g = [];
16
+ for (let e = 0; e < 256; ++e) g.push((e + 256).toString(16).slice(1));
17
+ function _(e, t = 0) {
18
+ return (g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]]).toLowerCase();
19
+ }
20
+ //#endregion
21
+ //#region node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
22
+ var v = new Uint8Array(16);
23
+ function y() {
24
+ return crypto.getRandomValues(v);
25
+ }
26
+ //#endregion
27
+ //#region node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
28
+ function b(e, t, n) {
29
+ return !t && !e && crypto.randomUUID ? crypto.randomUUID() : x(e, t, n);
30
+ }
31
+ function x(e, t, n) {
32
+ var r, i, a;
33
+ e = e || {};
34
+ let o = (r = (i = e.random) == null ? (a = e.rng) == null ? void 0 : a.call(e) : i) == null ? y() : r;
35
+ if (o.length < 16) throw Error("Random bytes length must be >= 16");
36
+ if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
37
+ if (n = n || 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
38
+ for (let e = 0; e < 16; ++e) t[n + e] = o[e];
39
+ return t;
40
+ }
41
+ return _(o);
42
+ }
43
+ //#endregion
44
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-RKZ34NQL.mjs
45
+ e();
46
+ var S, C = (function() {
47
+ var e = /* @__PURE__ */ n(function(e, t, n, r) {
48
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
49
+ return n;
50
+ }, "o"), t = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
51
+ 6,
52
+ 7,
53
+ 8
54
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
55
+ 6,
56
+ 7,
57
+ 11
58
+ ], m = [
59
+ 1,
60
+ 6,
61
+ 13,
62
+ 15,
63
+ 16,
64
+ 19,
65
+ 22
66
+ ], h = [1, 33], g = [1, 34], _ = [
67
+ 1,
68
+ 6,
69
+ 7,
70
+ 11,
71
+ 13,
72
+ 15,
73
+ 16,
74
+ 19,
75
+ 22
76
+ ], v = {
77
+ trace: /* @__PURE__ */ n(function() {}, "trace"),
78
+ yy: {},
79
+ symbols_: {
80
+ error: 2,
81
+ start: 3,
82
+ mindMap: 4,
83
+ spaceLines: 5,
84
+ SPACELINE: 6,
85
+ NL: 7,
86
+ MINDMAP: 8,
87
+ document: 9,
88
+ stop: 10,
89
+ EOF: 11,
90
+ statement: 12,
91
+ SPACELIST: 13,
92
+ node: 14,
93
+ ICON: 15,
94
+ CLASS: 16,
95
+ nodeWithId: 17,
96
+ nodeWithoutId: 18,
97
+ NODE_DSTART: 19,
98
+ NODE_DESCR: 20,
99
+ NODE_DEND: 21,
100
+ NODE_ID: 22,
101
+ $accept: 0,
102
+ $end: 1
103
+ },
104
+ terminals_: {
105
+ 2: "error",
106
+ 6: "SPACELINE",
107
+ 7: "NL",
108
+ 8: "MINDMAP",
109
+ 11: "EOF",
110
+ 13: "SPACELIST",
111
+ 15: "ICON",
112
+ 16: "CLASS",
113
+ 19: "NODE_DSTART",
114
+ 20: "NODE_DESCR",
115
+ 21: "NODE_DEND",
116
+ 22: "NODE_ID"
117
+ },
118
+ productions_: [
119
+ 0,
120
+ [3, 1],
121
+ [3, 2],
122
+ [5, 1],
123
+ [5, 2],
124
+ [5, 2],
125
+ [4, 2],
126
+ [4, 3],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 1],
130
+ [10, 2],
131
+ [10, 2],
132
+ [9, 3],
133
+ [9, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 2],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [12, 1],
142
+ [14, 1],
143
+ [14, 1],
144
+ [18, 3],
145
+ [17, 1],
146
+ [17, 4]
147
+ ],
148
+ performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
149
+ var s = a.length - 1;
150
+ switch (i) {
151
+ case 6:
152
+ case 7: return r;
153
+ case 8:
154
+ r.getLogger().trace("Stop NL ");
155
+ break;
156
+ case 9:
157
+ r.getLogger().trace("Stop EOF ");
158
+ break;
159
+ case 11:
160
+ r.getLogger().trace("Stop NL2 ");
161
+ break;
162
+ case 12:
163
+ r.getLogger().trace("Stop EOF2 ");
164
+ break;
165
+ case 15:
166
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 16:
169
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 17:
172
+ case 21:
173
+ r.decorateNode({ class: a[s] });
174
+ break;
175
+ case 18:
176
+ r.getLogger().trace("SPACELIST");
177
+ break;
178
+ case 19:
179
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
180
+ break;
181
+ case 20:
182
+ r.decorateNode({ icon: a[s] });
183
+ break;
184
+ case 25:
185
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
186
+ id: a[s - 1],
187
+ descr: a[s - 1],
188
+ type: r.getType(a[s - 2], a[s])
189
+ };
190
+ break;
191
+ case 26:
192
+ this.$ = {
193
+ id: a[s],
194
+ descr: a[s],
195
+ type: r.nodeType.DEFAULT
196
+ };
197
+ break;
198
+ case 27:
199
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
200
+ id: a[s - 3],
201
+ descr: a[s - 1],
202
+ type: r.getType(a[s - 2], a[s])
203
+ };
204
+ break;
205
+ }
206
+ }, "anonymous"),
207
+ table: [
208
+ {
209
+ 3: 1,
210
+ 4: 2,
211
+ 5: 3,
212
+ 6: [1, 5],
213
+ 8: t
214
+ },
215
+ { 1: [3] },
216
+ { 1: [2, 1] },
217
+ {
218
+ 4: 6,
219
+ 6: [1, 7],
220
+ 7: [1, 8],
221
+ 8: t
222
+ },
223
+ {
224
+ 6: r,
225
+ 7: [1, 10],
226
+ 9: 9,
227
+ 12: 11,
228
+ 13: i,
229
+ 14: 14,
230
+ 15: a,
231
+ 16: o,
232
+ 17: 17,
233
+ 18: 18,
234
+ 19: s,
235
+ 22: c
236
+ },
237
+ e(l, [2, 3]),
238
+ { 1: [2, 2] },
239
+ e(l, [2, 4]),
240
+ e(l, [2, 5]),
241
+ {
242
+ 1: [2, 6],
243
+ 6: r,
244
+ 12: 21,
245
+ 13: i,
246
+ 14: 14,
247
+ 15: a,
248
+ 16: o,
249
+ 17: 17,
250
+ 18: 18,
251
+ 19: s,
252
+ 22: c
253
+ },
254
+ {
255
+ 6: r,
256
+ 9: 22,
257
+ 12: 11,
258
+ 13: i,
259
+ 14: 14,
260
+ 15: a,
261
+ 16: o,
262
+ 17: 17,
263
+ 18: 18,
264
+ 19: s,
265
+ 22: c
266
+ },
267
+ {
268
+ 6: u,
269
+ 7: d,
270
+ 10: 23,
271
+ 11: f
272
+ },
273
+ e(p, [2, 22], {
274
+ 17: 17,
275
+ 18: 18,
276
+ 14: 27,
277
+ 15: [1, 28],
278
+ 16: [1, 29],
279
+ 19: s,
280
+ 22: c
281
+ }),
282
+ e(p, [2, 18]),
283
+ e(p, [2, 19]),
284
+ e(p, [2, 20]),
285
+ e(p, [2, 21]),
286
+ e(p, [2, 23]),
287
+ e(p, [2, 24]),
288
+ e(p, [2, 26], { 19: [1, 30] }),
289
+ { 20: [1, 31] },
290
+ {
291
+ 6: u,
292
+ 7: d,
293
+ 10: 32,
294
+ 11: f
295
+ },
296
+ {
297
+ 1: [2, 7],
298
+ 6: r,
299
+ 12: 21,
300
+ 13: i,
301
+ 14: 14,
302
+ 15: a,
303
+ 16: o,
304
+ 17: 17,
305
+ 18: 18,
306
+ 19: s,
307
+ 22: c
308
+ },
309
+ e(m, [2, 14], {
310
+ 7: h,
311
+ 11: g
312
+ }),
313
+ e(_, [2, 8]),
314
+ e(_, [2, 9]),
315
+ e(_, [2, 10]),
316
+ e(p, [2, 15]),
317
+ e(p, [2, 16]),
318
+ e(p, [2, 17]),
319
+ { 20: [1, 35] },
320
+ { 21: [1, 36] },
321
+ e(m, [2, 13], {
322
+ 7: h,
323
+ 11: g
324
+ }),
325
+ e(_, [2, 11]),
326
+ e(_, [2, 12]),
327
+ { 21: [1, 37] },
328
+ e(p, [2, 25]),
329
+ e(p, [2, 27])
330
+ ],
331
+ defaultActions: {
332
+ 2: [2, 1],
333
+ 6: [2, 2]
334
+ },
335
+ parseError: /* @__PURE__ */ n(function(e, t) {
336
+ if (t.recoverable) this.trace(e);
337
+ else {
338
+ var n = Error(e);
339
+ throw n.hash = t, n;
340
+ }
341
+ }, "parseError"),
342
+ parse: /* @__PURE__ */ n(function(e) {
343
+ var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
344
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
345
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
346
+ var v = h.yylloc;
347
+ o.push(v);
348
+ var y = h.options && h.options.ranges;
349
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
350
+ function b(e) {
351
+ r.length -= 2 * e, a.length -= e, o.length -= e;
352
+ }
353
+ n(b, "popStack");
354
+ function x() {
355
+ var e = i.pop() || h.lex() || p;
356
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
357
+ }
358
+ n(x, "lex");
359
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
360
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
361
+ var M = "";
362
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
363
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
364
+ text: h.match,
365
+ token: this.terminals_[S] || S,
366
+ line: h.yylineno,
367
+ loc: v,
368
+ expected: j
369
+ });
370
+ }
371
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
372
+ switch (T[0]) {
373
+ case 1:
374
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
375
+ break;
376
+ case 2:
377
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
378
+ first_line: o[o.length - (k || 1)].first_line,
379
+ last_line: o[o.length - 1].last_line,
380
+ first_column: o[o.length - (k || 1)].first_column,
381
+ last_column: o[o.length - 1].last_column
382
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
383
+ c,
384
+ u,
385
+ l,
386
+ g.yy,
387
+ T[1],
388
+ a,
389
+ o
390
+ ].concat(m)), E !== void 0) return E;
391
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
392
+ break;
393
+ case 3: return !0;
394
+ }
395
+ }
396
+ return !0;
397
+ }, "parse")
398
+ };
399
+ v.lexer = /* @__PURE__ */ (function() {
400
+ return {
401
+ EOF: 1,
402
+ parseError: /* @__PURE__ */ n(function(e, t) {
403
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
404
+ else throw Error(e);
405
+ }, "parseError"),
406
+ setInput: /* @__PURE__ */ n(function(e, t) {
407
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
408
+ first_line: 1,
409
+ first_column: 0,
410
+ last_line: 1,
411
+ last_column: 0
412
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
413
+ }, "setInput"),
414
+ input: /* @__PURE__ */ n(function() {
415
+ var e = this._input[0];
416
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
417
+ }, "input"),
418
+ unput: /* @__PURE__ */ n(function(e) {
419
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
420
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
421
+ var r = this.match.split(/(?:\r\n?|\n)/g);
422
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
423
+ var i = this.yylloc.range;
424
+ return this.yylloc = {
425
+ first_line: this.yylloc.first_line,
426
+ last_line: this.yylineno + 1,
427
+ first_column: this.yylloc.first_column,
428
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
429
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
430
+ }, "unput"),
431
+ more: /* @__PURE__ */ n(function() {
432
+ return this._more = !0, this;
433
+ }, "more"),
434
+ reject: /* @__PURE__ */ n(function() {
435
+ if (this.options.backtrack_lexer) this._backtrack = !0;
436
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
437
+ text: "",
438
+ token: null,
439
+ line: this.yylineno
440
+ });
441
+ return this;
442
+ }, "reject"),
443
+ less: /* @__PURE__ */ n(function(e) {
444
+ this.unput(this.match.slice(e));
445
+ }, "less"),
446
+ pastInput: /* @__PURE__ */ n(function() {
447
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
448
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
449
+ }, "pastInput"),
450
+ upcomingInput: /* @__PURE__ */ n(function() {
451
+ var e = this.match;
452
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
453
+ }, "upcomingInput"),
454
+ showPosition: /* @__PURE__ */ n(function() {
455
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
456
+ return e + this.upcomingInput() + "\n" + t + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ n(function(e, t) {
459
+ var n, r, i;
460
+ if (this.options.backtrack_lexer && (i = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
484
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
485
+ if (this._backtrack) {
486
+ for (var a in i) this[a] = i[a];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ n(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var e, t, n, r;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
497
+ if (t = n, r = a, this.options.backtrack_lexer) {
498
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
499
+ if (this._backtrack) {
500
+ t = !1;
501
+ continue;
502
+ } else return !1;
503
+ } else if (!this.options.flex) break;
504
+ }
505
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
506
+ text: "",
507
+ token: null,
508
+ line: this.yylineno
509
+ });
510
+ }, "next"),
511
+ lex: /* @__PURE__ */ n(function() {
512
+ return this.next() || this.lex();
513
+ }, "lex"),
514
+ begin: /* @__PURE__ */ n(function(e) {
515
+ this.conditionStack.push(e);
516
+ }, "begin"),
517
+ popState: /* @__PURE__ */ n(function() {
518
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
+ }, "popState"),
520
+ _currentRules: /* @__PURE__ */ n(function() {
521
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
+ }, "_currentRules"),
523
+ topState: /* @__PURE__ */ n(function(e) {
524
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
525
+ }, "topState"),
526
+ pushState: /* @__PURE__ */ n(function(e) {
527
+ this.begin(e);
528
+ }, "pushState"),
529
+ stateStackSize: /* @__PURE__ */ n(function() {
530
+ return this.conditionStack.length;
531
+ }, "stateStackSize"),
532
+ options: { "case-insensitive": !0 },
533
+ performAction: /* @__PURE__ */ n(function(e, t, n, r) {
534
+ switch (n) {
535
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
536
+ case 1: return 8;
537
+ case 2:
538
+ this.begin("CLASS");
539
+ break;
540
+ case 3: return this.popState(), 16;
541
+ case 4:
542
+ this.popState();
543
+ break;
544
+ case 5:
545
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
546
+ break;
547
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
548
+ case 7: return 7;
549
+ case 8: return 15;
550
+ case 9:
551
+ e.getLogger().trace("end icon"), this.popState();
552
+ break;
553
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
554
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
555
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
556
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
557
+ case 14: return this.begin("NODE"), 19;
558
+ case 15: return this.begin("NODE"), 19;
559
+ case 16: return this.begin("NODE"), 19;
560
+ case 17: return this.begin("NODE"), 19;
561
+ case 18: return 13;
562
+ case 19: return 22;
563
+ case 20: return 11;
564
+ case 21:
565
+ this.begin("NSTR2");
566
+ break;
567
+ case 22: return "NODE_DESCR";
568
+ case 23:
569
+ this.popState();
570
+ break;
571
+ case 24:
572
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
573
+ break;
574
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
575
+ case 26:
576
+ this.popState();
577
+ break;
578
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
579
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
580
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
581
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
582
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
584
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
586
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
588
+ }
589
+ }, "anonymous"),
590
+ rules: [
591
+ /^(?:\s*%%.*)/i,
592
+ /^(?:mindmap\b)/i,
593
+ /^(?::::)/i,
594
+ /^(?:.+)/i,
595
+ /^(?:\n)/i,
596
+ /^(?:::icon\()/i,
597
+ /^(?:[\s]+[\n])/i,
598
+ /^(?:[\n]+)/i,
599
+ /^(?:[^\)]+)/i,
600
+ /^(?:\))/i,
601
+ /^(?:-\))/i,
602
+ /^(?:\(-)/i,
603
+ /^(?:\)\))/i,
604
+ /^(?:\))/i,
605
+ /^(?:\(\()/i,
606
+ /^(?:\{\{)/i,
607
+ /^(?:\()/i,
608
+ /^(?:\[)/i,
609
+ /^(?:[\s]+)/i,
610
+ /^(?:[^\(\[\n\)\{\}]+)/i,
611
+ /^(?:$)/i,
612
+ /^(?:["][`])/i,
613
+ /^(?:[^`"]+)/i,
614
+ /^(?:[`]["])/i,
615
+ /^(?:["])/i,
616
+ /^(?:[^"]+)/i,
617
+ /^(?:["])/i,
618
+ /^(?:[\)]\))/i,
619
+ /^(?:[\)])/i,
620
+ /^(?:[\]])/i,
621
+ /^(?:\}\})/i,
622
+ /^(?:\(-)/i,
623
+ /^(?:-\))/i,
624
+ /^(?:\(\()/i,
625
+ /^(?:\()/i,
626
+ /^(?:[^\)\]\(\}]+)/i,
627
+ /^(?:.+(?!\(\())/i
628
+ ],
629
+ conditions: {
630
+ CLASS: {
631
+ rules: [3, 4],
632
+ inclusive: !1
633
+ },
634
+ ICON: {
635
+ rules: [8, 9],
636
+ inclusive: !1
637
+ },
638
+ NSTR2: {
639
+ rules: [22, 23],
640
+ inclusive: !1
641
+ },
642
+ NSTR: {
643
+ rules: [25, 26],
644
+ inclusive: !1
645
+ },
646
+ NODE: {
647
+ rules: [
648
+ 21,
649
+ 24,
650
+ 27,
651
+ 28,
652
+ 29,
653
+ 30,
654
+ 31,
655
+ 32,
656
+ 33,
657
+ 34,
658
+ 35,
659
+ 36
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ INITIAL: {
664
+ rules: [
665
+ 0,
666
+ 1,
667
+ 2,
668
+ 5,
669
+ 6,
670
+ 7,
671
+ 10,
672
+ 11,
673
+ 12,
674
+ 13,
675
+ 14,
676
+ 15,
677
+ 16,
678
+ 17,
679
+ 18,
680
+ 19,
681
+ 20
682
+ ],
683
+ inclusive: !0
684
+ }
685
+ }
686
+ };
687
+ })();
688
+ function y() {
689
+ this.yy = {};
690
+ }
691
+ return n(y, "Parser"), y.prototype = v, v.Parser = y, new y();
692
+ })();
693
+ C.parser = C;
694
+ var w = C, T = 12, E = {
695
+ DEFAULT: 0,
696
+ NO_BORDER: 0,
697
+ ROUNDED_RECT: 1,
698
+ RECT: 2,
699
+ CIRCLE: 3,
700
+ CLOUD: 4,
701
+ BANG: 5,
702
+ HEXAGON: 6
703
+ }, D = (S = class {
704
+ constructor() {
705
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = E, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
706
+ }
707
+ clear() {
708
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
709
+ }
710
+ getParent(e) {
711
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
712
+ return null;
713
+ }
714
+ getMindmap() {
715
+ return this.nodes.length > 0 ? this.nodes[0] : null;
716
+ }
717
+ addNode(e, t, n, i) {
718
+ var a, s, c, l;
719
+ r.info("addNode", e, t, n, i);
720
+ let f = !1;
721
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, f = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, f = !1);
722
+ let p = u(), m = (a = (s = p.mindmap) == null ? void 0 : s.padding) == null ? o.mindmap.padding : a;
723
+ switch (i) {
724
+ case this.nodeType.ROUNDED_RECT:
725
+ case this.nodeType.RECT:
726
+ case this.nodeType.HEXAGON:
727
+ m *= 2;
728
+ break;
729
+ }
730
+ let h = {
731
+ id: this.count++,
732
+ nodeId: d(t, p),
733
+ level: e,
734
+ descr: d(n, p),
735
+ type: i,
736
+ children: [],
737
+ width: (c = (l = p.mindmap) == null ? void 0 : l.maxNodeWidth) == null ? o.mindmap.maxNodeWidth : c,
738
+ padding: m,
739
+ isRoot: f
740
+ }, g = this.getParent(e);
741
+ if (g) g.children.push(h), this.nodes.push(h);
742
+ else if (f) this.nodes.push(h);
743
+ else throw Error(`There can be only one root. No parent could be found for ("${h.descr}")`);
744
+ }
745
+ getType(e, t) {
746
+ switch (r.debug("In get type", e, t), e) {
747
+ case "[": return this.nodeType.RECT;
748
+ case "(": return t === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
749
+ case "((": return this.nodeType.CIRCLE;
750
+ case ")": return this.nodeType.CLOUD;
751
+ case "))": return this.nodeType.BANG;
752
+ case "{{": return this.nodeType.HEXAGON;
753
+ default: return this.nodeType.DEFAULT;
754
+ }
755
+ }
756
+ setElementForId(e, t) {
757
+ this.elements[e] = t;
758
+ }
759
+ getElementById(e) {
760
+ return this.elements[e];
761
+ }
762
+ decorateNode(e) {
763
+ if (!e) return;
764
+ let t = u(), n = this.nodes[this.nodes.length - 1];
765
+ e.icon && (n.icon = d(e.icon, t)), e.class && (n.class = d(e.class, t));
766
+ }
767
+ type2Str(e) {
768
+ switch (e) {
769
+ case this.nodeType.DEFAULT: return "no-border";
770
+ case this.nodeType.RECT: return "rect";
771
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
772
+ case this.nodeType.CIRCLE: return "circle";
773
+ case this.nodeType.CLOUD: return "cloud";
774
+ case this.nodeType.BANG: return "bang";
775
+ case this.nodeType.HEXAGON: return "hexgon";
776
+ default: return "no-border";
777
+ }
778
+ }
779
+ assignSections(e, t) {
780
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
781
+ let i = e.level === 0 ? n % (T - 1) : t;
782
+ this.assignSections(r, i);
783
+ }
784
+ }
785
+ flattenNodes(e, t) {
786
+ var r;
787
+ let i = u(), a = ["mindmap-node"];
788
+ e.isRoot === !0 ? a.push("section-root", "section--1") : e.section !== void 0 && a.push(`section-${e.section}`), e.class && a.push(e.class);
789
+ let o = a.join(" "), s = /* @__PURE__ */ n((e) => {
790
+ var t, n;
791
+ let r = ((t = (n = i.theme) == null ? void 0 : n.toLowerCase()) == null ? "" : t).includes("redux");
792
+ switch (e) {
793
+ case E.CIRCLE: return "mindmapCircle";
794
+ case E.RECT: return "rect";
795
+ case E.ROUNDED_RECT: return "rounded";
796
+ case E.CLOUD: return "cloud";
797
+ case E.BANG: return "bang";
798
+ case E.HEXAGON: return "hexagon";
799
+ case E.DEFAULT: return r ? "rounded" : "defaultMindmapNode";
800
+ case E.NO_BORDER:
801
+ default: return "rect";
802
+ }
803
+ }, "getShapeFromType"), c = {
804
+ id: e.id.toString(),
805
+ domId: "node_" + e.id.toString(),
806
+ label: e.descr,
807
+ labelType: "markdown",
808
+ isGroup: !1,
809
+ shape: s(e.type),
810
+ width: e.width,
811
+ height: (r = e.height) == null ? 0 : r,
812
+ padding: e.padding,
813
+ cssClasses: o,
814
+ cssStyles: [],
815
+ look: i.look,
816
+ icon: e.icon,
817
+ x: e.x,
818
+ y: e.y,
819
+ level: e.level,
820
+ nodeId: e.nodeId,
821
+ type: e.type,
822
+ section: e.section
823
+ };
824
+ if (t.push(c), e.children) for (let n of e.children) this.flattenNodes(n, t);
825
+ }
826
+ generateEdges(e, t) {
827
+ if (!e.children) return;
828
+ let n = u();
829
+ for (let r of e.children) {
830
+ let i = "edge";
831
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
832
+ let a = e.level + 1;
833
+ i += ` edge-depth-${a}`;
834
+ let o = {
835
+ id: `edge_${e.id}_${r.id}`,
836
+ start: e.id.toString(),
837
+ end: r.id.toString(),
838
+ type: "normal",
839
+ curve: "basis",
840
+ thickness: "normal",
841
+ look: n.look,
842
+ classes: i,
843
+ depth: e.level,
844
+ section: r.section
845
+ };
846
+ t.push(o), this.generateEdges(r, t);
847
+ }
848
+ }
849
+ getData() {
850
+ let e = this.getMindmap(), t = u(), n = s().layout !== void 0, i = t;
851
+ if (n || (i.layout = "cose-bilkent"), !e) return {
852
+ nodes: [],
853
+ edges: [],
854
+ config: i
855
+ };
856
+ r.debug("getData: mindmapRoot", e, t), this.assignSections(e);
857
+ let a = [], o = [];
858
+ this.flattenNodes(e, a), this.generateEdges(e, o), r.debug(`getData: processed ${a.length} nodes and ${o.length} edges`);
859
+ let c = /* @__PURE__ */ new Map();
860
+ for (let e of a) c.set(e.id, {
861
+ shape: e.shape,
862
+ width: e.width,
863
+ height: e.height,
864
+ padding: e.padding
865
+ });
866
+ return {
867
+ nodes: a,
868
+ edges: o,
869
+ config: i,
870
+ rootNode: e,
871
+ markers: ["point"],
872
+ direction: "TB",
873
+ nodeSpacing: 50,
874
+ rankSpacing: 50,
875
+ shapes: Object.fromEntries(c),
876
+ type: "mindmap",
877
+ diagramId: "mindmap-" + b()
878
+ };
879
+ }
880
+ getLogger() {
881
+ return r;
882
+ }
883
+ }, n(S, "MindmapDB"), S), O = { draw: /* @__PURE__ */ n(function() {
884
+ var e = t(function* (e, t, n, a) {
885
+ var s, c, l, u;
886
+ r.debug("Rendering mindmap diagram\n" + e);
887
+ let d = a.db, g = d.getData(), _ = m(t, g.config.securityLevel);
888
+ if (g.type = a.type, g.layoutAlgorithm = p(g.config.layout, { fallback: "cose-bilkent" }), g.diagramId = t, !d.getMindmap()) return;
889
+ g.nodes.forEach((e) => {
890
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
891
+ }), yield f(g, _);
892
+ let { themeVariables: v } = i(), { useGradient: y, gradientStart: b, gradientStop: x } = v;
893
+ if (y && b && x) {
894
+ let e = _.attr("id"), t = _.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
895
+ t.append("stop").attr("offset", "0%").attr("stop-color", b).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
896
+ }
897
+ h(_, (s = (c = g.config.mindmap) == null ? void 0 : c.padding) == null ? o.mindmap.padding : s, "mindmapDiagram", (l = (u = g.config.mindmap) == null ? void 0 : u.useMaxWidth) == null ? o.mindmap.useMaxWidth : l);
898
+ });
899
+ return function(t, n, r, i) {
900
+ return e.apply(this, arguments);
901
+ };
902
+ }(), "draw") }, k = /* @__PURE__ */ n((e) => {
903
+ let { theme: t, look: n } = e, r = "";
904
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = l(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
905
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) {
906
+ var i;
907
+ let o = "" + (n === "neo" ? Math.max(10 - (a - 1) * 2, 2) : 17 - 3 * a);
908
+ r += `
909
+ .section-${a - 1} rect, .section-${a - 1} path, .section-${a - 1} circle, .section-${a - 1} polygon, .section-${a - 1} path {
910
+ fill: ${e["cScale" + a]};
911
+ }
912
+ .section-${a - 1} text {
913
+ fill: ${e["cScaleLabel" + a]};
914
+ }
915
+ .section-${a - 1} span {
916
+ color: ${e["cScaleLabel" + a]};
917
+ }
918
+ .node-icon-${a - 1} {
919
+ font-size: 40px;
920
+ color: ${e["cScaleLabel" + a]};
921
+ }
922
+ .section-edge-${a - 1}{
923
+ stroke: ${e["cScale" + a]};
924
+ }
925
+ .edge-depth-${a - 1}{
926
+ stroke-width: ${o};
927
+ }
928
+ .section-${a - 1} line {
929
+ stroke: ${e["cScaleInv" + a]} ;
930
+ stroke-width: 3;
931
+ }
932
+
933
+ .disabled, .disabled circle, .disabled text {
934
+ fill: lightgray;
935
+ }
936
+ .disabled text {
937
+ fill: #efefef;
938
+ }
939
+ [data-look="neo"].mindmap-node.section-${a - 1} rect, [data-look="neo"].mindmap-node.section-${a - 1} path, [data-look="neo"].mindmap-node.section-${a - 1} circle, [data-look="neo"].mindmap-node.section-${a - 1} polygon {
940
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + a]};
941
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + a]};
942
+ stroke-width: ${(i = e.strokeWidth) == null ? 2 : i}px;
943
+ }
944
+ [data-look="neo"].section-edge-${a - 1}{
945
+ stroke: ${t != null && t.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + a]};
946
+ }
947
+ [data-look="neo"].mindmap-node.section-${a - 1} text {
948
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : a)]};
949
+ }
950
+ `;
951
+ }
952
+ return r;
953
+ }, "genSections"), A = /* @__PURE__ */ n((e, t, n) => {
954
+ let r = "";
955
+ for (let i = 0; i < e; i++) r += `
956
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
957
+ stroke: url(${t}-gradient);
958
+ fill: ${n};
959
+ }
960
+ .section-${i - 1} line {
961
+ stroke-width: 0;
962
+ }`;
963
+ return r;
964
+ }, "genGradient"), j = {
965
+ get db() {
966
+ return new D();
967
+ },
968
+ renderer: O,
969
+ parser: w,
970
+ styles: /* @__PURE__ */ n((e) => {
971
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
972
+ return `
973
+ .edge {
974
+ stroke-width: 3;
975
+ }
976
+ ${k(e)}
977
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
978
+ fill: ${e.git0};
979
+ }
980
+ .section-root text {
981
+ fill: ${e.gitBranchLabel0};
982
+ }
983
+ .section-root span {
984
+ color: ${t != null && t.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
985
+ }
986
+ .icon-container {
987
+ height:100%;
988
+ display: flex;
989
+ justify-content: center;
990
+ align-items: center;
991
+ }
992
+ .edge {
993
+ fill: none;
994
+ }
995
+ .mindmap-node-label {
996
+ dy: 1em;
997
+ alignment-baseline: middle;
998
+ text-anchor: middle;
999
+ dominant-baseline: middle;
1000
+ text-align: center;
1001
+ }
1002
+ [data-look="neo"].mindmap-node {
1003
+ filter: ${r};
1004
+ }
1005
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
1006
+ fill: ${t != null && t.includes("redux") ? e.mainBkg : e.git0};
1007
+ }
1008
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1009
+ fill: ${t != null && t.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1010
+ }
1011
+ ${e.useGradient && n && e.mainBkg ? A(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1012
+ `;
1013
+ }, "getStyles")
1014
+ };
1015
+ //#endregion
1016
+ export { j as diagram };