@flyfish-group/file-viewer3 1.0.26 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +3 -388
- package/README.md +3 -364
- package/dist/file-viewer3.css +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +22 -126
- package/dist/components/3MFLoader.js +0 -527
- package/dist/components/AMFLoader.js +0 -188
- package/dist/components/ArchiveViewer.js +0 -526
- package/dist/components/AudioViewer.js +0 -66
- package/dist/components/CadViewer.js +0 -9040
- package/dist/components/CodeViewer.js +0 -151
- package/dist/components/ColladaLoader.js +0 -2282
- package/dist/components/DrawingViewer.js +0 -295
- package/dist/components/EdaViewer.js +0 -630
- package/dist/components/EmailViewer.js +0 -276
- package/dist/components/EpubViewer.js +0 -172
- package/dist/components/FBXLoader.js +0 -1574
- package/dist/components/GLTFLoader.js +0 -1383
- package/dist/components/ImageViewer.js +0 -1519
- package/dist/components/KMZLoader.js +0 -45
- package/dist/components/MarkdownViewer.js +0 -1476
- package/dist/components/ModelViewer.js +0 -797
- package/dist/components/OBJLoader.js +0 -287
- package/dist/components/OfdViewer.js +0 -133
- package/dist/components/PCDLoader.js +0 -141
- package/dist/components/PLYLoader.js +0 -305
- package/dist/components/PdfView.js +0 -27667
- package/dist/components/PptxRender.js +0 -11217
- package/dist/components/STLLoader.js +0 -83
- package/dist/components/TDSLoader.js +0 -228
- package/dist/components/TypstViewer.js +0 -1697
- package/dist/components/USDLoader.js +0 -2526
- package/dist/components/UmdViewer.js +0 -1873
- package/dist/components/VRMLLoader.js +0 -6422
- package/dist/components/VTKLoader.js +0 -337
- package/dist/components/XYZLoader.js +0 -30
- package/dist/components/XlsxTable.js +0 -7879
- package/dist/components/__vite-browser-external.js +0 -7
- package/dist/components/_plugin-vue_export-helper.js +0 -8
- package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
- package/dist/components/arc.js +0 -79
- package/dist/components/architecture-7EHR7CIX.js +0 -3
- package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
- package/dist/components/archive.js +0 -24
- package/dist/components/asyncToGenerator.js +0 -29
- package/dist/components/audio.js +0 -19
- package/dist/components/az-AZ-76LH7QW2.js +0 -523
- package/dist/components/bash.js +0 -169
- package/dist/components/bg-BG-XCXSNQG7.js +0 -523
- package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
- package/dist/components/bn-BD-2XOGV67Q.js +0 -523
- package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
- package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
- package/dist/components/cad.js +0 -23
- package/dist/components/cfb.js +0 -1174
- package/dist/components/channel.js +0 -5
- package/dist/components/chunk-2J33WTMH.js +0 -26
- package/dist/components/chunk-3OPIFGDE.js +0 -4167
- package/dist/components/chunk-4BX2VUAB.js +0 -19
- package/dist/components/chunk-55IACEB6.js +0 -9
- package/dist/components/chunk-5ZQYHXKU.js +0 -669
- package/dist/components/chunk-6U3AYISY.js +0 -624
- package/dist/components/chunk-727SXJPM.js +0 -3356
- package/dist/components/chunk-AGHRB4JF.js +0 -324
- package/dist/components/chunk-AQP2D5EJ.js +0 -2055
- package/dist/components/chunk-BSJP7CBP.js +0 -83
- package/dist/components/chunk-CSCIHK7Q.js +0 -3500
- package/dist/components/chunk-EIO257PC.js +0 -1836
- package/dist/components/chunk-FMBD7UC4.js +0 -5
- package/dist/components/chunk-K2UTITRG.js +0 -17627
- package/dist/components/chunk-KSCS5N6A.js +0 -572
- package/dist/components/chunk-L5ZTLDWV.js +0 -40
- package/dist/components/chunk-LZXEDZCA.js +0 -60
- package/dist/components/chunk-ND2GUHAM.js +0 -61
- package/dist/components/chunk-NNHCCRGN.js +0 -20425
- package/dist/components/chunk-NZK2D7GU.js +0 -68
- package/dist/components/chunk-O5CBEL6O.js +0 -1894
- package/dist/components/chunk-QZHKN3VN.js +0 -12
- package/dist/components/chunk-SRAX5OIU.js +0 -22
- package/dist/components/chunk-WU5MYG2G.js +0 -14
- package/dist/components/chunk-XPW4576I.js +0 -1146
- package/dist/components/chunk-Z3N5DIM6.js +0 -59
- package/dist/components/chunk-ZUYEQ4TG.js +0 -22
- package/dist/components/chunk.js +0 -23
- package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
- package/dist/components/compiler.js +0 -2
- package/dist/components/core.js +0 -845
- package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
- package/dist/components/cpp.js +0 -225
- package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
- package/dist/components/csharp.js +0 -260
- package/dist/components/css.js +0 -140
- package/dist/components/cytoscape.esm.js +0 -18114
- package/dist/components/da-DK-5WZEPLOC.js +0 -523
- package/dist/components/dagre-BM42HDAG.js +0 -325
- package/dist/components/dagre.js +0 -1936
- package/dist/components/de-DE-XR44H4JA.js +0 -523
- package/dist/components/defaultLocale.js +0 -201
- package/dist/components/defineProperty.js +0 -50
- package/dist/components/diagram-2AECGRRQ.js +0 -229
- package/dist/components/diagram-5GNKFQAL.js +0 -108
- package/dist/components/diagram-KO2AKTUF.js +0 -443
- package/dist/components/diagram-LMA3HP47.js +0 -139
- package/dist/components/diagram-OG6HWLK6.js +0 -541
- package/dist/components/diff.js +0 -39
- package/dist/components/directory-open-01563666.js +0 -26
- package/dist/components/directory-open-4ed118d0.js +0 -83
- package/dist/components/dist.js +0 -50
- package/dist/components/dist2.js +0 -3291
- package/dist/components/dist3.js +0 -1593
- package/dist/components/documentSearch.js +0 -378
- package/dist/components/docx-preview.js +0 -3113
- package/dist/components/drawing.js +0 -19
- package/dist/components/ebook.js +0 -16
- package/dist/components/eda.js +0 -20
- package/dist/components/el-GR-BZB4AONW.js +0 -523
- package/dist/components/email.js +0 -21
- package/dist/components/en-B4ZKOASM.js +0 -3
- package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
- package/dist/components/es-ES-U4NZUMDT.js +0 -523
- package/dist/components/eu-ES-A7QVB2H4.js +0 -523
- package/dist/components/eventmodeling-FCH6USID.js +0 -3
- package/dist/components/fa-IR-HGAKTJCU.js +0 -523
- package/dist/components/fflate.module.js +0 -323
- package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
- package/dist/components/file-open-002ab408.js +0 -38
- package/dist/components/file-open-7c801643.js +0 -24
- package/dist/components/file-save-3189631c.js +0 -40
- package/dist/components/file-save-745eba88.js +0 -36
- package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
- package/dist/components/fr-FR-RHASNOE6.js +0 -523
- package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
- package/dist/components/gitGraph-WXDBUCRP.js +0 -3
- package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
- package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
- package/dist/components/global-compiler.js +0 -23
- package/dist/components/global-renderer.js +0 -23
- package/dist/components/go.js +0 -140
- package/dist/components/graphlib.js +0 -1267
- package/dist/components/he-IL-6SHJWFNN.js +0 -523
- package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
- package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
- package/dist/components/id-ID-SAP4L64H.js +0 -523
- package/dist/components/image-GAAHSSAO.js +0 -3
- package/dist/components/image-blob-reduce.esm.js +0 -1429
- package/dist/components/image.js +0 -17
- package/dist/components/info-J43DQDTF.js +0 -3
- package/dist/components/infoDiagram-5YYISTIA.js +0 -26
- package/dist/components/ini.js +0 -88
- package/dist/components/init.js +0 -15
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
- package/dist/components/it-IT-JPQ66NNP.js +0 -523
- package/dist/components/ja-JP-DBVTYXUO.js +0 -523
- package/dist/components/java.js +0 -169
- package/dist/components/javascript.js +0 -436
- package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
- package/dist/components/json.js +0 -36
- package/dist/components/jszip.min.js +0 -3033
- package/dist/components/kaa-6HZHGXH3.js +0 -523
- package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
- package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
- package/dist/components/katex.js +0 -21979
- package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
- package/dist/components/km-KH-HSX4SM5Z.js +0 -523
- package/dist/components/ko-KR-MTYHY66A.js +0 -523
- package/dist/components/ku-TR-6OUDTVRD.js +0 -523
- package/dist/components/lib.js +0 -4877
- package/dist/components/libarchive.js +0 -360
- package/dist/components/linear.js +0 -289
- package/dist/components/lt-LT-XHIRWOB4.js +0 -523
- package/dist/components/lv-LV-5QDEKY6T.js +0 -523
- package/dist/components/markdown.js +0 -181
- package/dist/components/md.js +0 -17
- package/dist/components/mermaid-parser.core.js +0 -328
- package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
- package/dist/components/model.js +0 -21
- package/dist/components/mp4.js +0 -12
- package/dist/components/mr-IN-CRQNXWMA.js +0 -523
- package/dist/components/my-MM-5M5IBNSE.js +0 -523
- package/dist/components/nb-NO-T6EIAALU.js +0 -523
- package/dist/components/nestedRender.js +0 -158
- package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
- package/dist/components/nn-NO-6E72VCQL.js +0 -523
- package/dist/components/objectSpread2.js +0 -29
- package/dist/components/objectWithoutProperties.js +0 -28
- package/dist/components/oc-FR-POXYY2M6.js +0 -523
- package/dist/components/ofd.js +0 -5261
- package/dist/components/ofd2.js +0 -16
- package/dist/components/ordinal.js +0 -65
- package/dist/components/pa-IN-N4M65BXN.js +0 -523
- package/dist/components/packet-YPE3B663.js +0 -3
- package/dist/components/pdf.js +0 -24
- package/dist/components/percentages-BXMCSKIN.js +0 -3
- package/dist/components/php.js +0 -294
- package/dist/components/pica.js +0 -1009
- package/dist/components/pie-LRSECV5Y.js +0 -3
- package/dist/components/pie.js +0 -47
- package/dist/components/pieDiagram-4H26LBE5.js +0 -130
- package/dist/components/pl-PL-T2D74RX3.js +0 -523
- package/dist/components/postal-mime.js +0 -3146
- package/dist/components/pptx.js +0 -15
- package/dist/components/printLayout.js +0 -42
- package/dist/components/prod.js +0 -21770
- package/dist/components/pt-BR-5N22H2LF.js +0 -523
- package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
- package/dist/components/python.js +0 -238
- package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
- package/dist/components/radar-GUYGQ44K.js +0 -3
- package/dist/components/renderer.js +0 -2
- package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
- package/dist/components/ro-RO-JPDTUUEW.js +0 -523
- package/dist/components/rough.esm.js +0 -1355
- package/dist/components/roundRect.js +0 -90
- package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
- package/dist/components/rust.js +0 -169
- package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
- package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
- package/dist/components/shared.js +0 -175
- package/dist/components/shared2.js +0 -4
- package/dist/components/si-LK-N5RQ5JYF.js +0 -523
- package/dist/components/sk-SK-C5VTKIMK.js +0 -523
- package/dist/components/sl-SI-NN7IZMDC.js +0 -523
- package/dist/components/sourceLoading.js +0 -134
- package/dist/components/sql.js +0 -118
- package/dist/components/src.js +0 -2664
- package/dist/components/src2.js +0 -10722
- package/dist/components/stateDiagram-AJRCARHV.js +0 -217
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
- package/dist/components/subset-shared.chunk.js +0 -3
- package/dist/components/subset-worker.chunk.js +0 -21
- package/dist/components/sv-SE-XGPEYMSR.js +0 -523
- package/dist/components/ta-IN-2NMHFXQM.js +0 -523
- package/dist/components/text.js +0 -20
- package/dist/components/th-TH-HPSO5L25.js +0 -523
- package/dist/components/three.module.js +0 -13134
- package/dist/components/time.js +0 -910
- package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
- package/dist/components/tr-TR-DEFEU3FU.js +0 -523
- package/dist/components/treeView-BLDUP644.js +0 -3
- package/dist/components/treemap-LRROVOQU.js +0 -3
- package/dist/components/typescript.js +0 -521
- package/dist/components/typst.js +0 -25
- package/dist/components/uk-UA-QMV73CPH.js +0 -523
- package/dist/components/umd.js +0 -16
- package/dist/components/use.js +0 -422
- package/dist/components/util.js +0 -49
- package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
- package/dist/components/vi-VN-M7AON7JQ.js +0 -523
- package/dist/components/viewerZoom.js +0 -92
- package/dist/components/wardley-L42UT6IY.js +0 -3
- package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
- package/dist/components/wasm-pack-shim.js +0 -1711
- package/dist/components/wasm-pack-shim2.js +0 -934
- package/dist/components/wasm.js +0 -97
- package/dist/components/word.js +0 -3055
- package/dist/components/worker-ref.js +0 -16
- package/dist/components/xlsx.js +0 -21
- package/dist/components/xml.js +0 -166
- package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
- package/dist/components/yaml.js +0 -144
- package/dist/components/zh-CN-LNUGB5OW.js +0 -523
- package/dist/components/zh-HK-E62DVLB3.js +0 -523
- package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
- package/dist/index.mjs +0 -3293
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/compare/CompareApp.vue.d.ts +0 -3
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
- package/dist/src/components/HelloWorld.vue.d.ts +0 -3
- package/dist/src/components/utils.d.ts +0 -4
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +0 -27
- package/dist/src/package/common/printLayout.d.ts +0 -16
- package/dist/src/package/common/sourceLoading.d.ts +0 -10
- package/dist/src/package/common/type.d.ts +0 -544
- package/dist/src/package/common/util.d.ts +0 -5
- package/dist/src/package/common/worker-ref.d.ts +0 -12
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
- package/dist/src/package/components/FileViewer/index.d.ts +0 -2
- package/dist/src/package/components/FileViewer/util.d.ts +0 -3
- package/dist/src/package/index.d.ts +0 -22
- package/dist/src/package/use/documentLocation.d.ts +0 -15
- package/dist/src/package/use/documentSearch.d.ts +0 -234
- package/dist/src/package/use/index.d.ts +0 -5
- package/dist/src/package/use/loading.d.ts +0 -33
- package/dist/src/package/use/viewerZoom.d.ts +0 -42
- package/dist/src/package/use/worker.d.ts +0 -24
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/archive/cache.d.ts +0 -10
- package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
- package/dist/src/package/vendors/archive/index.d.ts +0 -3
- package/dist/src/package/vendors/archive/shared.d.ts +0 -24
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/audio/index.d.ts +0 -7
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/cad/index.d.ts +0 -8
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/drawing/index.d.ts +0 -7
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ebook/index.d.ts +0 -7
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/eda/index.d.ts +0 -2
- package/dist/src/package/vendors/eda/parser.d.ts +0 -77
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
- package/dist/src/package/vendors/email/index.d.ts +0 -2
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/image/index.d.ts +0 -4
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/md/index.d.ts +0 -4
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/model/index.d.ts +0 -3
- package/dist/src/package/vendors/model/shared.d.ts +0 -1
- package/dist/src/package/vendors/mp4/index.d.ts +0 -4
- package/dist/src/package/vendors/nestedRender.d.ts +0 -10
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ofd/index.d.ts +0 -7
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
- package/dist/src/package/vendors/pdf/index.d.ts +0 -2
- package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
- package/dist/src/package/vendors/pptx/index.d.ts +0 -6
- package/dist/src/package/vendors/pptx/options.d.ts +0 -39
- package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
- package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/renders.d.ts +0 -3
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/text/index.d.ts +0 -10
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/typst/index.d.ts +0 -8
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/umd/index.d.ts +0 -7
- package/dist/src/package/vendors/umd/parser.d.ts +0 -30
- package/dist/src/package/vendors/word/doc.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
- package/dist/src/package/vendors/word/index.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
- package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
- package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
- package/dist/style.css +0 -1
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +0 -24
- package/dist/wasm/cad/libredwg-web.js +0 -15
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.mjs
|
|
3
|
-
function t(e, t) {
|
|
4
|
-
if (e.accDescr) {
|
|
5
|
-
var n;
|
|
6
|
-
(n = t.setAccDescription) == null || n.call(t, e.accDescr);
|
|
7
|
-
}
|
|
8
|
-
if (e.accTitle) {
|
|
9
|
-
var r;
|
|
10
|
-
(r = t.setAccTitle) == null || r.call(t, e.accTitle);
|
|
11
|
-
}
|
|
12
|
-
if (e.title) {
|
|
13
|
-
var i;
|
|
14
|
-
(i = t.setDiagramTitle) == null || i.call(t, e.title);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
e(t, "populateCommonDb");
|
|
18
|
-
//#endregion
|
|
19
|
-
export { t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { Q as t } from "./src.js";
|
|
3
|
-
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs
|
|
4
|
-
var n = /* @__PURE__ */ e((e, n) => {
|
|
5
|
-
let r;
|
|
6
|
-
return n === "sandbox" && (r = t("#i" + e)), t(n === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${e}"]`);
|
|
7
|
-
}, "getDiagramElement");
|
|
8
|
-
//#endregion
|
|
9
|
-
export { n as t };
|
|
@@ -1,669 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./objectSpread2.js";
|
|
2
|
-
import { n, r } from "./chunk-AGHRB4JF.js";
|
|
3
|
-
import { R as i, h as a, p as o, r as s, s as c } from "./chunk-CSCIHK7Q.js";
|
|
4
|
-
import { Q as l, _ as u, a as d, c as f, d as ee, f as te, g as ne, h as re, i as ie, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe, x as me } from "./src.js";
|
|
5
|
-
import { t as he } from "./dist.js";
|
|
6
|
-
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
|
|
7
|
-
var ge = class {
|
|
8
|
-
constructor(e, t) {
|
|
9
|
-
this._context = e, this._x = t;
|
|
10
|
-
}
|
|
11
|
-
areaStart() {
|
|
12
|
-
this._line = 0;
|
|
13
|
-
}
|
|
14
|
-
areaEnd() {
|
|
15
|
-
this._line = NaN;
|
|
16
|
-
}
|
|
17
|
-
lineStart() {
|
|
18
|
-
this._point = 0;
|
|
19
|
-
}
|
|
20
|
-
lineEnd() {
|
|
21
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
22
|
-
}
|
|
23
|
-
point(e, t) {
|
|
24
|
-
switch (e = +e, t = +t, this._point) {
|
|
25
|
-
case 0:
|
|
26
|
-
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
27
|
-
break;
|
|
28
|
-
case 1: this._point = 2;
|
|
29
|
-
default:
|
|
30
|
-
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
this._x0 = e, this._y0 = t;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
function _e(e) {
|
|
37
|
-
return new ge(e, !0);
|
|
38
|
-
}
|
|
39
|
-
function ve(e) {
|
|
40
|
-
return new ge(e, !1);
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
44
|
-
function ye(e) {
|
|
45
|
-
return Number.isSafeInteger(e) && e >= 0;
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
49
|
-
function be(e) {
|
|
50
|
-
return e != null && typeof e != "function" && ye(e.length);
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
54
|
-
function xe(e) {
|
|
55
|
-
return e === "__proto__";
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
59
|
-
function p(e) {
|
|
60
|
-
return e == null || typeof e != "object" && typeof e != "function";
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
64
|
-
function Se(e) {
|
|
65
|
-
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
69
|
-
function m(e) {
|
|
70
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
74
|
-
var Ce = "[object RegExp]", h = "[object String]", g = "[object Number]", _ = "[object Boolean]", v = "[object Arguments]", y = "[object Symbol]", b = "[object Date]", we = "[object Map]", x = "[object Set]", S = "[object Array]", C = "[object ArrayBuffer]", w = "[object Object]", T = "[object DataView]", E = "[object Uint8Array]", D = "[object Uint8ClampedArray]", O = "[object Uint16Array]", k = "[object Uint32Array]", A = "[object Int8Array]", Te = "[object Int16Array]", Ee = "[object Int32Array]", De = "[object Float32Array]", Oe = "[object Float64Array]", ke = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
|
|
75
|
-
return this;
|
|
76
|
-
})() || Function("return this")();
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
79
|
-
function j(e) {
|
|
80
|
-
return ke.Buffer !== void 0 && ke.Buffer.isBuffer(e);
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
84
|
-
function M(e) {
|
|
85
|
-
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
89
|
-
function Ae(e, t) {
|
|
90
|
-
return N(e, void 0, e, /* @__PURE__ */ new Map(), t);
|
|
91
|
-
}
|
|
92
|
-
function N(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
93
|
-
let a = i == null ? void 0 : i(e, t, n, r);
|
|
94
|
-
if (a !== void 0) return a;
|
|
95
|
-
if (p(e)) return e;
|
|
96
|
-
if (r.has(e)) return r.get(e);
|
|
97
|
-
if (Array.isArray(e)) {
|
|
98
|
-
let t = Array(e.length);
|
|
99
|
-
r.set(e, t);
|
|
100
|
-
for (let a = 0; a < e.length; a++) t[a] = N(e[a], a, n, r, i);
|
|
101
|
-
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
102
|
-
}
|
|
103
|
-
if (e instanceof Date) return new Date(e.getTime());
|
|
104
|
-
if (e instanceof RegExp) {
|
|
105
|
-
let t = new RegExp(e.source, e.flags);
|
|
106
|
-
return t.lastIndex = e.lastIndex, t;
|
|
107
|
-
}
|
|
108
|
-
if (e instanceof Map) {
|
|
109
|
-
let t = /* @__PURE__ */ new Map();
|
|
110
|
-
r.set(e, t);
|
|
111
|
-
for (let [a, o] of e) t.set(a, N(o, a, n, r, i));
|
|
112
|
-
return t;
|
|
113
|
-
}
|
|
114
|
-
if (e instanceof Set) {
|
|
115
|
-
let t = /* @__PURE__ */ new Set();
|
|
116
|
-
r.set(e, t);
|
|
117
|
-
for (let a of e) t.add(N(a, void 0, n, r, i));
|
|
118
|
-
return t;
|
|
119
|
-
}
|
|
120
|
-
if (j(e)) return e.subarray();
|
|
121
|
-
if (M(e)) {
|
|
122
|
-
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
123
|
-
r.set(e, t);
|
|
124
|
-
for (let a = 0; a < e.length; a++) t[a] = N(e[a], a, n, r, i);
|
|
125
|
-
return t;
|
|
126
|
-
}
|
|
127
|
-
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
128
|
-
if (e instanceof DataView) {
|
|
129
|
-
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
130
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
131
|
-
}
|
|
132
|
-
if (typeof File < "u" && e instanceof File) {
|
|
133
|
-
let t = new File([e], e.name, { type: e.type });
|
|
134
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
135
|
-
}
|
|
136
|
-
if (typeof Blob < "u" && e instanceof Blob) {
|
|
137
|
-
let t = new Blob([e], { type: e.type });
|
|
138
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
139
|
-
}
|
|
140
|
-
if (e instanceof Error) {
|
|
141
|
-
let t = structuredClone(e);
|
|
142
|
-
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, P(t, e, n, r, i), t;
|
|
143
|
-
}
|
|
144
|
-
if (e instanceof Boolean) {
|
|
145
|
-
let t = new Boolean(e.valueOf());
|
|
146
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
147
|
-
}
|
|
148
|
-
if (e instanceof Number) {
|
|
149
|
-
let t = new Number(e.valueOf());
|
|
150
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
151
|
-
}
|
|
152
|
-
if (e instanceof String) {
|
|
153
|
-
let t = new String(e.valueOf());
|
|
154
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
155
|
-
}
|
|
156
|
-
if (typeof e == "object" && je(e)) {
|
|
157
|
-
let t = Object.create(Object.getPrototypeOf(e));
|
|
158
|
-
return r.set(e, t), P(t, e, n, r, i), t;
|
|
159
|
-
}
|
|
160
|
-
return e;
|
|
161
|
-
}
|
|
162
|
-
function P(e, t, n = e, r, i) {
|
|
163
|
-
let a = [...Object.keys(t), ...Se(t)];
|
|
164
|
-
for (let o = 0; o < a.length; o++) {
|
|
165
|
-
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
166
|
-
(c == null || c.writable) && (e[s] = N(t[s], s, n, r, i));
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function je(e) {
|
|
170
|
-
switch (m(e)) {
|
|
171
|
-
case v:
|
|
172
|
-
case S:
|
|
173
|
-
case C:
|
|
174
|
-
case T:
|
|
175
|
-
case _:
|
|
176
|
-
case b:
|
|
177
|
-
case De:
|
|
178
|
-
case Oe:
|
|
179
|
-
case A:
|
|
180
|
-
case Te:
|
|
181
|
-
case Ee:
|
|
182
|
-
case we:
|
|
183
|
-
case g:
|
|
184
|
-
case w:
|
|
185
|
-
case Ce:
|
|
186
|
-
case x:
|
|
187
|
-
case h:
|
|
188
|
-
case y:
|
|
189
|
-
case E:
|
|
190
|
-
case D:
|
|
191
|
-
case O:
|
|
192
|
-
case k: return !0;
|
|
193
|
-
default: return !1;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
|
|
198
|
-
function Me(e, t) {
|
|
199
|
-
return Ae(e, (n, r, i, a) => {
|
|
200
|
-
let o = t == null ? void 0 : t(n, r, i, a);
|
|
201
|
-
if (o !== void 0) return o;
|
|
202
|
-
if (typeof e == "object") {
|
|
203
|
-
if (m(e) === "[object Object]" && typeof e.constructor != "function") {
|
|
204
|
-
let t = {};
|
|
205
|
-
return a.set(e, t), P(t, e, i, a), t;
|
|
206
|
-
}
|
|
207
|
-
switch (Object.prototype.toString.call(e)) {
|
|
208
|
-
case g:
|
|
209
|
-
case h:
|
|
210
|
-
case _: {
|
|
211
|
-
let t = new e.constructor(e == null ? void 0 : e.valueOf());
|
|
212
|
-
return P(t, e), t;
|
|
213
|
-
}
|
|
214
|
-
case v: {
|
|
215
|
-
let t = {};
|
|
216
|
-
return P(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
|
|
217
|
-
}
|
|
218
|
-
default: return;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
|
|
225
|
-
function Ne(e) {
|
|
226
|
-
return Me(e);
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
|
|
230
|
-
function F(e) {
|
|
231
|
-
return typeof e == "object" && !!e && m(e) === "[object Arguments]";
|
|
232
|
-
}
|
|
233
|
-
//#endregion
|
|
234
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
|
|
235
|
-
function I(e) {
|
|
236
|
-
return typeof e == "object" && !!e;
|
|
237
|
-
}
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
|
|
240
|
-
function Pe(e) {
|
|
241
|
-
return I(e) && be(e);
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/function/memoize.mjs
|
|
245
|
-
function L(e, t) {
|
|
246
|
-
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
|
|
247
|
-
let n = function(...r) {
|
|
248
|
-
let i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
249
|
-
if (a.has(i)) return a.get(i);
|
|
250
|
-
let o = e.apply(this, r);
|
|
251
|
-
return n.cache = a.set(i, o) || a, o;
|
|
252
|
-
};
|
|
253
|
-
return n.cache = new (L.Cache || Map)(), n;
|
|
254
|
-
}
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/function/noop.mjs
|
|
257
|
-
L.Cache = Map, e();
|
|
258
|
-
function Fe() {}
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
|
|
261
|
-
function R(e) {
|
|
262
|
-
return M(e);
|
|
263
|
-
}
|
|
264
|
-
//#endregion
|
|
265
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
|
|
266
|
-
function z(e) {
|
|
267
|
-
if (typeof e != "object" || !e) return !1;
|
|
268
|
-
if (Object.getPrototypeOf(e) === null) return !0;
|
|
269
|
-
if (Object.prototype.toString.call(e) !== "[object Object]") {
|
|
270
|
-
var t;
|
|
271
|
-
let n = e[Symbol.toStringTag];
|
|
272
|
-
return n == null || !((t = Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)) != null && t.writable) ? !1 : e.toString() === `[object ${n}]`;
|
|
273
|
-
}
|
|
274
|
-
let n = e;
|
|
275
|
-
for (; Object.getPrototypeOf(n) !== null;) n = Object.getPrototypeOf(n);
|
|
276
|
-
return Object.getPrototypeOf(e) === n;
|
|
277
|
-
}
|
|
278
|
-
//#endregion
|
|
279
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/clone.mjs
|
|
280
|
-
function Ie(e) {
|
|
281
|
-
if (p(e)) return e;
|
|
282
|
-
if (Array.isArray(e) || M(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
283
|
-
let t = Object.getPrototypeOf(e);
|
|
284
|
-
if (t == null) return Object.assign(Object.create(t), e);
|
|
285
|
-
let n = t.constructor;
|
|
286
|
-
if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
|
|
287
|
-
if (e instanceof RegExp) {
|
|
288
|
-
let t = new n(e);
|
|
289
|
-
return t.lastIndex = e.lastIndex, t;
|
|
290
|
-
}
|
|
291
|
-
if (e instanceof DataView) return new n(e.buffer.slice(0));
|
|
292
|
-
if (e instanceof Error) {
|
|
293
|
-
let t;
|
|
294
|
-
return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
|
|
295
|
-
}
|
|
296
|
-
return typeof File < "u" && e instanceof File ? new n([e], e.name, {
|
|
297
|
-
type: e.type,
|
|
298
|
-
lastModified: e.lastModified
|
|
299
|
-
}) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
|
|
300
|
-
}
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
|
|
303
|
-
function Le(e, ...t) {
|
|
304
|
-
let n = t.slice(0, -1), r = t[t.length - 1], i = e;
|
|
305
|
-
for (let e = 0; e < n.length; e++) {
|
|
306
|
-
let t = n[e];
|
|
307
|
-
i = B(i, t, r, /* @__PURE__ */ new Map());
|
|
308
|
-
}
|
|
309
|
-
return i;
|
|
310
|
-
}
|
|
311
|
-
function B(e, n, r, i) {
|
|
312
|
-
if (p(e) && (e = Object(e)), typeof n != "object" || !n) return e;
|
|
313
|
-
if (i.has(n)) return Ie(i.get(n));
|
|
314
|
-
if (i.set(n, e), Array.isArray(n)) {
|
|
315
|
-
n = n.slice();
|
|
316
|
-
for (let e = 0; e < n.length; e++) {
|
|
317
|
-
var a;
|
|
318
|
-
n[e] = (a = n[e]) == null ? void 0 : a;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
let o = [...Object.keys(n), ...Se(n)];
|
|
322
|
-
for (let a = 0; a < o.length; a++) {
|
|
323
|
-
let s = o[a];
|
|
324
|
-
if (xe(s)) continue;
|
|
325
|
-
let c = n[s], l = e[s];
|
|
326
|
-
if (F(c) && (c = t({}, c)), F(l) && (l = t({}, l)), j(c) && (c = Ne(c)), Array.isArray(c)) if (Array.isArray(l)) {
|
|
327
|
-
let e = [], t = Reflect.ownKeys(l);
|
|
328
|
-
for (let n = 0; n < t.length; n++) {
|
|
329
|
-
let r = t[n];
|
|
330
|
-
e[r] = l[r];
|
|
331
|
-
}
|
|
332
|
-
l = e;
|
|
333
|
-
} else if (Pe(l)) {
|
|
334
|
-
let e = [];
|
|
335
|
-
for (let t = 0; t < l.length; t++) e[t] = l[t];
|
|
336
|
-
l = e;
|
|
337
|
-
} else l = [];
|
|
338
|
-
let u = r(l, c, s, e, n, i);
|
|
339
|
-
u === void 0 ? Array.isArray(c) || I(l) && I(c) && (z(l) || z(c) || R(l) || R(c)) ? e[s] = B(l, c, r, i) : l == null && z(c) ? e[s] = B({}, c, r, i) : l == null && R(c) ? e[s] = Ne(c) : (l === void 0 || c !== void 0) && (e[s] = c) : e[s] = u;
|
|
340
|
-
}
|
|
341
|
-
return e;
|
|
342
|
-
}
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/merge.mjs
|
|
345
|
-
function Re(e, ...t) {
|
|
346
|
-
return Le(e, ...t, Fe);
|
|
347
|
-
}
|
|
348
|
-
//#endregion
|
|
349
|
-
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.mjs
|
|
350
|
-
var ze = he(), V, Be = {
|
|
351
|
-
curveBasis: u,
|
|
352
|
-
curveBasisClosed: ne,
|
|
353
|
-
curveBasisOpen: re,
|
|
354
|
-
curveBumpX: _e,
|
|
355
|
-
curveBumpY: ve,
|
|
356
|
-
curveBundle: oe,
|
|
357
|
-
curveCardinalClosed: te,
|
|
358
|
-
curveCardinalOpen: ee,
|
|
359
|
-
curveCardinal: le,
|
|
360
|
-
curveCatmullRomClosed: ae,
|
|
361
|
-
curveCatmullRomOpen: f,
|
|
362
|
-
curveCatmullRom: pe,
|
|
363
|
-
curveLinear: me,
|
|
364
|
-
curveLinearClosed: de,
|
|
365
|
-
curveMonotoneX: d,
|
|
366
|
-
curveMonotoneY: ce,
|
|
367
|
-
curveNatural: ie,
|
|
368
|
-
curveStep: ue,
|
|
369
|
-
curveStepAfter: fe,
|
|
370
|
-
curveStepBefore: se
|
|
371
|
-
}, Ve = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, He = /* @__PURE__ */ n(function(e, t) {
|
|
372
|
-
let n = Ue(e, /(?:init\b)|(?:initialize\b)/), r = {};
|
|
373
|
-
if (Array.isArray(n)) {
|
|
374
|
-
let e = n.map((e) => e.args);
|
|
375
|
-
i(e), r = s(r, [...e]);
|
|
376
|
-
} else r = n.args;
|
|
377
|
-
if (!r) return;
|
|
378
|
-
let a = o(e, t), c = "config";
|
|
379
|
-
return r[c] !== void 0 && (a === "flowchart-v2" && (a = "flowchart"), r[a] = r[c], delete r[c]), r;
|
|
380
|
-
}, "detectInit"), Ue = /* @__PURE__ */ n(function(e, t = null) {
|
|
381
|
-
try {
|
|
382
|
-
let o = RegExp(`[%]{2}(?![{]${Ve.source})(?=[}][%]{2}).*
|
|
383
|
-
`, "ig");
|
|
384
|
-
e = e.trim().replace(o, "").replace(/'/gm, "\""), r.debug(`Detecting diagram directive${t === null ? "" : " type:" + t} based on the text:${e}`);
|
|
385
|
-
let s, c = [];
|
|
386
|
-
for (; (s = a.exec(e)) !== null;) {
|
|
387
|
-
var n, i;
|
|
388
|
-
if (s.index === a.lastIndex && a.lastIndex++, s && !t || t && (n = s[1]) != null && n.match(t) || t && (i = s[2]) != null && i.match(t)) {
|
|
389
|
-
let e = s[1] ? s[1] : s[2], t = s[3] ? s[3].trim() : s[4] ? JSON.parse(s[4].trim()) : null;
|
|
390
|
-
c.push({
|
|
391
|
-
type: e,
|
|
392
|
-
args: t
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return c.length === 0 ? {
|
|
397
|
-
type: e,
|
|
398
|
-
args: null
|
|
399
|
-
} : c.length === 1 ? c[0] : c;
|
|
400
|
-
} catch (n) {
|
|
401
|
-
return r.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`), {
|
|
402
|
-
type: void 0,
|
|
403
|
-
args: null
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
}, "detectDirective"), We = /* @__PURE__ */ n(function(e) {
|
|
407
|
-
return e.replace(a, "");
|
|
408
|
-
}, "removeDirectives"), Ge = /* @__PURE__ */ n(function(e, t) {
|
|
409
|
-
for (let [n, r] of t.entries()) if (r.match(e)) return n;
|
|
410
|
-
return -1;
|
|
411
|
-
}, "isSubstringInArray");
|
|
412
|
-
function H(e, t) {
|
|
413
|
-
var n;
|
|
414
|
-
return e ? (n = Be[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`]) == null ? t : n : t;
|
|
415
|
-
}
|
|
416
|
-
n(H, "interpolateToCurve");
|
|
417
|
-
function Ke(e, t) {
|
|
418
|
-
let n = e.trim();
|
|
419
|
-
if (n) return t.securityLevel === "loose" ? n : (0, ze.sanitizeUrl)(n);
|
|
420
|
-
}
|
|
421
|
-
n(Ke, "formatUrl");
|
|
422
|
-
var qe = /* @__PURE__ */ n((e, ...t) => {
|
|
423
|
-
let n = e.split("."), i = n.length - 1, a = n[i], o = window;
|
|
424
|
-
for (let t = 0; t < i; t++) if (o = o[n[t]], !o) {
|
|
425
|
-
r.error(`Function name: ${e} not found in window`);
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
o[a](...t);
|
|
429
|
-
}, "runFunc");
|
|
430
|
-
function U(e, t) {
|
|
431
|
-
return !e || !t ? 0 : Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
432
|
-
}
|
|
433
|
-
n(U, "distance");
|
|
434
|
-
function Je(e) {
|
|
435
|
-
let t, n = 0;
|
|
436
|
-
return e.forEach((e) => {
|
|
437
|
-
n += U(e, t), t = e;
|
|
438
|
-
}), W(e, n / 2);
|
|
439
|
-
}
|
|
440
|
-
n(Je, "traverseEdge");
|
|
441
|
-
function Ye(e) {
|
|
442
|
-
return e.length === 1 ? e[0] : Je(e);
|
|
443
|
-
}
|
|
444
|
-
n(Ye, "calcLabelPosition");
|
|
445
|
-
var Xe = /* @__PURE__ */ n((e, t = 2) => {
|
|
446
|
-
let n = Math.pow(10, t);
|
|
447
|
-
return Math.round(e * n) / n;
|
|
448
|
-
}, "roundNumber"), W = /* @__PURE__ */ n((e, t) => {
|
|
449
|
-
let n, r = t;
|
|
450
|
-
for (let t of e) {
|
|
451
|
-
if (n) {
|
|
452
|
-
let e = U(t, n);
|
|
453
|
-
if (e === 0) return n;
|
|
454
|
-
if (e < r) r -= e;
|
|
455
|
-
else {
|
|
456
|
-
let i = r / e;
|
|
457
|
-
if (i <= 0) return n;
|
|
458
|
-
if (i >= 1) return {
|
|
459
|
-
x: t.x,
|
|
460
|
-
y: t.y
|
|
461
|
-
};
|
|
462
|
-
if (i > 0 && i < 1) return {
|
|
463
|
-
x: Xe((1 - i) * n.x + i * t.x, 5),
|
|
464
|
-
y: Xe((1 - i) * n.y + i * t.y, 5)
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
n = t;
|
|
469
|
-
}
|
|
470
|
-
throw Error("Could not find a suitable point for the given distance");
|
|
471
|
-
}, "calculatePoint"), Ze = /* @__PURE__ */ n((e, t, n) => {
|
|
472
|
-
r.info(`our points ${JSON.stringify(t)}`), t[0] !== n && (t = t.reverse());
|
|
473
|
-
let i = W(t, 25), a = e ? 10 : 5, o = Math.atan2(t[0].y - i.y, t[0].x - i.x), s = {
|
|
474
|
-
x: 0,
|
|
475
|
-
y: 0
|
|
476
|
-
};
|
|
477
|
-
return s.x = Math.sin(o) * a + (t[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (t[0].y + i.y) / 2, s;
|
|
478
|
-
}, "calcCardinalityPosition");
|
|
479
|
-
function Qe(e, t, n) {
|
|
480
|
-
let i = structuredClone(n);
|
|
481
|
-
r.info("our points", i), t !== "start_left" && t !== "start_right" && i.reverse();
|
|
482
|
-
let a = W(i, 25 + e), o = 10 + e * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
|
|
483
|
-
x: 0,
|
|
484
|
-
y: 0
|
|
485
|
-
};
|
|
486
|
-
return t === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : t === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : t === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
|
|
487
|
-
}
|
|
488
|
-
n(Qe, "calcTerminalLabelPosition");
|
|
489
|
-
function G(e) {
|
|
490
|
-
let t = "", n = "";
|
|
491
|
-
for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
|
|
492
|
-
return {
|
|
493
|
-
style: t,
|
|
494
|
-
labelStyle: n
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
n(G, "getStylesFromArray");
|
|
498
|
-
var $e = 0, et = /* @__PURE__ */ n(() => ($e++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + $e), "generateId");
|
|
499
|
-
function tt(e) {
|
|
500
|
-
let t = "";
|
|
501
|
-
for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
|
|
502
|
-
return t;
|
|
503
|
-
}
|
|
504
|
-
n(tt, "makeRandomHex");
|
|
505
|
-
var nt = /* @__PURE__ */ n((e) => tt(e.length), "random"), rt = /* @__PURE__ */ n(function() {
|
|
506
|
-
return {
|
|
507
|
-
x: 0,
|
|
508
|
-
y: 0,
|
|
509
|
-
fill: void 0,
|
|
510
|
-
anchor: "start",
|
|
511
|
-
style: "#666",
|
|
512
|
-
width: 100,
|
|
513
|
-
height: 100,
|
|
514
|
-
textMargin: 0,
|
|
515
|
-
rx: 0,
|
|
516
|
-
ry: 0,
|
|
517
|
-
valign: void 0,
|
|
518
|
-
text: ""
|
|
519
|
-
};
|
|
520
|
-
}, "getTextObj"), it = /* @__PURE__ */ n(function(e, t) {
|
|
521
|
-
let n = t.text.replace(c.lineBreakRegex, " "), [, r] = Z(t.fontSize), i = e.append("text");
|
|
522
|
-
i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
|
|
523
|
-
let a = i.append("tspan");
|
|
524
|
-
return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
|
|
525
|
-
}, "drawSimpleText"), K = L((e, t, n) => {
|
|
526
|
-
if (!e || (n = Object.assign({
|
|
527
|
-
fontSize: 12,
|
|
528
|
-
fontWeight: 400,
|
|
529
|
-
fontFamily: "Arial",
|
|
530
|
-
joinWith: "<br/>"
|
|
531
|
-
}, n), c.lineBreakRegex.test(e))) return e;
|
|
532
|
-
let r = e.split(" ").filter(Boolean), i = [], a = "";
|
|
533
|
-
return r.forEach((e, o) => {
|
|
534
|
-
let s = J(`${e} `, n), c = J(a, n);
|
|
535
|
-
if (s > t) {
|
|
536
|
-
let { hyphenatedStrings: r, remainingWord: o } = at(e, t, "-", n);
|
|
537
|
-
i.push(a, ...r), a = o;
|
|
538
|
-
} else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
|
|
539
|
-
o + 1 === r.length && i.push(a);
|
|
540
|
-
}), i.filter((e) => e !== "").join(n.joinWith);
|
|
541
|
-
}, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), at = L((e, t, n = "-", r) => {
|
|
542
|
-
r = Object.assign({
|
|
543
|
-
fontSize: 12,
|
|
544
|
-
fontWeight: 400,
|
|
545
|
-
fontFamily: "Arial",
|
|
546
|
-
margin: 0
|
|
547
|
-
}, r);
|
|
548
|
-
let i = [...e], a = [], o = "";
|
|
549
|
-
return i.forEach((e, s) => {
|
|
550
|
-
let c = `${o}${e}`;
|
|
551
|
-
if (J(c, r) >= t) {
|
|
552
|
-
let e = s + 1, t = i.length === e, r = `${c}${n}`;
|
|
553
|
-
a.push(t ? c : r), o = "";
|
|
554
|
-
} else o = c;
|
|
555
|
-
}), {
|
|
556
|
-
hyphenatedStrings: a,
|
|
557
|
-
remainingWord: o
|
|
558
|
-
};
|
|
559
|
-
}, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
|
|
560
|
-
function q(e, t) {
|
|
561
|
-
return Y(e, t).height;
|
|
562
|
-
}
|
|
563
|
-
n(q, "calculateTextHeight");
|
|
564
|
-
function J(e, t) {
|
|
565
|
-
return Y(e, t).width;
|
|
566
|
-
}
|
|
567
|
-
n(J, "calculateTextWidth");
|
|
568
|
-
var Y = L((e, t) => {
|
|
569
|
-
let { fontSize: n = 12, fontFamily: r = "Arial", fontWeight: i = 400 } = t;
|
|
570
|
-
if (!e) return {
|
|
571
|
-
width: 0,
|
|
572
|
-
height: 0
|
|
573
|
-
};
|
|
574
|
-
let [, a] = Z(n), o = ["sans-serif", r], s = e.split(c.lineBreakRegex), u = [], d = l("body");
|
|
575
|
-
if (!d.remove) return {
|
|
576
|
-
width: 0,
|
|
577
|
-
height: 0,
|
|
578
|
-
lineHeight: 0
|
|
579
|
-
};
|
|
580
|
-
let f = d.append("svg");
|
|
581
|
-
for (let e of o) {
|
|
582
|
-
let t = 0, n = {
|
|
583
|
-
width: 0,
|
|
584
|
-
height: 0,
|
|
585
|
-
lineHeight: 0
|
|
586
|
-
};
|
|
587
|
-
for (let r of s) {
|
|
588
|
-
let o = rt();
|
|
589
|
-
o.text = r || "";
|
|
590
|
-
let s = it(f, o).style("font-size", a).style("font-weight", i).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
|
|
591
|
-
if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
|
|
592
|
-
n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
|
|
593
|
-
}
|
|
594
|
-
u.push(n);
|
|
595
|
-
}
|
|
596
|
-
return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
|
|
597
|
-
}, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ot = (V = class {
|
|
598
|
-
constructor(e = !1, t) {
|
|
599
|
-
this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
|
|
600
|
-
}
|
|
601
|
-
}, n(V, "InitIDGenerator"), V), X, st = /* @__PURE__ */ n(function(e) {
|
|
602
|
-
return X = X || document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), X.innerHTML = e, unescape(X.textContent);
|
|
603
|
-
}, "entityDecode");
|
|
604
|
-
function ct(e) {
|
|
605
|
-
return "str" in e;
|
|
606
|
-
}
|
|
607
|
-
n(ct, "isDetailedError");
|
|
608
|
-
var lt = /* @__PURE__ */ n((e, t, n, r) => {
|
|
609
|
-
var i;
|
|
610
|
-
if (!r) return;
|
|
611
|
-
let a = (i = e.node()) == null ? void 0 : i.getBBox();
|
|
612
|
-
a && e.append("text").text(r).attr("text-anchor", "middle").attr("x", a.x + a.width / 2).attr("y", -n).attr("class", t);
|
|
613
|
-
}, "insertTitle"), Z = /* @__PURE__ */ n((e) => {
|
|
614
|
-
if (typeof e == "number") return [e, e + "px"];
|
|
615
|
-
let t = parseInt(e == null ? "" : e, 10);
|
|
616
|
-
return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
|
|
617
|
-
}, "parseFontSize");
|
|
618
|
-
function Q(e, t) {
|
|
619
|
-
return Re({}, e, t);
|
|
620
|
-
}
|
|
621
|
-
n(Q, "cleanAndMerge");
|
|
622
|
-
var ut = {
|
|
623
|
-
assignWithDepth: s,
|
|
624
|
-
wrapLabel: K,
|
|
625
|
-
calculateTextHeight: q,
|
|
626
|
-
calculateTextWidth: J,
|
|
627
|
-
calculateTextDimensions: Y,
|
|
628
|
-
cleanAndMerge: Q,
|
|
629
|
-
detectInit: He,
|
|
630
|
-
detectDirective: Ue,
|
|
631
|
-
isSubstringInArray: Ge,
|
|
632
|
-
interpolateToCurve: H,
|
|
633
|
-
calcLabelPosition: Ye,
|
|
634
|
-
calcCardinalityPosition: Ze,
|
|
635
|
-
calcTerminalLabelPosition: Qe,
|
|
636
|
-
formatUrl: Ke,
|
|
637
|
-
getStylesFromArray: G,
|
|
638
|
-
generateId: et,
|
|
639
|
-
random: nt,
|
|
640
|
-
runFunc: qe,
|
|
641
|
-
entityDecode: st,
|
|
642
|
-
insertTitle: lt,
|
|
643
|
-
isLabelCoordinateInPath: $,
|
|
644
|
-
parseFontSize: Z,
|
|
645
|
-
InitIDGenerator: ot
|
|
646
|
-
}, dt = /* @__PURE__ */ n(function(e) {
|
|
647
|
-
let t = e;
|
|
648
|
-
return t = t.replace(/style.*:\S*#.*;/g, function(e) {
|
|
649
|
-
return e.substring(0, e.length - 1);
|
|
650
|
-
}), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
|
|
651
|
-
return e.substring(0, e.length - 1);
|
|
652
|
-
}), t = t.replace(/#\w+;/g, function(e) {
|
|
653
|
-
let t = e.substring(1, e.length - 1);
|
|
654
|
-
return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
|
|
655
|
-
}), t;
|
|
656
|
-
}, "encodeEntities"), ft = /* @__PURE__ */ n(function(e) {
|
|
657
|
-
return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
658
|
-
}, "decodeEntities"), pt = /* @__PURE__ */ n((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
|
|
659
|
-
function mt(e) {
|
|
660
|
-
return e == null ? null : e;
|
|
661
|
-
}
|
|
662
|
-
n(mt, "handleUndefinedAttr");
|
|
663
|
-
function $(e, t) {
|
|
664
|
-
let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
|
|
665
|
-
return i.includes(n.toString()) || i.includes(r.toString());
|
|
666
|
-
}
|
|
667
|
-
n($, "isLabelCoordinateInPath");
|
|
668
|
-
//#endregion
|
|
669
|
-
export { Ee as A, k as B, S as C, De as D, b as E, Ce as F, be as G, D as H, x as I, _e as K, h as L, we as M, g as N, Oe as O, w as P, y as R, C as S, T, m as U, E as V, p as W, K as _, ft as a, j as b, pt as c, H as d, ct as f, ut as g, We as h, Q as i, A as j, Te as k, G as l, nt as m, q as n, dt as o, Z as p, ve as q, J as r, et as s, Y as t, mt as u, R as v, _ as w, v as x, F as y, O as z };
|